:root{color:#172b3a;font-synthesis:none;text-rendering:optimizelegibility;background:#f4f7f8;font-family:DM Sans,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:#f4f7f8;min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-decoration:none}.portal-shell{min-height:100vh}.topbar{z-index:10;background:#fff;border-bottom:1px solid #e6ecef;justify-content:space-between;align-items:center;height:72px;padding:0 34px;display:flex;position:sticky;top:0}.portal-brand{align-items:center;gap:11px;display:inline-flex}.brand-mark{color:#fff;background:linear-gradient(140deg,#0e6474,#173b52);border-radius:12px;place-items:center;width:38px;height:38px;font:800 21px Manrope,sans-serif;display:grid;box-shadow:0 4px 10px #15475b33}.portal-brand strong{letter-spacing:.06em;color:#143348;font:800 16px Manrope,sans-serif;display:block}.portal-brand span{color:#758792;margin-top:1px;font-size:11px;display:block}.topbar-right{align-items:center;gap:22px;display:flex}.tenant-chip{color:#385469;background:#f2f7f8;border:1px solid #e2ecee;border-radius:18px;align-items:center;gap:8px;padding:7px 12px;font-size:12px;font-weight:600;display:flex}.dot{background:#c27c31;border-radius:50%;width:7px;height:7px}.dot.active{background:#27816e}.account-menu{align-items:center;gap:9px;display:flex}.avatar{color:#136679;background:#e6f1f1;border-radius:50%;place-items:center;width:31px;height:31px;font-size:12px;font-weight:700;display:grid}.account-name{color:#536876;text-overflow:ellipsis;white-space:nowrap;max-width:210px;font-size:12px;overflow:hidden}.icon-button{color:#627887;background:0 0;border:0;border-radius:7px;width:32px;height:32px;font-size:18px}.icon-button:hover{background:#f0f5f6}.portal-body{grid-template-columns:246px minmax(0,1fr);min-height:calc(100vh - 72px);display:grid}.sidebar{background:#fff;border-right:1px solid #e6ecef;flex-direction:column;gap:6px;padding:28px 16px 20px;display:flex}.sidebar-caption,.tenant-switcher label{letter-spacing:.13em;color:#93a2aa;margin:2px 11px 9px;font-size:10px;font-weight:700}.nav-item{text-align:left;color:#536775;background:0 0;border:0;border-radius:9px;align-items:center;gap:12px;width:100%;min-height:43px;padding:0 12px;font-size:13px;font-weight:500;display:flex;position:relative}.nav-item:hover{color:#183c50;background:#f5f8f9}.nav-item.selected{color:#145d6b;background:#eaf3f3;font-weight:700}.nav-item.selected:before{content:"";background:#248179;border-radius:0 4px 4px 0;width:3px;height:24px;position:absolute;left:-16px}.nav-icon{text-align:center;color:#64818d;width:20px;font-size:18px}.nav-count{color:#fff;text-align:center;background:#c95e47;border-radius:10px;min-width:20px;height:20px;margin-left:auto;padding:2px 5px;font-size:10px}.tenant-switcher{border-top:1px solid #edf0f1;margin:20px 3px 0;padding:17px 7px 7px}.tenant-switcher label{margin:0 0 8px;display:block}.tenant-switcher select{color:#365163;background:#fff;border:1px solid #e0e8eb;border-radius:8px;width:100%;padding:9px 10px;font-size:12px}.sidebar-footer{border-top:1px solid #edf0f1;align-items:center;gap:10px;margin-top:auto;padding:15px 9px 2px;display:flex}.shield{color:#27816e;background:#e9f4f0;border-radius:9px;place-items:center;width:28px;height:28px;font-weight:800;display:grid}.sidebar-footer strong,.sidebar-footer small{display:block}.sidebar-footer strong{font-size:12px}.sidebar-footer small{color:#83949d;margin-top:3px;font-size:10px}.content-area{width:min(1160px,100%);margin:0 auto;padding:36px 44px 66px}.page-heading{justify-content:space-between;align-items:end;margin-bottom:25px;display:flex}.page-heading h1{letter-spacing:-.04em;color:#143348;margin:4px 0 0;font:800 28px Manrope,sans-serif}.eyebrow{letter-spacing:.15em;color:#77909b;margin:0;font-size:10px;font-weight:700}.eyebrow.light{color:#b9d6d8}.page-stack{flex-direction:column;gap:18px;display:flex}.panel{background:#fff;border:1px solid #e6ecef;border-radius:14px;padding:24px;box-shadow:0 4px 18px #15394b08}.panel-heading{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;display:flex}.panel-heading h2,.panel-heading h3,.integration-main h2{color:#18384d;margin:0;font:700 16px Manrope,sans-serif}.panel-heading p{color:#82939c;max-width:620px;margin:6px 0 0;font-size:12px;line-height:1.55}.welcome-card{color:#fff;background:linear-gradient(115deg,#12394e,#165f68 72%,#217c76);border-radius:16px;justify-content:space-between;align-items:center;min-height:187px;padding:28px 34px;display:flex;position:relative;overflow:hidden}.welcome-card h2{letter-spacing:-.03em;margin:8px 0 5px;font:800 26px Manrope,sans-serif}.welcome-card p:not(.eyebrow){color:#d5e8e7;max-width:470px;margin:0;font-size:13px;line-height:1.6}.welcome-orbit{border:1px solid #fff3;border-radius:50%;place-items:center;width:125px;height:125px;margin-right:18px;display:grid;position:relative}.welcome-orbit:before,.welcome-orbit:after{content:"";border:1px solid #ffffff38;border-radius:50%;position:absolute;inset:13px}.welcome-orbit:after{border-color:#ffffff4a;inset:29px}.welcome-orbit span{letter-spacing:.12em;z-index:1;font:700 16px Manrope,sans-serif}.welcome-orbit i,.welcome-orbit b{background:#a4ddd0;border-radius:50%;width:7px;height:7px;position:absolute;top:12px;right:25px}.welcome-orbit b{background:#e6c27a;inset:auto auto 23px 4px}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;display:grid}.metric-card{background:#fff;border:1px solid #e6ecef;border-radius:13px;min-height:126px;padding:17px 18px;box-shadow:0 3px 12px #15394b06}.metric-card.attention{background:#fffaf5;border-color:#f0dcc5}.metric-top{color:#7a8c97;justify-content:space-between;align-items:center;font-size:11px;font-weight:600;display:flex}.metric-top i{color:#7ca6a7;font-size:18px;font-style:normal}.metric-card>strong{color:#173b50;letter-spacing:-.04em;margin-top:12px;font:800 25px Manrope,sans-serif;display:block}.metric-card small{color:#9aa7ad;margin-top:3px;font-size:10px;display:block}.subtle-count{color:#7a9099;white-space:nowrap;background:#f4f7f8;border-radius:20px;padding:6px 10px;font-size:11px}.status-pill{letter-spacing:.02em;white-space:nowrap;color:#75828a;background:#eff3f4;border-radius:20px;padding:6px 10px;font-size:10px;font-weight:700}.status-pill.active{color:#27816e;background:#e9f5f0}.status-pill.disabled{color:#aa5c4c;background:#f7ece9}.tenant-list,.user-list,.audit-list,.template-list{flex-direction:column;display:flex}.tenant-row,.user-row,.audit-row,.template-row{border-top:1px solid #f0f3f4;align-items:center;gap:13px;min-height:65px;padding:10px 2px;display:flex}.tenant-row:first-child,.user-row:first-child,.audit-row:first-child,.template-row:first-child{border-top:0}.tenant-avatar,.user-avatar,.template-icon{color:#347a79;background:#edf4f3;border-radius:11px;flex:none;place-items:center;width:36px;height:36px;font-weight:700;display:grid}.user-avatar{color:#557183;background:#edf2f7;border-radius:50%}.admin-avatar{color:#6e5b93;background:#f2eef8}.system-avatar{color:#406274;background:#edf3f6}.tenant-row-main,.user-row-main,.audit-main,.template-main{flex:1;min-width:0}.tenant-row-main strong,.user-row-main strong,.audit-main strong,.template-main strong{color:#294655;font-size:12px}.tenant-row-main small,.user-row-main small,.audit-main small,.template-main small{color:#91a0a7;text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:10px;display:block;overflow:hidden}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 18px;display:grid}.field{flex-direction:column;gap:7px;min-width:0;display:flex}.field>span{color:#49616e;font-size:11px;font-weight:700}.field small{color:#8b9ba3;font-size:10px;line-height:1.45}.field input,.field select,.field textarea,.user-role select,.field-inline select{color:#263f4e;background:#fff;border:1px solid #dfe7ea;border-radius:8px;outline:none;width:100%;padding:10px 11px;font-size:12px}.field input:focus,.field select:focus,.field textarea:focus,.user-role select:focus{border-color:#368d8a;box-shadow:0 0 0 3px #3287811a}.field textarea,.pdf-review textarea,.document-card textarea{resize:vertical;min-height:100px;line-height:1.55}.field-submit{justify-content:end}.field-submit>span{display:block}.button{border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:7px;height:38px;padding:0 15px;font-size:11px;font-weight:700;transition:background .15s,border-color .15s;display:inline-flex}.button.primary{color:#fff;background:#176b70}.button.primary:hover{background:#0e5960}.button.secondary{color:#48616d;background:#f2f6f7;border-color:#e2e9eb}.button.secondary:hover{background:#eaf0f2}.button.ghost{color:#69818d;background:0 0}.button.ghost:hover{background:#eaf0f2}.button.danger-outline{color:#a55342;background:#fff;border-color:#ecd6d0}.button.danger-outline:hover{background:#fff6f3}.button.compact{height:31px;padding:0 11px;font-size:10px}.panel-actions{align-items:center;gap:10px;margin-top:20px;display:flex}.field-inline{align-items:center;gap:8px;margin-left:auto;display:flex}.field-inline span{color:#80919a;font-size:11px}.field-inline select{width:210px;padding:7px 9px}.notice{border-radius:9px;margin:0 0 16px;padding:11px 14px;font-size:12px}.notice.error{color:#a34f40;background:#fff0ed;border:1px solid #f2d3ca}.notice.success{color:#287257;background:#edf7f2;border:1px solid #cfe8db}.user-row{gap:12px}.user-role{width:220px}.user-role select{padding:7px 9px;font-size:10px}.empty-inline{color:#92a0a7;padding:16px 4px 3px;font-size:12px}.toggle-grid,.template-diff{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:17px;display:grid}.toggle-row{color:#4d6470;border:1px solid #e7ecee;border-radius:9px;justify-content:space-between;align-items:center;gap:18px;padding:13px 14px;font-size:11px;display:flex}.switch{background:#ccd5d8;border:0;border-radius:20px;flex:none;width:39px;height:22px;padding:3px;transition:background .15s}.switch span{background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .15s;display:block;box-shadow:0 1px 3px #0a26331c}.switch.on{background:#32847d}.switch.on span{transform:translate(17px)}.prompt-grid .field:first-child{grid-column:1/-1}.read-only-note,.info-callout{color:#32626a;background:#f1f8f8;border:1px solid #dcebec;border-radius:10px;align-items:flex-start;gap:12px;margin-top:17px;padding:14px 16px;display:flex}.read-only-note>span{color:#32847d;font-weight:800}.read-only-note strong,.info-callout strong{font-size:11px}.read-only-note p,.info-callout p{color:#69838b;margin:4px 0 0;font-size:11px;line-height:1.55}.sticky-actions{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:5;background:#fffe;border:1px solid #dce8e8;border-radius:12px;justify-content:space-between;align-items:center;gap:20px;padding:12px 15px;display:flex;position:sticky;bottom:16px;box-shadow:0 8px 28px #15394b14}.sticky-actions>span{color:#80919a;font-size:10px}.document-card{border:1px solid #e7ecee;border-radius:10px;margin:10px 0;padding:13px 15px}.document-title{align-items:center;gap:11px;display:flex}.file-icon{color:#bd6354;background:#fff0ee;border-radius:7px;place-items:center;width:34px;height:39px;font-size:9px;font-weight:800;display:grid}.document-title>div:nth-child(2){flex:1;min-width:0}.document-title strong,.document-title small{display:block}.document-title strong{color:#38505c;font-size:11px}.document-title small{color:#8a9aa2;margin-top:4px;font-size:10px}.document-card details{border-top:1px solid #eef1f2;margin-top:12px;padding-top:10px}.document-card summary{color:#42747b;cursor:pointer;font-size:10px;font-weight:600}.document-card textarea,.pdf-review textarea{color:#334d5a;border:1px solid #dfe7ea;border-radius:8px;width:100%;margin:11px 0;padding:10px 11px;font-size:11px;display:block}.upload-drop{color:#577580;cursor:pointer;background:#f8fbfb;border:1px dashed #adc5c7;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:145px;display:flex}.upload-drop input{display:none}.upload-icon{color:#287775;background:#e7f2f1;border-radius:50%;place-items:center;width:32px;height:32px;font-size:20px;display:grid}.upload-drop strong{font-size:12px}.upload-drop small{color:#96a6ac;font-size:10px}.pdf-review{background:#fbfdfd;border:1px solid #dfe9e9;border-radius:11px;margin-top:13px;padding:15px}.pdf-review .panel-heading{margin-bottom:5px}.integration-card{align-items:flex-start;gap:18px;display:flex}.integration-brand{color:#6951a4;background:#f0eafe;border-radius:13px;flex:none;place-items:center;width:46px;height:46px;font:800 20px Manrope,sans-serif;display:grid}.integration-main{flex:1}.integration-main .eyebrow{margin:2px 0 5px}.integration-main>p:not(.eyebrow){color:#82939c;max-width:600px;font-size:12px;line-height:1.6}.integration-main .toggle-row{max-width:550px;margin-top:19px}.integration-card+.info-callout{margin-top:0}.saving-label{color:#758c94;font-size:11px}.audit-row{gap:12px}.audit-symbol{color:#347f74;background:#edf4f2;border-radius:50%;place-items:center;width:30px;height:30px;display:grid}.audit-row time{color:#94a1a7;white-space:nowrap;font-size:10px}.template-icon{font-size:19px}.template-actions{align-items:center;gap:8px;display:flex}.version-tag{color:#678994;background:#eef4f5;border-radius:5px;padding:3px 6px;font:600 9px DM Sans}.empty-card{text-align:center;background:#fff;border:1px solid #e5ecee;border-radius:16px;max-width:480px;padding:44px;box-shadow:0 8px 34px #12384b0c}.access-wall{flex-direction:column;min-height:100vh;padding:28px 42px;display:flex}.access-wall>.empty-card{margin:auto}.empty-icon{color:#63848a;background:#f0f5f5;border-radius:15px;place-items:center;width:48px;height:48px;margin:0 auto 18px;font-size:24px;display:grid}.empty-card h1{letter-spacing:-.03em;color:#19394c;margin:9px 0;font:800 23px Manrope,sans-serif}.empty-card p:not(.eyebrow){color:#87969d;max-width:330px;margin:0 auto 22px;font-size:12px;line-height:1.6}.loading-screen,.startup-error{color:#55717d;text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:100vh;padding:28px;display:flex}.loading-screen p{font-size:12px}.spinner{border:3px solid #d9e5e6;border-top-color:#257c78;border-radius:50%;width:26px;height:26px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.startup-error .brand-mark{margin-bottom:3px}.startup-error h1{color:#17394d;margin:0;font:800 23px Manrope,sans-serif}.startup-error p{color:#788b94;max-width:450px;font-size:12px;line-height:1.6}@media (width<=1050px){.portal-body{grid-template-columns:218px minmax(0,1fr)}.content-area{padding:30px 25px 56px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.user-role{width:185px}}@media (width<=760px){.topbar{height:64px;padding:0 16px}.topbar-right{gap:9px}.tenant-chip{display:none}.account-name{max-width:115px}.portal-body{display:block}.sidebar{z-index:8;border-bottom:1px solid #e6ecef;border-right:0;flex-direction:row;gap:4px;padding:9px 12px;position:sticky;top:64px;overflow-x:auto}.sidebar-caption,.sidebar-footer,.tenant-switcher{display:none}.nav-item{gap:7px;width:auto;min-width:max-content;min-height:37px;padding:0 10px;font-size:10px}.nav-item.selected:before{border-radius:3px;width:calc(100% - 12px);height:2px;bottom:-9px;left:6px}.nav-icon{font-size:15px}.nav-count{min-width:16px;height:16px;padding:1px 4px}.content-area{padding:24px 15px 42px}.page-heading{align-items:center}.page-heading h1{font-size:23px}.page-heading .button span{display:none}.welcome-card{min-height:160px;padding:23px}.welcome-card h2{font-size:22px}.welcome-orbit{flex:none;width:84px;height:84px;margin-right:0}.welcome-orbit:before{inset:9px}.welcome-orbit:after{inset:21px}.welcome-orbit span{font-size:12px}.form-grid,.toggle-grid,.template-diff{grid-template-columns:1fr}.prompt-grid .field:first-child{grid-column:auto}.panel{padding:18px}.panel-heading{margin-bottom:16px}.panel-heading h2{font-size:14px}.user-row{flex-wrap:wrap}.user-row-main{min-width:calc(100% - 62px)}.user-role{width:calc(100% - 120px);margin-left:48px}.user-row>.button{margin-left:auto}.template-row{flex-wrap:wrap}.template-actions{justify-content:flex-end;width:100%}.sticky-actions{flex-direction:column;align-items:flex-start;bottom:8px}.sticky-actions>span{line-height:1.4}.panel-actions{flex-wrap:wrap}.field-inline{width:100%;margin-left:0}.field-inline select{flex:1}.audit-row{align-items:flex-start}.audit-row time{white-space:normal;text-align:right;max-width:80px}.access-wall{padding:21px}.empty-card{padding:30px 23px}.integration-card{gap:12px}.integration-brand{width:39px;height:39px}}.user-actions{flex-wrap:wrap;gap:8px;display:flex}
