:root{color-scheme:light;--bg:#faf9f6;--page-bg:#fffefd;--white:#fff;--navy:#203653;--gold:#aa9563;--ink:#263244;--muted:#81858b;--border:#e8e6e1;--soft:#f1f0ec;--error:#9e4540;--ease:cubic-bezier(.16,1,.3,1);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--page-bg);color:var(--ink);font-size:calc(14px + 2pt);line-height:1.6;min-height:100svh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}button{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:4px}input:focus,textarea:focus,select:focus{outline:none}button{transition:background .18s ease-out,transform .18s ease-out,box-shadow .18s ease-out}svg{width:21px;height:21px;flex-shrink:0}a{color:inherit}.topbar{background:var(--bg);height:102px;padding:0 46px;display:flex;align-items:center;gap:23px}.wordmark{background:none;border:0;padding:0;color:var(--navy);display:flex;flex-direction:column;align-items:center;font-weight:500;font-size:calc(20.4px + 2.4pt + var(--home-font-step,0px));letter-spacing:3.6px;line-height:1.3}.wordmark-sub{font-size:calc(10.8px + 2.4pt + var(--home-font-step,0px));letter-spacing:5.76px;position:relative;margin-top:3px}.wordmark-sub:before,.wordmark-sub:after{content:'';position:absolute;height:1px;width:42px;background:var(--gold);top:50%}.wordmark-sub:before{right:calc(100% + 9px)}.wordmark-sub:after{left:calc(100% + 5px)}.header-divider{height:31.2px;width:1px;background:#dfded7}.product-name{font-size:calc(14.4px + 2.4pt + var(--home-font-step,0px));color:#777b82}.beta{font-size:calc(9.6px + 2.4pt + var(--home-font-step,0px));font-weight:600;letter-spacing:.9px;padding:3px 6px;border:1px solid #dcd4c2;border-radius:5px;margin-left:7px;color:#948057}.topbar nav{margin-left:auto;display:flex;align-items:center;gap:15px}.text-button{background:none;border:0;padding:7px 0;color:var(--navy);font-size:calc(12px + 2pt + var(--home-font-step,0px))}.text-button:hover{color:#ab8d49}.new-case{display:none}.has-case .new-case{display:inline-flex;gap:7px;align-items:center}.icon-button{border:1px solid transparent;background:transparent;border-radius:10px;display:grid;place-items:center;width:37px;height:37px;font-size:calc(25px + 2pt + var(--home-font-step,0px));color:#777c84}.icon-button:hover{background:var(--soft);color:var(--navy)}.main{max-width:780px;padding:0 24px;margin:0 auto;min-height:calc(100svh - 172px);display:flex;flex-direction:column;justify-content:center;padding-bottom:65px;transition:padding .35s var(--ease)}.welcome{text-align:center;margin:0 0 32px;animation:arrive .65s var(--ease) both}.welcome-symbol{margin:0 auto 21px;color:var(--gold);width:34px;height:34px}.welcome-symbol svg{width:100%;height:100%}.eyebrow{font-size:calc(9px + 2pt + var(--home-font-step,0px));font-weight:500;letter-spacing:1.8px;color:var(--gold);margin:0 0 16px}h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(32px,4.8vw,49px);font-weight:400;letter-spacing:-1.65px;line-height:1.2;color:var(--navy);margin:0}h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;color:var(--navy);font-size:calc(27px + 2pt);margin:0;line-height:1.25}.welcome-copy{color:#81838a;font-size:calc(14px + 2pt + var(--home-font-step,0px));font-weight:400;margin:15px 0 0;line-height:1.8}.mobile-break{display:none}.prompt-area{width:100%;animation:arrive .75s .08s var(--ease) both}.composer{background:var(--white);border:1px solid #e1dfd8;border-radius:22px;padding:18px 19px 13px;box-shadow:0 4px 8px #20365303,0 16px 40px -24px #20365324;transition:border-color .2s ease-out,box-shadow .2s ease-out}.composer:focus-within{border-color:#b7b4a7;box-shadow:0 0 0 3px #aa956309,0 14px 35px -25px #20365338}.composer>textarea{width:100%;border:0;background:transparent;resize:none;color:var(--ink);padding:3px 5px 10px;line-height:1.8;font-size:calc(15px + 2pt + var(--home-font-step,0px));min-height:83px;max-height:200px;display:block}.composer>textarea::placeholder{color:#a0a1a5}.composer-toolbar{display:flex;align-items:center;gap:14px}.context-button{display:flex;align-items:center;gap:7px;border:1px solid var(--border);background:#fcfcfa;border-radius:9px;padding:6px 9px;font-size:calc(10px + 2pt + var(--home-font-step,0px));color:#777e88}.context-button svg{width:14px;height:14px}.context-button:hover{border-color:#c7bfae;background:#f8f5ef}.context-button .chevron{width:11px;height:11px;color:#92949a}.composer-hint{font-size:calc(10px + 2pt + var(--home-font-step,0px));color:#a6a5a1}.send-button{margin-left:auto;width:37px;height:37px;border:0;border-radius:12px;background:var(--navy);color:white;display:grid;place-items:center}.send-button:not(:disabled):hover{background:#304e75;transform:translateY(-1px);box-shadow:0 5px 10px #2036531c}.send-button svg{width:20px;height:20px}.suggestions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:23px}.suggestion{display:flex;align-items:center;gap:7px;background:transparent;border:1px solid #e5e3dd;padding:8px 12px;border-radius:30px;color:#777c82;font-size:calc(11px + 2pt + var(--home-font-step,0px));transition:background .15s ease-out,border-color .15s ease-out,transform .15s ease-out}.suggestion svg{height:13px;width:13px;color:#9e9279}.suggestion:hover{background:white;border-color:#c7c2b4;transform:translateY(-1px);color:var(--navy)}.demo-caption{font-size:calc(9px + 2pt + var(--home-font-step,0px));color:#a1a2a3;text-align:center;margin:21px 0 0;display:flex;justify-content:center;align-items:center;gap:6px}.caption-dot{background:#b5a27a;width:4px;height:4px;border-radius:50%}.footer{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 46px;font-size:calc(9px + 2pt + var(--home-font-step,0px));color:#a0a0a0}.footer strong{font-weight:500;color:#7a8087}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.has-case .main{justify-content:flex-start;padding-bottom:25px;min-height:calc(100svh - 172px)}.has-case .welcome{display:none}.has-case .suggestions,.has-case .composer-hint{display:none}.has-case .prompt-area{position:sticky;bottom:0;background:linear-gradient(transparent,var(--page-bg) 12%);padding-top:20px;margin-top:auto;animation:none;z-index:2}.has-case .composer>textarea{min-height:55px;max-height:160px}.has-case .composer{border-radius:18px;padding:13px 16px 10px}.has-case .demo-caption{margin:9px 0 0}.thread{padding-top:14px;padding-bottom:20px;animation:arrive .4s var(--ease)}.case-heading{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:calc(10px + 2pt);margin:0 0 30px;padding-bottom:15px;border-bottom:1px solid var(--border)}.case-dot{height:5px;width:5px;background:var(--gold);border-radius:50%}#case-state{margin-left:auto;color:#9c937f}.conversation{display:flex;flex-direction:column;gap:22px;margin-bottom:30px}.user-message{align-self:flex-end;max-width:87%;background:#f0efea;border:1px solid #e9e6df;border-radius:18px 18px 5px 18px;padding:15px 19px;white-space:pre-wrap;font-size:calc(13px + 2pt);line-height:1.85}.previous-question{color:#78808b;font-size:calc(13px + 2pt);line-height:1.9;padding:0 10px}.agent-response{padding:0 4px;margin:0 0 25px}.assistant-label{display:flex;align-items:center;gap:9px;font-size:calc(11px + 2pt);font-weight:550;color:var(--navy);margin-bottom:13px}.small-spark{color:var(--gold);font-size:calc(23px + 2pt);font-weight:400;line-height:1}.version{color:#96999e;font-size:calc(9px + 2pt);font-weight:400;margin-left:auto}.response-copy{font-size:calc(14px + 2pt);line-height:1.9;margin:0 0 19px;white-space:pre-wrap}.quiet-copy{font-size:calc(11px + 2pt);color:var(--muted);line-height:1.85}.facts{font-size:calc(11px + 2pt);color:var(--muted);margin:12px 0 20px}.facts summary{cursor:pointer}.facts ul{padding-left:20px;line-height:1.9}.draft-card{border:1px solid #dedfdc;border-radius:16px;background:white;overflow:hidden;box-shadow:0 8px 25px -22px #20365345}.draft-heading{padding:16px 21px;border-bottom:1px solid #efeee9;display:flex;align-items:center;justify-content:space-between;gap:10px}.draft-heading>span:first-child{display:flex;align-items:center;gap:9px;font-size:calc(11px + 2pt);font-weight:500;color:var(--navy)}.draft-heading svg{width:16px;height:16px;color:#97815a}.edit-note{font-size:calc(9px + 2pt);color:#9da0a5}.mail-field{display:flex;align-items:center;gap:15px;padding:10px 22px;border-bottom:1px solid #f2f1ed;font-size:calc(12px + 2pt)}.mail-field label{color:#999b9e;width:45px;flex-shrink:0}.mail-field input{border:0;padding:0;min-width:0;width:100%;color:#4b5665;background:transparent;font-size:calc(12px + 2pt)}.mail-field:focus-within{background:#fdfcf9}#body{border:0;background:transparent;width:100%;min-height:230px;resize:vertical;padding:20px 24px;font:calc(12px + 2pt)/1.9 ui-sans-serif,system-ui,sans-serif;color:#495363;display:block}#body:focus{background:#fefdfb}.draft-bottom{padding:13px 17px;border-top:1px solid #f0efea;display:flex;align-items:center;gap:15px;justify-content:space-between}#source-label{font-size:calc(9px + 2pt);color:#999d9f;max-width:230px;line-height:1.7}.approve-button{border:0;background:var(--navy);color:white;border-radius:10px;padding:10px 13px;display:flex;align-items:center;gap:14px;font-size:calc(10px + 2pt);white-space:nowrap}.approve-button:hover{background:#304e75}.delivery-note{text-align:center;color:#a1a2a3;font-size:calc(9px + 2pt);margin:10px 0 0}.receipt{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid #dbe3d6;background:#f1f5ee;border-radius:16px;margin-bottom:20px;color:#4c6943}.receipt-check{font-size:calc(19px + 2pt)}.receipt strong{font-size:calc(12px + 2pt);font-weight:500}.receipt p{margin:3px 0 0;font-size:calc(9px + 2pt);color:#87947f}.receipt .text-button{margin-left:auto;font-size:calc(10px + 2pt)}.activity{border-top:1px solid var(--border);padding-top:16px;font-size:calc(10px + 2pt);color:#90959a;margin-top:28px}.activity>summary{cursor:pointer;display:flex;align-items:center;gap:7px}.source-icon{color:var(--gold)}#activity-count{margin-left:auto;color:#afb0b0}.events{padding-left:16px}.events li{padding:8px 0;line-height:1.8}.events strong{font-size:calc(10px + 2pt);font-weight:500;color:#6e7682}.events p{font-size:calc(10px + 2pt)}.events details{margin-top:5px}.events pre{font-size:calc(10px + 2pt);white-space:pre-wrap;overflow-wrap:anywhere;max-height:230px;overflow:auto;border:1px solid var(--border);border-radius:10px;padding:12px;background:white}.source-cards{display:grid;gap:8px;margin-top:17px}.source-card{padding:12px 15px;border:1px solid var(--border);border-radius:12px;background:white}.source-card h3{font-weight:500;font-size:calc(11px + 2pt);color:var(--navy);margin:0}.source-card p{font-size:calc(11px + 2pt);color:#7a8088;line-height:1.8;margin:7px 0 0}.source-card small{color:#b29c6e;font-size:calc(9px + 2pt)}.working-text{font-size:calc(12px + 2pt);color:var(--muted)}.shimmer{height:11px;border-radius:8px;background:linear-gradient(110deg,#eeece5 20%,#e0dfd7 45%,#eeece5 70%);background-size:220% 100%;animation:shimmer 1.7s var(--ease) infinite;margin:14px 0;width:90%}.short{width:55%}.stream-text{font-size:calc(13px + 2pt);white-space:pre-wrap;color:#737c88}.stream-text:not(:empty):after{content:'▍';color:var(--gold)}.error{color:var(--error);font-size:calc(11px + 2pt);line-height:1.8;margin:12px 3px}.retry{margin-bottom:15px}.context-dialog,.history-dialog{position:fixed;margin:0 0 0 auto;right:0;left:auto;top:0;height:100svh;max-height:100svh;width:440px;max-width:100%;border:0;border-left:1px solid var(--border);background:#fcfbf8;padding:28px 27px;color:var(--ink);box-shadow:-15px 0 70px #20365312;animation:drawer-in .3s var(--ease)}dialog::backdrop{background:#1a2b4230;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.dialog-heading .eyebrow{font-size:calc(8px + 2pt);margin-bottom:8px}.dialog-heading h2{font-size:calc(25px + 2pt)}.context-dialog label{display:block;font-size:calc(10px + 2pt);color:#7f838a;margin:16px 0 6px}.context-dialog input,.context-dialog textarea,.context-dialog select{width:100%;border:1px solid #deded7;border-radius:10px;background:white;padding:10px 11px;font-size:calc(12px + 2pt);color:#536070;line-height:1.8}.context-dialog input:focus,.context-dialog textarea:focus,.context-dialog select:focus{border-color:#a9966c;box-shadow:0 0 0 3px #aa956310}.context-dialog textarea{resize:vertical}.context-dialog details{border-top:1px solid var(--border);margin-top:21px;padding-top:17px}.context-dialog summary{font-size:calc(12px + 2pt);color:#596577;cursor:pointer}.context-dialog .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.connection{color:#9b9da0;font-size:calc(9px + 2pt);margin-top:24px}.navy-button{width:100%;padding:11px 15px;border:0;border-radius:10px;background:var(--navy);color:white;font-size:calc(12px + 2pt)}.history-item{display:block;text-align:left;border:1px solid var(--border);background:white;border-radius:13px;width:100%;padding:15px;margin:10px 0}.history-item:hover{border-color:#b9ad92;background:#f8f6ef}.history-item strong{font-size:calc(12px + 2pt);font-weight:500;display:block;color:var(--navy)}.history-item p{font-size:calc(11px + 2pt);color:#979ba0;margin:5px 0;line-height:1.7}.history-item small{font-size:calc(9px + 2pt);color:var(--gold)}@keyframes arrive{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@keyframes drawer-in{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}@keyframes shimmer{from{background-position:150% 0}to{background-position:-100% 0}}@media(min-height:850px){body:not(.has-case) .main{padding-bottom:110px}}@media(max-width:700px){.topbar{height:84px;padding:0 23px;gap:15px}.wordmark{font-size:calc(16.8px + 2.4pt + var(--home-font-step,0px));letter-spacing:2.4px}.wordmark-sub{font-size:calc(8.4px + 2.4pt + var(--home-font-step,0px));letter-spacing:4.44px}.wordmark-sub:before,.wordmark-sub:after{width:33.6px}.product-name{font-size:calc(12px + 2.4pt + var(--home-font-step,0px))}.beta{font-size:calc(8.4px + 2.4pt + var(--home-font-step,0px))}.topbar nav{gap:8px}.main{padding-left:20px;padding-right:20px;min-height:calc(100svh - 144px);padding-bottom:45px}.welcome{margin-bottom:27px}h1{letter-spacing:-1px;font-size:37px}.welcome-copy{font-size:calc(13px + 2pt + var(--home-font-step,0px))}.welcome-symbol{width:29px;height:29px}.eyebrow{font-size:calc(8px + 2pt + var(--home-font-step,0px));letter-spacing:1.5px}.composer{padding:14px 13px 11px}.composer>textarea{font-size:calc(16px + 2pt + var(--home-font-step,0px));min-height:90px}.composer-hint{display:none}.suggestions{gap:7px;margin-top:20px}.suggestion{font-size:calc(10px + 2pt + var(--home-font-step,0px));padding:7px 10px}.footer{height:60px;padding:0 24px;font-size:calc(8px + 2pt + var(--home-font-step,0px))}.new-case{font-size:0}.has-case .new-case>span{font-size:calc(23px + 2pt)}.user-message{font-size:calc(13px + 2pt);padding:13px 16px;max-width:92%}.response-copy{font-size:calc(13px + 2pt)}.draft-bottom{flex-direction:column;align-items:stretch;gap:12px}#source-label{max-width:none}.approve-button{justify-content:center;padding:12px}.mail-field{padding:10px 16px}#body{padding:16px;font-size:calc(14px + 2pt)}.receipt{align-items:flex-start;flex-wrap:wrap}.receipt .text-button{margin-left:30px}.context-dialog,.history-dialog{padding:25px 22px}.thread{padding-top:8px}.case-heading{margin-bottom:23px}.context-dialog input,.context-dialog textarea,.context-dialog select{font-size:calc(16px + 2pt)}}@media(max-width:420px){.product-name,.header-divider{display:none}.mobile-break{display:block}h1{font-size:32px}.welcome-copy{line-height:1.75}.welcome{margin-bottom:25px}.suggestions{max-width:310px;margin-left:auto;margin-right:auto}.demo-caption{font-size:calc(8px + 2pt + var(--home-font-step,0px))}.topbar{height:75px}.main{min-height:calc(100svh - 135px)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:560px){.product-name,.header-divider{display:none}}
/* Lease workspace: fixed navigation and controls, independently scrolling lists. */
.library-button{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #d9d7ce;background:#fffdf8;color:var(--navy);border-radius:11px;font-size:calc(14px + var(--home-font-step,0px));white-space:nowrap}
.library-button svg{width:17px;height:17px;color:#9b875b}.library-button:hover{background:#f0ece2;border-color:#c7b99d}.library-label-short{display:none}
.library-dialog{position:fixed;inset:0;margin:auto;width:calc(100vw - 48px);max-width:none;height:calc(100svh - 48px);max-height:none;padding:0;border:1px solid var(--border);border-radius:22px;background:var(--bg);color:var(--ink);overflow:hidden;box-shadow:0 25px 90px #2036532b;animation:arrive .3s var(--ease)}
.library-dialog[open]{display:flex;flex-direction:column}.library-dialog,.library-action-dialog{font-size:calc(14px + 4pt)}
.library-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 28px;border-bottom:1px solid var(--border);background:white;flex-shrink:0}
.library-heading h2{font-size:31px}.library-dialog .icon-button{font-size:calc(25px + 4pt)}
.library-layout{display:grid;grid-template-columns:clamp(250px,20vw,320px) minmax(0,1fr);min-height:0;flex:1;overflow:hidden}
.property-sidebar{display:flex;flex-direction:column;gap:12px;min-height:0;min-width:0;border-right:1px solid var(--border);padding:22px 14px 14px;background:#f7f6f1}
.sidebar-heading{display:flex;justify-content:space-between;font-size:calc(12px + 2pt);color:#8b8e92;padding:0 10px}.sidebar-heading span{color:#aaa28f}
.library-input{width:100%;min-width:0;background:white;border:1px solid var(--border);border-radius:10px;padding:10px 12px;color:var(--ink);font-size:calc(13px + 2pt)}
.library-input:focus{border-color:#b6a57d;box-shadow:0 0 0 3px #aa956314}.property-sidebar>.library-input{font-size:calc(12px + 2pt);flex-shrink:0}
.property-search-note{font-size:calc(11px + 2pt);line-height:1.7;color:#8f7a50;margin:0 8px;flex-shrink:0}
#library-properties{min-height:0;flex:1;overflow-y:scroll;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior:contain;padding:2px 6px 2px 2px;overflow-wrap:anywhere}
#library-properties,.unit-picker-results,.library-table-wrap{scrollbar-width:thin;scrollbar-color:#c8c3b7 #eeece5}
#library-properties::-webkit-scrollbar,.unit-picker-results::-webkit-scrollbar,.library-table-wrap::-webkit-scrollbar{width:7px;height:7px}
#library-properties::-webkit-scrollbar-track,.unit-picker-results::-webkit-scrollbar-track,.library-table-wrap::-webkit-scrollbar-track{background:#eeece5;border-radius:8px}
#library-properties::-webkit-scrollbar-thumb,.unit-picker-results::-webkit-scrollbar-thumb,.library-table-wrap::-webkit-scrollbar-thumb{background:#c8c3b7;border-radius:8px}
#library-properties:focus-visible,.library-table-wrap:focus-visible,.unit-picker-results:focus-visible{outline:2px solid var(--gold);outline-offset:-2px;border-radius:12px}
.property-option{display:flex;align-items:flex-start;flex-direction:column;gap:4px;width:100%;text-align:left;border:1px solid transparent;background:transparent;border-radius:12px;padding:12px 10px;margin-bottom:6px}
.property-option strong{font-size:calc(13px + 2pt);font-weight:500}.property-option>span{font-size:calc(11px + 2pt);color:#9a9ca0}
.property-option[aria-pressed=true]{background:white;border-color:#ddd8ca;box-shadow:0 2px 5px #20365303}.property-option[aria-pressed=true] strong{color:var(--navy)}.property-option:hover{background:#efede6}
.add-property{font-size:calc(12px + 2pt);padding:10px;text-align:left;border-top:1px solid var(--border);flex-shrink:0}
.library-content{display:flex;flex-direction:column;padding:26px 32px;min-width:0;min-height:0;overflow:hidden}
.property-heading{flex-shrink:0}.property-title-row{display:flex;align-items:center;gap:12px;min-width:0}.property-heading h3{font-family:Georgia,serif;font-size:calc(25px + 2pt);color:var(--navy);font-weight:400;margin:0;overflow-wrap:anywhere;min-width:0}
.property-heading .quiet-copy{font-size:calc(12px + 2pt);margin:5px 0 20px}
.library-menu{position:relative;flex-shrink:0}.library-menu>summary{display:grid;place-items:center;list-style:none;border:1px solid transparent;border-radius:10px;width:35px;height:35px;font-size:24px;color:#8e939a;cursor:pointer;line-height:1}
.library-menu>summary::-webkit-details-marker{display:none}.library-menu>summary:hover,.library-menu[open]>summary{background:#eceae3;color:var(--navy)}
.library-menu-items{position:absolute;z-index:5;top:calc(100% + 5px);left:0;min-width:185px;max-width:calc(100vw - 40px);padding:6px;border:1px solid var(--border);border-radius:14px;background:white;box-shadow:0 12px 35px #20365320;animation:arrive .2s var(--ease)}
.library-menu-items button{display:block;width:100%;padding:10px 12px;border:0;border-radius:9px;background:transparent;text-align:left;color:var(--navy);font-size:calc(12px + 2pt);white-space:nowrap}.library-menu-items button:hover{background:var(--soft)}
.lease-filter{display:flex;align-items:center;gap:10px;margin:0 0 24px;min-width:0;flex-shrink:0}.lease-filter>span{font-size:calc(11px + 2pt);color:#8f959d;flex-shrink:0}
.unit-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:min(460px,calc(100% - 125px));padding:9px 12px;background:white;border:1px solid var(--border);border-radius:11px;color:#536073;font-size:calc(12px + 2pt);text-align:left;min-width:0}
#selected-unit-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.unit-picker-trigger:hover{border-color:#b9ae94}.unit-picker-trigger>span:last-child{color:#9299a3}
.library-controls{display:flex;gap:12px;align-items:center;flex-shrink:0}.library-controls input{flex:1;min-width:0;width:100%;background:white;border:1px solid var(--border);border-radius:11px;padding:11px 12px;font-size:calc(12px + 2pt);color:var(--ink)}
.library-controls input:focus{border-color:#b6a57d;box-shadow:0 0 0 3px #aa95630c}.upload-button{width:auto;font-size:calc(12px + 2pt);padding:11px 15px;white-space:nowrap}
.document-list-heading{display:flex;justify-content:space-between;gap:12px;margin:23px 0 12px;font-size:calc(11px + 2pt);color:#8e949c;flex-shrink:0}#document-count{font-size:calc(10px + 2pt);color:#a0a2a5}
.library-table-wrap{border:1px solid var(--border);border-radius:16px;overflow:auto;overscroll-behavior:contain;background:white;min-height:130px;flex:1}
.library-table{border-collapse:separate;border-spacing:0;width:100%;text-align:left}.library-table th{position:sticky;top:0;z-index:1;font-size:calc(10px + 2pt);color:#9a9fa5;font-weight:400;padding:14px 18px;border-bottom:1px solid var(--border);background:#fdfdfb}
.library-table td{padding:19px 18px;border-bottom:1px solid #f0eeea;font-size:calc(11px + 2pt);color:#949ba3;vertical-align:middle}.library-table th:last-child,.library-table td:last-child{width:1%;text-align:right;white-space:nowrap}.library-table td:last-child>button{vertical-align:middle}.library-table th:nth-child(2){width:150px}.library-table tr:last-child td{border-bottom:0}
.library-table td:first-child strong{display:block;font-size:calc(12px + 2pt);font-weight:500;color:#4f5e70;overflow-wrap:anywhere;min-width:140px}.library-table td:first-child>span:not(.file-status){font-size:calc(10px + 2pt);color:#a9acb0;display:block;margin-top:5px}
.file-status{display:inline-block;border:1px solid #e5dfd1;background:#faf7f0;color:#9b885e;border-radius:30px;padding:3px 7px;margin-top:7px;font-size:calc(9px + 2pt)}
.remove-document{border:0;border-radius:9px;background:transparent;color:#a3a8ae;font-size:calc(20px + 2pt);padding:0 6px}.remove-document:hover{color:var(--error);background:#faf1ed}
.library-empty{text-align:center;padding:55px 18px}.library-empty p{font-family:Georgia,serif;font-size:calc(20px + 2pt);color:var(--navy);margin:0 0 8px}.library-empty span{font-size:calc(12px + 2pt);color:#a0a4a8}
.library-feedback{font-size:calc(11px + 2pt);color:#9b8a68;line-height:1.8;margin:12px 0 0;flex-shrink:0}.library-feedback:empty{display:none}
.library-preview-note{font-size:calc(10px + 2pt);color:#989486;background:#f7f6f1;padding:11px 28px;margin:0;border-top:1px solid var(--border);line-height:1.7;flex-shrink:0}
.library-action-dialog{position:fixed;inset:0;margin:auto;width:430px;max-width:calc(100vw - 32px);max-height:calc(100svh - 32px);border:1px solid var(--border);border-radius:20px;padding:26px;background:var(--bg);color:var(--ink);box-shadow:0 20px 80px #20365330;animation:arrive .25s var(--ease)}
.library-action-dialog h2{font-size:calc(27px + 2pt);margin-bottom:20px}.library-action-dialog label{display:block;font-size:calc(12px + 2pt);color:#7f838a;margin:15px 0 7px}.optional-label{color:#a0a3a6}
.library-action-buttons{display:flex;align-items:center;justify-content:flex-end;gap:22px;margin-top:24px}.library-action-buttons .navy-button{width:auto;min-width:85px}.library-action-buttons .text-button{font-size:calc(13px + 2pt)}
.library-action-dialog .navy-button{font-size:calc(12px + 4pt)}.library-action-dialog .error{font-size:calc(11px + 4pt)}
.similar-property-warning{margin-top:16px;border:1px solid #e0d2b5;border-radius:12px;padding:12px 14px;background:#f7f1e5;color:#8a6e36;font-size:calc(12px + 2pt);line-height:1.7}.similar-property-warning strong{font-weight:600}.similar-property-warning p{margin:5px 0 0;overflow-wrap:anywhere}
.delete-document-name{font-size:calc(14px + 2pt);font-weight:500;overflow-wrap:anywhere}.danger-button{border:0;border-radius:10px;padding:11px 15px;background:#9e4540;color:white;font-size:calc(13px + 2pt)}.danger-button:hover{background:#853c38}.library-action-dialog .quiet-copy{font-size:calc(13px + 2pt)}
.unit-picker{width:490px}.unit-picker[open]{display:flex;flex-direction:column;height:min(610px,calc(100svh - 48px));overflow:hidden}.unit-picker .dialog-heading{margin-bottom:16px;flex-shrink:0}.unit-picker .dialog-heading h2{margin:0}.unit-picker>.library-input,.unit-picker>.quiet-copy{flex-shrink:0}
.unit-picker-results{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;flex:1;padding:2px 6px 2px 2px}.unit-picker-option{display:block;text-align:left;width:100%;border:1px solid transparent;border-radius:12px;background:transparent;padding:12px;margin-bottom:5px}.unit-picker-option strong{display:block;font-size:calc(13px + 2pt);font-weight:500;color:var(--navy)}.unit-picker-option span{display:block;font-size:calc(11px + 2pt);color:var(--muted);margin-top:3px}.unit-picker-option[aria-pressed=true]{border-color:#d8d0bf;background:white}.unit-picker-option:hover{background:#eeece5}
@media(max-width:900px){.library-dialog{width:calc(100vw - 24px);height:calc(100svh - 24px);border-radius:17px}.library-layout{grid-template-columns:230px minmax(0,1fr)}.library-content{padding:22px}.library-heading{padding:18px 22px}.library-table th,.library-table td{padding:14px 12px}.library-menu-items{left:auto;right:0}}
@media(max-width:800px){.library-heading h2{font-size:28px}}
@media(max-width:700px){.library-label-long{display:none}.library-label-short{display:inline}.library-button{font-size:calc(13px + var(--home-font-step,0px));padding:7px 9px;gap:6px}.library-button svg{height:15px;width:15px}.library-dialog{width:100%;height:100svh;border-radius:0}.library-heading{padding:14px 18px}.library-layout{display:flex;flex-direction:column;overflow-y:auto}.property-sidebar{height:225px;min-height:225px;border-right:0;border-bottom:1px solid var(--border);padding:14px 15px;gap:8px}.property-sidebar>.library-input{font-size:calc(16px + 2pt)}.property-option{padding:10px}.property-option strong{font-size:calc(12px + 2pt)}.property-option>span{font-size:calc(10px + 2pt)}.add-property{padding:6px 10px;font-size:calc(11px + 2pt)}.library-content{padding:20px 17px;min-height:465px;flex:1;overflow:visible}.property-heading h3{font-size:calc(24px + 2pt)}.property-heading .quiet-copy{margin-bottom:15px}.lease-filter{gap:8px;margin-bottom:18px}.unit-picker-trigger{max-width:calc(100% - 120px)}.library-controls{gap:8px}.upload-button{font-size:calc(11px + 2pt);padding:10px}.library-controls input{font-size:calc(16px + 2pt)}.document-list-heading{margin-top:17px}.library-table-wrap{flex:none;min-height:165px;max-height:350px}.library-table th:nth-child(2),.library-table td:nth-child(2){display:none}.library-preview-note{padding:9px 18px;font-size:calc(9px + 2pt)}.library-action-dialog{padding:23px}.library-action-dialog .library-input{font-size:calc(16px + 2pt)}.property-search-note{font-size:12px}.property-sidebar:has(.property-search-note:not([hidden])){height:270px;min-height:270px}}
@media(max-width:380px){.topbar{padding-left:14px;padding-right:14px;gap:8px}}

.next-actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}.next-actions .navy-button{width:auto;padding:11px 18px}.secondary-action{border:1px solid #d7d3c7;border-radius:10px;padding:10px 17px;background:white;color:var(--navy);font-size:calc(12px + 2pt)}.secondary-action:hover{background:var(--soft)}.recommendation-missing{font-size:calc(11px + 2pt);line-height:1.9;color:var(--muted);padding-left:20px}.recommendation-missing:empty{display:none}.attachment-options{border-top:1px solid var(--border);padding:15px 22px;background:#fdfcf8}.attachment-toggle{display:flex;align-items:center;gap:9px;font-size:calc(11px + 2pt);color:var(--navy);cursor:pointer}.attachment-toggle input{accent-color:var(--navy);width:17px;height:17px;flex-shrink:0}.attachment-files{display:flex;flex-direction:column;gap:6px;margin:12px 0 0 26px}.attachment-files a{font-size:calc(10px + 2pt);color:#8d7950;overflow-wrap:anywhere;text-decoration:none}.attachment-files a:hover{text-decoration:underline}.attachment-options .quiet-copy{font-size:calc(9px + 2pt);margin:9px 0 0 26px}.rag-result{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7;border:1px solid var(--border);border-radius:12px;background:white;padding:14px;max-height:400px;overflow:auto}

/* Correspondence stays beside its case, without leaving the assistant. */
.messages-dialog{position:fixed;inset:0;margin:auto;width:min(1180px,calc(100vw - 48px));height:min(820px,calc(100svh - 48px));max-width:none;max-height:none;padding:0;border:1px solid var(--border);border-radius:22px;background:var(--bg);color:var(--ink);overflow:hidden;box-shadow:0 25px 90px #2036532b;animation:arrive .3s var(--ease)}
.messages-dialog[open]{display:flex;flex-direction:column}.messages-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 28px;background:white;border-bottom:1px solid var(--border);flex-shrink:0}.messages-heading .eyebrow{margin-bottom:7px;font-size:10px}.messages-heading h2{font-size:32px}.messages-actions{display:flex;align-items:center;gap:24px}.messages-feedback{padding:10px 28px;margin:0;background:#f4f0e6;color:#806d44;font-size:14px;flex-shrink:0}.messages-feedback:empty{display:none}
.messages-layout{display:grid;grid-template-columns:325px minmax(0,1fr);flex:1;min-height:0;overflow:hidden}.messages-sidebar{padding:22px 14px 15px;background:#f6f5f0;border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0;min-width:0}.messages-sidebar>.library-input{font-size:15px;flex-shrink:0}.messages-list-heading{display:flex;justify-content:space-between;color:#98958c;font-size:12px;padding:20px 9px 10px}.message-list{overflow-y:auto;min-height:0;flex:1;padding:2px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8c3b7 transparent}.message-thread{display:block;width:100%;text-align:left;border:1px solid #dcd8ce;border-radius:16px;background:transparent;padding:15px 12px;margin-bottom:8px}.message-thread:hover{background:#efede5;border-color:#bfb49a}.message-thread[aria-pressed=true]{background:white;border-color:var(--gold);box-shadow:0 3px 10px #20365305}.message-thread-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.message-thread-top strong{font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-thread-top time{font-size:11px;flex-shrink:0;color:#9c9a92}.message-thread-subject{display:block;font-size:14px;line-height:1.5;margin:7px 0;color:var(--navy);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.message-thread-preview{font-size:12px;line-height:1.6;color:#94969a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.message-thread-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:13px;gap:6px;font-size:10px;color:#9d9b94}.mail-status{font-size:11px;font-weight:500;color:#8f8266;line-height:1.6}.mail-status.accepted{color:#53734d}.mail-status.received{color:#416d92}.mail-status.unknown,.mail-status.rejected{color:var(--error)}.inbox-note{font-size:11px;line-height:1.7;color:#9a968a;border-top:1px solid var(--border);padding:13px 8px 0;margin:10px 0 0;flex-shrink:0}
.message-reader{padding:28px 34px;overflow-y:auto;min-height:0;min-width:0;scrollbar-width:thin;overscroll-behavior:contain}.message-reader:focus-visible{outline:2px solid var(--gold);outline-offset:-4px}.message-detail-heading{margin-bottom:22px}.message-detail-title{display:flex;justify-content:space-between;align-items:flex-start;gap:25px}.message-detail-title>div{min-width:0}.message-detail-title h3{font-family:Georgia,serif;font-size:26px;font-weight:400;color:var(--navy);line-height:1.4;margin:0;overflow-wrap:anywhere}.message-detail-title p{font-size:12px;color:#9a968a;margin:8px 0 0}.message-detail-title button{font-size:12px;white-space:nowrap;flex-shrink:0}.message-back{display:none}.message-routing{font-size:12px;color:#918263;margin-bottom:20px}.message-routing summary{cursor:pointer}.message-routing p{font-size:12px;line-height:1.7;max-width:520px}.message-routing code{display:block;font-family:inherit;overflow-wrap:anywhere;user-select:all;color:var(--navy)}.message-timeline{display:flex;flex-direction:column;gap:20px}.mail-message{background:white;border:1px solid var(--border);border-radius:16px;padding:21px 24px;animation:arrive .25s var(--ease)}.mail-message.incoming{border-color:#d8e1e6}.mail-message-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.mail-message-meta time{font-size:11px;color:#a2a09b}.mail-message h4{font-weight:500;color:#536070;font-size:14px;line-height:1.6;margin:0 0 12px;overflow-wrap:anywhere}.mail-addresses{display:grid;grid-template-columns:37px minmax(0,1fr);row-gap:3px;margin:0 0 21px;font-size:12px;line-height:1.7}.mail-addresses dt{color:#a4a19a}.mail-addresses dd{margin:0;color:#808794;overflow-wrap:anywhere}.mail-message-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.95;color:#525e70}.message-files{border-top:1px solid #efede6;margin-top:23px;padding-top:14px;display:flex;flex-wrap:wrap;gap:8px}.message-file{font-size:11px;border:1px solid #e8e3d7;border-radius:9px;padding:6px 9px;color:#8c7951;text-decoration:none;overflow-wrap:anywhere}a.message-file:hover{background:#f7f3e8}.mail-send-note{color:#aaa79f;font-size:10px;line-height:1.6;margin:17px 0 0}.messages-empty{text-align:center;max-width:365px;margin:80px auto;padding:0 18px;color:#a19d93}.messages-empty-symbol{font-size:33px;color:#bcad8c}.messages-empty h3{font-family:Georgia,serif;font-weight:400;font-size:25px;color:var(--navy);line-height:1.4}.messages-empty p{font-size:14px;line-height:1.8}.message-list .messages-empty{margin:30px auto}.message-list .messages-empty h3{font-size:21px}.message-list .messages-empty p{font-size:12px}
@media(max-width:1100px){.topbar{padding-left:28px;padding-right:28px;gap:18px}.topbar nav{gap:10px}.has-case .new-case{font-size:0}.has-case .new-case>span{font-size:24px}.messages-layout{grid-template-columns:285px minmax(0,1fr)}.message-reader{padding:25px}.message-detail-title{gap:14px}.message-detail-title h3{font-size:24px}}
@media(max-width:900px){.messages-button>span{display:none}.messages-dialog{width:calc(100vw - 24px);height:calc(100svh - 24px)}.mail-message{padding:18px}.message-detail-title{flex-direction:column;gap:6px}}
@media(max-width:700px){.messages-dialog{width:100%;height:100svh;border-radius:0}.messages-heading{padding:18px 20px}.messages-heading .eyebrow{font-size:9px;letter-spacing:1.2px}.messages-heading h2{font-size:29px}.messages-actions{gap:18px}.messages-layout{display:flex}.messages-sidebar{width:100%;border-right:0;padding:17px}.messages-sidebar>.library-input{font-size:16px}.message-reader{display:none;width:100%;padding:20px}.reading-message .messages-sidebar{display:none}.reading-message .message-reader{display:block}.message-back{display:block;margin:0 0 18px}.message-detail-title{flex-direction:row}.message-detail-title h3{font-size:23px}.message-detail-title button{font-size:11px}.mail-message-body{font-size:15px}.mail-message-meta time{font-size:10px}.messages-feedback{padding:10px 20px;font-size:13px}.messages-button{padding:7px 9px}.message-thread{padding:16px}.message-thread-subject{font-size:15px}.message-thread-preview{font-size:13px}.messages-empty{margin:50px auto}}
.key-row{max-width:440px;margin:26px auto 0;text-align:left}.key-row label{display:block;font-size:calc(10px + 2pt);color:#7f838a;margin:0 0 6px}.key-row input{width:100%;border:1px solid #deded7;border-radius:10px;background:white;padding:10px 11px;font-size:calc(12px + 2pt);color:#536070;transition:border-color .15s ease-out,box-shadow .15s ease-out}.key-row input:focus{border-color:#a9966c;box-shadow:0 0 0 3px #aa956310}.key-row .quiet-copy{margin:7px 0 0;font-size:calc(9px + 2pt);line-height:1.7}@media(max-width:700px){.key-row input{font-size:calc(16px + 2pt)}}

/* Keep connection setup beside the workspace, away from the main prompt. */
.key-settings{position:relative;z-index:10;text-align:left}.key-settings>summary{display:inline-flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:8px 11px;border:1px solid transparent;border-radius:12px;color:#92918a;font-size:calc(13px + var(--home-font-step,0px));transition:background .18s ease-out,border-color .18s ease-out}.key-settings>summary::-webkit-details-marker{display:none}.key-settings>summary svg{height:16px;width:16px;color:#9e8d68}.key-settings>summary:hover,.key-settings[open]>summary{background:#f1eee5;border-color:#e4ddcd;color:var(--navy)}.key-status-dot{width:5px;height:5px;border-radius:50%;background:#bdad8b}.key-status-dot.has-key{background:#79906d}.api-key-panel.key-row{position:absolute;bottom:calc(100% + 13px);left:0;width:391px;max-width:calc(100vw - 48px);max-height:calc(100svh - 110px);overflow:auto;margin:0;padding:24.15px;border:1px solid var(--border);border-radius:16px;background:#fffefa;box-shadow:0 12px 50px #2036531c;animation:arrive .22s var(--ease)}.key-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:18.4px;margin-bottom:20.7px}.key-panel-heading h2{font-size:28.75px}.key-panel-heading .icon-button{width:34.5px;height:34.5px;font-size:27.6px}.api-key-panel .connection{font-size:13.8px;line-height:1.7;margin:14.95px 0 0;color:#92968f}.api-key-panel .quiet-copy{font-size:13.8px;margin-top:8.05px}.api-key-panel label{font-size:calc(11.5px + 2.3pt);margin-bottom:6.9px}.api-key-panel input{font-size:17.25px;padding:11.5px 12.65px}@media(max-width:700px){.key-settings>summary{padding:7px 0;font-size:calc(12px + var(--home-font-step,0px))}.api-key-panel input{font-size:18.4px}.api-key-panel.key-row{padding:21.85px}}

/* Increase surrounding main-page text while preserving the responsive welcome heading. */
.topbar,.welcome,.prompt-area,.footer{--home-font-step:2px}
@media(max-width:420px){.topbar{padding-left:16px;padding-right:16px;gap:8px}.topbar nav{gap:5px}.wordmark{white-space:nowrap}}
.key-done{margin-top:12px;width:100%}

/* Search only: ranked clauses, no AI. */
.search-toggle{display:inline-flex;align-items:center;gap:6px;font-size:calc(12px + 2pt);color:#7f838a;margin-left:8px;cursor:pointer}
.search-results{list-style:decimal;padding-left:22px;margin:14px 0 28px;display:grid;gap:12px}
.search-results li{background:white;border:1px solid var(--border);border-radius:16px;padding:12px 16px;animation:rise .3s cubic-bezier(.16,1,.3,1) both}
.search-results strong{color:#4f5e70;font-weight:600}.search-results span{margin-left:8px;font-size:calc(10px + 2pt);color:#a9a08a}
.search-results p{position:relative;margin:8px 0 0;white-space:pre-wrap;color:#5d6570;font-size:calc(11px + 2pt);max-height:9.5em;overflow:auto;scroll-padding-block:12px}
.search-results mark{background:#f2e3b4;color:inherit;border-radius:3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.search-excerpt-toggle{margin-top:10px;padding:6px 10px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--navy);font-size:calc(11px + 2pt);line-height:1.6}
.search-excerpt-toggle:hover{background:var(--soft);border-color:#c7bfae}
.search-results p:focus-visible{outline:2px solid var(--gold);outline-offset:4px;border-radius:4px}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* All leases: portfolio answer and "which lease?" choices. */
.portfolio-answer{background:white;border:1px solid var(--border);border-radius:16px;padding:16px 18px;margin:14px 0 26px;animation:rise .3s cubic-bezier(.16,1,.3,1) both}
.portfolio-answer p{margin:0;line-height:1.55;color:#4f5e70}.portfolio-answer h3{font-size:calc(11px + 2pt);color:#9b885e;margin:16px 0 6px;font-weight:600}
.portfolio-answer ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}.portfolio-answer li{color:#5d6570;font-size:calc(11px + 2pt);line-height:1.45}
.lease-choices{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.lease-choice{border:1px solid #e5dfd1;background:#faf7f0;color:#6d5d3a;border-radius:30px;padding:5px 11px;font-size:calc(11px + 2pt);cursor:pointer;transition:transform .15s ease-out,box-shadow .15s ease-out}
.lease-choice:hover{transform:scale(1.02);box-shadow:0 2px 8px #0000000d}
.shimmer-text{background:linear-gradient(90deg,#a9acb0 25%,#d8d4c8 50%,#a9acb0 75%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shimmer 1.4s linear infinite}
@keyframes shimmer{to{background-position:-200% 0}}

/* Header: never wrap the wordmark, product name or nav labels; compact the nav before it runs out of room. */
.wordmark span,.product-name,.topbar nav button{white-space:nowrap}
.product-name .beta{vertical-align:middle}
@media(max-width:1320px){.topbar{gap:18px}.topbar nav{gap:10px}.has-case .new-case,.new-case{font-size:0}.new-case>span{font-size:24px}.obligations-button>span:not(.task-count){display:none}}

/* Original uploaded documents open above the library, preserving its selected lease and filters. */
.document-name-preview{display:block;max-width:100%;padding:0;border:0;background:transparent;text-align:left;color:var(--navy)}
.document-name-preview:hover{text-decoration:underline;text-underline-offset:3px}
.document-preview-button{padding:5px 9px;margin-right:8px;border:1px solid var(--border);border-radius:9px;background:var(--bg);color:var(--navy);font-size:13px}
.document-preview-button:hover{background:var(--soft)}
.document-preview-dialog{position:fixed;inset:0;margin:auto;width:min(1100px,calc(100vw - 32px));height:calc(100svh - 48px);max-width:calc(100vw - 32px);max-height:calc(100svh - 48px);padding:20px;border:1px solid var(--border);border-radius:20px;background:var(--bg);color:var(--ink);box-shadow:0 20px 80px #20365330;animation:arrive .25s var(--ease)}
.document-preview-dialog[open]{display:flex;flex-direction:column;gap:12px}.document-preview-dialog .dialog-heading{margin:0;flex-shrink:0}.document-preview-dialog h2{font-size:24px;overflow-wrap:anywhere}.document-preview-dialog .quiet-copy{margin:4px 0 0}.document-preview-dialog>.text-button{align-self:flex-start;flex-shrink:0}
.document-preview-content{flex:1;min-height:0;overflow:auto;background:white;border:1px solid var(--border);border-radius:12px}
.document-preview-pages{padding:16px;background:#eeece5}.document-preview-pages figure{margin:0 auto 20px;max-width:950px}.document-preview-pages figcaption{font-size:12px;color:var(--muted);margin-bottom:8px}.document-preview-pages img{display:block;width:100%;height:auto;background:white;box-shadow:0 2px 12px #20365312}.document-preview-content pre{margin:0;padding:22px;white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.8 ui-monospace,monospace}.document-preview-content>.quiet-copy{padding:20px}
@media(max-width:700px){.document-preview-dialog{padding:14px;gap:10px}.document-preview-dialog h2{font-size:20px}.document-preview-button{margin-right:4px;padding:5px}.document-preview-dialog>.text-button{font-size:13px}}

/* Evidence remains readable above the compact reply composer. */
.has-case .composer>textarea{min-height:42px!important;max-height:120px}
.has-case .composer{padding:10px 16px}.has-case .prompt-area{position:relative;bottom:auto}
.search-support{padding:12px 16px;border:1px solid var(--border);border-radius:16px;color:var(--navy);background:#f7f4eb;line-height:1.6;margin-top:16px}
.search-results p{max-height:7em}.search-source-button{border:0;background:transparent;color:var(--navy);text-decoration:underline;margin:10px 0 0 12px;padding:6px;cursor:pointer}
.search-results mark{background:#f2e3b4}.suggestion[hidden]{display:none!important}
.demo-expiry-card{border:1px solid #d6c9aa;border-radius:16px;padding:18px;background:#faf7ef;margin:12px 0 20px}.demo-expiry-card p{line-height:1.6;color:#5d6570}.demo-badge{display:inline-block;font-size:12px;padding:4px 9px;border-radius:16px;background:#eee3c9;color:#66562e;margin-bottom:8px}
.demo-expiry-notice{position:fixed;z-index:60;right:20px;top:94px;width:min(380px,calc(100vw - 40px));background:#fffdf7;border:1px solid #d6c9aa;border-radius:16px;box-shadow:0 12px 40px #17283b24;padding:20px;animation:rise .3s cubic-bezier(.16,1,.3,1)}
.demo-expiry-notice[hidden]{display:none}.demo-expiry-notice strong{display:block;color:var(--navy)}.demo-expiry-notice p{line-height:1.5}.demo-expiry-notice button{margin-right:12px}

.search-results li[hidden]{display:none!important}

/* Lease selection and document disclosure are separate keyboard-accessible actions. */
.lease-scope-option{border:1px solid transparent;border-radius:14px;margin-bottom:6px;overflow:hidden}
.lease-scope-option.is-selected{border-color:#d8d0bf;background:white}
.lease-scope-row{display:flex;align-items:center;gap:4px;min-width:0}
.lease-scope-row>.unit-picker-option{flex:1;min-width:0;margin:0;border:0;border-radius:12px;background:transparent}
.lease-scope-row>.unit-picker-option:hover{background:#eeece5}
.lease-scope-row>.unit-picker-option strong,.lease-scope-row>.unit-picker-option span{overflow-wrap:anywhere}
.lease-scope-expand{flex-shrink:0;display:grid;place-items:center;width:36px;height:36px;margin-right:7px;border:0;border-radius:10px;background:transparent;color:var(--navy)}
.lease-scope-expand:hover,.lease-scope-expand[aria-expanded=true]{background:#eeece5}
.lease-scope-expand svg{width:18px;height:18px;transition:transform .2s var(--ease)}
.lease-scope-expand[aria-expanded=true] svg{transform:rotate(180deg)}
.lease-scope-documents{margin:0 10px 10px;padding:8px 12px;background:#f5f4ef;border:1px solid var(--border);border-radius:12px;overflow-wrap:anywhere}
.lease-scope-documents ul{list-style:none;padding:0;margin:0}
.lease-scope-documents li{display:flex;flex-direction:column;gap:3px;padding:9px 0}
.lease-scope-documents li+li{border-top:1px solid var(--border)}
.lease-scope-filename{font-size:calc(11px + 2pt);line-height:1.7;color:var(--navy)}
.lease-scope-file-status,.lease-scope-documents p{font-size:12px;line-height:1.7;color:var(--muted);margin:0}
@media(prefers-reduced-motion:reduce){.lease-scope-expand svg{transition:none}}

.lease-scope-documents .lease-scope-check{display:flex;align-items:flex-start;gap:10px;cursor:pointer;margin:0;font-weight:400;text-transform:none;letter-spacing:normal}
.lease-scope-check input[type=checkbox]{appearance:auto;accent-color:var(--navy);flex:0 0 18px;width:18px;height:18px;margin:4px 0 0;padding:0;cursor:pointer}
.lease-scope-check>span{min-width:0}.lease-scope-check .lease-scope-filename,.lease-scope-check .lease-scope-file-status{display:block}
.lease-scope-select-all{font-size:13px;color:var(--navy);padding:5px 0 10px;border-bottom:1px solid var(--border);align-items:center}
.lease-scope-select-all input[type=checkbox]{margin-top:0}
.lease-scope-note{font-size:12px;line-height:1.5;color:var(--muted);margin:10px 0;flex-shrink:0}
#apply-lease-documents{flex-shrink:0;width:100%;margin:0 0 8px}
#lease-scope-status{font-size:13px;line-height:1.5;margin:8px 0 12px}
#lease-scope-dialog[open]{height:min(740px,calc(100svh - 36px))}

.lease-scope-check input[type=checkbox]:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

.recipient-warning{margin:0;padding:10px 24px;font-size:13px;line-height:1.5;color:var(--error);background:#fff8f3;border-bottom:1px solid var(--border)}.recipient-warning[hidden]{display:none}.mail-field:has(#recipient[aria-invalid="true"]){background:#fffaf6}

.question-answer-list{display:grid;gap:16px;margin:20px 0}.question-answer-list[hidden]{display:none}.question-answer-card{border:1px solid var(--border);border-radius:16px;background:var(--white);padding:22px}.question-answer-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.question-answer-title{display:flex;align-items:baseline;gap:10px;margin:0;color:var(--navy);font-size:18px;font-weight:600;line-height:1.5}.question-number{display:inline-block;flex-shrink:0;border-radius:6px;background:#eaf0f6;color:var(--navy);font-size:12px;font-weight:600;padding:2px 7px;line-height:1.6}.question-answer-status{white-space:nowrap;font-size:12px;border-radius:20px;padding:4px 9px;background:#edf2ec;color:#52664f}.question-answer-status.is-partial{background:#f4eddc;color:#7d683b}.question-answer-status.is-cannot_determine{background:#f0f0ee;color:#686d72}.question-answer-copy{margin:14px 0;white-space:pre-wrap;line-height:1.75;font-size:inherit}.question-answer-missing{font-size:14px;color:var(--muted);margin:8px 0 16px;padding-left:20px}.question-answer-sources{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px}.question-sources-label{font-size:12px;color:var(--muted)}.question-source-link{max-width:100%;text-align:left;border:1px solid var(--border);border-radius:9px;background:#faf9f6;padding:6px 10px;font-size:12px;color:var(--navy);overflow-wrap:anywhere}.question-source-link:hover{background:#efeee8}.question-answer-source-note{font-size:12px;color:var(--muted);line-height:1.5;margin:10px 0 0}.user-question-line{display:flex;align-items:baseline;gap:10px}.user-question-line+.user-question-line{margin-top:8px}@media(max-width:650px){.question-answer-card{padding:16px}.question-answer-heading{flex-direction:column;gap:8px}.question-answer-title{font-size:17px}.question-answer-copy{font-size:inherit}}

.question-answer-record{font-size:13px;color:var(--navy);margin:10px 0}.question-answer-record summary{cursor:pointer}.question-answer-record p{white-space:pre-wrap;color:var(--muted);line-height:1.65;padding:8px 12px;background:#faf9f6;border-left:2px solid var(--border)}

/* Cancellation shares the send control's position while the assistant is working. */
.stop-generation { margin-left:auto; display:inline-flex; align-items:center; gap:7px; min-height:42px; padding:9px 14px; border:1px solid #203852; border-radius:14px; background:#203852; color:#fff; font:inherit; font-size:15px; cursor:pointer; flex-shrink:0; }
.stop-generation svg { width:16px; height:16px; }
.stop-generation:hover { background:#314a65; }
.stop-generation:focus-visible { outline:3px solid #af9961; outline-offset:3px; }
.stop-generation:disabled { opacity:.65; cursor:wait; }
.stop-generation[hidden], .send-button[hidden] { display:none; }

body.is-generating .prompt-area { position:sticky; bottom:16px; z-index:20; background:var(--page-bg); border-radius:18px; box-shadow:0 -10px 24px var(--page-bg); }

.attachment-options>summary{list-style:none}.attachment-options>summary::-webkit-details-marker{display:none}
.attachment-options>summary::after{content:'⌄';margin-left:4px;color:var(--muted)}.attachment-options[open]>summary::after{content:'⌃'}
.attachment-toggle svg{width:18px;height:18px}.attachment-count{margin-left:auto;font-size:13px;color:var(--muted);font-weight:400}
.attachment-options .attachment-files{display:grid;gap:10px;padding:0;margin:14px 0 0;max-height:240px;overflow:auto}
.attachment-file{display:flex;align-items:center;gap:16px;padding:9px 11px;background:white;border:1px solid var(--border);border-radius:10px;font-size:14px}
.attachment-file label{display:flex;align-items:center;gap:9px;flex:1;min-width:0;cursor:pointer}.attachment-file label span{overflow-wrap:anywhere}
.attachment-file input{accent-color:var(--navy);width:17px;height:17px;flex-shrink:0}.attachment-file a{white-space:nowrap;font-size:13px;color:var(--navy);flex-shrink:0}
.attachment-options .quiet-copy{margin-left:0}
@media(max-width:600px){.attachment-options{padding:14px 16px}.attachment-file{gap:8px}}

.question-source-item{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%}
.question-source-item .view-source-button{margin-top:0;padding:6px 10px;font-size:12px;border-radius:9px;white-space:nowrap}
.question-source-availability{flex-basis:100%;font-size:12px;color:var(--muted);line-height:1.6}

/* Keep connection settings within reach, above a long conversation. */
.topbar .key-settings{flex-shrink:0}.topbar .key-settings>summary{border-color:var(--border);background:#fff;padding:8px 11px;color:var(--navy);font-size:13px;white-space:nowrap}
.topbar .api-key-panel{top:calc(100% + 12px);bottom:auto;left:auto;right:0;max-height:calc(100svh - 130px);overflow:auto;z-index:30}
@media(max-width:700px){.topbar .key-settings>summary{padding:5px 0;border:0;background:transparent;gap:5px}.topbar .key-settings>summary #key-settings-label{display:none}.topbar .key-settings>summary svg{width:15px;height:15px}.topbar .api-key-panel{position:fixed;left:16px;right:16px;top:110px;width:auto;max-width:none;max-height:calc(100svh - 132px)}}
