body{background:#edf3ef}
#legacy-layout-picker{display:flex;flex-wrap:wrap;gap:4px;padding:5px;margin:0 0 18px;border-radius:8px;background:#e2ebe5}
#legacy-layout-picker[hidden]{display:none}
#legacy-layout-picker>button{flex:1;border:0;border-radius:5px;background:transparent;color:#215641;min-height:44px}
#legacy-layout-picker>button[aria-pressed=true]{background:#215641;color:#fff}
.legacy-layout-help{flex-basis:100%;margin:5px;padding:0 5px;font-size:13px;color:#37594b}
.legacy-easy #document .sheet{min-height:0;border:1px solid #d1ded5;border-radius:10px;padding:clamp(16px,4vw,32px);box-shadow:0 3px 16px #19332608;margin-bottom:20px}
.legacy-easy #document .paper-top,.legacy-easy #document .paper-footer{display:none}
.legacy-easy #document h3{font:700 20px/1.3 Georgia,serif;margin-bottom:18px;border-bottom:1px solid #d8e4db;padding-bottom:10px}
.legacy-easy #document section{margin-bottom:30px}
.legacy-field-wrap{display:block;width:100%;min-width:0}
.legacy-field-wrap :is(input,textarea){box-sizing:border-box;width:100%;font:16px/1.45 Arial,sans-serif;padding:10px 12px;min-height:46px;border:1px solid #aebfb3;border-radius:6px;background:#fff;color:#20372d}
.legacy-field-wrap textarea{min-height:90px;resize:vertical}
.legacy-field-wrap :is(input,textarea):focus{outline:2px solid #215641;outline-offset:2px;background:#f5faf6}
.legacy-field-wrap [aria-invalid=true]{border-color:#a12626}
.legacy-field-error{display:block;color:#a12626;font:13px/1.4 Arial,sans-serif}
.legacy-wording{margin:12px 0;padding:10px 12px;border:1px solid #d1ded5;border-radius:6px;background:#f6faf7}
.legacy-wording summary{cursor:pointer;font:600 14px/1.4 Arial,sans-serif;color:#215641;min-height:24px}
.legacy-wording .lease-clause{margin-bottom:0}
.legacy-easy .party-card{background:#fff;border-color:#d1ded5}
.legacy-easy .party-card dd{margin-top:5px}
@media(max-width:700px){.legacy-easy .workspace{display:block}.legacy-easy .guide{position:static;max-height:none;margin-bottom:16px}.legacy-easy .parties-grid{grid-template-columns:1fr}.legacy-easy .contract-facts .fact-row{display:block}.legacy-easy .fact-row dd{margin:7px 0 16px}.legacy-easy .sheet{width:100%;min-width:0}}
/* One clear reading column, with labels above the actual native-model controls. */
.legacy-easy .document-column{width:100%;max-width:720px;min-width:0;margin-inline:auto}
.legacy-easy #document{width:100%;max-width:720px;margin-inline:auto}
.legacy-easy #document .parties-grid{grid-template-columns:minmax(0,1fr);gap:18px}
.legacy-easy #document .party-card{padding:20px;border-radius:8px}
.legacy-easy #document .party-card h4,.legacy-easy #document .rental-home h4{font:700 17px/1.4 Georgia,serif;letter-spacing:0;color:#204a3b}
.legacy-easy #document :is(.party-card dt,.property-details dt,.fact-row dt){font:600 14px/1.45 Arial,sans-serif;color:#294638;padding-top:0;margin-bottom:7px}
.legacy-easy #document .contract-facts .fact-row{grid-template-columns:minmax(0,1fr);gap:6px}
.legacy-easy #document .contract-facts .fact-row dd{margin:0}
.legacy-easy #document .money-row{padding:16px;border-radius:7px}
.legacy-easy #document .legacy-field-wrap :is(input,textarea){margin-top:0}
#legacy-start-filling{display:block;margin:0 0 18px auto;min-height:46px}
#legacy-start-filling[hidden]{display:none}
#legacy-review-actions{max-width:720px;margin:20px auto;padding:20px 0;border-top:1px solid #d1ded5}
#legacy-review-actions[hidden]{display:none}
#legacy-review-sign{display:block;width:100%;min-height:48px;font-size:16px}
#legacy-review-actions p{font-size:13px;color:#37594b}
@media(min-width:1050px){.legacy-easy .workspace{grid-template-columns:230px minmax(0,720px);gap:24px;max-width:974px;margin-inline:auto}}
@media(max-width:700px){#legacy-start-filling{width:100%}.legacy-easy #document .party-card{padding:16px}.legacy-easy #document .sheet{padding:20px 16px}}
.legacy-draft-secondary{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.legacy-draft-secondary button{flex:1;min-width:160px;min-height:44px}
#legacy-postowner-choices{padding:20px;margin:0 0 20px;border:1px solid #b9cebf;border-radius:10px;background:#f6faf7}
#legacy-postowner-choices[hidden]{display:none}
#legacy-postowner-choices h2{font:700 21px/1.3 Georgia,serif;margin:0 0 10px}
#legacy-postowner-choices button{margin:6px 8px 0 0;min-height:44px}

/* The blank PDF sets the visual language. State clauses remain native live text. */
body.lease-simple-mode,body.lease-paper-mode{background:#edf3ef}
body.lease-simple-mode #guidedContinueDock,body.lease-paper-mode #guidedContinueDock{display:none!important}
.lease-workspace-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 20px}
.lease-workspace-actions #legacy-start-filling{margin:0;flex:1;min-height:48px}
#paper-clear-all{min-height:48px;white-space:nowrap}
#legacy-layout-picker{border:1px solid #b8cabe;border-radius:8px;padding:6px;gap:6px}
#legacy-layout-picker>button{font:600 17px/1.3 Arial,sans-serif;min-height:48px}
.legacy-layout-help{font:16px/1.5 Arial,sans-serif!important;color:#304b3d!important;margin:8px 6px!important}
body.lease-paper-mode .document-column{min-width:0;overflow-x:auto;padding:2px 2px 24px;scroll-padding-bottom:calc(var(--paper-dock-height,0px) + 24px)}
body.lease-paper-mode #document{width:816px;max-width:none;margin:0 auto;color:#111;font:14px/1.4 Arial,sans-serif}
body.lease-paper-mode #document .sheet{box-sizing:border-box;width:816px;max-width:none;min-height:1056px;padding:44px 48px 28px;margin:0 auto 24px;background:white;border:1px solid #c7cbc8;border-radius:0;box-shadow:0 3px 14px #19332612;color:#111;font:14px/1.4 Arial,sans-serif}
body.lease-paper-mode #document :is(h2,h3,h4,dt,dd,p,span,legend,label,.lease-clause,.section-prose){color:#111;font-family:Arial,sans-serif}
body.lease-paper-mode #document .paper-top{border:0;border-bottom:1px solid #111;padding:0 0 12px;margin:0 0 20px;background:white;text-transform:uppercase;font:700 11px/1.4 Arial,sans-serif;letter-spacing:.5px}
body.lease-paper-mode #document .agreement-title-row h2{font:700 23px/1.2 Arial,sans-serif;color:#111}
body.lease-paper-mode #document section h3{font:700 16px/1.3 Arial,sans-serif;border:0;border-bottom:1px solid #777;background:white;padding:8px 0;margin:18px 0 12px}
body.lease-paper-mode #document :is(.party-card,.rental-home,.move-in-table,.utility-table){border-radius:0;background:white;color:#111}
body.lease-paper-mode #document .field{border-radius:0;border:1px solid #717971;background:#fff;color:#111;min-height:32px;box-shadow:none;font:14px/1.4 Arial,sans-serif}
body.lease-paper-mode #document .field:hover{background:#f0f6f1;border-color:#215641}
body.lease-paper-mode #document .legacy-field-wrap :is(input,textarea){border-radius:0;border:1px solid #717971;background:white;color:#111;font:16px/1.35 Arial,sans-serif;min-height:36px;padding:6px 8px}
body.lease-paper-mode #document .legacy-field-wrap textarea{min-height:72px;resize:vertical}
body.lease-paper-mode #document .legacy-field-wrap :is(input,textarea):focus{outline:2px solid #215641;outline-offset:1px}
body.lease-paper-mode #document .legacy-field-wrap .lease-calendar{height:32px;min-height:32px!important;width:36px;min-width:36px}
body.lease-paper-mode #document .field:focus-visible{outline:2px solid #215641;outline-offset:1px}
body.lease-paper-mode #document .paper-footer{border-top:1px solid #777;color:#333;background:white;margin-top:24px}
body.lease-paper-mode #document .footer-qr{display:none}
body.lease-paper-mode #document input[type=radio]:focus-visible,body.lease-simple-mode #document input[type=radio]:focus-visible{outline:2px solid #215641;outline-offset:2px}
body.lease-paper-mode #document :is(.utility-option,.utility-choice,.guided-current){box-shadow:none;outline-offset:0;max-width:100%}
body.lease-simple-mode #document .legacy-wording{margin:18px 0}
body.lease-simple-mode #document :is(input,textarea,select){font-size:18px;min-height:48px;line-height:1.4}
body.lease-simple-mode #document :is(input[type=radio],input[type=checkbox]){min-height:22px;min-width:22px;width:22px;height:22px;flex:0 0 22px}
.lease-visible-choices{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;border:0;padding:0;margin:0;min-width:0}
.lease-visible-choices label{display:flex!important;align-items:center;gap:10px;min-height:48px;border:1px solid #aebfb3;border-radius:6px;padding:8px 10px;background:white;font:16px/1.4 Arial,sans-serif!important;box-sizing:border-box}
.lease-visible-choices label:has(input:checked){border-color:#215641;background:#f1f8f3}
.lease-visible-choices input{width:22px!important;height:22px!important;min-height:22px!important;flex:0 0 22px}
.lease-editing-placeholder{display:flow-root;pointer-events:none}
.lease-paper-echo-value{display:block;min-height:36px;border:1px solid #717971;padding:6px 8px;background:#fff;color:#111;white-space:pre-wrap;overflow-wrap:anywhere;font:16px/1.35 Arial,sans-serif}
.lease-paper-echo-choice{display:inline-block;flex:0 0 22px;width:22px;min-height:22px;font:20px/1.1 Arial,sans-serif;color:#215641}
.lease-entry-complete{position:relative}
.legacy-field-wrap.lease-entry-complete::after{content:'✓';position:absolute;right:8px;top:7px;background:#fff;color:#17633b;font:bold 17px/1 Arial,sans-serif;pointer-events:none}
.legacy-field-wrap.lease-entry-complete>input{padding-right:32px}
.legacy-field-wrap.lease-date-field.lease-entry-complete::after{right:54px;top:15px}
[class*="-question-row"].lease-entry-complete>dt::after{content:' ✓';color:#17633b;font-weight:700}
[data-paper-choice].lease-entry-complete{border-right:3px solid #27804b;padding-right:6px}
.lease-date-field{position:relative}
.lease-date-field input[type=date]{padding-right:54px!important}
.lease-calendar{display:inline-flex;align-items:center;justify-content:center;position:absolute;right:3px;bottom:3px;width:44px;min-width:44px;height:44px;min-height:44px!important;padding:0!important;border:0!important;background:#fff!important;color:#215641!important;border-radius:3px}
.lease-calendar svg{pointer-events:none}
#editor.lease-editor-docked[open]{box-sizing:border-box;position:fixed!important;inset:auto!important;top:auto!important;bottom:auto!important;left:50%!important;transform:translateX(-50%)!important;margin:0!important;width:min(760px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;max-height:calc(var(--paper-visible-height,100dvh) - 16px)!important;height:auto!important;border:1px solid #819e8d;border-radius:10px 10px 0 0;padding:12px 16px!important;overflow:hidden!important;box-shadow:0 -4px 24px #153a2522;z-index:1000;background:white;color:#183a28}
#editor.lease-editor-docked[open]{top:calc(var(--paper-visible-top,0px) + var(--paper-visible-height,100dvh) - 8px)!important;transform:translate(-50%,-100%)!important}
#editor.lease-editor-docked #editForm{display:flex;flex-direction:column;min-height:0;max-height:calc(var(--paper-visible-height,100dvh) - 42px);overflow:hidden;padding:0;margin:0;gap:4px}
#editor.lease-editor-docked .dialog-heading{margin:0;flex:0 0 auto;gap:8px}
#editor.lease-editor-docked .eyebrow,#editor.lease-editor-docked .dialog-heading>.close{display:none}
#editor.lease-editor-docked #editTitle{font:600 17px/1.35 Arial,sans-serif!important;white-space:nowrap;overflow:auto;margin:0 0 4px;max-width:100%;min-width:0;scrollbar-width:thin}
#paper-step{font:14px/1.3 Arial,sans-serif;color:#53685a;margin:0 0 2px}
#editor.lease-editor-docked #editFields{overflow:auto;overscroll-behavior:contain;flex:1 1 auto;min-height:0;padding:2px 3px 6px;scroll-padding:12px}
#editor.lease-editor-docked #editFields :is(input:not([type=radio]):not([type=checkbox]),textarea,select){box-sizing:border-box;min-height:48px;font:18px/1.35 Arial,sans-serif;padding:8px 10px;width:100%;border:1px solid #849a8c;border-radius:4px}
#editor.lease-editor-docked #editFields textarea{max-height:120px;min-height:60px;resize:vertical}
#editor.lease-editor-docked #editFields label,#editor.lease-editor-docked #editFields legend{font:16px/1.4 Arial,sans-serif}
#editor.lease-editor-docked #editFields [class*="-question-row"]{display:block;padding:0;border:0}
#editor.lease-editor-docked #editFields dt{margin:0 0 6px;font-weight:600}
#editor.lease-editor-docked #editFields dd{margin:0}
#editor.lease-editor-docked #editError{flex:0 0 auto;margin:4px 0;color:#9b1f21;font:15px/1.3 Arial,sans-serif;max-height:64px;overflow:auto}
#editor.lease-editor-docked #editError:empty{display:none}
#editor.lease-editor-docked .dialog-actions{display:flex!important;flex-wrap:nowrap!important;gap:6px;flex:0 0 auto;margin:6px 0 0;padding:0;background:white;border:0}
#editor.lease-editor-docked .dialog-actions [data-close=editor]{display:none}
#editor.lease-editor-docked .dialog-actions button{font:600 16px/1.2 Arial,sans-serif!important;min-height:48px!important;padding:8px 10px!important;white-space:nowrap;min-width:0;flex:1 1 auto}
#editor.lease-editor-docked .dialog-actions #editorNext{background:#215641;color:white}
body.lease-simple-mode #editor[data-paper-editor][open]{box-sizing:border-box;position:relative!important;inset:auto!important;transform:none!important;margin:16px 0!important;width:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important;border:1px solid #9bb4a3;border-radius:8px;padding:16px!important;box-shadow:none;background:white}
body.lease-simple-mode #editor[data-paper-editor] .dialog-actions{flex-wrap:wrap}
body.lease-simple-mode #editor[data-paper-editor] #paper-hide,body.lease-simple-mode #editor[data-paper-editor] #paper-back{display:none}
body.lease-dock-open{padding-bottom:calc(var(--paper-dock-height,0px) + 24px)}
@media(max-width:700px){body.lease-paper-mode .workspace{display:block}body.lease-paper-mode .guide{position:static;max-height:none;margin-bottom:16px}body.lease-paper-mode .document-column{width:100%;max-width:100%}#editor.lease-editor-docked[open]{padding:8px!important}#editor.lease-editor-docked .dialog-actions button{padding:7px 5px!important}#editor.lease-editor-docked .dialog-actions{gap:4px}#editor.lease-editor-docked #editForm{max-height:calc(var(--paper-visible-height,100dvh) - 34px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
@media print{#legacy-layout-picker,.lease-workspace-actions,#legacy-review-actions,#editor,.lease-calendar{display:none!important}.legacy-wording{display:block}.legacy-wording>.lease-clause{display:block!important}}
