:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#102a2b;background:#f3f1ea;font-synthesis:none;--green:#102a2b;--olive:#58740b;--yellow:#d5af36;--brown:#705541;--muted:#52615a;--border:#cbd2c8}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{touch-action:manipulation}button,label.button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}[hidden]{display:none!important}:focus-visible{outline:3px solid #58740b;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,3.5vw,3.6rem);line-height:1.13;letter-spacing:-.05em;margin-bottom:1.2rem;font-weight:680}h1 span{color:var(--olive)}h2{font-size:1.5rem;letter-spacing:-.025em;margin-bottom:.6rem}h3{font-size:1.05rem}p{line-height:1.65}button{color:inherit}.topbar{display:flex;justify-content:space-between;align-items:center;max-width:1440px;margin:auto;padding:26px 48px;border-bottom:1px solid var(--border)}.brand{display:flex;gap:.75rem;align-items:center;min-width:0;text-decoration:none;font-family:Arial,Helvetica Neue,sans-serif;font-size:1.05rem;font-weight:700;line-height:1.05}.brand-logo{display:block;width:48px;height:48px;flex:none}.brand>span{min-width:0}.brand small{display:block;font-size:.68rem;font-weight:400;letter-spacing:.05em;margin-top:.35rem;color:var(--muted);line-height:1.35}.top-meta{display:flex;align-items:center;gap:28px;font-size:.85rem}.top-meta a{text-decoration:none}.private-badge{border:1px solid var(--border);padding:8px 12px;border-radius:24px;color:var(--brown);font-size:.75rem}main{max-width:1440px;margin:auto;padding:0 48px}.intro{display:grid;grid-template-columns:1.7fr 1fr;align-items:center;gap:48px;padding:55px 0 38px}.eyebrow{font-size:.67rem;letter-spacing:.16em;font-weight:700;color:var(--brown);margin-bottom:16px}.lead{color:var(--muted);font-size:1.05rem;margin-bottom:0}.privacy-card{display:flex;gap:18px;background:#e5ecd2;border:1px solid #d1dcbd;border-radius:12px;padding:26px;align-items:flex-start}.privacy-card strong{font-size:1rem;line-height:1.5}.privacy-card p{font-size:.9rem;margin:8px 0 14px}.privacy-card span:not(.shield){font-size:.68rem;color:#3e5208}.shield{display:grid;place-items:center;flex-shrink:0;width:32px;height:38px;background:#58740b;color:#fff;border-radius:8px 8px 16px 16px;font-weight:700}.steps{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:0 0 32px}.steps a{display:flex;gap:14px;align-items:center;padding:19px 0;text-decoration:none;font-size:.85rem;color:var(--muted)}.steps b{font-size:.7rem;width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--border);border-radius:50%}.steps [aria-current]{color:var(--green);font-weight:650}.steps [aria-current] b{background:var(--green);border-color:var(--green);color:#fff}.import-panel,.bottom-panel{background:#fff;border:1px solid var(--border);border-radius:12px;padding:28px;margin-bottom:26px}.muted{color:var(--muted);font-size:.83rem}.dropzone{display:flex;align-items:center;gap:22px;border:1.5px dashed #8a9b76;border-radius:8px;background:#f7f9f3;padding:30px;margin-top:22px}.dropzone.dragging{background:#e5ecd2;border-color:#58740b}.file-symbol{display:grid;place-items:center;width:48px;height:56px;background:#fff;border:1px solid var(--border);border-radius:6px;color:var(--olive);font-size:1.9rem}.dropzone div{flex:1}.dropzone strong,.dropzone span:not(.file-symbol){display:block}.dropzone div span{font-size:.8rem;color:var(--muted);margin-top:7px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;font-size:.84rem;font-weight:600;border-radius:6px;border:1px solid var(--green);text-decoration:none;position:relative}.primary{background:var(--green);color:#fff}.primary:hover{background:#234443}.secondary{background:#fff;border-color:#819081}.secondary:hover{background:#edf1e5}.button input[type=file]{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.button:has(:focus-visible){outline:3px solid var(--olive);outline-offset:4px}.text-button{border:0;background:transparent;color:#3e5208;font-size:.8rem;min-height:40px;text-align:left;text-decoration:underline;text-underline-offset:4px}.import-bottom{display:flex;align-items:center;gap:24px;justify-content:space-between;margin:15px 0 4px}.import-bottom p{font-size:.74rem;color:var(--muted);max-width:66ch;margin:0}details{font-size:.81rem;line-height:1.65}summary{cursor:pointer;min-height:40px;padding:10px 0;font-weight:600;color:var(--brown)}details p{margin:10px 0}.status-box{display:flex;align-items:center;gap:20px;background:#e5ecd2;padding:20px;border-radius:8px;margin:20px 0}.status-box p{margin:0;flex:1;font-size:.86rem}.error-box{border:1px solid #b96a4e;background:#fff4ef;color:#7a2c15;border-radius:8px;padding:16px;font-size:.9rem}.workspace{margin-bottom:26px}.workspace-heading{display:flex;justify-content:space-between;align-items:center;margin:36px 0 20px;gap:16px}.workspace-heading h2{overflow-wrap:anywhere}.work-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);align-items:start;gap:24px}.preview-panel,.data-panel{border:1px solid var(--border);background:#fff;border-radius:10px;overflow:hidden}.preview-panel{position:sticky;top:16px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--border);padding:20px}.panel-title h3{margin:0}.badge{font-size:.64rem;padding:5px 8px;border-radius:4px;color:#46533d;background:#edf1e5}.preview-scroll{overflow:auto;background:#e5e6df;max-height:65vh;min-height:200px;padding:20px}.preview-scroll canvas,.preview-scroll img{display:block;max-width:100%;height:auto;background:#fff;box-shadow:0 2px 12px #102a2b16}.preview-scroll pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.7 ui-monospace,monospace;margin:0;background:#fff;padding:20px}.page-controls{display:flex;align-items:center;gap:14px;padding:10px 16px;font-size:.75rem}.page-controls button{background:#fff;border:1px solid var(--border);border-radius:4px;min-width:36px;min-height:36px}.page-controls label{margin-left:auto}.page-controls select{padding:5px;border:1px solid var(--border)}.evidence{padding:16px 20px;background:#faf9f5;font-size:.75rem;color:var(--muted);line-height:1.6;border-top:1px solid var(--border);overflow-wrap:anywhere}.ai-panel{padding:8px 20px 18px}.review-note{font-size:.75rem;color:var(--brown);padding:14px 20px;margin:0;background:#faf8f1}.field-section{padding:20px;border-bottom:1px solid var(--border)}.field-section h3{margin-bottom:16px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:6px;font-size:.72rem;min-width:0}.field input,.field select,.field textarea{width:100%;border:1px solid #899587;background:#fff;border-radius:5px;padding:9px 10px;min-height:40px;font-size:.83rem;color:var(--green)}.field input[data-uncertain=true]{border-left:3px solid var(--yellow);background:#fefdf6}.field textarea{resize:vertical;min-height:62px}.field input[aria-invalid=true]{border-color:#a84c2f}.field small{font-size:.62rem;color:var(--brown)}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-title h3{margin:0}.lines-section{padding:20px}.line-card{padding:16px;background:#f7f8f3;border:1px solid var(--border);border-radius:7px;margin-top:14px}.line-head{display:flex;justify-content:space-between;align-items:center;font-size:.75rem;margin-bottom:10px}.line-head button{min-height:32px;color:#84391f;border:0;background:none;font-size:.7rem}.line-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.line-grid .wide{grid-column:1/-1}.data-panel>details{padding:0 20px 16px}.adjustment{padding:12px;border:1px solid var(--border);margin:8px 0;border-radius:5px}.totals{background:#102a2b;color:#fff;padding:22px}.total-row{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:.83rem;font-variant-numeric:tabular-nums}.total-row.final{border-top:1px solid #647b72;padding-top:16px;margin-top:15px;font-size:1.25rem;font-weight:600}.totals small{font-size:.7rem;color:#d0dbca}.validation-summary{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.validation-summary span{font-size:.75rem;border:1px solid var(--border);padding:10px 14px;border-radius:6px}.issues{list-style:none;margin:20px 0 0;padding:0;max-height:360px;overflow:auto}.issues li{padding:10px 0;border-bottom:1px solid #e7e9e3;display:flex;gap:14px;align-items:flex-start;font-size:.77rem;line-height:1.6}.issues strong{color:#883d22;white-space:nowrap;font-size:.68rem;margin-top:2px}.issues .warning strong{color:var(--brown)}.issues button{text-align:left;background:none;border:0;color:var(--green);padding:0;text-decoration:underline;text-underline-offset:3px;font:inherit}.formal{display:flex;gap:20px;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding-top:20px;margin-top:20px;font-size:.84rem}.formal p{font-size:.75rem;margin:8px 0 0}.export-options{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:24px 0}.export-card{display:flex;flex-direction:column;gap:12px;text-align:left;background:#f8f9f4;border:1px solid var(--border);border-radius:8px;padding:22px}.export-card:hover{background:#e5ecd2;border-color:var(--olive)}.export-card strong{font-size:.94rem}.export-card>span:last-child{font-size:.75rem;line-height:1.6;color:var(--muted)}.export-icon{font-size:.66rem;letter-spacing:.1em;color:var(--olive);border:1px solid #b6c4a1;padding:7px;align-self:flex-start;border-radius:4px}.notes{display:grid;grid-template-columns:repeat(3,1fr);gap:34px;padding:28px 0 40px}.notes h3{font-size:.88rem;margin-bottom:10px}.notes p{font-size:.76rem;color:var(--muted);margin:0}footer{max-width:1440px;margin:auto;padding:25px 48px;border-top:1px solid var(--border);font-size:.7rem;color:var(--muted);display:flex;justify-content:space-between;gap:24px}footer div{display:flex;gap:22px;flex-wrap:wrap}footer a{text-decoration:none}.skip{position:absolute;top:-100px;left:20px;padding:12px;background:#fff;z-index:50}.skip:focus{top:10px}@media(min-width:1600px){.intro{padding-top:65px;padding-bottom:50px}}@media(max-width:1000px){main{padding:0 26px}.topbar,footer{padding:22px 26px}.intro{gap:24px}.privacy-card{padding:20px}.work-grid{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}.field-grid{gap:10px}.line-grid{grid-template-columns:1fr 1fr}}@media(max-width:760px){.topbar{padding:18px 20px;flex-wrap:wrap;gap:14px}.top-meta{gap:12px}.top-meta>a{display:none}.private-badge{font-size:.62rem;padding:6px 9px}main{padding:0 18px}.intro{grid-template-columns:1fr;padding:34px 0 26px;gap:24px}h1{font-size:2.2rem}.lead{font-size:.9rem}.privacy-card{padding:18px}.steps{grid-template-columns:1fr 1fr;margin-bottom:24px}.steps a{padding:12px 0;font-size:.76rem;gap:9px}.import-panel,.bottom-panel{padding:20px}.dropzone{flex-direction:column;text-align:center;padding:24px 15px;gap:16px}.dropzone .button{width:100%}.dropzone .file-symbol{width:38px;height:44px}.import-bottom{flex-direction:column;align-items:flex-start;gap:6px}.work-grid{grid-template-columns:1fr}.preview-panel{position:static}.preview-scroll{max-height:380px}.workspace-heading{align-items:flex-start}.workspace-heading .button{font-size:.7rem;padding:8px 10px}.workspace-heading h2{font-size:1.2rem}.panel-title,.field-section,.lines-section{padding:16px}.field-grid{gap:12px}.field{font-size:.68rem}.field input,.field select{font-size:.8rem}.notes{grid-template-columns:1fr;gap:22px;padding-bottom:30px}.export-options{grid-template-columns:1fr;gap:12px}.export-card{padding:18px;gap:8px}.formal{align-items:flex-start;flex-direction:column;gap:12px}.status-box{flex-wrap:wrap}.status-box progress{max-width:100%}footer{flex-direction:column;padding:22px 18px;gap:16px}.issues li{gap:8px}.issues strong{white-space:normal}.line-card{padding:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}@media(prefers-contrast:more){:root{--muted:#102a2b;--border:#68796a}.badge,.muted{color:#102a2b}}.preview-document{position:relative}.preview-document:has(canvas[hidden]):has(img[hidden]){display:none}#evidenceMark{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#evidenceRect{stroke:#58740b;stroke-width:.003;fill:#d5af3633}.integration-cta{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:center;gap:36px;margin:32px 0 12px;padding:32px;border:1px solid #c9d4af;border-left:5px solid var(--olive);border-radius:12px;background:#e5ecd2}.integration-cta>div{min-width:0}.integration-cta h2{overflow-wrap:anywhere;hyphens:auto;max-width:35ch;font-size:clamp(1.35rem,2.2vw,1.8rem);line-height:1.3}.integration-cta>div>p:last-child{max-width:68ch;margin-bottom:0;font-size:.88rem}.integration-action{display:flex;flex-direction:column;align-items:stretch;gap:12px}.integration-action .button{text-align:center;line-height:1.5;padding:14px 20px}.integration-action .button span{flex-shrink:0}.integration-action #integration-contact-note{font-size:.72rem;color:var(--muted);text-align:center;margin:0}@media(max-width:900px){.integration-cta{grid-template-columns:1fr;gap:22px;padding:24px}.integration-action{align-items:flex-start}.integration-action #integration-contact-note{text-align:left}}@media(max-width:480px){.integration-cta{padding:20px;gap:18px}.integration-action{align-items:stretch}.integration-action .button{padding:12px}.integration-action #integration-contact-note{text-align:center}}.ai-dialog{width:min(580px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:32px;border:1px solid var(--border);border-top:5px solid var(--olive);border-radius:16px;background:#fdfcf8;color:var(--green);box-shadow:0 24px 100px #102a2b40;overflow:auto}.ai-dialog::backdrop{background:#102a2bad}.ai-dialog-heading{display:flex;align-items:center;gap:14px;margin-bottom:22px}.ai-dialog-heading .eyebrow{margin:0}.ai-dialog-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:10px;background:#e5ecd2;color:#3e5208;font-size:.85rem;font-weight:700}.ai-dialog h2{font-size:1.7rem;line-height:1.25;margin-bottom:12px}.ai-dialog>p{font-size:.9rem;color:var(--muted)}.ai-dialog h2:focus{outline:none}.ai-phases{display:flex;gap:12px;list-style:none;padding:18px 0;margin:24px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.ai-phases li{flex:1;display:flex;align-items:center;gap:8px;font-size:.7rem;line-height:1.4;color:var(--muted)}.ai-phases span{display:grid;place-items:center;border:1px solid var(--border);width:24px;height:24px;border-radius:50%;flex-shrink:0;font-weight:650}.ai-phases [data-active]{color:var(--green);font-weight:700}.ai-phases [data-active] span{background:var(--green);border-color:var(--green);color:#fff}.ai-phases .complete span{background:#e5ecd2;color:#3e5208;border-color:#b1c18c}#aiDialogStatus{margin-bottom:12px;color:var(--green);min-height:3em}#aiDialogProgress{display:block;width:100%;height:12px;accent-color:var(--olive);border:0;border-radius:6px;background:#e2e7dc;overflow:hidden}#aiDialogProgress::-webkit-progress-bar{background:#e2e7dc;border-radius:6px}#aiDialogProgress::-webkit-progress-value{background:var(--olive);border-radius:6px}#aiDialogProgress::-moz-progress-bar{background:var(--olive);border-radius:6px}#aiDialogProgress:indeterminate{background:linear-gradient(90deg,#e2e7dc 0 30%,#58740b 50%,#e2e7dc 70% 100%);background-size:200% 100%;animation:ai-loading 1.5s linear infinite}#aiDialogProgress:indeterminate::-webkit-progress-bar{background:transparent}.ai-dialog .ai-dialog-amount{font-size:.76rem;margin:10px 0 26px;font-variant-numeric:tabular-nums;min-height:2.5em}.ai-dialog-footer{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding-top:20px;border-top:1px solid var(--border)}.ai-dialog-footer p{margin:0;font-size:.76rem;color:var(--muted)}@keyframes ai-loading{to{background-position:-200% 0}}@media(max-width:480px){.ai-dialog{padding:24px 20px}.ai-dialog h2{font-size:1.4rem}.ai-phases{gap:8px}.ai-phases li{flex-direction:column;align-items:flex-start;font-size:.65rem}.ai-dialog-footer .button{width:100%}}@media(prefers-reduced-motion:reduce){#aiDialogProgress:indeterminate{animation:none}}.ai-dialog .ai-reuse-note{padding:12px 14px;border-radius:8px;background:#edf1e4;color:#33481f;font-size:.85rem;line-height:1.5}.export-choice{max-width:42rem;margin:1rem 0 .4rem}.routing-guide{grid-column:1 / -1;padding:.65rem .85rem;background:#f6f5ec;border-radius:.4rem}.routing-guide summary{cursor:pointer;font-weight:600}.routing-guide li+li{margin-top:.35rem}#italyFields:not([hidden]){margin-block:1rem}.learning-panel{margin:24px 0}.learning-panel>summary{font-size:1.15rem;font-weight:700;color:var(--green,#264e39);cursor:pointer}.learning-panel>summary span{display:inline-block;font-size:.9rem;font-weight:400;margin-left:12px}.profile-toolbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.profile-toolbar .field{flex:1;min-width:210px}.profile-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}.profile-actions input[type=file]{max-width:200px;font-size:.8rem}.profile-rule{display:flex;align-items:flex-start;gap:10px;padding:10px 0;overflow-wrap:anywhere}.profile-rule input{flex:none;margin-top:4px;width:18px;height:18px}.profile-dialog{width:min(760px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:1px solid #a8b7a5;border-radius:16px;padding:24px;color:#342c24;background:#fffef9}.profile-dialog::backdrop{background:#172a20aa}.profile-rule-list{max-height:40vh;overflow:auto;border-block:1px solid #dce3d7;margin:14px 0}.profile-dialog .field{margin:16px 0}.profile-dialog .profile-actions{justify-content:flex-end}#profileRules{padding-left:20px;overflow-wrap:anywhere}@media(max-width:600px){.profile-dialog{padding:16px}.profile-toolbar>*{width:100%}.profile-actions>.button{flex:1 1 180px}.learning-panel>summary span{margin:8px 0;display:block}}.language-switch{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 18px;max-width:1440px;margin:0 auto;padding:14px 30px}.language-switch a{color:var(--green,#385b26);padding:4px 0;text-decoration:none}.language-switch a[aria-current=page]{font-weight:800;border-bottom:3px solid #a5ab42}.beta-note{border:1px solid #d2ce95;border-left:5px solid #a5a137;border-radius:12px;background:#faf7dc;margin:0 0 24px;padding:16px 22px}.beta-note p{margin:5px 0 0}.private-badge{white-space:nowrap}#modelAccessOpen{margin:12px 0}#modelAccessCancel{margin-top:10px}@media(max-width:650px){.language-switch{justify-content:flex-start;padding:12px 20px;gap:6px 16px}.beta-note{padding:14px 16px}.top-meta{flex-wrap:wrap;justify-content:flex-end}}.feedback-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,340px);gap:32px;align-items:center}.feedback-panel h2{margin-bottom:12px}.feedback-panel p{max-width:80ch}.feedback-action{text-align:center}.feedback-action .button{width:100%}.feedback-action .muted{font-size:.82rem;margin-top:12px}.profile-privacy{border-left:3px solid var(--green,#5f7800);padding-left:16px}.beta-note>.text-button{display:inline-block;margin-top:8px}@media(max-width:720px){.feedback-panel{grid-template-columns:1fr;gap:12px}}.target-formats{margin-top:24px}.target-formats-title{font-size:.78rem;font-weight:700;color:var(--brown);margin-bottom:10px}.target-format-list{display:flex;flex-wrap:wrap;gap:12px;padding:0;margin:0;list-style:none}.target-format-list li{flex:1 1 220px;padding:13px 16px;background:#fafcf4;border:1px solid var(--border);border-left:3px solid var(--olive);border-radius:8px}.target-format-list strong{display:block;font-size:1rem;line-height:1.4}.target-format-list span{display:block;font-size:.76rem;line-height:1.5;color:var(--muted);margin-top:4px}.target-formats-more{margin:12px 0 0;color:var(--muted);font-size:.76rem;line-height:1.6}
