@font-face{font-family:Noto;src:url(/fonts/NotoSans-Regular.ttf) format("truetype");font-display:swap}*{box-sizing:border-box}body{margin:0;background:#fff;color:#142b35;font-family:Noto,system-ui,sans-serif;font-size:16px;line-height:1.5}button,input,select,textarea{font:inherit}button{min-height:48px;padding:10px 19px;border:1px solid #9cafb7;border-radius:6px;background:#fff;color:#183a48;cursor:pointer;display:inline-flex;gap:10px;align-items:center;justify-content:center;transition:background .15s}button:hover:not(:disabled){background:#eff5f5}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #2cb0b2;outline-offset:3px}.primary{background:#087e82;color:#fff;border-color:#087e82}.primary:hover:not(:disabled){background:#056569}.text-button,.icon-button{border-color:transparent;background:transparent}.danger{color:#a33232;border-color:#d8adad}input,select,textarea{min-height:48px;padding:10px 12px;border:1px solid #bbc8ce;border-radius:5px;background:#fff;color:#142b35;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #138d91;outline-offset:1px}h1{font-size:clamp(28px,3vw,44px);letter-spacing:-1.3px;line-height:1.2;margin:0 0 14px;font-weight:800}h2{font-size:24px;letter-spacing:-.5px;margin:0 0 22px}h3{font-size:17px;margin:0 0 6px}p{margin:0 0 20px}.lead{font-size:21px;color:#516875;margin-bottom:40px}.quiet,small{color:#5e7380;font-size:14px}.success{color:#257855}.error{color:#a32727}.release-overlay{width:min(440px,calc(100% - 40px));padding:36px 28px;border:0;border-radius:14px;color:#142b35;text-align:center;box-shadow:0 16px 64px #142b3533}.release-overlay::backdrop{background:#142b3599}.release-overlay h2{margin-bottom:12px}.release-overlay p{margin:0;color:#516875}.release-spinner{width:48px;height:48px;margin:0 auto 24px;border:4px solid #dcebec;border-top-color:#087e82;border-radius:50%;animation:release-spin .8s linear infinite}@keyframes release-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.release-spinner{animation:none}}.notice{background:#f1f6f7;padding:16px;border-left:3px solid #789aa3;font-size:14px}.topbar{height:80px;border-bottom:1px solid #dbe4e8;display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:16px;background:#fff;position:sticky;top:0;z-index:10}.wordmark{font-size:30px;font-weight:900;letter-spacing:-1.3px;font-style:italic;color:#142b35;text-decoration:none;white-space:nowrap}.wordmark b{color:#00868b}.header-actions,.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.shell{display:flex;min-height:calc(100dvh - 80px)}aside{width:300px;flex-shrink:0;background:#f3f6f7;padding:26px 0;position:sticky;top:80px;height:calc(100dvh - 80px);overflow:auto}.nav-action{width:100%;padding:16px 28px;border:0;border-radius:0;justify-content:flex-start;background:none;gap:20px}.step{border:0;border-radius:0;background:none;display:flex;align-items:center;justify-content:flex-start;width:100%;padding:14px 24px;gap:20px;min-height:66px;text-align:left}.step span{flex-shrink:0;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e0e6e8}.step.active{background:#e4eff0;color:#007c82}.step.active span{background:#087e82;color:#fff}nav{margin-top:44px}.workspace{flex:1;min-width:0;display:flex;flex-direction:column}.content{padding:44px 52px;flex:1;min-width:0;max-width:1500px;width:100%}.capture{min-height:570px;border:2px dashed #dce7eb;background:#fbfcfd;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:40px;gap:16px;border-radius:12px}.capture>svg{margin-bottom:8px}.capture p{color:#516875;margin-bottom:16px}.capture button{width:320px;max-width:100%;min-height:54px}.save-note{margin-top:32px}.login{max-width:520px;margin:8vh auto;padding:28px}.login .wordmark{margin-bottom:48px}.login h1{font-size:36px}.login form{display:grid;gap:20px}.login label{display:grid;gap:6px}.error-banner{padding:12px 28px;background:#fff0ee;color:#8c2626;display:flex;align-items:center;gap:20px;flex-wrap:wrap}.title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.search{max-width:480px;margin-bottom:28px}.people-list{border-top:1px solid #dce5e8}.person-row{width:100%;display:flex;text-align:left;justify-content:initial;gap:18px;border:0;border-bottom:1px solid #dce5e8;border-radius:0;padding:22px 4px}.person-row>span:nth-child(2){flex:1;display:grid;gap:4px}.avatar{width:48px;height:48px;background:#e2eff0;color:#007a7d;display:grid;place-items:center;border-radius:50%}.empty{padding:60px 0}.sidebar-note{margin:50px 28px;color:#5e7380;font-size:14px}.sidebar-note hr{border:0;border-top:1px solid #d5e1e4;margin:30px 0}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.template-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.template-settings label{min-width:0}.template-versions{max-width:60%}.template-history{margin-top:12px;text-align:right}.template-history .actions{margin-top:12px}@media(max-width:800px){.template-settings{grid-template-columns:minmax(0,1fr)}}.field{display:flex;flex-direction:column;gap:7px}.field.full-width{grid-column:1 / -1}.field label{font-size:14px;color:#516875}.form-section{padding:12px 0 34px;margin-bottom:28px;border-bottom:1px solid #dce5e8}.source{font-size:12px;padding:5px 10px;min-height:30px;justify-content:flex-start;border:0;background:#f1f5f6}.source.selected{color:#087e82;background:#e6f3f1}.document-list{border-top:1px solid #dce5e8}.document-row{display:flex;justify-content:space-between;gap:20px;padding:24px 0;border-bottom:1px solid #dce5e8}.document-row .actions{justify-content:flex-end}.summary-row{border:0;border-bottom:1px solid #dce5e8;border-radius:0;width:100%;display:flex;justify-content:space-between;padding:18px 0}.summary-row strong{font-size:14px}.pdf-page{background:#e7edef;padding:20px;margin:24px 0;overflow:auto;text-align:center}.pdf-page canvas{max-width:100%;height:auto;box-shadow:0 2px 12px #18333c22}.signature{margin:28px 0}.signature canvas{display:block;width:100%;height:180px;touch-action:none;border:1px solid #9cafb7;background:#fcfdfd;margin:12px 0}.tabs{display:flex;gap:10px;margin:20px 0}.tabs .active{background:#e4eff0;border-color:#087e82;color:#087e82}.inline-field{display:flex;align-items:center;gap:20px;margin:20px 0}.inline-field select{max-width:300px}.scan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.scan-grid.single{grid-template-columns:minmax(0,1fr)}.scan-card{border:1px solid #dce7eb;border-radius:12px;padding:20px;background:#fbfcfd;min-width:0}.scan-card h2{font-size:17px;margin-bottom:16px}.scan-image{display:block;width:100%;height:260px;object-fit:contain;border-radius:6px;background:#eef3f5}.single .scan-image{height:440px;max-height:50vh}.scan-placeholder{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:#516875}.single .scan-placeholder{min-height:390px}.scan-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-top:18px}.scan-actions .quiet{border-color:transparent;background:transparent;color:#516875}.scan-notice{padding:12px 16px;background:#fff6de;border-radius:8px;line-height:1.5}@media(max-width:900px){.scan-grid{grid-template-columns:minmax(0,1fr)}}.conflict{padding:20px 0;border-bottom:1px solid #dce5e8;overflow-wrap:anywhere}.toolbar{display:flex;gap:12px;align-items:center;margin:20px 0;flex-wrap:wrap}.editor{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.inspector{padding:16px;background:#f3f6f7;display:flex;flex-direction:column;gap:12px;align-self:start}.inspector label{font-size:13px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}td,th{padding:16px 12px;border-bottom:1px solid #dce5e8}th{font-size:13px;color:#5e7380}details{margin:20px 0}summary{cursor:pointer}pre{white-space:pre-wrap;overflow-wrap:anywhere}.saved{font-size:14px;color:#257855;margin-left:12px}@media(min-width:1500px){.content{padding:48px 64px}}@media(max-width:1000px){aside{width:225px}.content{padding:32px}.step{padding:12px 16px;gap:12px;font-size:14px}.capture{min-height:400px}.header-actions .text-button{font-size:13px}.editor{grid-template-columns:1fr}.document-row{flex-direction:column}.document-row .actions{justify-content:flex-start}}@media(max-width:700px){.topbar{height:auto;min-height:72px;padding:12px 18px;flex-wrap:wrap}.wordmark{font-size:25px}.header-actions{gap:0}.shell{display:block}aside{position:static;width:100%;height:auto;padding:8px;display:flex;overflow:auto;align-items:center;gap:8px}.nav-action{width:auto;white-space:nowrap;padding:8px;font-size:13px}.nav-action svg{display:none}.sidebar-note{display:none}nav{display:flex;margin:0}.step{width:44px;min-width:44px;padding:4px;font-size:0;min-height:44px}.step span{font-size:14px;width:34px;height:34px}.content{padding:28px 20px}.lead{font-size:18px;margin-bottom:28px}.capture{min-height:360px;padding:20px}.field-grid{grid-template-columns:1fr}.title-row{flex-direction:column;margin-bottom:24px}.person-row .quiet{display:none}.login{margin-top:2vh}.document-row .actions button{font-size:13px}.error-banner{font-size:13px;padding:12px}.pdf-page{padding:8px}}.pdf-sheet{position:relative;display:inline-block;max-width:100%;line-height:0}.pdf-sheet canvas{display:block}.pdf-field{position:absolute;min-height:0;min-width:0;padding:0 3px;justify-content:flex-start;overflow:hidden;white-space:nowrap;border:1px solid #087e82;border-radius:0;background:#087e8225;color:#00575c;font-size:11px;line-height:1}.pdf-field.selected{outline:2px solid #087e82;background:#087e8240}.app-update-status{margin:0;padding:.45rem 1rem;font-size:.78rem;color:#53636c;background:#f4f7f6;text-align:center}.login .app-update-status{margin-top:1rem;border-radius:.5rem}.app-update-status button{max-width:100%;font-size:.85rem}.app-update-status button:disabled{opacity:1;color:#53636c;background:#f4f7f6;border-color:#d5dfdf}.pdf-document{display:grid;gap:14px;padding:14px;margin:24px 0;background:#e7edef}.pdf-document-page{position:relative;width:100%;background:#fff;box-shadow:0 2px 12px #18333c22}.pdf-document .pdf-page{padding:0;margin:0;overflow:visible;background:transparent}.pdf-document .pdf-sheet,.pdf-document canvas{width:100%}.pdf-document canvas{box-shadow:none}.pdf-document .pdf-page>[role=status]{position:absolute;top:0;width:100%}.pdf-placeholder{width:100%;height:100%}@media(max-width:800px){.pdf-document{padding:6px;gap:8px}}.record-status{display:inline-flex;padding:6px 10px;border-radius:6px;font-size:13px;font-weight:600;white-space:nowrap}.record-status.draft{color:#705018;background:#fff1d6}.record-status.released{color:#245586;background:#e7f1fc}.record-status.imported{color:#226243;background:#e4f3ea}@media(max-width:600px){.person-row{flex-wrap:wrap}.record-status{margin-left:58px}}.pdf-signature-field{border:2px dashed #087e82;background:#e5f5f1cc;font-size:clamp(11px,1.5vw,16px);justify-content:center;white-space:normal;line-height:1.2;touch-action:manipulation}.pdf-signature-field.signed{background:transparent;border-style:solid;justify-content:flex-end;align-items:flex-start}.signature-modal{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:0;border-radius:16px;box-shadow:0 16px 64px #142b3544;color:#142b35}.signature-modal::backdrop{background:#142b3577}.signature-modal .signature{margin:16px 0}.signature-modal .signature canvas{height:clamp(120px,25dvh,240px)}.person-entry{display:flex;align-items:center;gap:12px;border-bottom:1px solid #dce5e8}.person-entry .person-row{flex:1;min-width:0;width:auto;border-bottom:0}.delete-record{flex-shrink:0}@media(max-width:600px){.person-entry{gap:4px}.delete-record span{display:none}.person-row>span:nth-child(2){min-width:0;overflow-wrap:anywhere}.person-entry .person-row{display:grid;grid-template-columns:48px minmax(0,1fr) 20px;gap:8px 10px}.person-entry .avatar{grid-row:1 / span 2}.person-entry .record-status{grid-column:2;margin-left:0;justify-self:start;font-size:12px}.person-entry .person-row>svg{grid-column:3;grid-row:1 / span 2;align-self:center}}
