:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#152b43;background:#f5f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;padding-bottom:108px}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:#eaf0f7;color:#243c58;font-weight:650;border-radius:12px;padding:12px 16px;min-height:44px}button:hover{background:#dce6f4}button:disabled{opacity:.5;cursor:wait}.primary{background:#2563eb;color:white;box-shadow:0 5px 15px #2563eb24}.primary:hover{background:#1d4ed8}a{color:#2563eb;text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:3px solid #5392ff;outline-offset:3px}[hidden]{display:none!important}.site-head{display:flex;align-items:center;justify-content:space-between;padding:20px max(24px,calc((100vw - 1400px)/2));background:#ffffffc9;border-bottom:1px solid #e6ebf4;gap:16px}.site-head>a{font-weight:800;color:#142e4c;letter-spacing:-.4px}.site-head nav{display:flex;align-items:center;gap:18px}.site-head button{font-size:13px;padding:8px 12px}main{max-width:1400px;margin:auto;padding:38px 28px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:750;color:#617b9e}h1{font-size:clamp(29px,3.4vw,46px);letter-spacing:-1.7px;margin:10px 0 12px;line-height:1.14}.intro p{color:#667b93;line-height:1.6;margin:0;max-width:670px}.intro{margin-bottom:28px}.document-toolbar,.toolbar-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.document-toolbar{justify-content:space-between;margin-bottom:5px}.document-toolbar button{font-size:13px}.segmented{display:flex;background:#e9eef6;padding:4px;border-radius:13px}.segmented button{padding:8px 20px;background:transparent}.segmented button[aria-pressed=true]{background:white;box-shadow:0 2px 10px #16304a10;color:#2563eb}.status{min-height:23px;font-size:14px;line-height:1.5;margin:12px 0}.status.error{color:#a82e3e}.workspace{display:grid;grid-template-columns:minmax(370px,.87fr) minmax(460px,1.13fr);gap:30px;align-items:start}.card,.library{background:white;border:1px solid #e2e8f1;border-radius:20px;padding:23px;margin-bottom:16px;box-shadow:0 3px 16px #19345c03}h2{font-size:17px;letter-spacing:-.35px;margin:0 0 18px}.section-title{display:flex;align-items:center;gap:11px;margin-bottom:20px}.section-title h2{margin:0}.step{display:inline-flex;align-items:center;justify-content:center;background:#eff4ff;color:#4776c3;font-size:11px;font-weight:750;width:28px;height:28px;border-radius:9px;flex-shrink:0}.card summary{font-size:17px;font-weight:700;display:flex;gap:11px;align-items:center;cursor:pointer;list-style:none}.card summary::after{content:'+';margin-left:auto;color:#778ca5;font-size:22px}.card[open] summary{margin-bottom:21px}.card[open] summary::after{content:'−'}.fields{display:grid;grid-template-columns:1fr 1fr;gap:17px 14px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:650;color:#456079;min-width:0}.wide{grid-column:1/-1}input,select,textarea{width:100%;border:1px solid #d9e2ed;border-radius:10px;padding:11px 12px;background:#fcfdff;color:#142c47;min-height:44px;font-size:14px;max-width:100%}textarea{resize:vertical;line-height:1.5}input[type=color]{height:44px;padding:5px 8px}input[type=file]{font-size:12px}small,.hint{font-size:11px;color:#75869c;font-weight:400;line-height:1.65}.hint{font-size:12px;margin:10px 0 18px}.check{flex-direction:row;align-items:center;font-size:14px;gap:9px}.check input{width:18px;min-height:18px;height:18px;accent-color:#2563eb}.item{padding:16px;background:#f6f8fc;border:1px solid #e7edf5;border-radius:13px;margin-bottom:12px}.item-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#8090a5;margin-bottom:10px}.item-head button{padding:4px 9px;min-height:32px;font-size:11px;background:white;color:#92546a}.item-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:13px}.add{width:100%;border:1px dashed #c2d2ec;background:#f8faff;color:#2563eb}.discount{margin-top:22px}.discount>label{flex-direction:row;justify-content:space-between}.range-pair{display:grid;grid-template-columns:1fr 82px;gap:12px;align-items:center;margin-top:9px}input[type=range]{padding:0;accent-color:#2563eb;border:0;background:transparent}.editor-total{display:flex;justify-content:space-between;margin-top:22px;border-top:1px solid #e2e9f2;padding-top:18px;font-size:20px;font-weight:750}.save-card .toolbar-actions button{font-size:12px;flex:1}.preview-panel{position:sticky;top:22px;min-width:0}.preview-heading{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.3px;color:#8b9bb0;padding:0 8px 13px}.preview-heading span+span{letter-spacing:0}.paper{--accent:#2563eb;background:white;min-height:790px;padding:45px 38px;box-shadow:0 15px 45px #203f6b10;border:1px solid #e6ebf2;border-radius:5px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.paper .doc-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:32px;border-left:4px solid var(--accent);padding-left:14px}.paper h2{font-size:28px;color:var(--accent);margin:0 0 5px;letter-spacing:-1px}.paper .doc-number{color:#71839a;font-size:12px}.paper img{max-width:95px;max-height:60px;object-fit:contain}.paper.classic .doc-head{border-left:0;padding-left:0}.paper.midnight .doc-head{background:#152b43;border:0;border-radius:12px;padding:20px;color:white}.paper.midnight h2{color:white}.paper.midnight .doc-number{color:#c7d4e6}.doc-parties{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-bottom:25px;white-space:pre-line}.doc-parties small{display:block;text-transform:uppercase;font-size:9px;letter-spacing:1px;margin-bottom:9px}.doc-parties strong{font-size:13px}.doc-meta{display:grid;grid-template-columns:125px 1fr;gap:7px;color:#59708c;margin-bottom:23px;font-size:11px}.doc-meta b{font-weight:600;color:#253e59}.paper table{width:100%;border-collapse:collapse;font-size:10px;table-layout:fixed}.paper th{background:#eef3fa;color:#435d79;font-size:9px;text-align:right;padding:10px 5px;font-weight:650}.paper td{text-align:right;padding:13px 5px;border-bottom:1px solid #e7edf4;vertical-align:top}.paper td:first-child,.paper th:first-child{text-align:left;width:40%;white-space:pre-line}.doc-totals{width:65%;margin:22px 0 25px auto;font-size:11px}.doc-totals>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0}.doc-totals .grand-total{margin-top:6px;background:var(--accent);border-radius:7px;color:white;font-size:16px;font-weight:700;padding:12px}.doc-section{margin-top:20px;white-space:pre-line;font-size:11px;color:#60758e}.doc-section b{display:block;color:#263f5b;margin-bottom:6px}.doc-footer{margin-top:35px;border-top:1px solid #e8edf4;padding-top:13px;text-align:center;color:#93a1b2;font-size:9px}.preview-note{text-align:center;font-size:11px;color:#8496ab;padding:4px}.help{max-width:780px;margin:45px auto 10px;color:#6e8097;font-size:14px;line-height:1.75}.help h2{color:#1f3855;font-size:22px}.help details{border-top:1px solid #dfe7f2;padding:15px 0}.help summary{cursor:pointer;font-weight:600;color:#35516f}.download-bar{position:fixed;bottom:0;left:0;right:0;display:flex;gap:12px;align-items:center;justify-content:flex-end;padding:16px max(24px,calc((100vw - 1344px)/2));padding-bottom:max(16px,env(safe-area-inset-bottom));background:#ffffffee;backdrop-filter:blur(18px);border-top:1px solid #e0e7f0;z-index:10;box-shadow:0 -8px 35px #17335405}.download-bar>div{margin-right:auto;display:flex;flex-direction:column}.download-bar small{font-size:8px;letter-spacing:1px}.download-bar strong{font-size:23px;letter-spacing:-.6px}.library h3{font-size:13px;color:#7d8da3;margin-top:25px}.library-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px 0;border-top:1px solid #e9edf4;font-size:13px}.library-row small{display:block}.library-row button{min-height:36px;padding:7px 12px;font-size:12px}.library-row .toolbar-actions{justify-content:flex-end}dialog{border:1px solid #dde6f2;border-radius:22px;padding:28px;max-width:480px;width:calc(100% - 32px);color:#1f3958;box-shadow:0 20px 100px #102b4933}dialog::backdrop{background:#0d234973;backdrop-filter:blur(5px)}dialog p{font-size:14px;line-height:1.7;overflow-wrap:anywhere}body.busy{cursor:progress}@media(min-width:981px){.segmented{display:none}}@media(max-width:980px){main{padding:26px 18px}.workspace{grid-template-columns:1fr;max-width:700px;margin:auto}.preview-panel{position:static}.preview-panel:not(.active){display:none}body.preview-mode .editor{display:none}.document-toolbar{gap:12px;align-items:flex-start}.toolbar-actions button{font-size:12px}.paper{min-height:650px}.card{padding:20px}.help{margin-top:30px}}@media(max-width:520px){.site-head{padding:16px 18px}.site-head nav{gap:12px;font-size:12px}.site-head>a{font-size:14px}.intro{margin-bottom:20px}.intro p{font-size:14px}.toolbar-actions{gap:7px}.document-toolbar>.toolbar-actions{width:100%}.document-toolbar>.toolbar-actions button{flex:1;padding:10px 8px;font-size:11px}.card{padding:18px;border-radius:17px}.fields{gap:15px 11px}.fields label{font-size:11px}input,select,textarea{font-size:16px;padding:10px}.section-title h2,.card summary{font-size:16px}.paper{padding:25px 18px;font-size:10px;min-height:610px}.paper h2{font-size:23px}.doc-parties{gap:18px}.doc-parties strong{font-size:11px}.paper table{font-size:9px}.paper th{font-size:8px;padding:8px 3px}.paper td{padding:10px 3px}.doc-meta{grid-template-columns:110px 1fr;font-size:10px}.doc-totals{width:79%}.doc-totals .grand-total{font-size:14px}.download-bar{padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom));gap:8px}.download-bar button{padding:12px;font-size:12px}.download-bar strong{font-size:20px}.download-bar small{font-size:7px}.item{padding:12px}.item-grid{gap:8px}.item-grid input{padding:9px 7px}.library-row{align-items:flex-start;flex-wrap:wrap}.save-card .toolbar-actions button{min-width:40%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.site-head .qt-share-tool{position:static!important;min-height:36px!important;width:36px!important;height:36px!important;padding:8px!important;box-shadow:none!important;border-radius:10px!important}.site-head .qt-share-tool span{display:none}.tool-feedback-button{bottom:110px}.tool-feedback-button span{display:none}.qt-share-status{bottom:110px}.site-head nav{gap:10px}
