
:root{font-family:'Segoe UI',Arial,sans-serif;color:#17314c;background:#f5f7fa;font-synthesis:none;font-size:16px;--navy:#102c4c;--gold:#e8b443;--muted:#6b798a;--line:#e5eaf0;--white:#fff}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c9911c;outline-offset:3px}button{border:0}h1,h2,h3,p{margin:0}h1{font-size:2rem;letter-spacing:-1.1px;line-height:1.2}h2{font-size:1.25rem;letter-spacing:-.4px}h3{font-size:1.06rem}p{line-height:1.65}small{font-size:.8rem}label{font-size:.9rem;font-weight:600}input,select,textarea{width:100%;padding:13px 14px;border:1px solid #d6dee8;border-radius:9px;background:white;color:var(--navy);min-height:48px}textarea{resize:vertical;min-height:90px}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='m7 9 5 5 5-5' fill='none' stroke='%23102c4c' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:40px}label input,label select,label textarea{margin-top:8px}.icon{width:22px;height:22px;flex-shrink:0;vertical-align:middle}.skip{position:absolute;top:-80px;background:white;padding:16px;z-index:100}.skip:focus{top:0}.sidebar{position:fixed;inset:0 auto 0 0;width:242px;background:white;border-right:1px solid var(--line);padding:29px 22px;display:flex;flex-direction:column;z-index:20}.brand{position:relative;display:block;width:196px;height:67px;overflow:hidden}.brand img{position:absolute;width:100%;height:auto;left:0;top:50%;transform:translateY(-50%)}.nav-label{font-size:.72rem;letter-spacing:1.6px;color:#94a0af;margin:39px 14px 16px;font-weight:700}.sidenav{display:grid;gap:7px}.navitem{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:10px;font-size:.92rem;color:#67758a;font-weight:600}.navitem.active{background:var(--navy);color:white}.navitem:hover:not(.active){background:#f1f4f8}.sidebar-bottom{margin-top:auto}.local-card{padding:17px;background:#f7f8fb;border:1px solid var(--line);border-radius:12px;margin-bottom:16px}.local-card p{font-size:.82rem;color:var(--muted);margin:8px 0 12px}.text-link{color:var(--navy);background:none;padding:0;font-size:.86rem;text-decoration:underline;text-underline-offset:4px}.workspace{margin-left:242px}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 42px;background:white;gap:15px}.crumb{font-size:.9rem;color:#718094}.top-actions{display:flex;align-items:center;gap:17px}.prototype{font-size:.75rem;background:#fff7e3;color:#8b6315;border:1px solid #f0d99e;padding:7px 10px;border-radius:6px;font-weight:600;white-space:nowrap}.avatar{width:38px;height:38px;background:#e9eef4;color:var(--navy);border-radius:50%;display:grid;place-items:center;font-size:.8rem;font-weight:700}.user-name{font-size:.86rem;font-weight:600}.user-name small{display:block;color:var(--muted);font-weight:400;margin-top:2px}.icon-btn{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:white;color:#52667e}.content{max-width:1370px;margin:auto;padding:35px 42px 40px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:25px}.eyebrow{font-size:.73rem;text-transform:uppercase;letter-spacing:1.5px;font-weight:700;color:#8d6e28;margin-bottom:10px}.subtitle{color:var(--muted);font-size:.94rem;margin-top:9px}.date{font-size:.82rem;color:var(--muted)}.hero{position:relative;overflow:hidden;background:var(--navy);color:white;border-radius:18px;padding:32px 35px;min-height:230px;display:flex;align-items:center;justify-content:space-between;gap:20px}.hero-copy{max-width:470px;z-index:1}.hero .eyebrow{color:#ebc875}.hero h2{font-size:1.9rem;line-height:1.25;letter-spacing:-.8px;max-width:430px}.hero p{color:#b8c9db;font-size:.9rem;max-width:400px;margin:12px 0 21px}.btn{min-height:44px;border-radius:8px;padding:11px 18px;font-size:.9rem;font-weight:600;display:inline-flex;justify-content:center;align-items:center;gap:8px;background:var(--navy);color:white}.btn.gold{background:var(--gold);color:#17314c}.btn.light{background:white;color:var(--navy);border:1px solid var(--line)}.btn.ghost{background:#edf2f8;color:var(--navy)}.btn.small{min-height:36px;padding:8px 12px;font-size:.82rem}.hero-art{width:260px;height:200px;opacity:.85;flex-shrink:0}.hero:after{content:'';position:absolute;width:340px;height:340px;border:1px solid #ffffff0c;border-radius:50%;right:-50px;top:-60px;box-shadow:0 0 0 45px #ffffff03,0 0 0 90px #ffffff02}.section-head{display:flex;justify-content:space-between;align-items:center;margin:29px 0 16px;gap:12px}.section-head small{color:var(--muted)}.tools{display:grid;grid-template-columns:1fr 1fr 1fr;gap:17px}.tool{border:1px solid var(--line);background:white;border-radius:14px;padding:23px;position:relative}.tool-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:11px;background:#edf2f8;color:#214a72;margin-bottom:18px}.tool-icon.gold{background:#fff5dc;color:#b78724}.tool p{font-size:.86rem;color:var(--muted);margin:8px 0 19px;min-height:42px}.tool-actions{display:flex;gap:8px}.tool-actions .btn{flex:1}.tool .tag{position:absolute;top:22px;right:20px}.tag{font-size:.72rem;border-radius:5px;padding:5px 8px;color:#55718c;background:#edf2f7;display:inline-block;font-weight:600}.tag.gold{background:#fff5dc;color:#97701e}.dashboard-bottom{display:grid;grid-template-columns:1.5fr 1fr;gap:20px;margin-top:25px}.panel{background:white;border:1px solid var(--line);border-radius:14px;padding:24px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.empty{padding:25px 12px;text-align:center;color:var(--muted)}.empty .icon{width:32px;height:32px;margin-bottom:12px;color:#9badbf}.empty h3{color:#3b5269;margin-bottom:6px}.empty p{font-size:.87rem;margin-bottom:18px}.agent-teaser{background:#f0f4f9;border:1px solid #e1e8f0;border-radius:14px;padding:25px}.agent-mark{width:40px;height:40px;background:var(--navy);color:var(--gold);display:grid;place-items:center;border-radius:11px}.agent-teaser p{font-size:.88rem;color:#6b7d90;margin:12px 0 18px}.agent-title{display:flex;gap:12px;align-items:center}.agent-title small{color:var(--muted);display:block;margin-top:4px}.footnote{color:#8a96a5;font-size:.76rem;margin-top:28px;display:flex;align-items:center;gap:7px}.bottom-nav{display:none}.notice{padding:13px 16px;border:1px solid #eedcb4;background:#fffaf0;color:#856727;border-radius:9px;font-size:.86rem;line-height:1.55;margin-bottom:22px}.notice.blue{background:#eef4fa;color:#496681;border-color:#dbe6f1}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:19px}.full{grid-column:1/-1}.form-footer{display:flex;justify-content:space-between;gap:12px;margin-top:25px;padding-top:22px;border-top:1px solid var(--line)}.wizard-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px}.steps{display:flex;gap:10px;margin:0 0 25px}.step{flex:1;font-size:.82rem;color:#94a1af;border-top:3px solid #dce3eb;padding-top:10px}.step.active{color:var(--navy);border-color:var(--gold);font-weight:600}.aside-note h3{margin-bottom:12px}.aside-note p{font-size:.88rem;color:var(--muted);margin-bottom:18px}.stack{display:grid;gap:14px}.searchbar{display:grid;grid-template-columns:1fr 190px 190px;gap:12px;margin-bottom:22px}.property-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.property-card{background:white;border:1px solid var(--line);border-radius:13px;overflow:hidden}.property-art{height:125px;background:#e8edf3;position:relative;overflow:hidden;display:flex;justify-content:center;align-items:flex-end}.property-art.sand{background:#efece5}.property-art.green{background:#e6eeeb}.property-art svg{height:110px;width:220px;color:#9bafc2;opacity:.8}.property-art .tag{position:absolute;left:12px;top:12px;background:#ffffffdf;color:#526a82}.property-body{padding:18px}.property-body h3{margin-bottom:6px}.property-body p{font-size:.84rem;color:var(--muted)}.property-price{font-size:1.25rem;font-weight:700;margin:14px 0 5px}.property-details{font-size:.8rem;color:var(--muted);margin:12px 0}.property-body .btn{width:100%}.checkrow{display:flex;gap:14px;border:1px solid var(--line);border-radius:10px;padding:15px;align-items:center;cursor:pointer;font-weight:400}.checkrow:has(input:checked){border-color:#b68b38;background:#fffcf3}.checkrow input{width:20px;min-height:20px;flex-shrink:0;accent-color:var(--navy);margin:0}.checkrow strong{display:block;font-size:.9rem}.checkrow small{display:block;color:var(--muted);margin-top:5px}.checkrow .amount{margin-left:auto;font-size:.9rem;font-weight:600}.result-main{text-align:center;padding:28px 12px;background:#f2f6fa;border-radius:12px;margin:20px 0}.result-value{font-size:2.5rem;font-weight:700;letter-spacing:-1px;margin:8px}.result-main p{color:var(--muted);font-size:.87rem}.value-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.value-grid>div{border:1px solid var(--line);padding:17px;border-radius:10px}.value-grid strong{display:block;margin-top:8px;font-size:1.2rem}.memory{margin-top:24px;font-size:.87rem;color:var(--muted);line-height:1.7}.memory summary{cursor:pointer;color:var(--navy);font-weight:600;margin-bottom:12px}.record{display:flex;align-items:center;gap:14px;padding:17px 0;border-bottom:1px solid var(--line)}.record:last-child{border-bottom:0}.record-info{flex:1;min-width:0}.record-info strong{display:block;overflow-wrap:anywhere}.record-info small{display:block;color:var(--muted);margin-top:6px}.record .tool-icon{margin:0;width:39px;height:39px;flex-shrink:0}.modal-backdrop{position:fixed;inset:0;background:#10243e66;z-index:50;display:grid;place-items:center;padding:20px}.modal{background:white;border-radius:16px;padding:27px;max-width:560px;width:100%;max-height:90dvh;overflow:auto;box-shadow:0 20px 80px #071b3e33}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.error{color:#b24537;font-size:.88rem;margin-top:12px}.agent-backdrop{position:fixed;inset:0;background:#10243e55;z-index:49}.agent-drawer{position:fixed;inset:0 0 0 auto;width:420px;background:white;display:flex;flex-direction:column;z-index:50;box-shadow:-15px 0 70px #10243e22}.agent-header{padding:24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.agent-messages{padding:22px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:17px}.bubble{padding:15px;background:#f0f4f9;border-radius:12px;font-size:.9rem;line-height:1.65;white-space:pre-wrap}.bubble.user{background:var(--navy);color:white;align-self:flex-end;max-width:90%}.agent-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 22px 18px}.chip{background:white;border:1px solid #dce4ee;color:#4b627c;padding:9px 12px;border-radius:18px;font-size:.8rem}.agent-input{padding:18px 22px;border-top:1px solid var(--line);display:flex;gap:8px}.agent-input input{min-width:0}.agent-input .btn{padding:10px}.agent-context{padding:10px 22px;background:#fffaed;color:#8b6a23;font-size:.78rem}.room{padding:17px;border:1px solid var(--line);border-radius:10px;margin-bottom:14px}.room h3{margin-bottom:14px}.room-photo{width:90px;height:70px;object-fit:cover;border-radius:7px;margin:10px 6px 0 0}.profile-avatar{display:flex;align-items:center;gap:15px;margin-bottom:25px}.profile-avatar .avatar{width:60px;height:60px;font-size:1.2rem}.landing{max-width:1000px;margin:0 auto;padding:30px}.landing header{display:flex;justify-content:space-between;align-items:center;margin-bottom:60px}.landing-hero{padding:30px 0 60px;max-width:750px}.landing-hero h1{font-size:3.4rem;line-height:1.12}.landing-hero p{font-size:1.1rem;color:var(--muted);margin:25px 0}.landing .tools{margin-bottom:35px}.legal{font-size:.85rem;color:var(--muted);margin-top:25px}.mobile-brand{display:none}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;border-radius:9px;padding:14px 20px;z-index:100;box-shadow:0 6px 25px #102c4c33;display:none;font-size:.9rem;max-width:90vw}#toast.visible{display:block}.review-copy{padding:20px;background:#f6f8fa;border-radius:10px;margin:20px 0}.review-copy p{margin:8px 0;color:var(--muted)}
@media(min-width:1450px){.content{padding-top:42px}.hero{min-height:255px}.hero-art{width:320px}}
@media(max-width:1150px){.sidebar{width:205px;padding:25px 14px}.brand{width:173px}.workspace{margin-left:205px}.topbar{padding:0 25px}.content{padding:28px 25px}.tool{padding:19px}.tools{gap:12px}.hero-art{width:190px}.hero h2{font-size:1.65rem}.wizard-layout{grid-template-columns:1fr}.aside-note{display:none}.property-grid{grid-template-columns:1fr 1fr}.searchbar{grid-template-columns:1fr 150px 150px}}
@media(max-width:760px){.sidebar{display:none}.workspace{margin-left:0}.topbar{height:76px;padding:0 20px}.crumb,.user-name,.topbar .icon-btn{display:none}.mobile-brand{display:block}.mobile-brand .brand{width:164px;height:52px}.top-actions{gap:10px}.topbar .prototype{font-size:.65rem;padding:6px 7px}.avatar{width:32px;height:32px}.content{padding:27px 19px 105px}.page-heading{align-items:flex-start;margin-bottom:22px}h1{font-size:1.65rem}.subtitle{font-size:.87rem;line-height:1.5}.date{display:none}.hero{padding:25px 23px;min-height:240px}.hero-copy{max-width:100%}.hero h2{font-size:1.65rem;max-width:300px}.hero p{max-width:300px}.hero-art{display:none}.hero .eyebrow{font-size:.67rem}.tools{grid-template-columns:1fr}.tool{padding:21px;display:grid;grid-template-columns:48px 1fr;column-gap:15px}.tool-icon{margin:0;grid-row:1/4}.tool h3{padding-right:60px;line-height:1.4}.tool p{min-height:auto;margin:7px 0 15px}.tool-actions{grid-column:2}.tool .tag{right:16px;top:22px}.dashboard-bottom{grid-template-columns:1fr;margin-top:20px;gap:16px}.panel,.agent-teaser{padding:21px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fffffffa;border-top:1px solid var(--line);padding:9px 8px max(9px,env(safe-area-inset-bottom));z-index:30;justify-content:space-around;backdrop-filter:blur(12px)}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:.72rem;color:#8490a0;min-width:64px;padding:4px}.bottom-nav a.active{color:var(--navy);font-weight:700}.bottom-nav a.active:after{content:'';width:16px;height:3px;background:var(--gold);border-radius:3px}.section-head h2{font-size:1.13rem}.section-head small{font-size:.74rem}.fields,.grid2{grid-template-columns:1fr}.full{grid-column:auto}.steps{gap:6px}.step{font-size:.72rem}.property-grid{gap:13px}.property-body{padding:14px}.property-art{height:90px}.property-art svg{height:80px}.property-body h3{font-size:.93rem}.property-price{font-size:1.07rem}.property-body p,.property-details{font-size:.76rem}.searchbar{grid-template-columns:1fr 1fr}.searchbar input{grid-column:1/-1}.searchbar select{font-size:.85rem}.agent-drawer{width:min(100%,420px)}.checkrow{flex-wrap:wrap}.checkrow .amount{width:100%;margin-left:34px}.footnote{line-height:1.5}.form-footer{flex-wrap:wrap}.form-footer .btn{flex:1}.record{gap:10px}.record .btn{font-size:.75rem}.landing{padding:20px}.landing header{margin-bottom:25px;gap:12px}.landing header .brand{width:160px}.landing-hero h1{font-size:2.5rem}.landing .tool{display:block}.landing .tool-icon{margin-bottom:15px}.landing .tool h3{padding:0}.value-grid strong{font-size:1.05rem}.page-heading>.btn{font-size:.8rem;padding:10px}.result-value{font-size:2rem}#toast{bottom:92px}.notice{font-size:.81rem}.profile-avatar{align-items:flex-start}}
@media(prefers-reduced-motion:no-preference){.btn,.navitem{transition:background .15s,transform .15s}.btn:hover{filter:brightness(1.06)}.property-card{transition:box-shadow .2s}.property-card:hover{box-shadow:0 6px 25px #102c4c0b}}

/* Responsive sizing: allow grid/flex children to shrink without hiding content. */
html,body,#app{min-width:0;width:100%}
.workspace,.content,.panel,.tool,.agent-teaser,.property-card,.room,.hero-copy{min-width:0}
.content{width:100%}
input,select,textarea{min-width:0;max-width:100%}
input[type="file"]{overflow:hidden}
.tools{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid2,.fields,.value-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-bottom{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
.searchbar{grid-template-columns:minmax(0,1fr) 190px 190px}
.page-heading,.section-head,.panel-head{flex-wrap:wrap}
.page-heading>div,.section-head>*,.panel-head>*,.agent-title>div{min-width:0}
h1,h2,h3,p,.notice,.bubble,.record-info small,.review-copy{overflow-wrap:anywhere}
.btn{max-width:100%;white-space:normal;text-align:center}
.tool-actions{flex-wrap:wrap;min-width:0}
.tool-actions .btn{min-width:0}
.agent-mark,.avatar{flex-shrink:0}
.memory ul{padding-left:22px;margin:12px 0}
.memory p{margin:12px 0}
#main h1:focus{outline:none}

/* Keep every menu item reachable in short desktop and tablet windows. */
.sidebar{height:100vh;height:100dvh;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}
.sidebar>*{flex-shrink:0}
.sidebar-bottom{padding-top:24px}
.sidebar .brand{max-width:100%}

@media(max-width:1150px){
 .searchbar{grid-template-columns:minmax(0,1fr) 150px 150px}
}
@media(max-width:760px){
 .workspace{width:100%;margin-left:0}
 .topbar{height:auto;min-height:76px;padding:10px 14px;gap:8px}
 .mobile-brand{flex:0 1 164px;min-width:0}
 .mobile-brand .brand{width:100%;max-width:164px;height:52px}
 .top-actions{flex:0 1 auto;min-width:0;gap:0}
 .top-actions>.avatar{display:none}
 .topbar .prototype{white-space:normal;max-width:145px;text-align:center;line-height:1.4}
 .tools,.dashboard-bottom,.grid2,.fields{grid-template-columns:minmax(0,1fr)}
 .tool{grid-template-columns:45px minmax(0,1fr);column-gap:12px}
 .tool h3{padding-right:0}
 .tool .tag{position:static;grid-column:2;grid-row:1;justify-self:start;margin-bottom:9px;max-width:100%}
 .tool .tool-icon{grid-column:1;grid-row:1/5}
 .tool h3,.tool p,.tool-actions{grid-column:2}
 .searchbar{grid-template-columns:repeat(2,minmax(0,1fr))}
 .property-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .page-heading>.btn{flex:0 1 auto}
 .section-head{align-items:flex-start}
 .section-head small{max-width:100%}
 .bottom-nav{width:100%;gap:0}
 .bottom-nav a{min-width:0;flex:1 1 0;overflow-wrap:anywhere;text-align:center}
 .form-footer .btn{flex:1 1 130px}
 .agent-header{gap:12px;padding:18px}
 .agent-header .icon-btn{flex-shrink:0}
 .agent-title{min-width:0}
 .agent-title small{overflow-wrap:anywhere}
 .landing header{flex-wrap:wrap}
}
@media(max-width:380px){
 .property-grid,.value-grid{grid-template-columns:minmax(0,1fr)}
 .tool-actions{flex-direction:column}
 .content{padding-left:14px;padding-right:14px}
 .hero{padding:23px 19px}
 .result-value{font-size:1.8rem}
}
