[hidden]{display:none!important}
:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#18313e;background:#f3f7f8;-webkit-text-size-adjust:100%}
*{box-sizing:border-box}
body{margin:0;background:#f3f7f8}
.shell{max-width:760px;margin:auto;min-height:100dvh;display:flex;flex-direction:column;background:#fff;box-shadow:0 0 35px #d6e2e7}
header{padding:20px 16px;background:#183a4d;color:#fff}
h1{font-size:1.4rem;margin:0}
header p{margin:6px 0 0;color:#cfe0e8}
main{padding:16px;flex:1;display:flex;flex-direction:column;gap:14px}
.intro{background:#edf6f8;padding:14px;border-radius:14px;line-height:1.45}
.intro strong{display:block;margin-top:6px;font-weight:600;color:#7a1d1d}
#contact{display:block;margin-top:6px;color:#3b5664}
details{border:1px solid #d7e3e8;border-radius:12px;padding:10px 12px}
summary{cursor:pointer;color:#176b88;font-weight:600}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-top:10px}
.gallery figure{margin:0}.gallery img{width:100%;border-radius:8px;display:block}
.gallery figcaption{font-size:.85rem;color:#3b5664;margin-top:4px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips button{font:inherit;border:1px solid #bed5dd;background:#fff;border-radius:25px;padding:9px 13px;color:#1c5369;cursor:pointer}
.chat{display:flex;flex-direction:column;gap:12px;flex:1;min-height:160px}
.bubble{padding:12px 15px;border-radius:16px;max-width:92%;white-space:pre-wrap;line-height:1.5;overflow-wrap:anywhere}
.user{align-self:flex-end;background:#dceef5}
.assistant{align-self:flex-start;background:#f0f3f5}
.error{align-self:flex-start;color:#a42121;background:#fff0f0}
.notice{align-self:stretch;background:#fff4e5;border:1px solid #f0c38a;color:#6b3a00;font-weight:600}
.caveat{display:block;margin-top:8px;font-size:.85rem;color:#607680}
.bubble img{max-width:220px;max-height:160px;display:block;border-radius:10px;margin-top:8px}
form{border-top:1px solid #e2e8eb;padding:12px 16px calc(12px + env(safe-area-inset-bottom));display:grid;gap:10px;position:sticky;bottom:0;background:#fff}
textarea{font:inherit;font-size:16px;border:1px solid #b5c8d1;border-radius:12px;padding:12px;width:100%;resize:vertical;min-height:56px}
.actions{display:flex;gap:10px;align-items:center}
.photo-btn{cursor:pointer;border:1px solid #bed5dd;border-radius:10px;padding:10px 12px;color:#1c5369;white-space:nowrap}
.preview-wrap{position:relative}
#preview{max-width:72px;max-height:56px;border-radius:8px;display:block}
#remove{position:absolute;top:-8px;right:-8px;width:24px;height:24px;border-radius:50%;border:0;background:#18313e;color:#fff;cursor:pointer;line-height:1}
.send{margin-left:auto;font:inherit;background:#176b88;color:#fff;border:0;border-radius:10px;padding:11px 22px;font-weight:600;cursor:pointer}
.send:disabled{opacity:.5}
small{color:#607680;line-height:1.4}
.back{color:#cfe0e8;text-decoration:none;font-size:.9rem;display:inline-block;margin-bottom:8px}
#index p{margin:0 0 10px;color:#3b5664}
#property-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
#property-list a{display:flex;justify-content:space-between;align-items:center;padding:16px;border:1px solid #d7e3e8;border-radius:14px;color:#18313e;text-decoration:none;font-size:1.1rem;font-weight:600;background:#fff}
#property-list a:active,#property-list a:hover{background:#edf6f8}
.badge{font-size:.75rem;font-weight:500;color:#8a5a00;background:#fff4e5;border-radius:20px;padding:3px 9px}
