:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172640;background:#f3f6fb;font-synthesis:none;--blue:#2563eb;--border:#d7e0ec;--muted:#637797}*{box-sizing:border-box}body{margin:0}header{height:76px;background:#fff;border-bottom:1px solid var(--border);padding:0 4.5%;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:14px;font-size:23px;font-weight:750;color:inherit;text-decoration:none}.mark{display:grid;place-items:center;background:var(--blue);color:white;width:38px;height:38px;border-radius:7px;font-size:25px}.header-actions{display:flex;gap:16px;align-items:center}button,select,input,textarea{font:inherit}button{border:1px solid var(--border);background:#fff;color:#172640;padding:10px 17px;border-radius:6px;font-weight:600;cursor:pointer}button:hover{background:#edf3ff;border-color:#a2b9e5}button:disabled{opacity:.55;cursor:wait}button.primary{background:var(--blue);color:white;border-color:var(--blue)}button.primary:hover{background:#1c50ce}button.link{border:0;color:var(--blue);background:transparent;padding:6px 0}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #86adff;outline-offset:2px}main{max-width:1440px;margin:auto;padding:34px 4.5% 50px}h1{font-size:36px;letter-spacing:-1px;margin:0 0 8px}h2{font-size:20px;margin:0 0 23px}h3{font-size:17px;margin:0 0 16px}p{line-height:1.6}.subtitle,.muted,small{color:var(--muted)}.subtitle{margin:0 0 28px}.search-layout{margin:44px auto 0;max-width:1150px;display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:32px;background:#fff;padding:32px;border:1px solid var(--border);border-radius:8px}.card{background:#fff;border:1px solid var(--border);border-radius:8px;padding:24px;min-width:0}.soft{background:#f7f9fd}.stack{display:grid;align-content:start;gap:18px}.editor-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:18px}.field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.field-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.field{display:grid;gap:7px;align-content:start;min-width:0}.field.wide{grid-column:1/-1}label{font-size:13px;font-weight:600;color:#425877}input:not([type=checkbox]),select,textarea{width:100%;border:1px solid #cad6e5;background:#fff;border-radius:5px;padding:11px 12px;color:#172640;min-width:0}textarea{min-height:90px;resize:vertical}input::placeholder,textarea::placeholder{color:#899ab2}small{font-size:12px;line-height:1.5}.checks{display:flex;flex-wrap:wrap;gap:16px;margin:18px 0}.check{display:flex;gap:8px;align-items:center;font-size:13px}input[type=checkbox]{accent-color:var(--blue);height:17px;width:17px}details{border-top:1px solid var(--border);padding:14px 0}summary{cursor:pointer;font-weight:600;font-size:14px}.details-content{padding-top:18px}.search-input{font-size:19px!important;border:2px solid var(--blue)!important}.results{border:1px solid var(--border);border-radius:6px;overflow:hidden;margin-top:10px}.result{display:flex;justify-content:space-between;gap:10px;text-align:left;border:0;border-bottom:1px solid var(--border);border-radius:0;width:100%;padding:19px}.result:last-child{border:0}.result.active{background:#edf3ff;color:#1e4caa}.result strong{display:block;margin-bottom:5px}.result small{font-weight:400}.search-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:18px}.defaults-row{padding:12px 0;border-bottom:1px solid #e3e9f2}.defaults-row strong{display:block}.default-terms{font-size:14px}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:space-between;margin:24px 0 0}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.tabs{display:flex;gap:4px;background:#fff;padding:5px;border:1px solid var(--border);border-radius:7px;margin:25px 0 18px;overflow:auto}.tabs button{border:0;flex:1;white-space:nowrap;padding:12px 8px;font-size:14px}.tabs button.active{background:var(--blue);color:#fff}.notice{color:#8a6020;background:#fff7e3;border:1px solid #f0d99e;padding:14px;border-radius:6px;font-size:13px;line-height:1.5}.review{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,2.7fr);gap:22px}.pdf{width:100%;height:780px;border:1px solid var(--border);border-radius:7px;background:#e7edf5}.summary-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0}.summary-row span{color:var(--muted)}.history{display:grid;gap:9px}.history button{text-align:left;font-size:13px}.document-item{padding:12px 0;border-bottom:1px solid var(--border);font-size:13px}#status{position:fixed;bottom:22px;right:22px;z-index:20;padding:13px 20px;border-radius:7px;background:#15253e;color:#fff;box-shadow:0 3px 14px #17264025;max-width:440px;display:none}#status.error{background:#a12535}dialog{border:1px solid var(--border);border-radius:10px;width:min(960px,94vw);padding:0;max-height:90vh;color:#172640}dialog::backdrop{background:#17264077}.dialog-head{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--border);padding:20px 26px;display:flex;justify-content:space-between;align-items:center;z-index:2}.dialog-head h2{margin:0}.dialog-content{padding:24px 26px}.dialog-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--border);padding:17px 26px;display:flex;justify-content:space-between;gap:12px}.profile-group{margin:15px 0}.empty{color:var(--muted);padding:20px}.loading{color:var(--muted)}.dirty{font-size:13px;color:#8a6020}.manual{margin-top:20px}.field-search{margin-bottom:16px}.title-row{display:flex;justify-content:space-between;align-items:start;gap:14px}.profile-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.download{display:block;text-align:center;padding:12px 16px;border-radius:6px;background:#2563eb;color:white;text-decoration:none;font-weight:600}[hidden]{display:none!important}

.pdf-pages{min-width:0;background:#e7edf5;padding:18px;border:1px solid var(--border);border-radius:7px}.page-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px;font-size:13px}.pdf-page{display:block;width:100%;height:auto;box-shadow:0 2px 10px #17264018;background:white}

.history{max-height:360px;overflow:auto;padding-right:4px}

/* Offer editor: primary terms and a compact packet rail. */
.editor-screen{padding-top:24px;padding-bottom:110px;max-width:1440px}
.editor-screen .title-row{align-items:center;margin-bottom:22px}
.editor-screen .title-row h1{font-size:30px;letter-spacing:-.8px;margin:6px 0}
.editor-screen .subtitle{font-size:14px;margin:0}
.editor-screen .title-row>.link{font-size:13px}
.editor-screen .tabs{margin:0 0 18px;background:#f8faff}
.editor-screen .tabs button{padding:10px 8px}
.editor-screen .editor-layout{grid-template-columns:minmax(0,2.15fr) minmax(300px,1fr);gap:18px}
.editor-screen .stack{gap:16px}
.editor-screen .card{padding:20px;border-radius:9px;box-shadow:0 2px 4px #17264003}
.editor-screen h2{font-size:19px;margin-bottom:18px;letter-spacing:-.3px}
.editor-screen .field-grid{gap:18px 16px}
.editor-screen input:not([type=checkbox]),.editor-screen select{height:42px;padding:9px 11px;font-size:14px}
.editor-screen textarea{min-height:66px;font-size:14px;line-height:1.5;padding:10px 11px}
.editor-screen label{font-size:12px}
.editor-screen .field{gap:6px}
.editor-screen .checks{margin:18px 0 16px}
.editor-screen .check{font-size:13px;color:#344763;font-weight:500}
.editor-screen details{padding:13px 0}
.editor-screen details:last-child{padding-bottom:0}
.editor-screen summary{font-size:13px;color:#425877}
.editor-screen .details-content{padding-top:16px}
.editor-screen .escalation summary{color:var(--blue)}
.input-unit{position:relative}.input-unit input{padding-right:54px!important}.input-unit span{position:absolute;right:12px;top:13px;font-size:12px;color:var(--muted);pointer-events:none}
.deadline{position:relative;min-width:0}.deadline>.date-toggle{position:absolute;right:0;top:-2px;font-size:11px;padding:0;line-height:18px}.deadline>[data-date-field]{margin-top:12px}
.parties #contract-details{margin-top:18px}.parties .field small{color:#9b742a}
.card-description{font-size:13px;margin:-9px 0 18px}
.included-document{display:flex;align-items:center;gap:10px;padding:13px 0 18px;margin-bottom:17px;border-bottom:1px solid var(--border);font-size:13px}
.included-document small{display:block;font-size:11px;margin-top:4px}.document-icon{display:grid;place-items:center;width:34px;height:38px;border-radius:6px;color:var(--blue);background:#eef4ff;font-size:22px}.included-check{margin-left:auto;color:var(--blue);font-size:19px}
.packet-options{display:grid;gap:15px;margin-top:20px}.option-note{margin:-11px 0 1px 29px;font-size:11px}.inline-warning{background:#fff9eb;border:1px solid #f0dfb9;border-radius:6px;padding:11px 12px;color:#8e692b;font-size:12px;line-height:1.5;margin:20px 0 0}
.compact-summary{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin:13px 0}.compact-summary span{color:var(--muted)}.compact-summary strong{text-align:right;font-weight:600}.agent-title details{margin-top:18px}.agent-title summary{color:var(--blue)}
.editor-screen .saved-pdfs details{padding:0;border:0}.saved-pdfs summary{font-size:16px;font-weight:650;color:#172640}.count{float:right;background:#eef3fb;color:var(--muted);border-radius:12px;padding:2px 8px;font-size:12px}
.editor-screen .clauses h2{margin-bottom:10px}.clauses details:first-of-type{border-top:0}
.editor-screen .property-editor{margin-bottom:18px}.source-note{font-size:12px;margin:16px 0 0}
.editor-actions{position:fixed;bottom:0;left:0;right:0;z-index:10;background:#fff;border-top:1px solid var(--border);padding:16px 4.5%;margin:0;box-shadow:0 -4px 16px #17264006;min-height:76px}
.editor-actions #draft-status{font-size:12px}.editor-actions #draft-status:before{content:'●';margin-right:8px;color:#b1bdcf}.editor-actions #draft-status.dirty:before{color:#bd8a31}.editor-actions button{font-size:13px;min-height:42px}.editor-screen~#status{bottom:90px}






/* Shared controls and interaction polish. */
header{height:72px;padding:0 max(4.5%,24px);box-shadow:0 1px 8px #17264003}
body:has(.editor-screen) header{height:72px}
.brand{gap:12px;font-size:21px}.brand-copy{display:grid;gap:3px}.brand-copy strong{font-size:20px;letter-spacing:-.5px}.brand-copy small{font-size:10px;font-weight:500;letter-spacing:.5px;color:#71829b}.mark{width:36px;height:36px;font-size:24px;border-radius:9px;box-shadow:0 3px 7px #2563eb20}
.header-actions{gap:12px}.header-actions .select-control{width:250px}.preferences-button{display:flex;align-items:center;gap:8px;font-size:13px;border-color:transparent;background:transparent;min-height:42px}.settings-symbol{font-size:18px;color:var(--muted)}
.select-control{position:relative;min-width:0;width:100%}.select-control select{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;padding:0!important;border:0!important}
.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:18px;text-align:left;min-height:42px;width:100%;padding:10px 14px;font-size:14px;font-weight:400;background:#fff;border:1px solid #cad6e5;transition:border-color 160ms,box-shadow 160ms,background 160ms}
.select-trigger:hover{border-color:#a2b9dd;background:#fbfcff}.select-trigger[aria-expanded=true]{border-color:var(--blue);box-shadow:0 0 0 3px #2563eb12}.select-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.chevron{width:7px;height:7px;border-right:1.7px solid #71829b;border-bottom:1.7px solid #71829b;transform:rotate(45deg);flex:none;margin:0 3px 4px 0;transition:transform 200ms}.select-trigger[aria-expanded=true] .chevron{transform:rotate(225deg);margin-bottom:-2px}
.select-menu{position:fixed;inset:auto;margin:0;padding:6px;background:#fff;border:1px solid #dbe3ef;border-radius:9px;box-shadow:0 12px 32px #152b4925;overflow-y:auto;overscroll-behavior:contain;color:#172640;font-family:inherit;animation:menu-in 160ms ease-out}
.select-option{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border-radius:5px;font-size:14px;cursor:pointer;line-height:1.4}.select-option.selected{color:#2056c5;font-weight:600;background:#f1f6ff}.select-option.highlighted{background:#eaf2ff}.select-option[aria-disabled=true]{opacity:.5;cursor:default}.option-check{color:var(--blue);min-width:15px}
summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:24px;border-radius:4px;transition:color 160ms,background 160ms}summary::-webkit-details-marker{display:none}summary::after{content:'';width:7px;height:7px;border-right:1.7px solid #7789a4;border-bottom:1.7px solid #7789a4;transform:rotate(45deg);margin:0 4px 4px auto;flex:none;transition:transform 220ms cubic-bezier(.2,.7,.2,1)}details[open]>summary::after,details[data-expanding=true]>summary::after{transform:rotate(225deg);margin-bottom:-2px}details[data-expanding=false]>summary::after{transform:rotate(45deg);margin-bottom:4px}summary:hover{color:var(--blue)}details[open]>summary{color:#2457b4}.count{float:none;margin-left:auto}summary:has(.count)::after{margin-left:4px}
button{transition:background 150ms,border-color 150ms,box-shadow 150ms}button:active:not(:disabled){background:#e6eefc}button.primary:active:not(:disabled){background:#1645b6}button[aria-busy=true]{display:inline-flex;align-items:center;justify-content:center;gap:9px;opacity:.8}
.spinner{display:block;width:56px;height:56px;border:3px solid #e0eaff;border-top-color:var(--blue);border-right-color:var(--blue);border-radius:50%;animation:spin 900ms linear infinite;flex:none}.small-spinner{width:15px;height:15px;border-width:2px;display:inline-block}.primary .small-spinner{border-color:#ffffff50;border-top-color:#fff;border-right-color:#fff}
.working-dialog{width:min(420px,calc(100vw - 40px));padding:34px 32px 24px;text-align:center;border:1px solid #e1e8f2;border-radius:14px;box-shadow:0 22px 70px #142b4130;animation:dialog-in 180ms ease-out}.working-dialog::backdrop{background:#17264060;backdrop-filter:blur(3px)}.working-graphic{width:78px;height:78px;margin:0 auto 22px;display:grid;place-items:center;position:relative;background:#f3f7ff;border-radius:20px}.working-graphic .spinner{position:absolute;width:66px;height:66px}.paper-symbol{font-size:28px;color:var(--blue)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#617b9e;margin:0 0 11px}.working-dialog h2{font-size:22px;letter-spacing:-.5px;margin:0 0 12px}.working-dialog #working-description{font-size:14px;color:var(--muted);line-height:1.7;margin:0 0 20px}.working-property{font-size:12px;color:#4c6484;background:#f3f6fb;border-radius:6px;padding:12px;overflow-wrap:anywhere}.working-note{font-size:12px;color:#7486a0;margin:18px 0 0}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes dialog-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}

/* Property search has one continuous selection surface. */
.search-screen{max-width:1280px;padding-top:46px}.search-heading{margin-bottom:28px}.search-heading h1{font-size:32px;letter-spacing:-.8px}.search-heading .subtitle{font-size:15px;margin:10px 0 0}.property-picker{display:grid;grid-template-columns:minmax(0,1fr) 310px;background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden;box-shadow:0 5px 18px #17264004}.picker-main{padding:30px 32px}.picker-label{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.picker-label label{font-size:13px;color:#344b6c}.source-badge{font-size:10px;font-weight:600;color:#55749d;background:#f0f5fc;border:1px solid #e4ebf6;border-radius:20px;padding:5px 9px;white-space:nowrap}.search-control{position:relative;display:flex;align-items:center;background:#f9fbff;border:1px solid #bfcfe5;border-radius:8px;transition:box-shadow 160ms,border-color 160ms}.search-control:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px #2563eb12}.search-control input{border:0!important;background:transparent;outline:none!important;font-size:16px;padding:17px 44px 17px 44px;height:56px;border-radius:8px}.search-control input::-webkit-search-cancel-button{display:none}.search-symbol{position:absolute;left:17px;top:18px;width:15px;height:15px;border:1.8px solid #7a8da9;border-radius:50%;pointer-events:none}.search-symbol:after{content:'';position:absolute;width:7px;height:1.8px;background:#7a8da9;right:-5px;bottom:-3px;transform:rotate(45deg)}.clear-search{position:absolute;right:9px;padding:4px;width:30px;height:30px;border:0;background:transparent;color:#7890b0;font-size:22px;font-weight:400;line-height:1}.search-help{font-size:12px;line-height:1.6;color:#70849f;margin:12px 0 22px}.search-empty{min-height:215px;padding:40px 20px;text-align:center;background:#fbfcfe;border:1px dashed #dfe6f0;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.search-empty strong{font-size:14px;font-weight:600;color:#4f6686}.search-empty p{font-size:12px;color:#788ba5;max-width:340px;line-height:1.6;margin:0}.empty-house{width:42px;height:42px;display:grid;place-items:center;background:#eef3fc;color:#7895c1;border-radius:10px;font-size:30px;margin-bottom:3px}.search-loading{min-height:215px;display:flex;align-items:center;justify-content:center;gap:10px;color:#70849f;font-size:13px}.result-heading{display:flex;justify-content:space-between;gap:12px;color:#7186a2;font-size:11px;margin:0 0 10px}.result-heading span:last-child{color:#91a0b6}.picker-main .results{border:1px solid #e0e7f1;border-radius:8px;margin-top:0}.picker-main .result{padding:17px 16px;align-items:center;gap:14px;transition:background 150ms}.picker-main .result:hover,.picker-main .result:focus-visible{background:#f3f7fe}.result-marker{width:34px;height:38px;display:grid;place-items:center;background:#f2f6fc;color:#6f8bb3;border-radius:6px;font-size:26px;flex:none}.result-address{flex:1;min-width:0}.result-address strong{font-size:14px;letter-spacing:-.1px;overflow-wrap:anywhere}.result-address small{font-size:11px}.result-price{font-size:13px;white-space:nowrap;color:#39516f}.result-arrow{color:#829ac0;font-size:18px;flex:none}.manual-entry{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #edf1f7;margin-top:24px;padding-top:19px;font-size:12px;color:#788ba4}.manual-entry button{font-size:12px;white-space:nowrap}.picker-defaults{background:#f8faff;border-left:1px solid #e2e9f3;padding:30px 26px}.defaults-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.defaults-heading .eyebrow{margin:0;font-size:9px;letter-spacing:1.3px}.defaults-heading button{font-size:12px;padding:0}.picker-defaults h2{font-size:18px;line-height:1.45;letter-spacing:-.3px;margin:0 0 22px}.picker-defaults .defaults-row{padding:0 0 20px}.picker-defaults .defaults-row small{display:block;margin-bottom:6px;font-size:11px}.picker-defaults .defaults-row strong{font-size:13px;font-weight:600}.default-metrics{display:grid;grid-template-columns:1fr 1fr;gap:22px 18px;padding:23px 0}.default-metrics strong{display:block;font-size:23px;letter-spacing:-.5px;font-weight:650;margin-bottom:4px}.default-metrics span{font-size:11px;color:#6a809f}.defaults-note{font-size:12px;line-height:1.7;color:#778aa4;border-top:1px solid #e3eaf4;padding-top:18px;margin:0}
