:root{--navy:#102456;--blue:#1765e8;--cyan:#22b5e7;--ink:#15223f;--muted:#657494;--line:#e4eaf4;--pale:#f5f8fd;--white:#fff;--green:#198255;--amber:#9b6200;--shadow:0 12px 28px rgba(16,36,86,.07)}*{box-sizing:border-box}body{margin:0;background:#f6f8fc;color:var(--ink);font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}.sidebar{width:252px;background:#fff;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;padding:20px 14px 14px;display:flex;flex-direction:column;z-index:4}.brand{height:120px;display:flex;align-items:center;justify-content:center;flex-direction:column;border-bottom:1px solid var(--line);margin:-20px -14px 18px}.brand strong,.brand-mark strong{font-size:19px;font-weight:800;letter-spacing:.02em;color:var(--navy)}.brand small,.brand-mark small{font-size:9px;letter-spacing:.2em;color:#465575}.wave{font-size:60px;line-height:.8;color:var(--cyan);font-weight:800;transform:scaleX(1.2);margin-bottom:10px}.global-nav{display:flex;flex-direction:column;gap:4px}.nav-caption{font-size:10px;font-weight:800;letter-spacing:.13em;color:#8b97ae;padding:12px 12px 6px}.section-caption{border-top:1px solid var(--line);margin-top:12px;padding-top:18px}.nav-link{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 12px;border-radius:10px;color:#314260;font-weight:600;font-size:14px}.nav-link:hover{background:#f4f7fc}.nav-link.active{color:#075be5;background:#eaf3ff;box-shadow:inset 3px 0 #1b66ee}.nav-ico{width:22px;display:inline-flex;justify-content:center;font-size:19px;color:#36507e}.nav-link.active .nav-ico{color:#1765e8}.nav-link.disabled{opacity:.52;cursor:default}.soon{margin-left:auto;font-size:10px;background:#eef2f8;padding:2px 6px;border-radius:7px}.sidebar-bottom{margin-top:auto}.user-chip{display:flex;align-items:center;gap:10px;padding:12px 7px 4px;border-top:1px solid var(--line);margin-top:12px}.avatar{height:34px;width:34px;border-radius:50%;display:grid;place-items:center;background:#e8f2ff;color:var(--blue);font-weight:800}.user-chip strong,.user-chip small{display:block}.user-chip strong{font-size:12px}.user-chip small{font-size:11px;color:var(--muted)}.sign-out{margin-left:auto;color:#75829d;font-size:20px}.main{margin-left:252px;padding:32px clamp(20px,4vw,58px) 18px;max-width:1600px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.topbar h1{font-size:30px;line-height:1.12;color:var(--navy);margin:3px 0 5px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.16em;color:#7685a1;margin:0}.subtitle,.muted{color:var(--muted);margin:0}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:9px;min-height:42px;padding:9px 16px;font-weight:700;cursor:pointer;white-space:nowrap}.btn.primary{color:#fff;background:linear-gradient(110deg,#1765e8,#1279f5);box-shadow:0 5px 14px rgba(23,101,232,.18)}.btn.primary:hover{filter:brightness(.96)}.btn.outline{background:#fff;border-color:#cbd7ea;color:#174077}.btn.full{width:100%}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.metric{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:20px;display:flex;align-items:center;gap:15px}.metric-icon{width:52px;height:52px;border-radius:13px;display:grid;place-items:center;font-size:25px;font-weight:800}.metric-icon.blue{color:#1765e8;background:#e8f2ff}.metric-icon.amber{color:#ae760e;background:#fff4db}.metric-icon.green{color:#188357;background:#e2f8ed}.metric small,.metric strong{display:block}.metric small{color:#425272;font-size:12px}.metric strong{font-size:29px;color:var(--navy);line-height:1.2}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;margin-bottom:18px;box-shadow:var(--shadow)}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.panel-heading h2,.panel h2{color:var(--navy);font-size:18px;margin:0 0 3px}.panel-heading p,.panel>p{color:var(--muted);font-size:13px;margin:0}.empty-state{text-align:center;padding:42px 15px}.empty-icon{height:58px;width:58px;border-radius:15px;display:grid;place-items:center;margin:0 auto 13px;color:#1765e8;background:#eaf3ff;font-size:28px}.empty-state h3{margin:0 0 4px;color:var(--navy)}.empty-state p{color:var(--muted);margin:0 0 18px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:580px}th,td{text-align:left;border-bottom:1px solid var(--line);padding:12px 13px;font-size:13px}th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#687795;background:#f5f8fc}td{color:#314260}.table-link{color:#155fd2;font-weight:700}.more{color:#155fd2;font-weight:700}.badge{display:inline-flex;border-radius:99px;padding:4px 10px;font-size:11px;font-weight:700;background:#eef2f7;color:#465675}.badge.draft{color:#47546e;background:#eef2f7}.badge.sent{color:#075dcf;background:#e5f1ff}.badge.viewed{color:#93600a;background:#fff4dc}.badge.signed,.badge.active{color:#177447;background:#e3f8ed}.badge.pending{color:#93600a;background:#fff3d8}.notice{border-radius:10px;padding:13px 16px;font-size:13px;margin:14px 0;border:1px solid transparent}.notice.info{background:#eef6ff;color:#28527f;border-color:#d7e8fc}.notice.success{background:#eaf8ef;color:#216a43;border-color:#ccebd7}.notice.error{background:#fff0ef;color:#9b302c;border-color:#f3d2d0}.page-notice{margin:0 0 16px}.form-layout{max-width:1040px}.editor-panel{margin-bottom:16px}.step-number{height:30px;width:30px;border-radius:50%;background:#eaf3ff;color:#1765e8;font-weight:800;display:grid;place-items:center}.fields{display:grid;gap:14px}.fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}.fields label,.stack-form label,.status-form label,.terms-label{display:flex;flex-direction:column;gap:6px;color:#334565;font-size:12px;font-weight:700}.fields .wide{grid-column:1/-1}input,select,textarea{width:100%;border:1px solid #d3dceb;background:#fff;color:var(--ink);border-radius:8px;padding:10px 12px;outline:none}input:focus,select:focus,textarea:focus{border-color:#5c98f3;box-shadow:0 0 0 3px #e8f1ff}textarea{resize:vertical;line-height:1.55}.hint{font-size:11px;color:#7b88a2;font-weight:500}.terms-label textarea{font-family:inherit}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin:18px 0 28px}.preview-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-bottom:14px}.agreement-paper{max-width:960px;margin:0 auto 20px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);padding:50px clamp(22px,6vw,76px);color:#171d2a}.paper-brand{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:16px;color:#0d347a}.paper-brand .wave{font-size:52px;margin:0}.paper-brand strong,.paper-brand small{display:block}.paper-brand strong{font-size:22px;letter-spacing:.02em}.paper-brand small{font-size:9px;letter-spacing:.2em}.agreement-paper>h2{text-align:center;font-size:24px;margin:20px 0}.agreement-paper>p{line-height:1.65}.agreement-paper h3{font-size:14px;background:#e9f4ff;color:#123f87;padding:8px 10px;margin:22px 0 8px}.agreement-grid{display:grid;grid-template-columns:190px 1fr;border:1px solid #d8dfeb}.agreement-grid>*{padding:8px 10px;border-bottom:1px solid #e1e6ef;font-size:13px}.agreement-grid b{background:#fafcff}.terms-output{white-space:normal;line-height:1.7;padding:10px 6px}.signature-grid{display:grid;grid-template-columns:1fr 1fr;gap:45px;margin-top:48px}.signature-grid span,.signature-grid small{display:block;font-size:12px}.signature-grid i{display:block;border-bottom:1px solid #8b94a5;height:42px}.signature-grid small{color:#687795}.status-form{display:flex;justify-content:flex-end;align-items:end;gap:10px;margin:14px auto;max-width:960px}.status-form label{width:190px}.version-list{display:grid}.version-row{display:flex;align-items:flex-start;gap:14px;padding:15px 0;border-top:1px solid var(--line)}.version-pill{border-radius:99px;background:#eef3f9;color:#30456b;font-weight:800;padding:5px 9px;font-size:11px}.version-row strong,.version-row small{display:block}.version-row strong{color:var(--navy)}.version-row small{color:var(--muted);font-size:11px;margin:3px 0}.version-row p{font-size:12px;color:#52617d;margin:0}.version-row .badge{margin-left:auto}.people-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.85fr);gap:17px}.invite-panel{align-self:start}.invite-panel h2{margin-bottom:5px}.invite-panel>p{margin-bottom:18px}.stack-form{display:flex;flex-direction:column;gap:14px;margin-top:18px}.invite-panel .stack-form{margin-top:18px}.invite-result{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.invite-result h2,.invite-result p{grid-column:1/-1}.invite-result input{font-size:12px}.footer{display:flex;justify-content:space-between;color:#8692a8;font-size:11px;padding:20px 4px 8px}.auth-body{background:radial-gradient(ellipse at 15% 0%,#e4f2ff,transparent 40%),#f4f7fc;min-height:100vh}.auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:25px}.brand-mark{text-align:center;margin-bottom:22px}.brand-mark .wave{display:block;font-size:70px}.auth-card{width:min(100%,440px);background:#fff;border:1px solid var(--line);border-radius:18px;padding:34px;box-shadow:0 20px 54px rgba(16,36,86,.12)}.auth-card h1{font-size:26px;color:var(--navy);margin:5px 0 6px}.auth-card .stack-form{margin-top:24px}.auth-foot{color:#8190a9;font-size:12px;margin:18px 0}.print-only{display:none}@media(max-width:900px){.sidebar{width:212px}.main{margin-left:212px;padding:24px 20px}.people-grid{grid-template-columns:1fr}.topbar h1{font-size:26px}}@media(max-width:680px){.sidebar{position:static;width:auto;min-height:auto;padding:10px}.brand{height:auto;flex-direction:row;gap:9px;justify-content:flex-start;padding:8px;margin:0 0 8px;border:0}.brand .wave{font-size:38px;margin:0}.brand strong{font-size:14px}.brand small{display:none}.global-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.nav-caption{grid-column:1/-1;padding:8px}.nav-link{min-height:40px;padding:8px;font-size:12px;gap:7px}.soon{display:none}.sidebar-bottom{display:flex;align-items:center;gap:6px;margin-top:8px}.sidebar-bottom>.nav-link{flex:1}.user-chip{flex:1;padding:6px;border:0;margin:0}.main{margin:0;padding:20px 13px}.topbar{align-items:flex-start;flex-direction:column}.topbar h1{font-size:24px}.metrics{grid-template-columns:1fr}.metric{padding:14px}.panel{padding:16px}.fields.two{grid-template-columns:1fr}.fields .wide{grid-column:auto}.agreement-paper{padding:26px 17px}.agreement-grid{grid-template-columns:120px 1fr}.signature-grid{gap:20px}.preview-tools{justify-content:flex-start;flex-wrap:wrap}.invite-result{grid-template-columns:1fr}.invite-result h2,.invite-result p{grid-column:auto}}@media print{body{background:#fff}.sidebar,.topbar,.preview-tools,.status-form,.footer,.notice{display:none!important}.main{margin:0;padding:0;max-width:none}.agreement-paper{max-width:none;margin:0;border:0;box-shadow:none;padding:0}.agreement-paper h3{break-after:avoid}.agreement-grid,.agreement-paper table{break-inside:avoid}.signature-grid{break-inside:avoid}}
.logout-form{margin-left:auto}.sign-out{border:0;background:transparent;padding:0;cursor:pointer}
.brand{height:145px}.logo-image{display:block;width:min(176px,100%);height:auto;object-fit:contain}.brand-mark{margin-bottom:14px}.brand-mark .logo-image{width:min(220px,72vw)}.paper-brand{margin:0 auto 10px}.paper-brand .logo-image{width:205px;max-height:145px;object-fit:contain}
@media(max-width:680px){.brand{height:auto}.brand .logo-image{width:110px}.brand-mark .logo-image{width:min(220px,70vw)}}
.global-nav{gap:2px}.global-nav .nav-link{min-height:46px}.header-title{display:flex;align-items:center;gap:18px;min-width:0}.header-title>div{min-width:0}.header-mark{width:56px;height:64px;flex:none;display:grid;place-items:center;border:3px solid #324a7b;border-radius:8px;color:#324a7b;font-size:34px;line-height:1}.topbar h1{margin:0 0 4px}.template-topbar{align-items:center;min-height:92px;margin-bottom:12px}.template-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.saved-status{display:inline-flex;align-items:center;gap:8px;color:#425272;font-size:12px;white-space:nowrap}.saved-status b{display:grid;place-items:center;width:20px;height:20px;border:2px solid #25b875;border-radius:50%;color:#1d9c64;font-size:13px}.save-top{color:#075be5!important;border-color:#1765e8!important}.app-tabs{display:flex;align-items:center;gap:0;border-bottom:1px solid var(--line);margin:0 0 20px;padding:0 0 0 2px}.app-tabs a{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;color:#344362;font-weight:700;border-bottom:3px solid transparent}.app-tabs a.selected{color:#075be5;border-bottom-color:#1765e8}.template-preview{width:min(760px,calc(100% - 32px));max-height:82vh;overflow:auto;border:1px solid var(--line);border-radius:14px;padding:24px;background:#fff;color:var(--ink);box-shadow:0 24px 80px rgba(16,36,86,.24)}.template-preview::backdrop{background:rgba(12,27,57,.5)}.template-preview .panel-heading{border-bottom:1px solid var(--line);padding-bottom:14px}.preview-copy{white-space:normal;line-height:1.75;color:#2b3852}.help-panel{max-width:800px}.help-panel>p{color:var(--muted)}.help-links{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.help-panel .hint{margin-top:20px}
@media(max-width:1080px){.template-topbar{align-items:flex-start;flex-direction:column}.template-actions{justify-content:flex-start;padding-left:74px}.saved-status{margin-right:4px}}
@media(max-width:680px){.header-title{align-items:flex-start;gap:12px}.header-mark{width:42px;height:50px;font-size:27px;border-width:2px}.template-actions{padding-left:0;gap:8px}.saved-status{width:100%;margin-bottom:2px}.template-actions .btn{min-height:38px;padding:8px 10px;font-size:12px}.app-tabs a{padding:0 14px}.template-preview{padding:16px}}
.template-preview .preview-copy{white-space:pre-wrap}
.ui-icon{width:20px;height:20px;display:block;flex:none}.nav-ico{width:24px;height:24px;align-items:center;color:#7183a4}.nav-link.active .nav-ico{color:#1765e8}.header-mark .ui-icon{width:38px;height:38px}.user-chip{gap:8px}.profile-link{display:flex;align-items:center;gap:10px;min-width:0;flex:1;border-radius:10px;color:inherit;padding:3px 2px}.profile-link:hover .profile-name strong{color:var(--blue)}.profile-link:focus-visible{outline:3px solid #cfe2ff;outline-offset:2px}.profile-name{min-width:0}.profile-name strong,.profile-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar-photo,.profile-large-photo{display:block;object-fit:cover;border-radius:50%;background:#e8f2ff}.avatar-photo{width:36px;height:36px;flex:none}.sign-out{display:grid;place-items:center;width:34px;height:34px;border-radius:8px}.sign-out:hover{background:#f1f5fb;color:#1765e8}.sign-out .ui-icon{width:19px;height:19px}.profile-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.85fr);gap:17px;align-items:start}.profile-panel{grid-row:span 2}.profile-picture-row{display:flex;align-items:center;gap:16px;padding-bottom:10px}.profile-picture-preview{width:76px;height:76px;flex:none}.profile-large-photo,.profile-large-avatar{width:76px;height:76px}.profile-large-avatar{display:grid;place-items:center;border-radius:50%;background:#e8f2ff;color:var(--blue);font-size:28px;font-weight:800}.photo-field input[type=file]{font-size:12px;padding:9px}.account-role{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f9fbff}.role-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;color:var(--blue);background:#eaf3ff}.account-role strong,.account-role small{display:block}.account-role strong{color:var(--navy)}.account-role small{font-size:11px;color:var(--muted)}.account-role .badge{margin-left:auto}.security-note{margin-top:17px;padding:14px;border-radius:11px;background:#eef6ff;color:#31567f}.security-note p{font-size:13px;margin:5px 0 0}.password-panel .stack-form{margin-top:0}.password-panel .btn{align-self:flex-start}.profile-actions{margin:0;padding-top:2px}
@media(max-width:900px){.profile-grid{grid-template-columns:1fr}.profile-panel{grid-row:auto}}
@media(max-width:680px){.user-chip{min-width:0}.profile-link{gap:7px}.avatar-photo{width:34px;height:34px}.profile-name strong{max-width:140px}.profile-picture-row{align-items:flex-start;flex-direction:column}.account-role{gap:9px}.account-role .badge{padding:3px 7px}}
.photo-actions{display:flex;align-items:center;gap:12px;margin-top:7px}.photo-button{min-height:36px;padding:7px 12px;font-size:12px;cursor:pointer}.photo-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%);border:0}.photo-input:focus-visible+.hint{outline:2px solid #5c98f3;outline-offset:3px}.text-button{border:0;background:none;color:#a53e47;font-weight:700;font-size:12px;cursor:pointer;padding:8px}.text-button:hover{text-decoration:underline}.email-confirm{border:1px solid var(--line);border-radius:10px;padding:11px 13px;background:#fbfcff}.email-confirm summary{color:#24416c;font-size:13px;font-weight:700;cursor:pointer}.email-confirm p{margin:8px 0;color:var(--muted);font-size:12px}.email-confirm label{margin-top:10px}.profile-actions{justify-content:flex-end;gap:10px}.account-details{margin:14px 0 0;padding:0}.account-details>div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--line)}.account-details dt{color:var(--muted);font-size:12px}.account-details dd{margin:0;text-align:right;color:var(--ink);font-size:12px;font-weight:700;overflow-wrap:anywhere}.password-input{position:relative;display:block;width:100%}.password-input input{padding-right:65px}.toggle-password{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#155fd2;font-size:12px;font-weight:700;padding:5px;cursor:pointer}.toggle-password:focus-visible{outline:2px solid #5c98f3;border-radius:4px}
@media(max-width:680px){.profile-actions{justify-content:stretch}.profile-actions .btn{flex:1}.photo-actions{flex-wrap:wrap}.account-details>div{align-items:flex-start}}
.brand .logo-image{width:min(105px,100%)}.brand-mark .logo-image{width:min(150px,72vw)}@media(max-width:680px){.brand .logo-image{width:75px}.brand-mark .logo-image{width:min(150px,70vw)}}
