.portal-app{border:1px solid var(--mf-color-border);border-radius:var(--mf-radius-xl);box-shadow:var(--mf-shadow-md);background:#fff;overflow:hidden}.portal-app button,.portal-dialog button,.portal-app input,.portal-app select{font:inherit}.portal-app button{cursor:pointer}.portal-app button:focus-visible,.portal-dialog button:focus-visible,.portal-app input:focus-visible,.portal-app select:focus-visible{outline:3px solid var(--mf-color-brand);outline-offset:2px}.portal-header{border-bottom:1px solid var(--mf-color-border);background:#f0f8fd;justify-content:space-between;align-items:center;gap:20px;padding:23px 25px;display:flex}.portal-brand{align-items:center;gap:13px;display:flex}.portal-symbol{color:#087dbb;background:#daeffb;border-radius:13px;flex:none;place-items:center;width:49px;height:49px;display:grid}.portal-kicker{letter-spacing:.11em;color:#087dbb;margin:0;font-size:.68rem;font-weight:850}.portal-header h2{letter-spacing:-.04em;color:#163754;margin:3px 0;font-size:1.4rem}.portal-header p:not(.portal-kicker){color:#54728a;margin:4px 0 0;font-size:.81rem;line-height:1.4}.portal-reset{color:#215576;background:#fff;border:1px solid #bfdae9;border-radius:9px;flex:none;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 13px;display:flex;font-size:.82rem!important;font-weight:750!important}.portal-layout{grid-template-columns:minmax(245px,.9fr) minmax(0,1.65fr);min-height:550px;display:grid}.portal-aside{border-right:1px solid var(--mf-color-border);background:#f8fbfe;padding:22px 20px}.portal-aside label{color:#315a73;gap:7px;margin-bottom:15px;font-size:.81rem;font-weight:750;display:grid}.portal-aside input,.portal-aside select{color:#163d59;background:#fff;border:1px solid #bfd8e7;border-radius:9px;width:100%;min-height:44px;padding:10px 12px;font-size:.87rem}.portal-aside .mf-select{margin-top:0}.portal-aside .mf-select__trigger{min-height:44px!important;font-size:.87rem!important}.portal-aside .mf-select__list{z-index:20}.portal-aside .mf-select__option:focus-visible{outline:none}.portal-aside .mf-data-view{min-width:0}.portal-aside .mf-data-view-filters{gap:14px;display:grid}.portal-aside .mf-data-view-filters label{min-width:0;margin:0}.portal-aside .mf-data-view-items[data-view=list]{gap:9px;display:grid}.portal-aside .mf-data-view-empty{color:#607b91;background:#fff;border:1px solid #d9e6ef;border-radius:9px;margin:0;padding:14px;font-size:.83rem}.portal-aside .mf-data-view-pagination{color:#4b6b80;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;font-size:.75rem;display:flex}.portal-aside .mf-data-view-pagination[hidden]{display:none!important}.portal-aside .mf-data-view-pagination button{color:#235574;background:#fff;border:1px solid #c4d8e8;border-radius:7px;padding:7px}.portal-results{color:#668397;margin:18px 0 10px;font-size:.76rem;font-weight:800}.portal-case{text-align:left;color:#335773;background:#fff;border:1px solid #d9e6ef;border-radius:11px;gap:9px;width:100%;padding:14px;transition:border-color .2s;display:grid}.portal-case:hover{border-color:#78bce5}.portal-case[aria-current=true]{background:#eaf6fe;border:2px solid #0d82c3;padding:13px}.portal-case__head,.portal-case__footer{justify-content:space-between;align-items:center;gap:9px;min-width:0;display:flex}.portal-case__head strong{color:#153957;font-size:.86rem}.portal-case__title{color:#516e83;font-size:.81rem}.portal-case__footer small{color:#718a9a;font-size:.7rem}.portal-state{color:#4d6578;white-space:nowrap;background:#edf2f5;border-radius:99px;padding:5px 8px;font-size:.67rem;font-weight:800}.portal-state--pending{color:#79511e;background:#fff2d8}.portal-state--review{color:#185e97;background:#e4f2ff}.portal-state--ready{color:#276445;background:#e1f5e9}.portal-detail{min-width:0;padding:clamp(20px,3vw,33px)}.portal-detail[hidden]{display:none}.portal-detail__meta{justify-content:space-between;align-items:center;gap:11px;display:flex}.portal-detail h3{letter-spacing:-.05em;color:#173854;margin:12px 0 5px;font-size:clamp(1.65rem,3vw,2.3rem);line-height:1.13}.portal-business{color:#315f7b;margin:0;font-size:.92rem;font-weight:800}.portal-summary{color:#55738a;max-width:620px;margin:12px 0 22px;font-size:.89rem;line-height:1.65}.portal-progress{background:#f6fbfe;border:1px solid #dcebf5;border-radius:11px;margin:0 0 27px;padding:17px 18px}.portal-progress__labels{color:#315b78;justify-content:space-between;gap:12px;font-size:.82rem;display:flex}.portal-progress__labels span{color:#648299;font-size:.78rem}.portal-progress__track{background:#dbeaf3;border-radius:99px;height:8px;margin-top:12px;overflow:hidden}.portal-progress__track span{background:#0a84c6;border-radius:99px;height:100%;transition:width .2s;display:block}.portal-section-heading{margin-bottom:12px}.portal-section-heading h4{letter-spacing:-.03em;color:#23465e;margin:5px 0 0;font-size:1.17rem}.portal-documents{gap:9px;display:grid}.portal-document{border:1px solid #dce9f2;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:13px;display:flex}.portal-file{align-items:center;gap:11px;min-width:0;display:flex}.portal-file__icon{color:#0781c1;background:#ebf6fd;border-radius:9px;flex:none;place-items:center;width:38px;height:38px;display:grid}.portal-file strong,.portal-file small{overflow-wrap:anywhere;line-height:1.45;display:block}.portal-file strong{color:#284b64;font-size:.83rem}.portal-file__kind{color:var(--mf-color-ink-muted);margin:2px 0 4px;font-size:.72rem}.portal-file__statusline{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.portal-presence,.portal-review-state{border-radius:var(--mf-radius-pill);align-items:center;width:max-content;max-width:100%;padding:3px 7px;font-size:.69rem;font-weight:700;line-height:1.35;display:inline-flex}.portal-presence{background:var(--mf-color-surface-subtle);color:var(--mf-color-ink-muted);border:1px solid var(--mf-color-border)}.portal-presence--missing{background:var(--mf-color-warning-bg);border-color:var(--mf-color-warning-line);color:var(--mf-color-warning)}.portal-presence--local{background:var(--mf-color-brand-soft);border-color:var(--mf-color-brand-line);color:var(--mf-color-brand-hover)}.portal-review-state--pending{background:var(--mf-color-surface-subtle);color:var(--mf-color-ink-muted)}.portal-review-state--review{background:var(--mf-color-info-bg);color:var(--mf-color-info)}.portal-review-state--received{background:var(--mf-color-success-bg);color:var(--mf-color-success)}.portal-filename{overflow-wrap:anywhere;max-width:min(260px,100%);margin-top:4px;color:var(--mf-color-ink-muted)!important;font-size:.72rem!important}.portal-actions{flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:7px;display:flex}.portal-action{isolation:isolate;cursor:pointer;border-radius:9px;flex:0 0 42px;place-items:center;width:42px;height:42px;padding:0;transition:background .15s,border-color .15s;display:inline-grid;position:relative}.portal-action svg{pointer-events:none;display:block}.portal-action--view,.portal-action--edit{border:1px solid var(--mf-color-border-strong);color:var(--mf-color-info);background:#fff}.portal-action--attach{border:1px solid var(--mf-color-brand);background:var(--mf-color-brand);color:#fff}.portal-action--review{border:1px solid var(--mf-color-success-line);background:var(--mf-color-success-bg);color:var(--mf-color-success)}.portal-action--reopen{border:1px solid var(--mf-color-border-strong);background:var(--mf-color-surface-subtle);color:var(--mf-color-ink-muted)}.portal-action:hover{border-color:var(--mf-color-brand-hover)}.portal-action--attach:hover{background:var(--mf-color-brand-hover);color:#fff}.portal-action:after{content:attr(data-tooltip);background:var(--mf-color-navy);color:#fff;width:max-content;max-width:min(210px,70vw);box-shadow:var(--mf-shadow-md);text-align:center;white-space:normal;pointer-events:none;opacity:0;visibility:hidden;z-index:12;border-radius:7px;padding:7px 10px;font-size:.75rem;font-weight:700;line-height:1.3;transition:opacity .15s,transform .15s;position:absolute;bottom:calc(100% + 7px);right:0;transform:translateY(4px)}.portal-action:first-child:after{left:0;right:auto}@media (hover:hover) and (pointer:fine){.portal-action:hover:after{opacity:1;visibility:visible;transform:translateY(0)}}.portal-action:focus-visible:after{opacity:1;visibility:visible;transform:translateY(0)}.portal-actions-hint{color:var(--mf-color-ink-muted);margin:9px 0 0;font-size:.75rem;line-height:1.6;display:none}.portal-actions-hint span{align-items:center;gap:3px;margin-left:9px;display:inline-flex}.portal-actions-hint svg{flex:none}@media (hover:none){.portal-actions-hint{flex-wrap:wrap;align-items:center;gap:4px;display:flex}}.portal-upload-error{color:#8a311a;background:#fff1ec;border-top:1px solid #f0baa8;margin:0;padding:10px 25px;font-size:.82rem;line-height:1.5}.portal-upload-error[hidden]{display:none}.portal-activity{border-top:1px solid #e0eaf2;margin-top:23px;padding-top:19px}.portal-activity ol{color:#5b798f;gap:9px;margin:12px 0 0;padding-left:20px;font-size:.83rem;line-height:1.5;display:grid}.portal-activity li::marker{color:#087dbb}.portal-foot{color:#638297;background:#f8fbfe;border-top:1px solid #e1edf4;margin:0;padding:13px 25px;font-size:.75rem;line-height:1.6}.portal-visually-hidden{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.portal-dialog{color:#244964;background:#fff;border:1px solid #bdd8e9;border-radius:15px;width:min(92vw,550px);max-height:80vh;padding:24px;box-shadow:0 20px 75px #142d4855}.portal-dialog::backdrop{background:#0a243e9c}.portal-dialog__head{z-index:5;background:#fff;justify-content:space-between;align-items:start;gap:14px;display:flex;position:sticky;top:0}.portal-dialog__head>div{flex:1;min-width:0}.portal-dialog__head h3{letter-spacing:-.035em;margin:7px 0;font-size:1.6rem}.portal-dialog__head button{color:#2e5a76;cursor:pointer;background:#f0f8fd;border:1px solid #c8dfed;border-radius:8px;flex:0 0 42px;place-items:center;width:42px;height:42px;min-height:42px;padding:0;line-height:1;display:grid}.portal-dialog__head button svg{display:block}.portal-dialog__kind{color:#6e8799;margin:14px 0;font-size:.82rem;font-weight:750}.portal-dialog__text{white-space:pre-line;background:#f8fbfe;border:1px solid #e2edf4;border-radius:9px;padding:19px;line-height:1.65}.portal-dialog__content{overflow-wrap:anywhere;min-height:60px}.portal-dialog__image{object-fit:contain;background:#f8fbfe;border-radius:9px;width:100%;max-height:54vh;display:block}.portal-dialog__preview-text{white-space:pre-wrap;overflow-wrap:anywhere;background:#f8fbfe;border:1px solid #e2edf4;border-radius:9px;max-height:46vh;padding:17px;font-size:.84rem;line-height:1.6;overflow:auto}.portal-dialog__actions{flex-wrap:wrap;align-items:center;gap:10px;margin-top:15px;display:flex}.portal-dialog__actions[hidden],.portal-dialog__actions a[hidden]{display:none}.portal-dialog__actions a,.portal-dialog__actions button{border-radius:8px;justify-content:center;align-items:center;min-height:42px;padding:10px 13px;font-size:.82rem;font-weight:750;text-decoration:none;display:inline-flex}.portal-dialog__actions a{color:#fff;background:#087dbb}.portal-dialog__actions button{color:#995038;background:#fff;border:1px solid #e1bdb0}.portal-dialog__foot{color:#698397;font-size:.76rem;line-height:1.5}.portal-dialog__mode-actions{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}.portal-dialog [hidden]{display:none!important}@media (width<=960px){.portal-document{flex-direction:column;align-items:start}.portal-actions{justify-content:flex-start}}@media (width<=720px){.portal-header{flex-direction:column;align-items:start;padding:19px}.portal-layout{grid-template-columns:1fr}.portal-aside{border-right:0;border-bottom:1px solid var(--mf-color-border);padding:20px}.portal-aside .mf-data-view-items[data-view=list]{scroll-snap-type:x proximity;grid-template-columns:repeat(3,minmax(205px,1fr));padding:4px 2px 10px;overflow-x:auto}.portal-case{scroll-snap-align:start}.portal-detail{padding:22px}}@media (width<=460px){.portal-symbol{display:none}.portal-actions{justify-content:flex-end;gap:8px;width:100%;display:flex}.portal-progress__labels{flex-direction:column;gap:4px}}@media (prefers-reduced-motion:reduce){.portal-case,.portal-progress__track span,.portal-action,.portal-action:after{transition:none}}.portal-header-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.portal-create,.portal-secondary-action{cursor:pointer;border-radius:9px;justify-content:center;align-items:center;gap:7px;min-height:42px;padding:9px 12px;font-size:.82rem;font-weight:760;display:inline-flex}.portal-create{background:var(--mf-color-brand);border:1px solid var(--mf-color-brand);color:#fff}.portal-create:hover{background:var(--mf-color-brand-hover)}.portal-secondary-action{border:1px solid var(--mf-color-border-strong);color:var(--mf-color-info);background:#fff}.portal-secondary-action:hover{background:var(--mf-color-brand-soft)}.portal-template-caption{color:var(--mf-color-ink-muted);margin:-12px 0 12px;font-size:.78rem}.portal-context{background:var(--mf-color-surface-subtle);border:1px solid var(--mf-color-border);border-radius:10px;gap:4px;margin:0 0 17px;padding:12px 14px;display:grid}.portal-context strong{color:var(--mf-color-ink);overflow-wrap:anywhere;font-size:.88rem}.portal-related{border-bottom:1px solid var(--mf-color-border);margin:-11px 0 23px;padding:0 0 18px}.portal-related[hidden]{display:none}.portal-related h4{color:var(--mf-color-ink-muted);margin:0 0 9px;font-size:.82rem;font-weight:800}.portal-related__items{flex-wrap:wrap;gap:8px;display:flex}.portal-related-card{text-align:left;border:1px solid var(--mf-color-border-strong);min-height:46px;color:var(--mf-color-info);font:inherit;background:#fff;border-radius:9px;gap:3px;padding:9px 11px;display:grid}.portal-related-card:hover{background:var(--mf-color-brand-soft);border-color:var(--mf-color-brand)}.portal-related-card strong{font-size:.78rem}.portal-related-card small{color:var(--mf-color-ink-muted);font-size:.71rem}.portal-related-card:focus-visible{outline:3px solid var(--mf-color-brand);outline-offset:2px}.portal-section-heading--actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.portal-file-collection{border-top:1px solid var(--mf-color-border);gap:8px;margin:14px 0;padding-top:12px;display:grid}.portal-file-collection[hidden],.portal-file-rename[hidden]{display:none}.portal-file-entry{border:1px solid var(--mf-color-border);border-radius:9px;flex-wrap:wrap;align-items:center;gap:7px;padding:9px;display:flex}.portal-file-entry strong{overflow-wrap:anywhere;flex:1;min-width:120px;font-size:.8rem}.portal-file-entry button{border:1px solid var(--mf-color-border-strong);color:var(--mf-color-info);background:#fff;border-radius:8px;min-height:38px;padding:7px 10px;font-size:.78rem}.portal-file-entry button[aria-pressed=true]{background:var(--mf-color-brand-soft);border-color:var(--mf-color-brand)}.portal-edit-inline{flex-wrap:wrap;align-items:end;gap:8px;margin-top:15px;display:flex}.portal-edit-inline label{color:var(--mf-color-ink-muted);flex:210px;gap:5px;font-size:.8rem;font-weight:750;display:grid}.portal-edit-inline input{border:1px solid var(--mf-color-border-strong);min-height:42px;font:inherit;color:var(--mf-color-ink);border-radius:8px;width:100%;padding:9px}.portal-edit-inline button{border:1px solid var(--mf-color-border-strong);background:var(--mf-color-surface-subtle);min-height:42px;color:var(--mf-color-info);border-radius:8px;padding:9px;font-weight:700}.portal-inline-error{color:var(--mf-color-danger);background:var(--mf-color-danger-bg);border-radius:8px;padding:10px;font-size:.83rem}.portal-inline-error[hidden]{display:none}.portal-editor{overscroll-behavior:contain;width:min(92vw,620px);max-height:min(90vh,850px);overflow:auto}.portal-editor--wide{width:min(94vw,790px)}.portal-editor form{gap:15px;margin-top:15px;display:grid}.portal-editor form label{color:var(--mf-color-ink);gap:6px;font-size:.82rem;font-weight:700;display:grid}.portal-context-choice{border:0;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0;padding:0;display:flex}.portal-context-choice legend{color:var(--mf-color-ink);margin-bottom:8px;padding:0;font-size:.82rem;font-weight:750}.portal-editor .portal-choice-radio{color:var(--mf-color-ink-muted);cursor:pointer;align-items:center;gap:7px;font-size:.83rem;font-weight:700;display:inline-flex}.portal-editor form .portal-context-choice input[type=radio]{width:18px;height:18px;min-height:18px;accent-color:var(--mf-color-brand);padding:0}.portal-editor form input:not([type=checkbox]),.portal-editor form textarea,.portal-editor form select{border:1px solid var(--mf-color-border-strong);color:var(--mf-color-ink);font:inherit;background:#fff;border-radius:9px;width:100%;min-width:0;min-height:42px;padding:10px 12px}.portal-editor form input[type=file]{font-size:.79rem}.portal-editor form .mf-select{margin-top:0}.portal-editor-intro{color:var(--mf-color-ink-muted);margin:10px 0;font-size:.86rem;line-height:1.6}.portal-editor-note{color:var(--mf-color-ink-muted);background:var(--mf-color-surface-subtle);border-radius:9px;margin:0;padding:11px;font-size:.79rem;line-height:1.6}.portal-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.portal-editor-footer{border-top:1px solid var(--mf-color-border);flex-wrap:wrap;justify-content:flex-end;gap:9px;padding-top:16px;display:flex}.portal-template-list-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:16px 0 12px;display:flex}.portal-template-list-header h4,.portal-template-editor-titlebar h4{color:var(--mf-color-ink);margin:0;font-size:1rem}.portal-template-list{gap:10px;display:grid}.portal-template-list-item{border:1px solid var(--mf-color-border);background:#fff;border-radius:12px;justify-content:space-between;align-items:center;gap:15px;padding:15px;display:flex}.portal-template-list-item__info{flex:1;gap:5px;min-width:0;display:grid}.portal-template-list-item__info strong{color:var(--mf-color-ink);overflow-wrap:anywhere;font-size:.89rem}.portal-template-list-item__info small{color:var(--mf-color-ink-muted);font-size:.77rem;line-height:1.5}.portal-template-list-item button{flex:none}.portal-template-feedback{color:var(--mf-color-success);background:var(--mf-color-success-bg);border-radius:9px;margin:12px 0 0;padding:10px 12px;font-size:.82rem;font-weight:650}.portal-template-back{min-height:42px;color:var(--mf-color-info);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;margin:7px 0 12px;padding:5px 2px;font-size:.84rem;font-weight:740;display:inline-flex}.portal-template-back:hover{text-decoration:underline}.portal-template-editor-titlebar{justify-content:space-between;align-items:center;gap:12px;margin:2px 0 14px;display:flex}.portal-template-editor-titlebar h4{overflow-wrap:anywhere}.portal-template-list-item button:focus-visible,.portal-template-back:focus-visible{outline:3px solid var(--mf-color-brand);outline-offset:2px}.portal-editor [hidden]{display:none!important}.portal-template-requirements-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.portal-template-requirements-head h4{color:var(--mf-color-ink);margin:0}.portal-template-requirements{gap:10px;display:grid}.portal-template-row{border:1px solid var(--mf-color-border);border-radius:12px;grid-template-columns:minmax(0,1.45fr) minmax(0,.55fr);align-items:end;gap:12px;padding:14px;display:grid}.portal-template-row__head{flex-wrap:wrap;grid-column:1/-1;justify-content:space-between;align-items:center;gap:8px;margin-bottom:2px;display:flex}.portal-template-row__head strong{color:var(--mf-color-ink-muted);font-size:.8rem}.portal-template-row__actions{align-items:center;gap:12px;display:flex}.portal-template-row .portal-check{align-items:center;gap:6px;display:flex}.portal-template-row .portal-check input{width:auto}.portal-template-row .portal-req-delete,.portal-danger-icon{border:1px solid var(--mf-color-danger-line);width:42px;height:42px;min-height:42px;color:var(--mf-color-danger);cursor:pointer;background:#fff;border-radius:9px;flex:none;place-items:center;padding:0;display:inline-grid}.portal-template-row .portal-req-delete:hover,.portal-danger-icon:hover{background:var(--mf-color-danger-bg)}.portal-req-delete:disabled,.portal-danger-icon:disabled{opacity:.4;cursor:not-allowed}.portal-check{align-self:center;align-items:center;gap:7px!important;display:flex!important}.portal-check input{accent-color:var(--mf-color-brand);width:18px;height:18px}.portal-template-row .portal-req-type{grid-column:1/-1}.portal-danger-action{border:1px solid var(--mf-color-danger-line);color:var(--mf-color-danger);background:var(--mf-color-danger-bg);min-height:42px;font:inherit;border-radius:9px;padding:10px 12px;font-size:.82rem;font-weight:700}.portal-danger-action[hidden]{display:none!important}.portal-file__kind{line-height:1.4}.portal-document--extra{border-style:dashed}.portal-file__limit{color:var(--mf-color-ink-muted);margin-top:3px;font-size:.7rem}.portal-app .portal-create:focus-visible,.portal-app .portal-secondary-action:focus-visible,.portal-dialog input:focus-visible,.portal-dialog button:focus-visible,.portal-dialog select:focus-visible,.portal-dialog textarea:focus-visible{outline:3px solid var(--mf-color-brand);outline-offset:2px}@media (width<=760px){.portal-header-actions{justify-content:flex-start}.portal-editor-grid{grid-template-columns:1fr}.portal-template-row{grid-template-columns:minmax(0,1fr) minmax(110px,.55fr)}.portal-template-row .portal-req-type{grid-column:1/-1}}@media (width<=480px){.portal-header-actions{grid-template-columns:1fr 1fr;width:100%;display:grid}.portal-header-actions .portal-reset:last-child{grid-column:1/-1}.portal-section-heading--actions{align-items:flex-start}.portal-editor{width:94vw;padding:17px}.portal-editor-footer>*{flex:1}.portal-template-list-header{align-items:stretch}.portal-template-list-header .portal-create{width:100%}.portal-template-list-item{flex-direction:column;align-items:stretch}.portal-template-list-item button{align-self:flex-start}.portal-template-row{grid-template-columns:1fr}.portal-template-row>label{grid-column:1/-1}.portal-template-row__head{align-items:start}}
