:root{--ink:#0c1319;--blue:#016fd1;--muted:#526270;--line:#ced8e1;--pale:#e9f3ff;--bg:#f4f6f8}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 Arial,Helvetica,sans-serif}h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button,.button{min-height:42px;padding:9px 15px;border:1px solid #bdcbd7;background:white;color:var(--ink);border-radius:3px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}button:hover,.button:hover{background:#f0f5fa;border-color:#7e9bb2}button:disabled{opacity:.5;cursor:not-allowed}.primary,button.active{background:var(--blue);border-color:var(--blue);color:white}.primary:hover,button.active:hover{background:#005fae;color:#fff}.quiet{border-color:transparent;background:transparent}.danger{color:#a52d22}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--blue);outline-offset:2px}a{color:#0066bb}[hidden]{display:none!important}.brand-header{background:var(--ink);color:white;border-bottom:5px solid var(--blue);padding:24px max(24px,calc((100vw - 1240px)/2));display:flex;justify-content:space-between;align-items:center;gap:24px}.brand-lockup{display:flex;align-items:center;gap:24px}.brand-lockup img{width:100px;height:auto}.brand-header h1{font-size:30px;letter-spacing:-1px;font-weight:600}.eyebrow{font:11px/1.7 Consolas,monospace;letter-spacing:1.5px;color:#b9cbd9}.blue{color:#0164b5}#account{display:flex;align-items:center;gap:15px;font-size:13px}#account button,#account a{color:white;border-color:#56616a;background:transparent}.workspace{max-width:1288px;margin:auto;padding:26px 24px 50px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}.actions{display:flex;flex-wrap:wrap;gap:8px}.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:22px;flex-wrap:wrap}.tabs button:not(.active){border-color:transparent;background:transparent}.paper{background:white;border:1px solid var(--line);padding:28px;min-width:0}.intro{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:24px}h2{font-size:25px;letter-spacing:-.7px;font-weight:600}h3{font-size:18px;font-weight:600;margin-bottom:15px}h3 .index{font:12px Consolas,monospace;background:var(--blue);color:#fff;padding:5px 8px;margin-right:10px}.muted,small{color:var(--muted)}.muted{font-size:13px}.tag{padding:6px 10px;background:var(--pale);color:#075a9d;font-size:12px;display:inline-block}.feedback{padding:12px 16px;background:var(--pale);border:1px solid #bad6ed;margin-bottom:20px;font-size:13px}.feedback.error{background:#fff1f0;border-color:#efb5b0;color:#8b2921}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:22px;align-items:start}.summary-panel{position:sticky;top:20px}.summary-panel h2{font-size:21px;margin:7px 0 18px}.summary-line{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #dce3e9;padding:14px 0;font-size:13px}.summary-line strong{font-variant-numeric:tabular-nums;white-space:nowrap}.summary-highlight{padding:15px;background:var(--pale);border-left:3px solid var(--blue);margin:18px -8px}.summary-highlight strong{font-size:19px;display:block}.summary-panel .actions{margin-top:18px}.section{margin-top:26px;padding-top:24px;border-top:1px solid var(--line)}.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.fields .full{grid-column:1/-1}label{display:block;color:#40515e;font-size:13px}input,select,textarea{width:100%;border:1px solid #bdcbd7;border-radius:3px;padding:10px;background:#f4f7fa;color:var(--ink);margin-top:6px;min-height:44px;font-size:16px}textarea{resize:vertical}input[aria-invalid=true]{border-color:#b42318;background:#fff1f0}.field-help{display:block;font-size:11px;margin:5px 0 0}.property-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.property-card{border:1px solid var(--line);background:white;overflow:hidden}.property-card .card-body{padding:16px}.property-card h3{font-size:15px;line-height:1.4;margin:6px 0;overflow-wrap:anywhere}.property-card p{font-size:12px}.property-card .card-price{font-size:19px;margin:10px 0}.property-card button{width:100%;margin-top:12px}.photo{position:relative;overflow:hidden;background:#e8edf2}.photo img{width:100%;height:100%;object-fit:cover;display:block}.photo-placeholder{height:100%;display:grid;place-content:center;text-align:center;color:#667e91;background:linear-gradient(145deg,#edf3f8,#d9e3eb)}.photo-placeholder svg{width:130px;height:65px;margin:0 auto 12px;fill:none;stroke:#91a7b8;stroke-width:1.2}.photo-placeholder span{font:10px Consolas,monospace;letter-spacing:1.4px}.property-card .photo{height:120px}.photo-badge{position:absolute;top:10px;left:10px;background:#0c1319e8;color:white;padding:4px 7px;font-size:10px;letter-spacing:.6px}.subject-edit{display:grid;grid-template-columns:200px 1fr;gap:22px;align-items:center}.subject-edit .photo{height:140px}.subject-edit h3{margin:6px 0}.add-sale{margin-top:16px}.subtabs{display:flex;gap:5px;flex-wrap:wrap;padding:16px 26px;border-bottom:1px solid var(--line)}.subtabs button{font-size:13px;min-height:38px;padding:7px 12px}dialog{padding:0;border:1px solid #b3c5d3;width:min(850px,96vw);max-height:94vh;border-radius:5px;box-shadow:0 25px 100px #0c131944}dialog::backdrop{background:#0c13198c}.dialog-head{padding:22px 26px;background:white;display:flex;justify-content:space-between;align-items:center;gap:20px;position:sticky;top:0;z-index:2;border-bottom:1px solid var(--line)}#editor-body{padding:24px 26px}.edit-row{display:grid;grid-template-columns:1fr 150px;gap:16px;padding:11px 0;border-top:1px solid #e0e6eb;align-items:end}.edit-row small{font-size:11px}.edit-row .adjust-input{text-align:right}.edit-row label{min-width:0}.adjust-help{padding:13px 15px;background:var(--pale);font-size:12px;margin:22px 0 12px}.upload-row{display:flex;gap:15px;align-items:center;margin:20px 0}.upload-row .photo{width:150px;height:95px;flex-shrink:0}.upload-row input{font-size:12px}.worksheet{padding:16px;background:#f4f7fa;border:1px solid var(--line);margin-top:20px}.worksheet summary{cursor:pointer;font-weight:600}.worksheet .fields{margin-top:16px;gap:12px}.worksheet .actions{margin-top:15px;align-items:center}.worksheet output{font-weight:600}.library-table{width:100%;border-collapse:collapse;font-size:14px}.library-table th,.library-table td{padding:15px 12px;border-bottom:1px solid var(--line);text-align:left}.library-table th{font-size:12px;background:#f4f7fa;color:var(--muted)}.library-table small{display:block}.library-search{max-width:480px;margin-bottom:20px}.empty-state{text-align:center;padding:50px 20px;color:var(--muted)}.auth{max-width:520px;margin:50px auto}.auth h2{font-size:30px;margin:10px 0}.auth p{margin-bottom:22px}.auth label{margin:18px 0}.auth button{width:100%;margin:10px 0}.auth .link-row{margin-top:20px;font-size:13px}.workspace-footer{font-size:12px;color:var(--muted);margin-top:25px;padding-top:18px;border-top:1px solid var(--line)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;padding:14px 22px;background:var(--ink);color:white;box-shadow:0 6px 25px #0003;z-index:10;border-left:4px solid var(--blue);font-size:13px}.document{max-width:1200px;margin:auto}.sheet{background:#fff;border:1px solid var(--line);box-shadow:0 8px 28px #0c131909;margin:0 0 26px}.report-header{background:var(--ink);color:white;padding:24px 30px;border-bottom:5px solid var(--blue);display:flex;align-items:center;gap:25px}.report-header img{width:95px}.report-header h2{font-size:29px;margin:4px 0;line-height:1.2}.report-header .report-meta{margin-left:auto;text-align:right;font-size:12px;color:#c5d4df;max-width:220px}.report-body{padding:26px 30px}.demo-ribbon{background:#e9f3ff;color:#075a9d;padding:7px 30px;font:10px/1.4 Consolas,monospace;letter-spacing:1px}.hero{display:grid;grid-template-columns:1.05fr 1fr;gap:28px;align-items:stretch}.hero>.photo{min-height:240px}.hero-details{padding:8px 0}.hero-details h3{font-size:31px;line-height:1.15;letter-spacing:-.8px;margin:7px 0 8px;overflow-wrap:anywhere}.hero-details>p{font-size:13px;color:var(--muted)}.facts{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:24px}.facts span{display:block;font-size:11px;color:var(--muted)}.facts strong{font-size:15px;font-weight:500}.price-strip{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:15px;margin:24px 0}.price-strip>div{padding:17px 18px;background:#f4f7fa;border:1px solid var(--line)}.price-strip>div:first-child{border-left:3px solid var(--blue);background:var(--pale)}.price-strip span{font-size:12px;color:var(--muted);display:block}.price-strip strong{font-size:26px;letter-spacing:-.8px;display:block;margin:3px 0;font-variant-numeric:tabular-nums}.price-strip small{font-size:10px}.recommendation{display:grid;grid-template-columns:1fr 1.2fr;gap:25px;border-top:1px solid var(--line);padding-top:22px}.recommendation h3{font-size:20px;margin:7px 0}.recommendation p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.placeholder-copy{color:var(--muted);font-style:italic}.report-footer{margin-top:22px;padding-top:14px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:24px;font-size:10px;color:var(--muted)}.report-footer p{max-width:78%;white-space:pre-wrap;overflow-wrap:anywhere}.report-footer span{white-space:nowrap}.grid-title{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:17px}.grid-title h3{font-size:22px;margin:0}.grid-title p{font-size:11px;color:var(--muted);max-width:380px}.grid-scroll{overflow-x:auto}.comparison{border-collapse:collapse;table-layout:fixed;width:100%;font-size:12px;line-height:1.35}.comparison col.feature{width:16%}.comparison col.subject{width:21%}.comparison th,.comparison td{padding:8px 10px;border-bottom:1px solid #dce3e9;vertical-align:top;overflow-wrap:anywhere}.comparison th{text-align:left;font-weight:500}.comparison tbody th{font-size:11px;color:#4e6271}.comparison td.subject-cell,.comparison th.subject-cell{background:#f0f6fc;border-left:2px solid var(--blue)}.comparison .photo{height:75px;margin-bottom:8px}.comparison .photo-placeholder svg{width:80px;height:38px;margin-bottom:2px}.comparison .photo-placeholder span{font-size:7px}.comparison .col-title{font:10px Consolas,monospace;letter-spacing:.8px;color:#0164b5;display:block;margin-bottom:4px}.comparison .address{font-size:13px;font-weight:600;display:block;margin:4px 0;overflow-wrap:anywhere}.comparison .locality{font-size:9px;color:var(--muted);display:block;margin-bottom:6px}.comparison .detail{display:block}.adjust{display:block;text-align:right;font-weight:600;font-size:11px;margin-top:4px;font-variant-numeric:tabular-nums;white-space:nowrap}.up{color:#0067b5}.down{color:#a4382d}.zero{color:#75838e;font-weight:400}.sale-price td{font-size:17px;font-weight:600}.total-row th,.total-row td{background:#f4f7fa}.total-row td{font-variant-numeric:tabular-nums;text-align:right;font-size:12px;white-space:nowrap}.adjusted-row th,.adjusted-row td{background:var(--ink);color:white;padding:13px 10px}.adjusted-row td{font-size:20px;letter-spacing:-.5px;font-weight:600;white-space:nowrap;text-align:right}.grid-note{margin:14px 0 0;font-size:11px;line-height:1.6;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.totals-box{display:flex;gap:15px;flex-wrap:wrap;background:#e9f3ff;padding:13px 16px;font-size:13px;margin:16px 0}.totals-box strong{margin-left:4px}.read-only-banner{background:#f4f7fa;padding:12px;margin-bottom:18px;font-size:13px}.preview-help{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.preview-help p{font-size:13px;color:var(--muted)}
@media(max-width:1050px){.editor-layout{grid-template-columns:1fr}.summary-panel{position:static}.comparison{min-width:900px}.price-strip strong{font-size:22px}.report-header h2{font-size:25px}}
@media(max-width:650px){.brand-header{padding:20px 18px;align-items:start}.brand-lockup{gap:14px}.brand-lockup img{width:65px}.brand-header h1{font-size:24px}.eyebrow{font-size:9px}.brand-header #account{display:block;text-align:right;font-size:11px}.brand-header #account button{margin-top:8px;min-height:32px;padding:5px 9px}.workspace{padding:18px 12px}.paper{padding:20px 16px}.fields{grid-template-columns:1fr}.property-cards{grid-template-columns:1fr}.property-card{display:grid;grid-template-columns:110px 1fr}.property-card .photo{height:100%}.property-card .photo-placeholder svg{width:80px}.property-card .photo-placeholder span{font-size:7px}.property-card .card-price{margin:6px 0}.subject-edit{grid-template-columns:1fr}.subject-edit .photo{height:180px}.actions{width:100%}.actions button{flex:1 1 130px}.intro{align-items:start;flex-direction:column}.edit-row{grid-template-columns:1fr 105px;gap:10px}.edit-row input{font-size:14px}.dialog-head{padding:18px}.subtabs{padding:12px}.subtabs button{padding:6px 10px}#editor-body{padding:18px}.upload-row{align-items:start;flex-direction:column}.hero{grid-template-columns:1fr;gap:15px}.hero>.photo{min-height:190px}.hero-details h3{font-size:27px}.price-strip{grid-template-columns:1fr}.price-strip strong{font-size:26px}.recommendation{grid-template-columns:1fr;gap:18px}.report-header{padding:20px 18px;gap:15px}.report-header img{width:60px}.report-header h2{font-size:23px}.report-header .report-meta{display:none}.report-body{padding:20px 16px}.demo-ribbon{padding:8px 16px}.report-footer p{max-width:75%}.grid-title{display:block}.grid-title p{margin-top:10px}.library-scroll{overflow:auto}.library-table{min-width:570px}.preview-help{display:block}.preview-help .tag{margin-top:10px}}

/* A4 document geometry is shared by the live form and printed copy. */
.document-settings{display:flex;align-items:end;gap:18px;flex-wrap:wrap;margin:0 0 22px}.document-settings label{max-width:220px;flex:1 1 170px}.document-settings select{font-size:14px;min-height:39px}.document-settings p{font-size:12px;color:var(--muted);margin-left:auto;padding-bottom:5px}
.document{width:190mm;max-width:100%;margin:0 auto}.sheet{width:190mm;max-width:100%;min-height:277mm;box-sizing:border-box;border:0;outline:1px solid var(--line);margin:0 auto 28px;background:white;box-shadow:0 6px 30px #0c131910}.report-header{padding:20px 22px;gap:18px;border-bottom:4px solid var(--blue);min-height:86px}.report-header img{width:76px}.report-header h2{font-size:23px;line-height:1.2;overflow-wrap:anywhere}.report-header .eyebrow{font-size:10px}.demo-ribbon{padding:6px 22px;font-size:8px;line-height:1.35}.report-body{padding:18px 22px}.report-photo{position:relative}.photo-edit,.photo-remove{position:absolute;bottom:7px;left:7px;font-size:10px;min-height:25px;padding:4px 7px;background:#ffffffed}.photo-remove{left:auto;right:7px}.cover-meta{display:flex;justify-content:space-between;gap:20px;margin-bottom:13px;align-items:center}.cover-meta>div{width:100px;font-size:11px}.cover-meta .eyebrow{font-size:9px}.cover-sheet>.report-body>.report-photo .photo{height:205px}.hero-details{padding:16px 0 0}.hero-details h3{font-size:28px;margin:3px 0 2px}.hero-details>p{font-size:12px}.hero-details .eyebrow{font-size:9px}.facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 18px;margin-top:16px}.facts>div>span{font-size:10px}.facts strong{font-size:12px;font-weight:500}.price-strip{grid-template-columns:.8fr 1.1fr 1.1fr;gap:10px;margin:18px 0}.price-strip>div{padding:12px}.price-strip span{font-size:10px}.price-strip strong{font-size:23px;letter-spacing:-.5px}.price-strip small{font-size:8px}.recommendation{display:block;padding-top:13px}.recommendation .eyebrow{font-size:9px}.recommendation h3{font-size:20px;margin:5px 0}.recommendation p{font-size:11px;line-height:1.4}.cover-notes{margin-top:13px;border-top:1px solid var(--line);padding-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:18px;font-size:10px;line-height:1.35}.cover-notes b{font-size:9px;color:var(--muted)}.agent-line{display:grid;grid-template-columns:1fr 1fr;gap:5px 18px;margin-top:13px;font-size:11px}.agent-line small{font-size:9px}.report-footer{font-size:8px;margin-top:15px;padding-top:10px;line-height:1.4}.report-footer span{font-size:8px}.grid-title{display:block;margin-bottom:10px}.grid-title h3{font-size:19px;margin:0 0 4px}.grid-title p{font-size:9px;max-width:none;line-height:1.35}.grid-scroll{overflow:visible}.comparison{width:100%;min-width:0;font-size:11px;line-height:1.2}.comparison col.feature{width:18%}.comparison col.subject{width:20.5%}.comparison th,.comparison td{padding:5px 6px;vertical-align:top;overflow-wrap:anywhere}.comparison tbody th{font-size:10px;line-height:1.3}.comparison small{display:block;font-size:8px}.comparison .photo{height:58px;margin:0 0 6px}.comparison .photo-placeholder svg{width:62px;height:31px;margin:0 auto 2px}.comparison .photo-placeholder span{font-size:6px;letter-spacing:.6px}.comparison .photo-edit{font-size:8px;min-height:18px;bottom:5px;left:3px;right:3px;padding:2px}.comparison .photo-remove{display:none}.comparison .col-title{font-size:9px;letter-spacing:.6px}.comparison .address{font-size:11px;line-height:1.2;font-weight:600;margin:3px 0}.comparison .locality{font-size:8px;line-height:1.2;margin-bottom:0}.comparison .detail{font-size:10.5px}.comparison .adjust{font-size:10px;margin-top:3px;line-height:1.2}.sale-price td{font-size:14px}.total-row td{font-size:10.5px;white-space:nowrap}.total-row th{font-size:10px}.adjusted-row td{font-size:15px;letter-spacing:-.4px;white-space:nowrap}.comparison .adjusted-row th,.comparison .adjusted-row td{padding:10px 6px}.grid-note{font-size:8.5px;line-height:1.4;margin-top:11px}.mini-calc{font-size:8px;min-height:14px;line-height:1;padding:2px 3px;border:0;background:transparent;color:#0164b5;float:right;margin:1px 0 0}.mls-row .live-field{display:block;font-size:9px}.mls-row td .live-field:last-child{font-size:8px;color:var(--muted)}
.live-field{display:block;min-width:0;white-space:normal;overflow-wrap:anywhere}.live-field .live-control{display:block;width:100%;font:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;font-weight:inherit;background:transparent;border:0;border-bottom:1px dotted #9bb6cb;border-radius:0;outline-offset:1px;margin:0;padding:1px 0;min-height:0;resize:none;overflow:hidden;box-shadow:none}.live-field textarea.live-control{height:auto}.live-field input.live-control{height:1.45em}.live-control::placeholder{color:#768795;opacity:1;font-style:italic;font-weight:400}.live-control:hover{background:#eef6ff}.live-control:focus{background:#eef6ff;outline:2px solid var(--blue)}.live-field.adjust .live-control,.live-field.money .live-control{text-align:right}.live-field .live-copy{display:none;white-space:pre-wrap;overflow-wrap:anywhere}.readonly .live-copy{display:block}.live-field.area .live-copy{white-space:normal}.comparison .live-field.money .live-copy,.comparison .live-field.adjust .live-copy{white-space:nowrap;text-align:right}.live-control[aria-invalid=true]{background:#fff1f0!important;color:#9a241b}
.print-measure .no-print{display:none!important}.print-measure .live-control{display:none!important}.print-measure .live-copy{display:block}.print-measure .sheet{min-height:277mm;width:190mm;max-width:none}.print-measure .document{width:190mm;max-width:none}.print-measure .report-header{width:auto}
@media(max-width:760px){.document{overflow:visible}.grid-sheet{width:190mm;max-width:none}.document:has(.grid-sheet){overflow-x:auto;padding:1px}.cover-sheet{min-height:0}.cover-sheet .report-header{padding:18px 15px}.cover-sheet .report-header img{width:58px}.cover-sheet .report-header h2{font-size:20px}.cover-sheet .report-body{padding:15px}.cover-sheet .facts{grid-template-columns:1fr 1fr}.cover-sheet .price-strip{gap:6px}.cover-sheet .price-strip>div{padding:9px 6px}.cover-sheet .price-strip strong{font-size:18px}.cover-sheet .price-strip span{font-size:9px}.cover-sheet .cover-meta{gap:8px}.cover-sheet .cover-meta .eyebrow{font-size:8px}.cover-sheet .cover-notes{grid-template-columns:1fr;gap:9px}.document-settings p{margin-left:0}.print-measure .cover-sheet .facts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@page{size:A4 portrait;margin:10mm}
@media print{body{background:white;font-size:11px;-webkit-print-color-adjust:exact;print-color-adjust:exact}.no-print,dialog,#toast{display:none!important}.workspace{padding:0;margin:0;max-width:none}.document{width:190mm;max-width:none;overflow:visible;padding:0}.sheet,.cover-sheet,.grid-sheet{width:190mm;max-width:none;min-height:0;border:0;outline:0;box-shadow:none;margin:0;break-after:page}.sheet:last-child{break-after:auto}.report-header,.cover-sheet .report-header{padding:20px 22px;gap:18px;min-height:86px}.report-header img,.cover-sheet .report-header img{width:76px}.report-header h2,.cover-sheet .report-header h2{font-size:23px}.report-body,.cover-sheet .report-body{padding:18px 22px}.cover-sheet .facts{grid-template-columns:repeat(3,minmax(0,1fr))}.cover-sheet .price-strip{gap:10px}.cover-sheet .price-strip>div{padding:12px}.cover-sheet .price-strip strong{font-size:23px}.cover-sheet .price-strip span{font-size:10px}.cover-sheet .cover-notes{grid-template-columns:1fr 1fr;gap:18px}.cover-sheet .cover-meta{gap:20px}.cover-sheet .cover-meta .eyebrow{font-size:9px}.live-control{display:none!important}.live-field .live-copy{display:block}.comparison tr{break-inside:avoid}.report-footer,.price-strip,.agent-line{break-inside:avoid}.comparison thead{display:table-header-group}.comparison tfoot{display:table-row-group}.photo-placeholder{height:100%}.grid-scroll{overflow:visible}}
.grid-sheet .report-header{padding:15px 18px;min-height:76px}.grid-sheet .report-body{padding:14px 18px}.grid-sheet .comparison th,.grid-sheet .comparison td{padding:4px 5px}.grid-sheet .comparison .photo{height:48px}.grid-sheet .report-footer{margin-top:10px;padding-top:8px}.grid-sheet .grid-note{margin-top:8px}.grid-sheet .comparison .adjusted-row th,.grid-sheet .comparison .adjusted-row td{padding:8px 5px}

/* Private worksheets and image picker use the same Proforma-style controls. */
#calculator-dialog{width:min(1040px,94vw);max-height:92vh;overflow:auto}
#calculator-tabs{margin:16px 0 20px;gap:8px}
#calculator-body>.muted{line-height:1.6;margin:18px 0}
.calc-subject{background:#f4f6f8;padding:20px;border-radius:8px;margin:18px 0}
.calc-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.calc-card{padding:18px;border:1px solid #dce2e7;border-radius:8px;min-width:0}
.calc-card>label{margin-top:12px}.calc-card h3{margin:0}.calc-card .muted{min-height:34px}
.calc-check{display:flex;align-items:center;gap:8px}.calc-check input{width:auto}
.calc-card output{display:block;padding-top:15px;font-size:13px;line-height:1.5}
.calc-card output strong{display:block;font-size:23px;color:#016fd1}.calc-card output small{display:block;margin-top:6px}
.calc-errors{color:#a63131;line-height:1.5;font-size:13px}
.calc-table-scroll{overflow-x:auto;margin:24px 0}.calc-table{width:100%;min-width:650px;border-collapse:collapse;font-size:13px;table-layout:fixed}
.calc-table th,.calc-table td{border:1px solid #dce2e7;padding:8px;vertical-align:middle}
.calc-table th{width:28%;text-align:left;background:#f4f6f8}.calc-table thead th{background:#0c1319;color:white}
.calc-table small{display:block;font-weight:normal;font-size:11px;margin-top:5px;line-height:1.4}
.calc-table input{width:100%;min-width:0;text-align:right;padding:8px}.calc-table td{text-align:right}
.calc-table caption{text-align:left;font-size:18px;font-weight:bold;margin-bottom:10px}
.calc-table .calc-total td,.calc-table tfoot td{background:#edf5fc;font-weight:bold;color:#075da7}
#photo-dialog{width:min(580px,94vw)}#photo-paste-zone{margin:20px 0;padding:24px;border:2px dashed #aebecd;border-radius:8px;background:#f4f6f8;text-align:center;outline-offset:4px}
#photo-paste-zone:focus{border-color:#016fd1;outline:2px solid #016fd1}
#photo-paste-zone p{font-size:13px;line-height:1.6;color:#536576}#photo-preview{display:block;width:100%;max-height:280px;object-fit:contain;margin-top:14px}#photo-preview[hidden]{display:none}
#photo-status{font-size:14px;line-height:1.5}#photo-upload[hidden]{display:none}
.setup-paper{max-width:900px;margin:24px auto}.setup-paper>.muted{margin:16px 0 24px}.setup-paper .fields{gap:20px}
.setup-paper .live-control{border:1px solid #cdd6df;background:#fff;border-radius:5px;padding:11px;min-height:42px;font-size:15px;width:100%;font-weight:400}
.setup-paper .live-field{display:block;margin-top:8px}.setup-paper .live-copy{display:none}.setup-photo{max-width:390px;margin:24px 0}.setup-photo .photo{height:220px}
.prepared-client{font-size:12px;color:#536576;margin:0 0 7px}.preview-help{flex-wrap:wrap;gap:12px}.preview-help .actions{flex-wrap:wrap}
@media(max-width:700px){.calc-cards{grid-template-columns:1fr}.calc-subject.fields{grid-template-columns:1fr}.setup-paper .fields{grid-template-columns:1fr}}
@media print{.prepared-client{font-size:10px}#calculator-dialog,#photo-dialog{display:none!important}}

#calculator-dialog,#photo-dialog{padding:0 24px 24px}#calculator-dialog .dialog-head,#photo-dialog .dialog-head{margin:0 -24px 20px}.setup-paper .live-field:has(.live-copy):not(:has(.live-control)) .live-copy{display:block;padding:10px}.calc-table thead small{color:#c8d5e1}.calc-check input{min-height:20px;margin:0}.calc-errors:empty{display:none}

.comparison-tools{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px;padding:10px 12px;background:#f4f6f8;border:1px solid #dce2e7;border-radius:4px}.comparison-tools button{min-height:34px;padding:6px 13px;font-size:12px;color:#0164b5;border-color:#bad0e3}
.cost-table th input{text-align:left;font-weight:400}

.cover-sheet .hero-details{padding-top:12px}
.cover-sheet .facts{margin-top:12px}
.cover-sheet .price-strip{margin:12px 0}
.cover-sheet .cover-notes{margin-top:9px}
.cover-sheet .report-footer{margin-top:10px}
.cover-sheet .agent-line{grid-template-columns:1fr 1.15fr 1fr 1.65fr;gap:5px 12px;font-size:10px}
@media screen and (max-width:650px){body:not(.print-measure) .cover-sheet .agent-line{grid-template-columns:1fr 1fr}}

/* Galt cost form: description, cost new, depreciated cost. */
.cost-property{margin:12px 0!important}.galt-cost-scroll{overflow-x:auto;margin:14px 0}.galt-cost-grid{border-collapse:collapse;table-layout:fixed;width:100%;min-width:690px;border:1px solid #8f9ba5;font-size:13px;line-height:1.25;background:#fff}.galt-cost-grid col.cost-description{width:54%}.galt-cost-grid th,.galt-cost-grid td{padding:6px 8px;border:1px solid #b9c3cc;text-align:left;vertical-align:middle;font-weight:400}.galt-cost-grid .cost-grid-title{background:#e9eef2;text-align:center;font-size:20px;font-weight:700;letter-spacing:1px;padding:10px}.galt-cost-grid .cost-column-heads th{background:#f4f6f8;font-size:12px;font-weight:600;white-space:nowrap}.galt-cost-grid input{min-height:28px;height:28px;padding:3px 5px;margin:0;border:0;border-bottom:1px solid #a8b7c3;border-radius:0;background:#f7fafd;font-size:13px;font-weight:400;min-width:0}.galt-cost-grid input:focus{background:#e9f3ff}.galt-cost-grid input[readonly]{background:transparent;color:#526270}.galt-cost-grid input::placeholder{color:#7b8995;opacity:1}.cost-money{display:flex;align-items:center;gap:5px;min-height:28px}.cost-money input{text-align:right;flex:1;width:0}.cost-money output{display:block;text-align:right;flex:1;border-bottom:1px solid #a8b7c3;min-height:25px;padding:4px 2px;font-variant-numeric:tabular-nums}.cost-component{display:flex;gap:7px;align-items:center}.cost-component span{white-space:nowrap}.cost-component input{flex:1;width:0}.cost-building-inline{display:flex;align-items:center;gap:6px}.cost-building-inline span{white-space:nowrap}.cost-building-inline input{flex:1;width:0;text-align:right}.cost-depreciation{display:flex;align-items:center;gap:5px}.cost-depreciation input{width:54px;margin-left:auto;text-align:right}.cost-source{display:flex;align-items:center;justify-content:space-between;gap:10px}.cost-source label{display:flex;align-items:center;gap:5px;font-size:12px;color:#0c1319;white-space:nowrap}.cost-source input{width:16px;height:16px;min-height:16px;margin:0}.galt-cost-grid .cost-rule th,.galt-cost-grid .cost-rule td{border-top:2px solid #8595a1}.galt-cost-grid tfoot th,.galt-cost-grid tfoot td{padding-top:16px;padding-bottom:12px;font-weight:700;background:#f0f5fa}.cost-grid-options{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.cost-grid-options small{font-size:11px}

/* Keep the subject photo beside the property facts on the A4 cover. */
.cover-sheet .cover-hero{display:grid;grid-template-columns:1.08fr 1fr;gap:22px;align-items:start;margin:0 0 20px}
.cover-sheet .cover-hero>.report-photo{min-width:0;width:100%;margin:0}
.cover-sheet .cover-hero .photo{height:280px;background:#f4f6f8}
.cover-sheet .cover-hero .photo img{object-fit:contain;object-position:center}
.cover-sheet .cover-hero .hero-details{min-width:0;padding:0}
.cover-sheet .cover-hero .hero-details h3{font-size:25px;line-height:1.15;margin:5px 0}
.cover-sheet .cover-hero .facts{grid-template-columns:1fr 1fr;gap:14px 12px;margin-top:18px}
.cover-sheet .cover-hero .facts strong{font-size:12px;line-height:1.4}
.cover-sheet .cover-hero .prepared-client{margin-bottom:10px}
@media screen and (max-width:650px){body:not(.print-measure) .cover-sheet .cover-hero{grid-template-columns:1fr;gap:18px}body:not(.print-measure) .cover-sheet .cover-hero .photo{height:270px}}

/* Reserve the cover's remaining space for the agent's analysis. */
.cover-sheet{display:flex;flex-direction:column;min-height:276mm}
.cover-sheet>.report-body{display:flex;flex-direction:column;flex:1}
.cover-sheet>.report-body>*{flex-shrink:0}
.cover-sheet .recommendation{background:#f4f8fc;border:1px solid #d5e1eb;border-left:3px solid var(--blue);padding:12px 14px;margin:0}
.cover-sheet .recommendation h3{font-size:22px;line-height:1.25;margin:5px 0 12px}
.cover-sheet .cover-writeup h4{font-size:10px;color:#405c72;font-weight:600;margin:0 0 6px;line-height:1.4}
.cover-sheet .cover-writeup{font-size:11px;line-height:1.5;min-width:0}
.cover-sheet .recommendation .cover-writeup .live-control,.cover-sheet .recommendation .cover-writeup .live-copy{min-height:90px}
.cover-sheet .cover-notes{grid-template-columns:1.6fr 1fr;gap:14px;margin:12px 0 0;border:0;padding:0}
.cover-sheet .cover-notes>.cover-writeup{border:1px solid #d5e1eb;padding:10px 12px}
.cover-sheet .cover-notes .live-control,.cover-sheet .cover-notes .live-copy{min-height:80px}
.cover-sheet .cover-writeup .live-control{padding:3px 0;border-bottom:1px dotted #a8bccd;line-height:1.5}
.cover-sheet .cover-writeup .live-copy{padding:3px 0}
.cover-sheet .cover-signoff{margin-top:auto;padding-top:16px}
.cover-sheet .agent-line{margin-top:0}
.cover-sheet .report-footer{margin-top:12px}
.print-measure .cover-sheet{min-height:276mm}
@media print{.cover-sheet{min-height:276mm}.cover-sheet .recommendation,.cover-sheet .cover-notes,.cover-sheet .cover-signoff{break-inside:avoid}}
@media screen and (max-width:650px){body:not(.print-measure) .cover-sheet{min-height:0}body:not(.print-measure) .cover-sheet .cover-notes{grid-template-columns:1fr}}

.remember-device{display:flex!important;align-items:center;gap:10px;font-weight:400;margin:16px 0}.remember-device input{width:18px!important;height:18px;flex:none;margin:0}

/* Single-line sales grid with dedicated description and adjustment columns. */
.grid-sheet>.report-body{padding-left:12px;padding-right:12px}
.rps-grid{font-size:12px;line-height:1.3}
.rps-grid col.feature{width:17%}.rps-grid col.subject{width:17%}.rps-grid col.sale-description{width:14%}.rps-grid col.sale-adjustment{width:8%}
.grid-sheet .rps-grid th,.grid-sheet .rps-grid td{padding:4px 3px;border:1px solid #bdccda;vertical-align:middle}
.rps-grid tbody th,.rps-grid tfoot th{font-size:11px;line-height:1.3;color:#354c60;white-space:nowrap}
.rps-grid .property-heading th{vertical-align:top;border-top:0;border-bottom:0;background:white}
.rps-grid .property-heading th:first-child{border-left:0}
.rps-grid .grid-subheads th{background:#e5f0fa;font-size:9px;font-weight:600;text-align:center;white-space:nowrap;padding:5px 2px}
.rps-grid tbody .subject-cell,.rps-grid thead .subject-cell{background:#edf5fc;border-left:2px solid var(--blue)}
.rps-grid tbody .description-cell{background:#f7fafc}
.rps-grid .single-line,.rps-grid .single-line .live-copy{white-space:nowrap;overflow-wrap:normal;line-height:1.3;min-width:0}
.rps-grid .single-line .live-copy{overflow:visible}
.rps-grid .single-line .live-control{height:1.6em;line-height:1.3;padding:1px 0;white-space:nowrap;min-width:0}
.rps-grid .adjust,.rps-grid .adjust .adjust{margin:0;font-size:11.5px;line-height:1.3;min-width:0}
.rps-grid .adjustment-cell{padding-left:2px;padding-right:2px;text-align:right}
.rps-grid .mls-inline{display:grid;grid-template-columns:minmax(0,1fr) auto 3ch;align-items:center;gap:3px}
.rps-grid .grid-mls .grid-value{font-size:11px}
.rps-grid .total-row td{font-size:12px}.rps-grid .adjusted-row td{font-size:16px}
.rps-grid .adjusted-row th{color:white;font-weight:600}
.rps-grid .total-row th,.rps-grid .adjusted-row th{white-space:nowrap}
.rps-grid .address{font-size:12px}.rps-grid .locality{font-size:9px}
.rps-grid .grid-overflow .live-control{background:#fff0da;outline:1px solid #bc7216}
@media print{.rps-grid .grid-overflow .live-copy{color:#8b2921}.grid-sheet>.report-body{padding-left:12px;padding-right:12px}}

.agent-card{display:flex;align-items:center;gap:14px}.agent-card-details{flex:1;min-width:0}.agent-headshot{position:relative;flex:0 0 64px;width:64px}.agent-headshot img{width:64px;height:72px;display:block;object-fit:contain;background:#f3f6f8;border:1px solid #d5e1eb}.headshot-placeholder{display:grid;place-content:center;text-align:center;background:#edf3f8;border:1px dashed #9eb5c7;color:#526270;min-height:72px;font-size:10px}.agent-headshot button{font-size:8px;min-height:20px;line-height:1;padding:3px;width:100%;margin-top:3px}.agent-headshot .headshot-remove{color:#8b2921}.cover-sheet .agent-card.with-headshot .agent-line{grid-template-columns:1fr 1.5fr;gap:5px 16px}.cover-sheet .agent-card:not(.with-headshot) .agent-headshot{flex-basis:64px}.cover-sheet .agent-card .agent-line{font-size:10px}.cover-sheet .cover-signoff{padding-top:10px}.cover-sheet .cover-signoff .report-footer{margin-top:8px;padding-top:7px}.use-profile-photo{font-size:9px;min-height:24px;padding:4px 7px;margin-top:7px}.profile-headshot-section{display:flex;align-items:center;gap:24px;margin:0 0 24px}.profile-headshot-section h3{margin-bottom:7px}.profile-headshot-section .actions{margin:12px 0}.profile-headshot-section>div:first-child{width:100px;flex:0 0 100px}.profile-headshot-section img{display:block;width:100px;height:125px;object-fit:contain;background:#f3f6f8;border:1px solid #d5e1eb}.profile-headshot-section .headshot-placeholder{height:125px}.report-footer p{max-width:100%}@media(max-width:650px){.profile-headshot-section{align-items:start;gap:14px}.cover-sheet .agent-card .agent-line{grid-template-columns:1fr 1fr}}

/* One uninterrupted subject divider, drawn above the horizontal cell rules. */
.grid-scroll:has(>.rps-grid){position:relative}.grid-scroll:has(>.rps-grid)::after{content:"";position:absolute;left:17%;top:0;bottom:0;width:2px;background:var(--blue);z-index:2;pointer-events:none}.rps-grid tbody .subject-cell,.rps-grid thead .subject-cell{border-left:1px solid #bdccda}

.cover-sheet>.report-body{padding-top:14px;padding-bottom:14px}.cover-sheet .cover-hero{margin-bottom:12px}.cover-sheet .price-strip{margin-top:8px;margin-bottom:8px}.cover-sheet .price-strip>div{padding-top:10px;padding-bottom:10px}
