
/* Brand guide v1.0: Deep Burgundy primary, Golden Sand #F0E193 secondary,
   Terracotta/Mustard/Olive accents, neutral grays; display type in a wide
   grotesque (Archivo expanded) standing in for Loos Wide; wordmark lowercase */
:root{--wine:#5B0E14;--wine2:#76242A;--wine3:#8C3B40;--gold:#F0E193;--cream:#FFF8DC;--paper:#FFFDF7;--ink:#242424;--muted:#707070;--line:#EFE1E0;--green:#6B705C;--terracotta:#D98C5E;--mustard:#D4A017;--shadow:0 8px 24px #28080912;--font-display:"Archivo",Inter,system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:#F6F6F6;color:var(--ink);font:14px/1.45 Inter,system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer}.app{max-width:none;margin:0 auto;min-height:100vh;min-height:100dvh;background:var(--paper);position:relative;padding-bottom:calc(96px + env(safe-area-inset-bottom))}.hero{background:var(--wine);color:#fff5d8;padding:8px 16px 20px;position:relative;overflow:hidden}.hero:before,.hero:after{content:"";position:absolute;border-radius:50%;background:#a55f4b22;pointer-events:none}.hero:before{width:150px;height:150px;right:-35px;top:63px}.hero:after{width:110px;height:110px;left:-45px;bottom:-48px;background:#b7755024}.brandbar{height:40px;display:flex;align-items:center;gap:5px;border-bottom:1px solid #ffffff1a;padding-bottom:11px;position:relative;z-index:1}.logo{width:32px;height:32px;display:block;object-fit:contain;flex:none}.brandname{font-size:18px;font-weight:800;letter-spacing:0;text-transform:lowercase;color:var(--gold);font-family:var(--font-display);font-stretch:118%}.account{margin-left:0;flex:0 0 auto;font-size:12px;color:#f9e6ad;background:#ffffff12;border-radius:22px;padding:8px 10px;position:relative;z-index:2;border:0;cursor:pointer;font-family:inherit}.hero-copy{position:relative;z-index:1;padding-top:4px;display:flex;align-items:center;justify-content:space-between;gap:12px}.hero-heading{flex:1;min-width:0}.hero h1{font-size:25px;line-height:1.16;letter-spacing:-.7px;margin:0 0 5px;max-width:260px}.hero p{margin:0;color:#e3c8b8;font-size:14px}.searchrow{display:flex;gap:8px;margin-top:17px;position:relative;z-index:2;max-width:620px}.searchbox{display:flex;align-items:center;gap:8px;background:#fff;border-radius:13px;padding:0 13px;min-width:0;flex:1;height:43px;color:#80766f}.searchbox input{border:0;outline:0;width:100%;font-size:13px;color:var(--ink)}.searchgo{width:55px;border:0;border-radius:13px;background:var(--gold);color:var(--wine);font-weight:800;font-size:17px}.cities{display:flex;gap:7px;overflow:auto;scrollbar-width:none;margin-top:11px;position:relative;z-index:2}.cities::-webkit-scrollbar{display:none}.city{border:1px solid #ffffff12;color:#f8e9c7;background:#ffffff12;border-radius:20px;padding:7px 12px;font-size:11px;white-space:nowrap}.city.active,.city:hover{background:#ffffff23}.rentals{display:flex;align-items:center;gap:8px;background:#fff9ed;padding:10px 14px;overflow:auto;scrollbar-width:none;border-bottom:1px solid var(--line)}.rentals b{font-size:10px;color:var(--wine);white-space:nowrap}.rentalchip{white-space:nowrap;border:1px solid #efe5d1;border-radius:22px;padding:7px 10px;background:white;font-size:11px}.rentalchip strong{color:var(--wine)}.trustrow{display:flex;justify-content:space-around;align-items:center;padding:12px 8px;color:#736c63;font-size:10px;border-bottom:1px solid var(--line)}.trustrow span{white-space:nowrap}.trustrow i{color:var(--wine);font-style:normal;margin-right:4px}.dealtabs{display:flex;gap:8px;padding:14px 15px 0}
.dealtabs .deal{flex:1;text-align:center;white-space:nowrap}
.dealtabs.inbox-filters .deal{flex:0 0 auto}.deal{border:1px solid #eadfd3;background:#fff;border-radius:10px;padding:8px 13px;color:#74685f;font-size:11px;font-weight:700}.deal.active{background:var(--wine);color:var(--cream);border-color:var(--wine)}.section{padding:16px 15px 0}.sectionhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.sectionhead h2{font-size:17px;letter-spacing:-.35px;margin:0;color:#332322}.sectionhead button{border:0;background:transparent;color:var(--wine);font-weight:750;font-size:11px;padding:9px 10px;min-height:36px}.hscroll{display:flex;gap:11px;overflow:auto;scrollbar-width:none;padding:0 0 5px}.hscroll::-webkit-scrollbar{display:none}.property{min-width:235px;max-width:235px;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}.property.wide{min-width:270px;max-width:270px}.photo{height:124px;position:relative;overflow:hidden;background:#f2d886;--photo-loader-surface:#f2d886;--photo-loader-dot-border:#5b0e14;--photo-loader-dot-fill:#f6df91}.photo>img.property-wallpaper{position:relative;z-index:0;width:100%;height:100%;object-fit:cover;display:block;pointer-events:none;-webkit-user-drag:none;user-select:none}.photo-loading{position:absolute;inset:0;z-index:1;pointer-events:none;display:grid;place-items:center;background:var(--photo-loader-surface,#fffdf7);opacity:1;visibility:visible;transition:opacity .18s ease,visibility .18s ease}.photo.image-loaded .photo-loading,.srs-photo.image-loaded .photo-loading{opacity:0;visibility:hidden}.photo.image-error .photo-loader-dot{animation-play-state:paused}.photo-loader-mark{position:relative;width:84px;height:84px;display:grid;place-items:center}.photo-loader-mark img{display:block;position:relative;z-index:2;width:84px;height:84px;object-fit:contain}.photo-loader-dot{position:absolute;left:0;top:0;width:7px;height:7px;border:1.5px solid var(--photo-loader-dot-border,#5b0e14);border-radius:50%;background:var(--photo-loader-dot-fill,#f6df91);box-shadow:0 0 0 3px #d7b85d35;offset-path:path("M7 42 L77 42");offset-distance:0%;offset-rotate:0deg;animation:sb-photo-logo-run 1.8s linear infinite;pointer-events:none}[data-theme="dark"] .photo,[data-theme="dark"] .srs-photo{background:#5b0e14;--photo-loader-surface:#5b0e14;--photo-loader-dot-border:#d7b85d;--photo-loader-dot-fill:#5b0e14}[data-theme="dark"] .photo .photo-loading,[data-theme="dark"] .srs-photo .photo-loading{background:#5b0e14}[data-theme="dark"] .photo-loader-mark img{content:url("./assets/shelterbaze-loader-dark.svg?v=174")}@keyframes sb-photo-logo-run{to{offset-distance:100%}}@media(prefers-reduced-motion:reduce){.photo-loader-dot{animation-duration:4s}}.photo .featured,.photo .heart{z-index:2}.featured{position:absolute;top:9px;left:9px;background:var(--gold);color:#57321f;border-radius:20px;padding:4px 8px;font-size:9px;font-weight:800}.heart{position:absolute;right:5px;top:4px;background:#fff;border:0;border-radius:50%;width:38px;height:38px;color:#8b6153;font-size:18px}.heart.saved{color:var(--terracotta)}.pbody{padding:10px}.listingtitle{font-weight:780;font-size:13px;line-height:1.25}.price{color:var(--wine);font-weight:850;margin-top:5px;font-size:14px}.price small{color:#8b7f77;font-size:10px;font-weight:500}.loc{font-size:10px;color:var(--muted);margin-top:3px}.facts{font-size:10px;color:#786d65;margin-top:8px;display:flex;gap:11px}.label{font-size:9px;color:var(--green);font-weight:800;background:#eaf4e9;padding:4px 7px;border-radius:10px;margin-left:5px}.empty{padding:28px;text-align:center;color:var(--muted)}.page{padding:16px 15px}.page h1{font-size:22px;margin:3px 0 2px;letter-spacing:-.5px}.page p{color:var(--muted);margin:0 0 15px;font-size:12px}.filters{display:flex;gap:7px;margin:12px 0;flex-wrap:wrap}.field,.select{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 10px;font-size:12px;color:var(--ink)}.field{flex:1;min-width:160px}.select{max-width:150px}.list{display:grid;gap:10px}.rowcard{display:grid;grid-template-columns:105px 1fr;gap:11px;background:white;border:1px solid var(--line);border-radius:13px;padding:8px}.rowcard img{width:105px;height:92px;object-fit:cover;border-radius:9px}.rowcard h3{font-size:12px;margin:3px 0}.rowcard .price{margin:0}.btn{border:0;background:var(--wine);color:var(--cream);border-radius:10px;padding:9px 12px;font-size:11px;font-weight:800}.btn.gold{background:var(--gold);color:var(--wine)}.mini{font-size:10px;padding:7px 9px}.bottomnav{position:fixed;bottom:0;left:0;transform:none;width:100%;height:67px;margin-top:0;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:space-evenly;align-items:center;z-index:10;padding:4px 2px env(safe-area-inset-bottom)}.navitem{border:0;background:none;color:#7d7a75;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:9px;min-width:42px}.navitem .ni{font-size:18px;line-height:1.1}.navitem.active{color:var(--wine);font-weight:800}.navitem.active:after{content:"";width:4px;height:4px;background:var(--wine);border-radius:50%;margin-top:1px}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;margin:12px 0;box-shadow:var(--shadow)}.panel h2{font-size:15px;margin:0 0 10px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:9px}.stat{background:#fff9ef;border:1px solid #f0e7d8;border-radius:12px;padding:12px}.stat b{font-size:17px;color:var(--wine);display:block}.stat small{color:var(--muted);font-size:10px}.progress{height:8px;border-radius:9px;background:#eee9df;overflow:hidden;margin:9px 0}.progress span{display:block;height:100%;background:var(--wine);border-radius:9px}.chat{display:grid;gap:9px;margin:14px 0}.bubble{background:#f4f0e9;border-radius:13px 13px 13px 3px;padding:10px 12px;max-width:86%;font-size:12px}.bubble.mine{justify-self:end;background:#f3e3bb;border-radius:13px 13px 3px 13px}.compose{display:flex;gap:8px}.compose input{flex:1}.modalback{position:fixed;inset:0;background:#27111188;z-index:20;display:grid;place-items:center;padding:16px}.modal{width:min(420px,100%);background:#fffdf7;border-radius:17px;padding:18px;max-height:90vh;overflow:auto}.modalhead{display:flex;justify-content:space-between;align-items:center}.modalhead h2{font-size:17px;margin:0}.close{border:0;background:#f2ece3;border-radius:50%;width:30px;height:30px;font-size:18px}.form{display:grid;gap:10px;margin-top:12px}.form label{display:grid;gap:4px;font-size:11px;font-weight:700}.form input,.form select,.form textarea{border:1px solid var(--line);border-radius:9px;padding:9px}.toast{position:fixed;bottom:78px;left:50%;transform:translateX(-50%);background:var(--wine);color:#fff2d1;padding:10px 14px;border-radius:12px;z-index:30;font-size:12px;box-shadow:var(--shadow)}
.bottomnav{overflow-x:auto;scrollbar-width:none}.bottomnav::-webkit-scrollbar{display:none}.navitem{flex:0 0 54px}.filters{align-items:center}.filters .select{flex:1;min-width:125px}.textbtn{border:0;background:transparent;padding:10px 6px;color:var(--wine);font-size:11.5px;font-weight:750;min-height:38px}.rowcard[role=button]{cursor:pointer}.rowcard[role=button]:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--wine3);outline-offset:2px}.empty{line-height:1.6}
.chat-panel{padding:0;overflow:hidden}.conversation-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-bottom:1px solid var(--line)}.conversation-agent{display:flex;align-items:center;gap:10px}.agent-avatar{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:50%;background:#f1dfb2;color:var(--wine);font-size:12px;font-weight:850}.conversation-head .label{margin:0}.chat{display:grid;gap:9px;min-height:230px;max-height:48vh;overflow-y:auto;padding:14px 12px;background:#fffdf8;align-content:start}.message-row{display:flex;width:100%}.message-row.outgoing{justify-content:flex-end}.message-row.incoming{justify-content:flex-start}.bubble{max-width:84%;padding:9px 11px;border-radius:13px 13px 13px 3px;background:#f2f0eb;font-size:12px;overflow-wrap:anywhere}.bubble.mine{background:#f3e3bb;border-radius:13px 13px 3px 13px}.message-meta{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-top:4px;color:#827970;font-size:9px;line-height:1}.receipt{font-size:12px;font-weight:800;letter-spacing:-3px;padding-right:3px;white-space:nowrap}.receipt.read{color:#269be8}.chat-panel .compose{padding:11px 12px 8px;border-top:1px solid var(--line)}.receipt-note{padding:0 14px 11px;text-align:right;color:var(--muted);font-size:9px}
.conversation-list{display:grid;gap:9px}.conversation-card{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:10px;cursor:pointer;min-width:0}.conversation-card:focus-visible{outline:2px solid var(--wine3);outline-offset:2px}.conversation-summary{flex:1;min-width:0}.conversation-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.conversation-title b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.conversation-title time{color:var(--muted);font-size:9px;white-space:nowrap;flex:none}.conversation-summary .loc{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-preview{font-size:11px;color:#625a55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.conversation-actions{align-self:flex-start}.unread-count{display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:20px;background:var(--wine);color:#fff;font-size:9px;font-weight:800}.navitem .unread-count{position:absolute;margin-left:25px;margin-top:-7px}.navitem{position:relative}.inbox-search{width:100%;margin:0 0 9px}.inbox-filters{padding:2px 0 10px}.auth-error,.send-failed,.offline-notice{padding:9px 11px;border-radius:9px;background:#fff0ed;color:#8f302a;font-size:11px;margin:8px 0}.offline-notice{background:#fff5df;color:#684b0b}.thread-top{display:flex;align-items:center;gap:9px;padding-bottom:11px;border-bottom:1px solid var(--line)}.back-button{border:0;background:#f3ece3;border-radius:50%;width:40px;height:40px;font-size:23px;color:var(--wine);line-height:1;flex:none}.thread-contact{flex:1;min-width:0}.thread-contact b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.chat-page{display:flex;flex-direction:column;min-height:55vh}.property-context{display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;border:1px solid #eadfc9;background:#fff9ed;border-radius:10px;padding:9px 11px;margin:9px 0;color:var(--wine);min-width:0}.property-context b{font-size:11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;max-width:100%}.property-context span{font-size:10px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.thread-messages{display:flex;flex-direction:column;gap:9px;flex:1;min-height:230px;max-height:48vh;overflow-y:auto;padding:12px 2px}.day-divider{text-align:center;color:var(--muted);font-size:9px;margin:4px}.day-divider span{background:#f4f0e9;padding:4px 9px;border-radius:20px}.message-body{white-space:pre-wrap;overflow-wrap:anywhere}.receipt.delivered{color:#7b7976}.receipt.sent{color:#8d8881}.message-image{max-width:min(250px,65vw);max-height:240px;border-radius:9px;display:block;margin-top:5px}.message-image-link{display:block}.live-compose{align-items:center;border-top:1px solid var(--line);padding-top:9px}.live-compose .field{min-width:0}.attach-button{position:relative;width:44px;height:44px;display:grid;place-items:center;border:0;padding:0;border-radius:50%;background:#f4eee3;color:var(--wine);font-size:22px;line-height:1;cursor:pointer}.attach-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.receipt-note{font-size:9px;color:var(--muted);text-align:right;padding-top:7px}.account-panel{display:flex;align-items:center;gap:12px}button[hidden],span[hidden]{display:none!important}
.auth-panel{display:grid;gap:8px}.google-signin{display:flex;align-items:center;justify-content:center;gap:9px;background:#fff;color:var(--ink);border:1px solid var(--line);padding:10px}.google-signin:hover{background:#fffaf0}.google-mark{font-weight:900;font-size:15px;color:#4285f4}.auth-divider{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:10px;margin:3px 0}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--line);flex:1}.auth-hint{display:block;color:var(--muted);font-size:9px;line-height:1.5}.passkey-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:1px solid #e6d8ba;background:#fff8e8;color:var(--wine);border-radius:10px;padding:10px;font-size:11px;font-weight:800}.passkey-button:disabled{opacity:.55;cursor:not-allowed}.magic-link,.auth-switch{justify-self:center}.auth-message{padding:9px 11px;border-radius:9px;background:#edf7ed;color:#355c37;font-size:11px;margin:8px 0}

/* Property details pages (Prompt 2) */
.gallery{margin:4px 0 10px}
.gallery-main{position:relative;border-radius:13px;overflow:hidden;background:linear-gradient(135deg,#dbcfc1,#9d8274)}
.gallery-main img{width:100%;height:240px;object-fit:cover;display:block}
.gallery-main video.propertyvideo{width:100%;display:block}
.galnav{position:absolute;top:50%;transform:translateY(-50%);border:0;background:#ffffffd9;color:var(--wine);width:34px;height:34px;border-radius:50%;font-size:20px;line-height:1}
.galnav.prev{left:9px}.galnav.next{right:9px}
.galcount{position:absolute;right:10px;bottom:8px;background:#271111b3;color:#fff2d1;border-radius:20px;padding:3px 9px;font-size:10px}
.gallerythumbs{display:flex;gap:7px;overflow:auto;margin-top:8px;padding-bottom:3px}
.gallerythumbs img{width:62px;height:46px;object-fit:cover;border-radius:8px;opacity:.65;cursor:pointer;flex:none;border:2px solid transparent}
.gallerythumbs img.active{opacity:1;border-color:var(--gold)}
.contactpanel{border-color:#e4d3b4}

/* Only the Home page shows the full hero header; other pages keep the brand bar */
body:not(.home-page) .hero,body:not(.home-page) .rentals,body:not(.home-page) .trustrow{display:none}
body:not(.home-page) .app{padding-top:0}

/* Sticky brand header shared across every page.
   Light theme (original): wine bar, cream wordmark.
   Dark theme (Base44-matched): cream-gold bar, wine wordmark. */
.topbar{position:sticky;top:0;z-index:12;background:var(--wine);padding:0 16px;padding-top:env(safe-area-inset-top)}
@media(max-width:759px){
  .topbar{padding-top:max(12px, env(safe-area-inset-top))}
  .topbar .brandname{font-size:16px}
  .topbar .logo{width:32px;height:32px}
  .brandbar{height:auto;padding-bottom:12px}
}
[data-theme="dark"] .topbar{background:#EBD798}
[data-theme="dark"] .topbar .brandname{color:var(--wine)}
.hero h1,.page h1,.sectionhead h2{font-family:var(--font-display);font-stretch:116%}

/* Agents page (Base44-matched layout) */
.agentbanner{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;background:#EBD798;color:#591C1C;border-radius:13px;padding:14px;margin:10px 0;cursor:pointer;text-align:left}
.agentbanner b{font-size:14px}
.agentbanner .loc{color:#7a5c33}
.agentbanner-arrow{font-size:18px;font-weight:800}
.landlordcard{display:flex;gap:12px;align-items:flex-start;border-color:#e4d3b4}
[data-theme="dark"] .agentbanner{background:#EBD798;color:#591C1C}
[data-theme="dark"] .agentbanner .loc{color:#7a5c33}
[data-theme="dark"] .landlordcard{background:#221a18;border-color:#4a2b28}

/* Multi-unit property system */
.statuspill{display:inline-block;padding:3px 8px;border-radius:20px;font-size:9px;font-weight:800;letter-spacing:.04em;white-space:nowrap}
.pill-available{background:#eaf4e9;color:#4c6b45}
.pill-reserved{background:#fff3d6;color:#8a6100}
.pill-rented{background:#f7e3e0;color:#8f302a}
.pill-draft{background:#eeeae2;color:#6d675e}
.pill-unavailable{background:#eeeae2;color:#6d675e}
.unitgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:10px}
.unitcard{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden;box-shadow:var(--shadow)}
.unitcard .pbody{padding:10px}
.unitactions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.building-card{border-color:#e4d3b4}
.buildingphoto img{width:100%;height:200px;object-fit:cover;border-radius:13px;background:linear-gradient(135deg,#dbcfc1,#9d8274)}
@media(min-width:760px){.unitgrid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}}

/* Theme system — light (original palette) and dark (Base44-matched palette).
   data-theme is set on <html> from the Profile setting or the device preference. */
[data-theme="dark"] body{background:#0a0a0a;color:#f2ecdf}
[data-theme="dark"] .app{background:#141210;box-shadow:none}
[data-theme="dark"] .hero{background:#EBD798;color:#591C1C}
[data-theme="dark"] .hero:before,[data-theme="dark"] .hero:after{background:#c9a96b40}
[data-theme="dark"] .hero h1{color:#4a1216}
[data-theme="dark"] .hero p{color:#7a4a40}
[data-theme="dark"] .hero .eyebrow{color:#5B0E14;opacity:1}
[data-theme="dark"] .hero .account{background:#591c1c1f;color:#591C1C}
[data-theme="dark"] .searchbox{background:#1c1a17;color:#bfb6a8;border:1px solid #383127}
[data-theme="dark"] .searchbox input{color:#f2ecdf;background:transparent}
[data-theme="dark"] .searchgo{background:#5B0E14;color:#fff2d1}
[data-theme="dark"] .city{background:#241f19;color:#e8ddc6;border-color:#3a332a}
[data-theme="dark"] .city.active,[data-theme="dark"] .city:hover{background:#591C1C;color:#fff2d1;border-color:#591C1C}
[data-theme="dark"] .rentals{background:#1b1815;border-color:#2a251f}
[data-theme="dark"] .rentals b{color:#EBD798}
[data-theme="dark"] .rentalchip{background:#242019;border-color:#383127;color:#e8ddc6}
[data-theme="dark"] .rentalchip strong{color:#EBD798}
[data-theme="dark"] .trustrow{color:#a89e8f;border-color:#2a251f}
[data-theme="dark"] .trustrow i{color:#EBD798}
[data-theme="dark"] .sectionhead h2{color:#EBD798}
[data-theme="dark"] .sectionhead button,[data-theme="dark"] .textbtn{color:#EBD798}
[data-theme="dark"] .property,[data-theme="dark"] .unitcard,[data-theme="dark"] .rowcard,[data-theme="dark"] .panel,[data-theme="dark"] .stat,[data-theme="dark"] .conversation-card{background:#1b1815;border-color:#2a251f}
[data-theme="dark"] .listingtitle,[data-theme="dark"] .rowcard h3,[data-theme="dark"] .page h1,[data-theme="dark"] .page h2,[data-theme="dark"] .panel h2,[data-theme="dark"] .modalhead h2,[data-theme="dark"] .stat b{color:#f2ecdf}
[data-theme="dark"] .price{color:#E5C069}
[data-theme="dark"] .price small,[data-theme="dark"] .loc,[data-theme="dark"] .facts,[data-theme="dark"] .empty,[data-theme="dark"] .stat small{color:#a89e8f}
[data-theme="dark"] .dealtabs .deal{background:#1b1815;border-color:#383127;color:#cfc6b5}
[data-theme="dark"] .dealtabs .deal.active{background:#EBD798;color:#591C1C;border-color:#EBD798}
[data-theme="dark"] .field,[data-theme="dark"] .select{background:#1b1815;border-color:#383127;color:#f2ecdf}
[data-theme="dark"] .bottomnav{background:#141210;border-color:#2a251f}
[data-theme="dark"] .bottomnav .navitem{color:#8d8577}
[data-theme="dark"] .bottomnav .navitem.active{color:#EBD798}
[data-theme="dark"] .navitem.active:after{background:#EBD798}
[data-theme="dark"] .modal{background:#1b1815;color:#f2ecdf;border:1px solid #2a251f}
[data-theme="dark"] .close{background:#2a251f;color:#f2ecdf}
[data-theme="dark"] .form label{color:#cfc6b5}
[data-theme="dark"] .form input,[data-theme="dark"] .form select,[data-theme="dark"] .form textarea{background:#141210;border-color:#383127;color:#f2ecdf}
[data-theme="dark"] .chat{background:#141210}
[data-theme="dark"] .bubble{background:#242019;color:#f2ecdf}
[data-theme="dark"] .bubble.mine{background:#3a2f1d;color:#f2ecdf}
[data-theme="dark"] .compose input{background:#1b1815;border-color:#383127;color:#f2ecdf}
[data-theme="dark"] .statuspill.pill-available{background:#22301f;color:#a8c79a}
[data-theme="dark"] .statuspill.pill-reserved{background:#3a2f1d;color:#EBD798}
[data-theme="dark"] .statuspill.pill-rented{background:#38201d;color:#e0a49b}
[data-theme="dark"] .auth-exit{background:#1b1815;border-color:#383127;color:#e8ddc6}
[data-theme="dark"] .label{background:#26301f;color:#a8c79a}
[data-theme="dark"] .featured{background:#EBD798;color:#591C1C}
[data-theme="dark"] .heart{background:#242019;color:#d8c89a}
[data-theme="dark"] .progress{background:#2a251f}
.theme-row{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:12px}
.theme-row .loc{font-size:11px}
.theme-row .theme-option.active{color:#591C1C;font-weight:800}
.theme-row .theme-option{border:1px solid #dfe5ec;border-radius:9px;background:#fff;padding:5px 9px;font-size:10px}
[data-theme="dark"] .theme-row .theme-option{background:#1b1815;border-color:#383127;color:#e8ddc6}
[data-theme="dark"] .theme-row .theme-option.theme-active,[data-theme="dark"] .theme-row .theme-option.active{background:#EBD798;border-color:#EBD798;color:#591C1C;font-weight:800}

/* Search pagination + listing preview */
.pagination{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap;margin:18px 0 6px}
.pgbtn{border:1px solid var(--line);background:#fff;border-radius:9px;min-width:38px;height:38px;padding:0 11px;font:inherit;font-size:12.5px;font-weight:700;color:#5c5348;cursor:pointer}
.pgbtn:hover:not(:disabled){background:#f6ecda;border-color:#e4d3b4}
.pgbtn.on{background:var(--wine);color:var(--cream);border-color:var(--wine)}
.pgbtn:disabled{opacity:.4;cursor:not-allowed}
.pgdots{color:var(--muted);padding:0 2px}
[data-theme="dark"] .pgbtn{background:#1b1815;border-color:#383127;color:#e8ddc6}
[data-theme="dark"] .pgbtn:hover:not(:disabled){background:#2a251f}
[data-theme="dark"] .pgbtn.on{background:#EBD798;color:#591C1C;border-color:#EBD798}
.previewwrap{max-height:55vh;overflow:auto;margin-top:8px}

/* Home page upgrade: hero stats, quick filters, join card */
.herostats{margin-top:12px;position:relative;z-index:2}
.statrow{display:flex;gap:7px;flex-wrap:wrap}
.statchip{display:inline-flex;align-items:center;gap:5px;background:#ffffff14;border:1px solid #ffffff1f;color:#f8e9c7;border-radius:20px;padding:7px 11px;font-size:11px;white-space:nowrap}
.statchip b{color:var(--gold)}
.quickrow{display:flex;gap:7px;overflow:auto;scrollbar-width:none;margin-top:9px}
.quickrow::-webkit-scrollbar{display:none}
.joincard{border-color:#e4d3b4;background:#fff9ed}
.joincard b{font-size:15px;color:var(--wine)}
.joincard .loc{margin:6px 0 10px;font-size:12px}
[data-theme="dark"] .statchip{background:#241f19;border-color:#3a332a;color:#e8ddc6}
[data-theme="dark"] .joincard{background:#221a18;border-color:#4a2b28}
body.home-page .trustrow{display:none}

/* Profile page (Base44-matched menu) */
.profile-page{padding-top:0}
.pbanner{margin:0 -15px 34px;height:110px;background:linear-gradient(115deg,#EBD798,#d9c17b 70%,#c9a96b)}
.pavatar{position:absolute;left:15px;top:70px;width:74px;height:74px;border-radius:50%;background:var(--wine);color:var(--gold);display:grid;place-items:center;font-size:30px;font-weight:850;border:3px solid var(--paper)}
.pidrow{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:0 0 6px}
.pidrow h1{margin:0}
.plabel{font-size:10px;font-weight:800;letter-spacing:.1em;color:var(--wine);text-transform:uppercase;margin:16px 0 8px}
[data-theme="dark"] .plabel{color:#EBD798}
.pcard{background:#fff;border:1px solid var(--line);border-radius:14px;padding:4px;overflow:hidden}
[data-theme="dark"] .pcard{background:#1b1815;border-color:#2a251f}
.prow{display:flex;width:100%;align-items:center;gap:11px;border:0;background:transparent;font:inherit;text-align:left;padding:11px 10px;border-radius:10px;cursor:pointer;color:var(--ink)}
.prow:hover{background:#f8f2e4}
[data-theme="dark"] .prow:hover{background:#2a251f}
.prow.static{cursor:default}
.prow.static:hover{background:transparent}
.prow.danger .prowmain b{color:#8f302a}
.prowico{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:50%;background:#f6ecda;color:var(--wine);font-size:15px}
[data-theme="dark"] .prowico{background:#2a251f;color:#EBD798}
.prowmain{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.prowmain b{font-size:13px}
.prowmain small{color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prowchev{color:var(--muted);font-size:16px;font-weight:700}
.ptoggle{position:relative;width:48px;height:30px;flex:none;border:0;border-radius:20px;background:#d2d2d2;cursor:pointer;transition:background .15s}
.ptoggle span{position:absolute;left:4px;top:4px;width:22px;height:22px;border-radius:50%;background:#fff;transition:left .15s}
.ptoggle.on{background:var(--wine)}
.ptoggle.on span{left:22px}

/* More menu (navigation shortcuts + role switcher) */
.moreback{position:fixed;inset:0;z-index:14;background:transparent}
.moresheet{position:fixed;z-index:15;background:var(--paper);border:1px solid var(--line);border-radius:18px 18px 0 0;box-shadow:0 -10px 40px #32181826;left:0;right:0;bottom:calc(67px + env(safe-area-inset-bottom));padding:14px 16px calc(14px + env(safe-area-inset-bottom));max-width:520px;margin:0 auto;max-height:70vh;overflow:auto}
.morehead{font-size:10px;font-weight:800;letter-spacing:.1em;color:var(--wine);text-transform:uppercase;margin:4px 0 8px}
.moreroles{margin-bottom:6px}
.morerole{flex:1}
.morelink{display:block;width:100%;text-align:left;border:0;background:transparent;font:inherit;padding:11px 10px;border-radius:11px;cursor:pointer;color:var(--ink)}
.morelink span{display:block;font-weight:750;font-size:13.5px}
.morelink small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.morelink:hover{background:#f6ecda}
.morelink.current{background:#f6ecda}
.morelink.current span{color:var(--wine)}
.morelink.locked span{color:var(--muted)}
.morelink.locked small{color:#b09a5e}
.moreguest{font-size:11.5px;color:var(--muted);background:#fff8e8;border:1px solid #eadfc9;border-radius:10px;padding:9px 11px;margin:2px 0 10px}
[data-theme="dark"] .moresheet{background:#1b1815;border-color:#2a251f}
[data-theme="dark"] .morelink{color:#f2ecdf}
[data-theme="dark"] .morelink:hover,[data-theme="dark"] .morelink.current{background:#2a251f}
@media(min-width:760px){
  .moresheet{border-radius:16px;left:auto;right:max(16px,calc((100% - 1100px)/2));bottom:auto;top:60px;width:320px;box-shadow:0 18px 44px #32181833;max-height:70vh}
}

/* Base44-matched Shelterbaze authentication pages */
body.auth-screen{background:#4a0e16}
.auth-page.xauth{padding:0}
.xscene{position:relative;min-height:100vh;overflow:hidden;background:linear-gradient(160deg,#5B0E14 0%,#4a0e16 55%,#3f0c12 100%);color:#fff5e2;display:flex;flex-direction:column;padding:22px 20px 30px;max-width:560px;margin:0 auto}
.xblobs{position:absolute;inset:0;pointer-events:none;background:
  radial-gradient(340px 260px at 88% 4%, #EBD79833 0%, transparent 60%),
  radial-gradient(300px 240px at 95% 22%, #8a5a3a55 0%, transparent 65%),
  radial-gradient(420px 300px at -12% 108%, #EBD7982b 0%, transparent 62%),
  radial-gradient(260px 220px at 12% 96%, #6b705c33 0%, transparent 60%)}
.xback{position:relative;z-index:2;align-self:flex-start;border:0;background:transparent;color:#EBD798;font-size:30px;line-height:1;cursor:pointer;padding:2px 8px;margin-left:-8px}
.xbrand{position:relative;z-index:1;display:flex;align-items:center;gap:10px;margin-top:4px}
.xbrandmark{width:52px;height:52px;border-radius:14px;background:#EBD798;display:grid;place-items:center;flex:none;box-shadow:0 4px 14px #00000042}
.xbrandmark img{width:34px;height:34px;object-fit:contain}
.xbrandname{font-size:24px;font-weight:800;color:#F0E193;letter-spacing:0;text-transform:lowercase;font-family:var(--font-display);font-stretch:118%}
.xtag{display:block;width:100%;font-size:11.5px;color:#e3c8b8;margin-top:1px}
.xbrand{flex-wrap:wrap}
.xbrand .xtag{flex-basis:100%;margin-left:62px;margin-top:-4px}
.xhero{position:relative;z-index:1;font-size:26px;line-height:1.22;margin:20px 0 8px;color:#fff5e2;max-width:420px}
.xhero em{color:#EBD798;font-style:italic}
.xherosub{position:relative;z-index:1;color:#e3c8b8;font-size:13.5px;line-height:1.55;margin:0 0 20px;max-width:400px}
.xcard{position:relative;z-index:2;background:#EBD798;border-radius:22px;padding:20px 18px 18px;color:#3d1016;box-shadow:0 18px 44px #1c050866}
.xcard h2{margin:0 0 3px;color:#4a0e16;font-size:20px}
.xsub{margin:0 0 14px;color:#6b4a3a;font-size:12.5px}
.xseg{display:grid;grid-template-columns:1fr 1fr;background:#d9c17b;border-radius:13px;padding:4px;margin-bottom:14px}
.xseg button{border:0;background:transparent;color:#5c4a17;font:inherit;font-weight:700;padding:10px;border-radius:10px;cursor:pointer}
.xseg button.on{background:#4a0e16;color:#fff2d1}
.xafield{position:relative;display:block;margin-bottom:11px}
.xafield input{width:100%;height:50px;border:1px solid #c9b06a;border-radius:13px;background:#f3e6bd;color:#3d1016;font:inherit;font-size:13.5px;padding:0 42px 0 44px;outline:none;box-sizing:border-box}
.xafield input:focus{border-color:#8a6a1f;box-shadow:0 0 0 3px #8a6a1f26}
.xafield input::placeholder{color:#a08a55}
.xflabel{position:absolute;left:44px;top:50%;transform:translateY(-50%);font-size:13.5px;color:#a08a55;pointer-events:none}
.xafield input:focus ~ .xflabel,.xafield input:not(:placeholder-shown) ~ .xflabel{display:none}
.xafield input:not([placeholder]) ~ .xflabel{display:none}
.xfico{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:15px;color:#8a6a1f}
.xeye{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:0;background:none;font-size:15px;cursor:pointer;color:#6b4a3a;padding:4px}
.xrow{display:flex;align-items:center;justify-content:space-between;margin:2px 0 12px}
.xremember{display:flex;align-items:center;gap:7px;font-size:12.5px;color:#4a3a20}
.xremember input{accent-color:#4a0e16;width:16px;height:16px}
.xlink{border:0;background:none;color:#4a0e16;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;padding:0}
.xsubmit{width:100%;height:50px;border:0;border-radius:14px;background:#4a0e16;color:#fff2d1;font:inherit;font-size:15px;font-weight:750;cursor:pointer;box-shadow:0 8px 18px #4a0e1633}
.xsubmit:hover{background:#5B0E14}
.xsubmit:disabled{opacity:.6;cursor:wait}
.xdivider{display:flex;align-items:center;gap:10px;color:#6b4a3a;font-size:11.5px;margin:14px 0 10px}
.xdivider:before,.xdivider:after{content:"";height:1px;background:#c9b06a;flex:1}
.xgoogle{width:100%;height:48px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #c9b06a;border-radius:13px;background:#f3e6bd;color:#3d1016;font:inherit;font-size:13.5px;font-weight:650;cursor:pointer}
.xgoogle:hover{background:#f8edc9}
.xswitch{text-align:center;font-size:12.5px;color:#5c4a3a;margin:12px 0 0}
.xswitch button{border:0;background:none;color:#4a0e16;font:inherit;font-weight:800;cursor:pointer;padding:0}
.xterms{display:flex;align-items:flex-start;gap:8px;font-size:11.5px;color:#4a3a20;margin:4px 0 10px}
.xterms input{accent-color:#4a0e16;width:15px;height:15px;margin-top:1px}
.xterms b{color:#4a0e16}
.xnotnow{width:100%;margin-top:10px;border:1px solid #c9b06a;background:transparent;color:#591C1C;border-radius:12px;padding:9px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.xnotnow:hover{background:#f3e6bd}
.xscript{position:relative;z-index:1;margin:22px auto 0;color:#EBD798;font-style:italic;font-size:14px;text-align:center}
.xscript em{border-bottom:2px solid #EBD798;font-style:italic}
.theme-row{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:12px}
.xthemelabel{font-size:11px;color:#6b4a3a}
.xtheme-btn{border:1px solid #c9b06a;border-radius:9px;background:#f3e6bd;color:#4a3a20;padding:8px 12px;min-width:38px;min-height:36px;font-size:13px;cursor:pointer}
.xtheme-btn.on{background:#4a0e16;color:#fff2d1;border-color:#4a0e16}
@media(min-width:760px){.xscene{max-width:520px;margin:24px auto;border-radius:26px;box-shadow:0 30px 80px #1c050855;min-height:calc(100vh - 48px)}}
@media(max-width:480px){.xscene{padding:18px 16px 24px}.xhero{font-size:23px}}
.xafield input[data-filled="1"] ~ .xflabel{display:none}

/* Base44-matched Shelterbaze authentication pages */
body.auth-screen{background:#f4f6f9;color:#202938;min-height:100vh}
body.auth-screen .app{max-width:none;min-height:100vh;margin:0;padding:0;background:transparent;box-shadow:none;border-radius:0;overflow:visible}
body.auth-screen .hero,body.auth-screen .rentals,body.auth-screen .trustrow,body.auth-screen .bottomnav,body.auth-screen .topbar{display:none}
body.auth-screen #view{min-height:100vh}
.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:28px 16px;background:linear-gradient(115deg,#f8f9fb 0%,#f0f4f8 100%);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#202938}
.auth-card{width:min(450px,100%);background:#fff;border:1px solid #e8edf2;border-top:4px solid #dce4eb;border-radius:19px;padding:30px 32px 32px;box-shadow:0 20px 45px #15223516;text-align:center}
.auth-brand{width:72px;height:72px;margin:0 auto 25px;border-radius:22px;background:#690d17;display:grid;place-items:center;box-shadow:0 7px 16px #5b0e1421}
.auth-brand img{width:48px;height:48px;object-fit:contain}
.auth-card h1{margin:0;color:#202938;font-size:23px;line-height:1.25;font-weight:760;letter-spacing:-.6px}
.auth-subtitle{margin:9px 0 25px;color:#687385;font-size:13px}
.auth-panel{display:grid;gap:10px;text-align:center}
.social-options{display:grid;gap:10px}
.social-signin{width:100%;height:49px;display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid #e3e7ec;border-radius:12px;background:#fff;color:#394454;font-weight:600;font-size:14px;transition:background .15s,border-color .15s}
.social-signin:hover{background:#fafbfd;border-color:#cfd6df}
.social-signin:disabled,.auth-submit:disabled{opacity:.6;cursor:wait}
.social-mark{width:20px;height:20px;display:grid;place-items:center;font-weight:850;font-size:18px;line-height:1}
.social-mark.google{font-family:Arial,sans-serif;color:#4285f4}
.social-mark.microsoft{color:#f35325;font-size:21px;text-shadow:5px 0 #81bc06,0 5px #05a6f0,5px 5px #ffba08}
.social-mark.facebook{background:#1877f2;color:#fff;border-radius:50%;font:700 17px Arial,sans-serif;padding-top:2px}
.social-mark.apple{font-size:0;position:relative}
.social-mark.apple:before{content:"";width:14px;height:15px;background:#111;border-radius:48% 48% 45% 45%;display:block}
.social-mark.apple:after{content:"";position:absolute;width:6px;height:3px;background:#111;border-radius:6px 0;top:0;right:1px;transform:rotate(-36deg)}
.auth-divider{margin:8px 0 3px;font-size:11px;letter-spacing:.06em;color:#98a1ae}
.auth-divider:before,.auth-divider:after{background:#e7ebf0}
.auth-panel .form{gap:13px;margin-top:0;text-align:center}
.auth-panel .form label{gap:7px;color:#394454;font-size:13px;font-weight:570;text-align:center}
.auth-panel .form input{height:43px;width:100%;border:1px solid #e4e8ed;border-radius:11px;background-color:#fff;padding:0 14px 0 41px;color:#273242;font-size:13px;outline:none;box-shadow:0 1px 2px #1a2b4010}
.auth-panel .form input:focus{border-color:#aab5c4;box-shadow:0 0 0 3px #d8e1eb80}
.auth-panel .form input[name="email"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23909baa' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:14px center}
.auth-panel .form input[name="password"],.auth-panel .form input[name="confirm_password"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23909baa' stroke-width='1.8'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:14px center}
.auth-panel .form input::placeholder{color:#a3acb8}
.auth-submit{width:100%;height:47px;margin-top:1px;border:0;border-radius:12px;background:#202a3b;color:#fff;font-size:14px;font-weight:700}
.auth-submit:hover{background:#151e2d}
.auth-links{display:flex;justify-content:flex-end;margin-top:-2px}
.auth-links .textbtn,.auth-switch{color:#344154;font-size:12px}
.auth-switch{justify-self:center;margin-top:4px}
.auth-back{display:flex;align-items:center;gap:7px;border:0;background:none;padding:0 0 18px;color:#394454;font:inherit;font-size:13px;font-weight:600}
.auth-exit{display:inline-block;border:1px solid #dfe5ec;border-radius:11px;background:#fff;padding:10px 16px;color:#394454;font-size:12px;font-weight:650;margin-top:10px}
.auth-exit:hover{background:#f6f8fb}
.passkey-button{height:42px;background:#fff;border-color:#e3e7ec;color:#394454;border-radius:11px;font-size:12px}
.auth-error,.auth-message{width:100%;text-align:left;font-size:12px}
@media(max-width:480px){.auth-page{padding:16px 12px}.auth-card{padding:26px 20px 25px;border-radius:16px}.auth-brand{margin-bottom:21px}}

/* Screenshot-matched line icons for the Shelterbaze bottom navigation */
.bottomnav .navitem{gap:2px;min-height:52px;padding:4px 0 2px;color:#777873;font-size:9px;line-height:1.15;white-space:nowrap}
.bottomnav .navitem .ni{display:block;width:22px;height:22px;flex:none;font-size:initial;line-height:1;color:currentColor}
.bottomnav .navitem:hover{color:var(--wine)}
.bottomnav .navitem.active{color:var(--wine);font-weight:800}
.bottomnav .navitem:focus-visible{outline:2px solid var(--wine3);outline-offset:-1px;border-radius:8px}
.bottomnav .navitem .unread-count{position:absolute;top:0;right:calc(50% - 20px);margin:0;min-width:18px;height:17px;padding:0 4px;border:1.5px solid #fff;background:#e34955;color:#fff;font-size:9px;line-height:1;z-index:1}

/* Phone: app fills the screen; Desktop (>=760px): switch to a desktop layout —
   top navigation bar, centered 1100px content column, multi-column card grids */
@media(min-width:760px){
/* Desktop keeps the same bottom navigation as mobile — the experimental top
   nav bar pushed page content under the sticky brandbar and hid the chat
   thread header. */
/* An open chat thread fills the window between the brandbar (40px) and the
   bottom navigation (67px) so the composer sits at the bottom edge instead of
   floating mid-screen after short message histories. */
body.thread-open .chat-page{height:calc(100vh - 107px);height:calc(100dvh - 107px);min-height:0;padding-bottom:12px}
body.thread-open .chat-page .thread-messages{flex:1 1 auto;min-height:0;max-height:none}
.hero,.rentals,.trustrow{padding-left:max(16px,calc((100% - 1100px)/2));padding-right:max(16px,calc((100% - 1100px)/2))}
.section,.page,.dealtabs{max-width:1100px;margin-left:auto;margin-right:auto}
.hscroll{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));overflow:visible}
.property,.property.wide{min-width:0;max-width:none}
.list{grid-template-columns:repeat(auto-fill,minmax(330px,1fr))}
}

/* --- Landlord listing wizard (listings.js) — burgundy/cream/gold brand --- */
.lwpage{padding-top:10px}
.lwtop{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 0 2px}
.lwposter{font-size:12px;color:var(--muted)}
.lwposter b{color:var(--ink)}
.lwlid{color:var(--green);font-weight:700}
.lwlive{background:#E4EBDA;color:#43583E;border-radius:20px;padding:7px 11px;font-size:11px;font-weight:800;letter-spacing:.4px}
.lwsave{border:1px solid #D6C68F;background:#FFF4CF;border-radius:11px;padding:9px 14px;color:#48121A;font-weight:700;font-size:12px}
.lwsave:hover{background:#FBEBB9}
.lwlayout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:38px;margin-top:12px}
.lwside{padding-top:10px}
.lweyebrow{font-size:11px;letter-spacing:1.3px;text-transform:uppercase;font-weight:750;color:#9A7965}
.lwsidehead{font-family:var(--font-display);font-stretch:116%;font-size:22px;line-height:1.25;letter-spacing:-.6px;margin:9px 0 22px;color:var(--wine)}
.lwsteps{display:grid;gap:5px}
.lwstepnav{border:0;background:transparent;text-align:left;padding:11px 10px;border-radius:12px;display:flex;align-items:center;gap:11px;color:#927F73;font-size:13px}
.lwstepnav.active{background:#F3E6BC;color:var(--wine);font-weight:700}
.lwstepnav.done{color:#54654F}
.lwnum{height:27px;width:27px;border:1px solid #DFCFAA;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}
.lwstepnav.active .lwnum,.lwstepnav.done .lwnum{background:var(--wine);color:var(--gold);border-color:var(--wine)}
.lwhelp{margin-top:32px;padding:16px;background:#E9EBDA;border-radius:15px;font-size:12px;color:#59634E}
.lwhelp strong{display:block;color:var(--ink);margin-bottom:5px}
.lwprogressmeta{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:var(--muted);font-size:12px}
.lwtrack{height:5px;background:#EADDBC;border-radius:8px;overflow:hidden}
.lwfill{height:100%;background:var(--terracotta);width:20%;transition:width .3s}
.lwcard{background:#FFFAF0;border:1px solid #EBDFC0;border-radius:20px;box-shadow:var(--shadow);margin-top:22px;padding:clamp(20px,3.5vw,40px);min-height:520px;display:flex;flex-direction:column}
.lwcard h1{font-family:var(--font-display);font-stretch:116%;font-size:27px;line-height:1.16;letter-spacing:-.8px;margin:4px 0 7px;color:var(--wine)}
.lwsub{color:var(--muted);margin:0 0 24px;font-size:13px}
.lwformgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.lwfield{display:grid;gap:6px}
.lwfield.full{grid-column:1/-1}
.lwfield label{font-weight:700;font-size:13px;color:var(--ink)}
.lwchoice b{font-weight:700;font-size:13px;color:var(--ink)}
.lwhint{color:#968477;font-size:11.5px}
.lwinput{width:100%;border:1px solid #D6C79F;border-radius:11px;background:#FFF8E4;padding:12px 13px;color:var(--ink);outline:none;font-size:13.5px}
.lwinput:focus{border-color:var(--terracotta);box-shadow:0 0 0 3px #D98C5E2b}
textarea.lwinput{resize:vertical;min-height:104px;font:inherit}
.lwdealseg{max-width:330px}
.lwchoicegrid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}
.lwchoice{border:1px solid #E8D9B4;border-radius:13px;padding:14px;background:#FFFAF0;text-align:left;color:var(--ink);display:flex;gap:11px;align-items:flex-start}
.lwchoice.selected{border:2px solid var(--wine2);background:#F7EDCC;padding:13px}
.lwchoice small{color:var(--muted);display:block;margin-top:2px;font-size:11.5px}
.lwicon{font-size:20px;line-height:1.2}
.lwaddresswrap{position:relative}
.lwsuggest{position:absolute;z-index:6;top:calc(100% + 5px);left:0;right:0;background:#FFFAF0;border:1px solid #E8D9B4;border-radius:12px;box-shadow:var(--shadow);overflow:hidden;display:none;max-height:250px;overflow-y:auto}
.lwsuggest button{display:block;width:100%;text-align:left;padding:11px 13px;border:0;background:#FFFAF0;font-size:12.5px;color:var(--ink);border-bottom:1px solid #F3EAD2}
.lwsuggest button:hover{background:#F7EDCC}
.lwsuggestnote{padding:11px 13px;font-size:12px;color:var(--muted)}
.lwlocationrow{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:12px;flex-wrap:wrap}
.lwnotice{font-size:11.5px;color:#88796B;max-width:390px}
.lwmap{height:240px;border-radius:15px;margin-top:14px;overflow:hidden;position:relative;background:#E9EBD9;border:1px solid #D6C79F}
.lwmap iframe{width:100%;height:100%;border:0;display:block}
.lwupload{border:1.5px dashed #C5B88D;border-radius:16px;min-height:170px;display:grid;place-items:center;text-align:center;background:#FFF9E8;padding:18px;cursor:pointer}
.lwupload:hover{background:#FCF2D9}
.lwupload input{display:none}
.lwuploadicon{font-size:26px}
.lwthumbs{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.lwthumbwrap{position:relative;display:inline-block}
.lwthumb{width:86px;height:70px;border-radius:10px;object-fit:cover;background:#E9EBD9;display:block}
.lwthumbremove{position:absolute;top:-7px;right:-7px;width:21px;height:21px;border-radius:50%;border:0;background:var(--wine);color:var(--gold);font-size:13px;line-height:1;display:grid;place-items:center;box-shadow:0 2px 8px #4b101933}
.lwpreview{background:#F7EDCC;border:1px solid #E9D8A7;border-radius:13px;padding:15px;margin:13px 0}
.lwpreview b{font-size:16px}
.lwreviewgrid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.lwreviewitem{border:1px solid #E8D9B4;border-radius:12px;padding:12px}
.lwreviewitem small{display:block;color:var(--muted);margin-bottom:4px;font-size:11px;text-transform:uppercase;letter-spacing:.6px}
.lwnairawrap{position:relative}
.lwnairawrap>span{position:absolute;left:13px;top:12px;color:#75827C;font-size:13px}
.lwnairawrap .lwinput{padding-left:29px}
.lwagentbox{border:1px solid #E8D9B4;border-radius:14px;padding:15px;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px;flex-wrap:wrap}
.lwagentbox p{margin:4px 0 0;color:var(--muted);font-size:12.5px}
.lwpuberrors{background:#F6E3DC;border:1px solid #E5BFAF;border-radius:12px;padding:12px 14px;margin:12px 0;font-size:12px;color:#6E2A1C}
.lwbottom{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:26px}
.lwback{border:0;background:transparent;color:#76665D;font-weight:700;padding:12px 4px;font-size:13px}
.lwnext{background:var(--wine);color:#FFF5DB;border:0;border-radius:11px;padding:13px 20px;font-weight:800;font-size:13px;box-shadow:0 6px 16px #4B101925}
.lwnext:hover{background:var(--wine2)}
.lwnext:disabled{opacity:.5;cursor:wait}
.lwsuccessinner{margin:auto;text-align:center;max-width:520px;width:100%}
.lwsuccessinner .lwpreview{text-align:left}
.lwsuccessicon{width:72px;height:72px;border-radius:50%;background:#E9EBDA;color:var(--green);font-size:33px;display:grid;place-items:center;margin:0 auto 20px}
[data-theme="dark"] .lwposter{color:#B9B4AB}
[data-theme="dark"] .lwposter b{color:#F2ECDF}
[data-theme="dark"] .lwsave{background:#3A2F14;border-color:#6B5A2B;color:#F0E193}
[data-theme="dark"] .lwsave:hover{background:#4A3C1A}
[data-theme="dark"] .lwsidehead{color:var(--gold)}
[data-theme="dark"] .lweyebrow{color:#B99F78}
[data-theme="dark"] .lwstepnav{color:#8D8577}
[data-theme="dark"] .lwstepnav.active{background:#33280F;color:var(--gold)}
[data-theme="dark"] .lwstepnav.done{color:#9FAF94}
[data-theme="dark"] .lwnum{border-color:#5A4B22}
[data-theme="dark"] .lwstepnav.active .lwnum,.lwstepnav.done .lwnum{background:var(--wine);color:var(--gold);border-color:var(--wine)}
[data-theme="dark"] .lwhelp{background:#1E2318;color:#A9B39C}
[data-theme="dark"] .lwhelp strong{color:#E8E4D8}
[data-theme="dark"] .lwtrack{background:#332C1D}
[data-theme="dark"] .lwcard{background:#191513;border-color:#3A2F24}
[data-theme="dark"] .lwcard h1{color:var(--gold)}
[data-theme="dark"] .lwsub{color:#A29B8E}
[data-theme="dark"] .lwfield label{color:#F2ECDF}
[data-theme="dark"] .lwchoice b{color:#F2ECDF}
[data-theme="dark"] .lwhint{color:#97897A}
[data-theme="dark"] .lwinput{background:#241F19;border-color:#4A3E2E;color:#F2ECDF}
[data-theme="dark"] .lwinput:focus{border-color:var(--terracotta)}
[data-theme="dark"] .lwchoice{background:#191513;border-color:#3F3423}
[data-theme="dark"] .lwchoice.selected{background:#33280F;border-color:var(--mustard)}
[data-theme="dark"] .lwchoice small{color:#A29B8E}
[data-theme="dark"] .lwsuggest{background:#241F19;border-color:#4A3E2E}
[data-theme="dark"] .lwsuggest button{background:#241F19;color:#F2ECDF;border-bottom-color:#332B20}
[data-theme="dark"] .lwsuggest button:hover{background:#33280F}
[data-theme="dark"] .lwmap{border-color:#4A3E2E;background:#1E2318}
[data-theme="dark"] .lwupload{background:#1D1812;border-color:#6B5A2B}
[data-theme="dark"] .lwpreview{background:#211B10;border-color:#4A3E2E}
[data-theme="dark"] .lwreviewitem{border-color:#3F3423}
[data-theme="dark"] .lwreviewitem b{color:#F2ECDF}
[data-theme="dark"] .lwagentbox{border-color:#3F3423}
[data-theme="dark"] .lwpuberrors{background:#2E1A14;border-color:#5A3428;color:#E8B7A5}
[data-theme="dark"] .lwback{color:#A29B8E}
[data-theme="dark"] .lwnext{background:var(--wine2);color:#FFF5DB}
[data-theme="dark"] .lwlive{background:#26301F;color:#C4D6B4}
@media(max-width:759px){
.lwlayout{display:block;margin-top:6px}
.lwside{padding:0;margin-bottom:14px}
.lwsidehead{margin-bottom:10px}
.lwsteps{display:flex;overflow-x:auto;gap:6px;padding-bottom:4px}
.lwstepnav{white-space:nowrap;padding:8px 10px}
.lwstepnav span:last-child{display:none}
.lwhelp{display:none}
.lwcard{margin-top:16px;min-height:480px;padding:22px 18px}
.lwcard h1{font-size:23px}
.lwformgrid,.lwreviewgrid{grid-template-columns:1fr}
.lwfield.full{grid-column:auto}
.lwchoicegrid{grid-template-columns:1fr 1fr}
.lwtop{align-items:flex-start}
}

/* --- Center "+" listing button in the navigation row --- */
.navadd{min-width:54px;justify-content:center;gap:0}
.navadd .addico{width:50px;height:50px;border-radius:50%;background:linear-gradient(145deg,#8C3B40,var(--wine));border:2.5px solid #fff;box-shadow:0 4px 12px #4B101940,0 0 0 1px #B96A6E;display:grid;place-items:center;color:#FFF5DB;font-size:30px;font-weight:400;line-height:1;padding:0 0 3px;transition:box-shadow .15s}
.navadd:hover .addico,.navadd:focus-visible .addico{box-shadow:0 5px 14px #4B10194d,0 0 0 2px var(--gold)}
.navadd .addlabel{display:none}
.navadd.active{color:#FFF5DB;font-weight:400;background:none}
.navadd.active:after{content:none}
.hero .eyebrow{display:block;width:100%;padding-left:0;margin:0 0 7px;text-align:left;font-size:10px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:var(--gold);opacity:.92}
[data-theme="dark"] .navadd .addico{border-color:#141210;box-shadow:0 4px 12px #000a,0 0 0 1px #B96A6E}
[data-theme="dark"] .navadd.active{color:#FFF5DB}
@media(min-width:760px){
.navadd{flex:0 0 auto;min-width:0;padding:0 6px}
.navadd .addico{width:42px;height:42px;font-size:26px;border-width:2px;padding:0 0 2px}
.navadd:hover .addico,.navadd:focus-visible .addico{box-shadow:0 5px 14px #4B10194d,0 0 0 2px var(--gold)}
}


/* --- Auth scene fills the viewport on desktop (card stays centered) --- */
@media(min-width:760px){
body.auth-screen{background:#3f0c12}
.auth-page{padding:0;background:linear-gradient(160deg,#5B0E14 0%,#4a0e16 55%,#3f0c12 100%)}
.xscene{max-width:none;width:100%;min-height:100vh;min-height:100dvh;margin:0;border-radius:0;box-shadow:none;padding:26px clamp(24px,6vw,72px) 40px}
.xscene .xbrand,.xscene .xhero,.xscene .xherosub,.xscene .xcard,.xscene .xscript{width:100%;max-width:520px;margin-left:auto;margin-right:auto}
.xcard{max-width:520px}
}

/* --- Auth: two-column desktop sign-in/sign-up (story + form) --- */
body.auth-screen{background:#390b14;overflow:hidden}
.auth-page.xauth{padding:0;height:100vh;height:100svh}
.ascreen{height:100%;height:100svh;min-height:600px;display:grid;grid-template-columns:minmax(360px,.94fr) minmax(460px,1.06fr);overflow:hidden}
.ascreen .xback{position:absolute;z-index:5;top:18px;left:18px;width:38px;height:38px;border-radius:50%;border:1px solid #ffffff2e;background:#ffffff14;color:#f6e9b9;font-size:20px;line-height:1}
.ascreen .xback:hover{background:#ffffff24}
.astory{min-width:0;position:relative;overflow:hidden;background:linear-gradient(145deg,#3a0b14,#4b1019 62%,#310911);color:#fff8e8;padding:clamp(30px,5vw,72px);display:flex;flex-direction:column;justify-content:center}
.abrand{position:absolute;top:clamp(22px,5vh,52px);left:clamp(26px,5vw,72px);display:flex;align-items:center;gap:13px;z-index:2}
.alogo{height:52px;width:52px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,#f9edc2,#e8cf8b);box-shadow:0 4px 15px #1d05094d}
.alogo img{width:37px;height:37px;object-fit:contain}
.abrandname{display:block;font-family:var(--font-display);font-stretch:116%;font-size:27px;font-weight:800;letter-spacing:-.9px;line-height:1;text-transform:lowercase;color:#fff5dc}
.abrandname b{color:#e4b25d;font-weight:800}
.atagline{display:block;color:#e2d0ac;font-size:12px;letter-spacing:.3px;margin-top:5px}
.acopy{position:relative;z-index:2;max-width:440px;margin-top:64px}
.aeyebrow{font-size:10px;letter-spacing:2.2px;font-weight:800;color:#d9b962;text-transform:uppercase}
.ahero{font-family:var(--font-display);font-stretch:112%;font-size:clamp(34px,3.8vw,54px);line-height:1.07;letter-spacing:-1.6px;margin:14px 0 16px;font-weight:750;color:#fff8e8}
.ahero em{font-family:Georgia,serif;font-weight:500;color:#edd18c}
.aherosub{font-size:14px;line-height:1.65;color:#e5d7c8;max-width:360px;margin:0}
.astats{display:flex;gap:28px;margin-top:28px}
.astats strong{display:block;font-size:17px;color:#f7e3b0}
.astats span{display:block;font-size:10px;color:#c9b8a2;margin-top:2px}
.ahouse{position:absolute;right:-55px;top:9%;width:52%;height:69%;min-width:340px;opacity:.96;border-radius:38% 62% 58% 42%/44% 40% 60% 56%;overflow:hidden;box-shadow:-20px 20px 22px #16060a44}
.ahouse svg{width:100%;height:100%;display:block}
.ascript{position:absolute;left:clamp(26px,5vw,72px);bottom:26px;z-index:2;font-family:Georgia,serif;font-style:italic;line-height:1.05;color:#f3dfad;font-size:17px;transform:rotate(-4deg)}
.ascript em{color:#ebc86f}
.ascript:after{content:"";position:absolute;left:4px;right:26px;height:2px;background:#ebc86f;bottom:-6px;transform:rotate(-5deg);border-radius:50%}
.adecor{position:absolute;bottom:-105px;right:-35px;width:340px;height:160px;border-radius:60% 0 0 0;background:#d9a84f;transform:rotate(-8deg)}
.adecor:before,.adecor:after{content:"";position:absolute;inset:20px 0 0 -70px;border-radius:70% 0 0 0;background:#bf6847}
.adecor:after{inset:38px 0 0 -135px;background:#61735c}
.aformside{background:radial-gradient(ellipse at 55% 42%,#fff8e5,#f5e8bc 68%,#eddda9);display:grid;place-items:center;padding:24px 36px;min-width:0;position:relative;overflow:auto}
.acard{width:min(100%,505px);position:relative;background:#fff4cfd9;border:1px solid #fff9e6;border-radius:22px;padding:clamp(20px,3vh,32px) clamp(22px,3.4vw,40px);box-shadow:0 20px 60px #3a0b1416,inset 0 1px 0 #fff}
.amode{display:flex;padding:4px;background:#f1e4bb;border:1px solid #e7d8a9;border-radius:12px;width:100%;margin-bottom:18px}
.amode button{flex:1;border:0;border-radius:9px;background:transparent;color:#6a4b38;padding:10px 12px;font-weight:750;font-size:13px}
.amode button.on{background:var(--wine);color:#fff5dc;box-shadow:0 3px 8px #390b1430}
.acard h2{font-family:var(--font-display);font-stretch:112%;font-size:27px;letter-spacing:-.7px;line-height:1.1;margin:0 0 5px;color:#351017}
.aintro{font-size:12.5px;color:#766457;margin:0 0 15px}
.amethod{display:flex;background:#f8edcf;border:1px solid #e4d4a8;border-radius:11px;padding:3px;margin-bottom:13px}
.amethod button{flex:1;border:0;border-radius:8px;background:transparent;padding:8px;color:#644d3d;font-weight:700;font-size:12px}
.amethod button.on{background:#fff9e7;color:var(--wine);box-shadow:0 1px 4px #3b17121f}
.afields{display:grid;gap:10px}
.apair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.afield{height:47px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #d7c699;background:#fff5d8;border-radius:10px;color:#6e5541}
.afield:focus-within{border-color:#9b6740;box-shadow:0 0 0 3px #9b67401a}
.aico{width:18px;text-align:center;font-size:15px;color:var(--wine);flex:none}
.afield input{width:100%;min-width:0;height:100%;border:0;outline:0;background:transparent;color:#311117;font-size:13px}
.afield input::placeholder{color:#8e8068}
.aeye{border:0;background:none;color:#4b1019;padding:10px 8px;min-width:38px;min-height:38px;flex:none}
.arow{display:flex;justify-content:space-between;align-items:center;margin:10px 0 13px;font-size:12px;color:#765e4d;gap:10px;flex-wrap:wrap}
.aremember{display:flex;align-items:center;gap:8px}
.aremember input,.aterms input{accent-color:var(--wine);width:16px;height:16px;margin:0;flex:none}
.alink{border:0;background:none;padding:9px 4px;color:#4b1019;font-weight:750;font-size:12px}
.asubmit{width:100%;height:49px;border:0;border-radius:10px;background:linear-gradient(100deg,#390b14,#50121c);color:#fff5dd;font-weight:800;letter-spacing:.1px;box-shadow:0 7px 15px #390b1426}
.asubmit:hover{background:#601a26}
.asubmit:disabled{opacity:.6}
.adivider{display:flex;align-items:center;gap:12px;color:#86735a;font-size:11px;margin:14px 0}
.adivider:before,.divider:after,.adivider:after{content:"";height:1px;background:#d5c69b;flex:1}
.agoogle{width:100%;height:46px;border:1px solid #d3c396;border-radius:10px;background:#fff6dd;color:#351017;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;gap:9px}
.agoogle:hover{background:#fffbea}
.aswitch{font-size:12px;color:#766454;text-align:center;margin:13px 0 0}
.aswitch button{border:0;background:none;color:var(--wine);font-weight:800;padding:2px}
.aterms{display:flex;align-items:flex-start;gap:9px;color:#766454;font-size:11px;line-height:1.4;margin:2px 0 0}
.acardfoot{margin:12px 0 0;justify-content:center;gap:8px}
.acardfoot .xthemelabel{font-size:11px;color:#86735a}
.ascreen button:focus-visible,.ascreen a:focus-visible{outline:2px solid #9b6740;outline-offset:2px}
.afield:focus-within input::placeholder{color:#a5977c}
@media(min-width:801px) and (max-height:820px){
.acard{padding-top:18px;padding-bottom:18px}
.amode{margin-bottom:13px}
.amode button{padding:8px 12px}
.acard h2{font-size:24px}
.aintro{margin-bottom:11px}
.afields{gap:8px}
.afield{height:43px}
.amethod{margin-bottom:11px}
.asubmit{height:45px}
.adivider{margin:10px 0}
.agoogle{height:43px}
.aswitch{margin-top:10px}
.acardfoot{margin-top:9px}
.acopy{margin-top:46px}
.ahero{font-size:clamp(30px,3.4vw,44px)}
.astats{margin-top:18px}
}
@media(max-width:800px){
body.auth-screen{overflow:auto}
.auth-page.xauth{height:auto;min-height:100vh}
.ascreen{height:auto;min-height:100svh;grid-template-columns:1fr;overflow:visible}
.astory{min-height:252px;padding:96px 22px 30px;justify-content:flex-start}
.abrand{top:20px;left:20px}
.alogo{width:43px;height:43px}
.alogo img{width:29px;height:29px}
.abrandname{font-size:22px}
.atagline{font-size:10px}
.acopy{margin:0}
.ahero{font-size:31px;margin:8px 0 8px}
.aherosub{font-size:12px;max-width:330px}
.aeyebrow,.astats,.ascript,.adecor{display:none}
.ahouse{right:-60px;top:36px;width:47%;height:190px;min-width:230px;opacity:.42}
.aformside{padding:20px 14px 26px}
.acard{padding:22px 18px}
.apair{grid-template-columns:1fr}
.ascreen .xback{top:14px;left:14px}
}

/* --- Agent six-step listing flow --- */
.aluploadgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.alvideothumb{background:#251d1a}
.aladdrow{display:flex;gap:9px}
.aladdrow .lwinput{flex:1}
.aladdrow .lwsave{white-space:nowrap;align-self:stretch}
.alattest{display:flex;align-items:flex-start;gap:9px;font-weight:600;font-size:13px;color:var(--ink);margin-top:13px;line-height:1.45}
.alattest input{accent-color:var(--wine);width:16px;height:16px;margin:2px 0 0;flex:none}
.amenitygroup{margin-top:18px}
.amenitygroup h3{font-size:13px;margin:0 0 9px;color:var(--ink)}
.amenities{display:flex;flex-wrap:wrap;gap:8px}
.amenity{border:1px solid #e3d5b4;border-radius:24px;background:#fffaf0;color:var(--ink);padding:8px 12px;font-size:12px;font-weight:650}
.amenity:hover{border-color:#c9b787}
.amenity.selected{border-color:#6a382d;background:#f0e2b9;color:var(--wine);box-shadow:inset 0 0 0 1px #6a382d}
[data-theme="dark"] .amenity{background:#191513;border-color:#3f3423;color:#f2ecdf}
[data-theme="dark"] .amenity.selected{background:#33280f;border-color:var(--mustard);color:var(--gold)}
[data-theme="dark"] .amenitygroup h3{color:#f2ecdf}
[data-theme="dark"] .alattest{color:#f2ecdf}
@media(max-width:759px){
.aluploadgrid{grid-template-columns:1fr}
.aladdrow{flex-direction:column}
}

/* --- Mobile input zoom prevention (iOS zooms when font-size < 16px) --- */
@media(max-width:759px){
input,select,textarea{font-size:16px!important}
.searchbox input{font-size:16px}
.field,.field input,.select,.lwinput,.afield input{font-size:16px}
/* Chat compose: keep it clear of the fixed bottom nav so buttons are tappable */
.chat-page{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
.compose{margin-bottom:6px}
.attach-button,.compose .btn{min-width:44px;min-height:44px}
}
/* Hidden file inputs: keep them focusable/tappable on iOS (display:none can
   block the picker when triggered from a label tap) */
.attach-button input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0)}

/* --- Comfortable tap targets for inline text buttons --- */
.btn.mini{min-height:34px;padding:9px 12px}
.aswitch button{padding:8px 4px}
.alink,.aswitch button{line-height:1.2}

/* Chat thread contact labels wrap comfortably on narrow screens */
.thread-contact .loc{max-width:200px}

/* ===================== Shelterbaze loading experience ===================== */
/* Full-page overlay per shelterbaze-loading-preview.html — burgundy, warm
   cream, gold; shown by loading.js during real request waits only. */
html.sbl-open, html.sbl-open body{overflow:hidden}
#sblRoot{position:fixed;inset:0;z-index:60;background:#e9d7aa;overflow:auto}
#sblRoot.sbl-out{opacity:0;transition:opacity .15s ease}
.sbl{--sbl-wine:var(--wine);--sbl-wine2:#6d1522;--sbl-gold:#dfc16f;--sbl-goldsoft:#f3dc9e;--sbl-cream:#fbf1d3;--sbl-paper:#e9d7aa;--sbl-ink:#31171b;--sbl-muted:#735f50;
  position:relative;width:min(100%,1440px);margin:0 auto;height:100svh;min-height:620px;overflow:hidden;display:grid;grid-template-columns:.95fr 1.05fr;background:var(--sbl-paper);color:var(--sbl-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.sbl:before{content:"";position:absolute;width:370px;height:370px;border-radius:50%;background:#f3dfa8;left:-200px;top:45%;opacity:.65}
.sbl:after{content:"";position:absolute;width:160px;height:160px;border:1px solid #d4b86d;border-radius:50%;left:26%;top:8%;opacity:.6}
.sbl-left{position:relative;z-index:2;padding:clamp(28px,5vw,70px);display:flex;flex-direction:column;justify-content:space-between}
.sbl-brand{display:flex;align-items:center;gap:12px;color:var(--sbl-wine)}
.sbl-mark{width:49px;height:49px;background:var(--sbl-gold);border:1px solid #d3b357;border-radius:10px;display:grid;place-items:center;box-shadow:0 5px 0 #d4bd80;flex:none}
.sbl-mark svg{width:35px;height:35px;display:block}
.sbl-word{font-weight:900;font-size:27px;letter-spacing:-1.2px;line-height:1}
.sbl-word span{color:#8c6027}
.sbl-tag{font-size:12px;color:#735f50;margin-top:5px;letter-spacing:.2px}
.sbl-msg{max-width:470px;margin:30px 0 20px}
.sbl-pill{display:inline-flex;align-items:center;gap:7px;background:#f0e2b8;border-radius:99px;padding:8px 13px;color:#674a32;font-size:12px;font-weight:750;transform:rotate(-2deg)}
.sbl-spark{color:#b16c45;font-size:15px}
.sbl-h1{font-size:clamp(42px,5.4vw,74px);line-height:.98;letter-spacing:-3.7px;margin:20px 0 12px;color:var(--sbl-wine);font-family:var(--font-display)}
.sbl-h1 em{font-family:Georgia,serif;font-weight:500;color:var(--sbl-wine);letter-spacing:-2px}
.sbl-p{color:var(--sbl-muted);font-size:16px;line-height:1.6;max-width:390px;margin:0}
.sbl-loading{display:flex;align-items:center;gap:12px;margin-top:35px}
.sbl-loader{position:relative;width:45px;height:45px;border-radius:16px;background:var(--sbl-wine);display:grid;place-items:center;animation:sblhop 1s ease-in-out infinite;flex:none}
.sbl-loader:before{content:"⌂";color:var(--sbl-gold);font-size:27px;font-weight:800;line-height:1}
.sbl-loadtext{font-weight:800;font-size:13px;color:var(--sbl-wine)}
.sbl-loadtext small{display:block;font-size:11px;color:#927f70;font-weight:500;margin-top:3px}
.sbl-dots{display:inline-flex;gap:3px;margin-left:3px}
.sbl-dots i{display:block;width:4px;height:4px;border-radius:50%;background:var(--sbl-wine);animation:sbldot .65s infinite alternate}
.sbl-dots i:nth-child(2){animation-delay:.18s}
.sbl-dots i:nth-child(3){animation-delay:.36s}
.sbl-progress{display:flex;align-items:center;gap:10px;margin-top:22px;max-width:390px}
.sbl-progress[hidden]{display:none}
.sbl-track{flex:1;height:6px;border-radius:8px;background:#d8c58f;overflow:hidden}
.sbl-fill{height:100%;background:var(--sbl-wine);border-radius:8px;transition:width .3s ease}
.sbl-pct{font-size:12px;font-weight:800;color:var(--sbl-wine);min-width:34px;text-align:right}
.sbl-actions{margin-top:16px}
.sbl-actions[hidden]{display:none}
.sbl-continue{border:1px solid #c9ad75;background:#fff5d9;color:var(--sbl-wine);font-weight:750;border-radius:11px;padding:10px 14px;cursor:pointer}
.sbl-signoff{font-family:Georgia,serif;font-size:19px;font-style:italic;color:#74513f;transform:rotate(-4deg);line-height:1.12}
.sbl-signoff b{font-weight:500;color:#6b2530;text-decoration:underline;text-decoration-color:#d7b75f;text-underline-offset:4px}
.sbl-scene{position:relative;display:grid;place-items:center;isolation:isolate}
.sbl-sun{position:absolute;width:min(42vw,510px);aspect-ratio:1;border-radius:50%;background:var(--sbl-goldsoft);right:4%;top:6%;z-index:-2}
.sbl-cloud{position:absolute;width:110px;height:34px;background:#fff8e8;border-radius:30px;top:18%;left:10%;opacity:.95;animation:sblfloat 5s ease-in-out infinite}
.sbl-cloud:before,.sbl-cloud:after{content:"";position:absolute;background:inherit;border-radius:50%;bottom:8px}
.sbl-cloud:before{width:48px;height:48px;left:15px}
.sbl-cloud:after{width:37px;height:37px;right:17px}
.sbl-cloud.two{top:32%;left:auto;right:9%;transform:scale(.65);animation-delay:-2s}
.sbl-house{width:min(76%,620px);filter:drop-shadow(0 20px 22px #4a1b2020);animation:sblsway 4s ease-in-out infinite;z-index:1}
.sbl-plant{position:absolute;bottom:11%;width:78px;height:88px}
.sbl-plant.left{left:7%}
.sbl-plant.right{right:4%;transform:scale(.8)}
.sbl-bubble{position:absolute;z-index:3;background:#fffdf4;border:2px solid var(--sbl-wine);border-radius:18px 18px 18px 4px;padding:12px 16px;color:var(--sbl-wine);font-size:13px;font-weight:800;box-shadow:4px 5px 0 #d8bd7c;transform:rotate(5deg);right:12%;top:17%;animation:sblfloat 4s ease-in-out infinite}
.sbl-bubble span{color:var(--sbl-wine)}
.sbl-confetti{position:absolute;inset:0;pointer-events:none}
.sbl-confetti i{position:absolute;width:12px;height:12px;border-radius:4px;background:#e5c77e;transform:rotate(30deg);animation:sbltwinkle 2.2s ease-in-out infinite}
.sbl-confetti i:nth-child(1){top:16%;right:37%;background:var(--sbl-wine)}
.sbl-confetti i:nth-child(2){top:41%;left:8%;width:9px;height:9px;background:var(--sbl-gold);animation-delay:.5s}
.sbl-confetti i:nth-child(3){bottom:22%;right:21%;width:10px;height:10px;background:#e5c77e;animation-delay:1s}
.sbl-confetti i:nth-child(4){top:65%;left:17%;background:#e5c77e;animation-delay:.8s}
@keyframes sblhop{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-7px) rotate(4deg)}}
@keyframes sblfloat{0%,100%{translate:0 0}50%{translate:0 -9px}}
@keyframes sblsway{0%,100%{transform:translateY(0) rotate(-.6deg)}50%{transform:translateY(-5px) rotate(.6deg)}}
@keyframes sbldot{to{transform:translateY(-4px);opacity:.4}}
@keyframes sbltwinkle{0%,100%{opacity:.5;scale:.8}50%{opacity:1;scale:1.15}}
@media(max-width:760px){.sbl{height:auto;min-height:100svh;display:flex;flex-direction:column}.sbl-left{min-height:53svh;padding:25px 26px 20px}.sbl-brand .sbl-mark{width:43px;height:43px}.sbl-word{font-size:23px}.sbl-msg{margin:auto 0}.sbl-pill{font-size:11px}.sbl-h1{font-size:47px;letter-spacing:-2.5px;margin:17px 0 10px}.sbl-p{font-size:14px}.sbl-loading{margin-top:23px}.sbl-signoff{display:none}.sbl-scene{flex:1;min-height:47svh}.sbl-sun{width:85vw;right:6%;top:0}.sbl-house{width:min(91%,520px)}.sbl-bubble{top:8%;right:10%;font-size:11px;padding:10px 12px}.sbl-plant{bottom:8%;transform:scale(.72)}.sbl-plant.right{transform:scale(.62)}.sbl:after{left:auto;right:-70px;top:40%}}
@media(prefers-reduced-motion:reduce){.sbl *,.sbl *:before,.sbl *:after{animation-duration:.01ms!important;animation-iteration-count:1!important}.sbl-fill{transition:none}}
/* Compact inline spinner for small button actions */
.sbspin{width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;display:inline-block;vertical-align:-2px;margin-right:7px;animation:sbspin .7s linear infinite;flex:none}
@keyframes sbspin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.sbspin{animation-duration:1.4s}}

/* ============== Property media gallery + viewer (mobile-first) ============== */
.pmedvideo{display:flex;align-items:center;gap:9px;width:100%;margin-top:9px;padding:11px 13px;background:#fffdf6;border:1px dashed #d7c9ab;border-radius:11px;color:var(--wine);font-weight:750;font-size:12px;cursor:pointer;text-align:left}
.pmedvideo-play{width:30px;height:30px;border-radius:50%;background:var(--wine);color:#fff5dc;display:grid;place-items:center;font-size:12px;flex:none;padding-left:2px}
.pmedvideo-tag{background:var(--gold);color:var(--wine);border-radius:12px;padding:3px 7px;font-size:9px;font-weight:850;flex:none}
.pgal-head{position:sticky;top:0;z-index:5;background:color-mix(in srgb,var(--paper) 94%,transparent);backdrop-filter:blur(10px);padding:14px 15px 0;border-bottom:1px solid var(--line)}
.pgal-backrow{display:flex;align-items:center;gap:12px}
.pgal-back{border:1px solid var(--line);background:#fffdf6;color:var(--wine);border-radius:9px;padding:10px 12px;font-weight:750;font-size:12px;cursor:pointer}
.pgal-title{font-size:19px;color:var(--wine);font-weight:850;letter-spacing:-.5px;font-family:var(--font-display)}
.pgal-sub{font-size:11px;color:var(--muted);margin:9px 0 11px 47px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pgal-filters{display:flex;gap:18px;margin-left:47px}
.pgal-filters button{padding:0 1px 10px;border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:750;border-bottom:2px solid transparent;cursor:pointer}
.pgal-filters button.active{color:var(--wine);border-color:var(--wine)}
.pgal-grid{padding:13px;display:grid;grid-template-columns:1fr 1fr;gap:9px}
.pgal-tile{position:relative;padding:0;border:1px solid var(--line);overflow:hidden;background:#d5c8ac;border-radius:10px;cursor:pointer;text-align:left;aspect-ratio:1.14}
.pgal-tile img,.pgal-tile video{width:100%;height:100%;object-fit:cover;display:block}
.pgal-label{position:absolute;bottom:0;left:0;right:0;padding:24px 9px 8px;background:linear-gradient(transparent,#1f1111ba);color:#fff;font-size:10px;font-weight:750;text-align:left}
.pgal-play{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);width:43px;height:43px;background:#5B0E14dd;color:#fff5dc;border-radius:50%;display:grid;place-items:center;padding-left:3px;font-size:16px}
.pgal-vtag{position:absolute;top:8px;left:8px;border-radius:15px;background:#fff5dd;color:var(--wine);padding:4px 7px;font-size:9px;font-weight:850}
@media(min-width:760px){.pgal-grid{grid-template-columns:repeat(4,1fr)}.pgal-head{padding:16px 22px 0}}
/* Full-screen viewer */
.pview{position:fixed;inset:0;z-index:50;background:#11090c;display:flex;align-items:center;justify-content:center;touch-action:manipulation}
.pview-content{max-width:100%;max-height:100%;display:grid;place-items:center;width:100%}
.pview-content img{max-width:100%;max-height:100%;object-fit:contain;margin:0 auto}
.pview-content video{width:100%;max-height:100%;object-fit:contain}
.pview-ui{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;padding:calc(14px + env(safe-area-inset-top)) 13px calc(14px + env(safe-area-inset-bottom));pointer-events:none;transition:opacity .2s}
.pview-ui button{pointer-events:auto}
.pview-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pview-name{font-size:11px;font-weight:750;color:#fff}
.pview-tools{display:flex;gap:7px}
.pview-btn{border:1px solid #ffffff60;border-radius:9px;background:#32151acc;color:#fff7e8;padding:10px 11px;font-size:11px;font-weight:800;backdrop-filter:blur(8px);cursor:pointer;min-height:38px}
.pview-arrows{position:absolute;top:50%;left:7px;right:7px;display:flex;justify-content:space-between;transform:translateY(-50%);transition:opacity .2s}
.pview-arrows button{border:1px solid #ffffff60;background:#32151acc;color:white;border-radius:50%;width:42px;height:42px;font-size:20px;cursor:pointer}
.pview-bottom{font-size:10px;color:#ffffffe0;display:flex;justify-content:space-between;gap:8px}
.pview.hide-ui .pview-ui,.pview.hide-ui .pview-arrows{opacity:0;pointer-events:none}
.pview.hide-ui .pview-ui button,.pview.hide-ui .pview-arrows button{pointer-events:none}
@media(prefers-reduced-motion:reduce){.pview-ui,.pview-arrows{transition:none}}
/* Photos/videos that open the gallery get a pointer cue on the listing page */
.galtap{cursor:pointer}
.pgal-tile.pgal-broken{background:color-mix(in srgb,var(--paper) 70%,#c9b89a)}
.pgal-tile.pgal-broken img,.pgal-tile.pgal-broken video,.pgal-tile.pgal-broken .pgal-play,.pgal-tile.pgal-broken .pgal-vtag,.pgal-tile.pgal-broken .pgal-label{display:none}
.pgal-tile.pgal-broken::after{content:"Media unavailable";position:absolute;inset:0;display:grid;place-items:center;padding:10px;color:var(--muted);font-size:11px;font-weight:750;text-align:center}
.pview-error{max-width:min(520px,86vw);text-align:center;color:#f3e3c8;background:#ffffff14;border:1px solid #ffffff2e;border-radius:14px;padding:22px 26px;font-size:13px;font-weight:700;backdrop-filter:blur(6px)}
/* --- Desktop media experience: larger photos, hover cues, roomier viewer --- */
@media(min-width:760px){
.gallery-main.galtap img{transition:transform .3s,filter .3s}
.gallery-main.galtap:hover img{transform:scale(1.02);filter:brightness(.96)}
.pgal-head{top:100px} /* below the fixed nav (60px) and the sticky logo bar (40px) */
.pgal-grid{grid-template-columns:repeat(4,1fr);gap:14px;padding:18px 22px 26px}
.pgal-tile{border-radius:12px;box-shadow:0 5px 15px #3510160b;transition:box-shadow .2s,transform .2s}
.pgal-tile img,.pgal-tile video{transition:transform .25s}
.pgal-tile:hover{box-shadow:0 10px 26px #3510161f;transform:translateY(-2px)}
.pgal-tile:hover img,.pgal-tile:hover video{transform:scale(1.035)}
.pgal-label{font-size:11px;padding:26px 11px 9px}
.pgal-play{width:48px;height:48px;font-size:19px}
.pview-content img,.pview-content video{max-height:88vh}
.pview-content video{width:min(100%,1300px)}
.pview-arrows button{width:46px;height:46px;font-size:23px}
.pview-arrows button:hover{background:#541521}
.pview-btn:hover{background:#541521}
.pview-name{font-size:12.5px}
.pview-bottom{font-size:11px}
}

/* ---- Mobile My account screens (Profile page, viewport < 760px only) ---- */
.acct-headrow{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:13px}
.acct-headrow h1{margin:0}
.acct-headrow .acct-sub{margin:2px 0 0}
.acct-intro{margin:0 0 13px}
.macct-gear{border:0;background:#f6ecda;color:var(--wine);width:38px;height:38px;border-radius:50%;font-size:17px;flex:none}
[data-theme="dark"] .macct-gear{background:#2a251f;color:#EBD798}
.macct-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
[data-theme="dark"] .macct-card{background:#1b1815;border-color:#2a251f}
.macct-user{display:flex;align-items:center;gap:12px;padding:14px;background:linear-gradient(130deg,var(--wine),var(--wine3));color:var(--cream);border-radius:14px;box-shadow:var(--shadow)}
.macct-ava{width:54px;height:54px;border-radius:50%;background:linear-gradient(140deg,var(--gold),#c09b5c);color:var(--wine);display:grid;place-items:center;font-weight:850;font-size:17px;border:2px solid var(--gold);flex:none;overflow:hidden}
.macct-ava img{width:100%;height:100%;object-fit:cover}
.macct-ucopy{flex:1;min-width:0}
.macct-uname{display:block;font-size:15px;font-weight:800;line-height:1.2}
.macct-uemail{display:block;font-size:11px;color:#f0e2c5;margin-top:2px;overflow-wrap:anywhere}
.macct-rolepill{display:inline-block;margin-top:7px;background:var(--gold);color:var(--wine);border-radius:20px;padding:4px 9px;font-size:9px;font-weight:900;letter-spacing:.5px}
.macct-edit{border:1px solid #d6bd79;color:var(--cream);background:#ffffff14;border-radius:9px;padding:9px 11px;font-size:11px;font-weight:800;flex:none}
.macct-progress{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px;margin:12px 0}
[data-theme="dark"] .macct-progress{background:#1b1815;border-color:#2a251f}
.macct-progress-top{display:flex;justify-content:space-between;gap:8px;align-items:center}
.macct-progress-top b{font-size:12px;color:var(--wine)}
[data-theme="dark"] .macct-progress-top b{color:#EBD798}
.macct-pct{font-size:12px;color:var(--wine);font-weight:900}
[data-theme="dark"] .macct-pct{color:#EBD798}
.macct-progress p{font-size:10px;color:var(--muted);margin:4px 0 9px}
.macct-track{height:6px;background:#eee6d4;border-radius:9px;overflow:hidden}
[data-theme="dark"] .macct-track{background:#2a251f}
.macct-fill{height:100%;background:#a27e40;border-radius:9px;transition:width .3s}
.macct-verify{display:flex;align-items:center;gap:10px;text-align:left;width:100%;background:#f7edce;border:1px solid #e5d4a6;border-radius:12px;padding:11px 12px;margin:12px 0 2px;font:inherit;cursor:pointer}
[data-theme="dark"] .macct-verify{background:#3a2f1d;border-color:#5a4a26}
.macct-verify-ico{width:32px;height:32px;border-radius:9px;background:#e8d7a6;color:var(--wine);display:grid;place-items:center;flex:none}
[data-theme="dark"] .macct-verify-ico{background:#5a4a26;color:#EBD798}
.macct-verify b{font-size:11px;color:var(--wine);display:block}
[data-theme="dark"] .macct-verify b{color:#EBD798}
.macct-verify small{font-size:10px;color:#766349;display:block;margin-top:2px}
[data-theme="dark"] .macct-verify small{color:#c9b98f}
.macct-label{font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:18px 2px 8px}
.macct-row{display:flex;width:100%;align-items:center;text-align:left;gap:11px;padding:12px;min-height:58px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;cursor:pointer;text-decoration:none}
.macct-card .macct-row:last-child{border-bottom:0}
.macct-row:not(.static):hover{background:#f8f2e4}
[data-theme="dark"] .macct-row:not(.static):hover{background:#2a251f}
.macct-ico{width:34px;height:34px;flex:none;border-radius:10px;background:#f6ecda;color:var(--wine);display:grid;place-items:center;font-size:15px}
[data-theme="dark"] .macct-ico{background:#2a251f;color:#EBD798}
.macct-main{flex:1;min-width:0}
.macct-main b{display:block;font-size:12.5px}
.macct-main small{display:block;color:var(--muted);font-size:10.5px;margin-top:2px;line-height:1.4}
.macct-chev{color:var(--muted);font-size:17px}
.macct-badge{color:var(--green);font-size:9px;font-weight:850;background:#e8eee1;padding:4px 7px;border-radius:12px;white-space:nowrap}
[data-theme="dark"] .macct-badge{background:#22301f;color:#a8c79a}
.macct-badge.todo{background:#f7edcd;color:#916d29}
[data-theme="dark"] .macct-badge.todo{background:#3a2f1d;color:#EBD798}
.macct-head{display:flex;align-items:center;gap:11px;padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:13px}
.macct-head h1{margin:0;font-size:17px}
.macct-back{border:1px solid var(--line);background:#fff;border-radius:9px;color:var(--wine);font-weight:800;padding:8px 12px;font-size:12px;flex:none}
[data-theme="dark"] .macct-back{background:#1b1815;border-color:#2a251f;color:#EBD798}
.macct-note{border:1px solid #ead9a2;background:#fbf3d9;border-radius:10px;padding:11px 12px;color:#6f5e43;font-size:11px;margin-bottom:13px;line-height:1.5}
[data-theme="dark"] .macct-note{background:#3a2f1d;border-color:#5a4a26;color:#c9b98f}
.macct-note b{color:var(--wine)}
[data-theme="dark"] .macct-note b{color:#EBD798}
.macct-field{display:grid;gap:5px;margin-bottom:12px}
.macct-field label{font-size:11px;font-weight:800}
.macct-field .field{width:100%;min-width:0}
.macct-field small{color:var(--muted);font-size:10px}
.macct-field .field:disabled{color:var(--muted);background:#faf6ec}
[data-theme="dark"] .macct-field .field:disabled{background:#141210;color:#8d8474}
.macct-savebar{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}
.macct-doc{background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px;margin-bottom:9px}
[data-theme="dark"] .macct-doc{background:#1b1815;border-color:#2a251f}
.macct-doc-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.macct-doc-top b{font-size:12px;color:var(--wine)}
[data-theme="dark"] .macct-doc-top b{color:#EBD798}
.macct-doc p{font-size:10.5px;color:var(--muted);margin:5px 0 10px;line-height:1.5}
.macct .btn.danger{background:#fff8f6;color:#9b3937;border:1px solid #e8ceca}
[data-theme="dark"] .macct .btn.danger{background:#38201d;color:#e0a49b;border-color:#5a2f2a}
[data-theme="dark"] .macct-row{color:#f2ecdf}

/* Home feed cards: whole-card tap, property ID row with copy action */
.property.tap{cursor:pointer}
.property.tap:focus-visible{outline:3px solid var(--wine);outline-offset:2px}
.pidrow{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:8px;min-height:30px}
.pidrow code{font:700 9px ui-monospace,SFMono-Regular,Consolas,monospace;color:#6b5a4e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:.2px}
.copyid{flex:none;border:1px solid #e2d5c4;background:#fdf6e7;color:#6b4a2f;border-radius:7px;padding:6px 8px;font-size:9px;font-weight:800;min-height:30px;cursor:pointer}
.copyid.copied{background:#eaf4e9;border-color:#c6d9c4;color:var(--green)}
.homegrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.homegrid .property{min-width:0;max-width:none;width:auto}
@media(min-width:760px){.homegrid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}}
[data-theme="dark"] .property.tap:focus-visible{outline-color:var(--gold)}
[data-theme="dark"] .pidrow code{color:#c9b99b}
[data-theme="dark"] .copyid{background:#2c241d;border-color:#4a3d30;color:#e8d7a6}
[data-theme="dark"] .copyid.copied{background:#26312a;border-color:#3c5243;color:#a8c3a5}
/* Dark theme topbar is cream/gold: the standard mark's knot is a cut-out that
   would show cream through, so swap to the wine-knot variant there. */
[data-theme="dark"] .topbar .logo{content:url("./assets/shelterbaze-mark-dark.png")}
/* Social sign-in buttons stack with a gap when Apple + Google both show */
.agoogle + .agoogle{margin-top:8px}
/* Search page State / City location selectors (distinct icons per selector) */
.locsel{display:flex;align-items:center;gap:5px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:0 6px}
.locsel .locico{color:var(--wine);font-size:13px;flex:none}
.locsel .select{border:0;max-width:140px;padding:9px 2px;background:transparent}
.locsel .select:disabled{color:#988d7a}
.locsel:focus-within{border-color:var(--wine)}
[data-theme="dark"] .locsel{background:#241d17;border-color:#4a3d30}
[data-theme="dark"] .locsel .locico{color:#e0c377}
[data-theme="dark"] .locsel .select:disabled{color:#7d7264}

/* ================= Search page redesign (srs-*) =================
   Layout from the search redesign preview; colors from the app
   palette so light/dark themes stay on-brand. */
.srs-page{padding-bottom:40px}
.srs-hero{display:grid;grid-template-columns:1fr 480px;gap:40px;align-items:center;padding:26px 0 8px}
.srs-herocopy{min-width:0}
.srs-title{font-family:var(--font-display);font-size:clamp(30px,4.5vw,52px);line-height:1.05;letter-spacing:-1.5px;color:var(--wine);margin:10px 0 12px;max-width:520px}
.srs-title em{color:var(--terracotta);font-style:italic;font-weight:400}
.srs-sub{color:var(--muted);font-size:14px;max-width:420px}
.srs-trust{display:flex;align-items:center;gap:9px;margin-top:18px;color:var(--muted);font-size:12px}
.srs-trustdot{width:22px;height:22px;border-radius:50%;background:var(--gold);color:var(--wine);display:grid;place-items:center;font-size:11px;font-weight:800}
.srs-card{position:relative;background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:var(--shadow)}
.srs-cardtop{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:8px}
.srs-cardtop h2{margin:0;font-size:16px;color:var(--ink)}
.srs-secure{font-size:10px;color:var(--green);font-weight:700;background:#edf0e8;border-radius:99px;padding:5px 9px;white-space:nowrap}
.srs-segmented{display:flex;gap:4px;padding:4px;background:#f2e9d3;border-radius:12px;margin-bottom:14px}
.srs-segmented button{border:0;background:transparent;color:var(--muted);border-radius:9px;flex:1;padding:10px;font-weight:750;cursor:pointer;min-height:38px}
.srs-segmented button.active{background:var(--wine);color:var(--cream);box-shadow:0 4px 10px #35101722}
.srs-field{margin-bottom:12px;min-width:0}
.srs-field label{display:block;font-size:11px;font-weight:800;margin:0 0 6px 2px;color:var(--ink)}
.srs-inputbox{height:46px;border:1px solid var(--line);border-radius:11px;background:#fffdf7;display:flex;align-items:center;gap:9px;padding:0 11px}
.srs-inputbox:focus-within{border-color:var(--terracotta);box-shadow:0 0 0 3px #a867451c}
.srs-inputbox .srs-ico{font-size:15px;color:#9a5c3f;flex:none}
.srs-inputbox input,.srs-inputbox select{border:0;background:transparent;outline:0;width:100%;min-width:0;color:var(--ink);font-size:13px;height:100%}
.srs-split{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.srs-suggest{position:absolute;z-index:6;left:20px;right:20px;background:#fffdf7;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden;margin-top:4px}
.srs-suggest button{display:block;width:100%;text-align:left;border:0;background:#fffdf7;color:var(--ink);padding:11px 14px;cursor:pointer;font-size:13px;min-height:38px}
.srs-suggest button:hover{background:#faf3df}
.srs-custom{display:block;width:100%;height:43px;margin:-4px 0 12px;border:1px solid var(--line);border-radius:10px;background:#fffdf7;padding:0 11px;color:var(--ink);font-size:13px}
.srs-custom[hidden]{display:none}
.srs-beds{display:flex;gap:6px}
.srs-beds button{flex:1;border:1px solid var(--line);background:#fffdf7;color:var(--muted);border-radius:9px;padding:9px 0;font-size:12px;cursor:pointer;min-height:36px}
.srs-beds button.active{background:#f1e2b6;color:var(--wine);border-color:#ba9a52;font-weight:800}
.srs-go{width:100%;border:0;border-radius:12px;background:var(--wine);color:var(--cream);padding:13px;font-weight:800;margin-top:6px;box-shadow:0 8px 18px #4b101924;cursor:pointer;min-height:46px;font-size:14px}
.srs-go:hover{background:var(--wine2)}
.srs-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.srs-chips button{border:1px solid var(--line);background:transparent;border-radius:99px;color:#6f5142;padding:7px 12px;font-size:11px;cursor:pointer;min-height:30px}
.srs-chips button:hover{background:#f1e5c7}
.srs-idlookup{margin-top:16px}
.srs-iddivider{display:flex;align-items:center;gap:9px;color:#9b8a72;font-size:10px;margin-bottom:10px}
.srs-iddivider:before,.srs-iddivider:after{content:"";height:1px;flex:1;background:var(--line)}
.srs-idlookup>label{display:block;font-size:11px;font-weight:800;margin:0 0 6px 2px;color:var(--ink)}
.srs-idrow{display:flex;gap:8px}
.srs-idrow input{height:42px;min-width:0;flex:1;border:1px solid var(--line);border-radius:10px;background:#fffdf7;padding:0 11px;color:var(--ink);font-size:12px}
.srs-idrow button{border:1px solid #d7c490;border-radius:10px;background:#f2e6c4;color:var(--wine);padding:0 12px;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer;min-height:42px}
.srs-discover{margin-top:26px}
.srs-sechead{display:flex;justify-content:space-between;align-items:end;gap:10px;margin-bottom:12px}
.srs-h2{font-family:var(--font-display);font-size:24px;margin:4px 0 0;color:var(--wine);letter-spacing:-.5px}
.srs-inspiration{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.srs-inspiration button{height:96px;text-align:left;border:1px solid var(--line);border-radius:14px;padding:14px;background:linear-gradient(130deg,#f4e6bc,#fbf6e8);color:var(--wine);cursor:pointer}
.srs-inspiration b{display:block;font-size:13px}
.srs-inspiration span{font-size:11px;color:var(--muted)}
.srs-inspico{float:right;font-size:22px;color:#b77e56}
.srs-resulttop{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;border-bottom:1px solid var(--line);padding:8px 0 16px;flex-wrap:wrap}
.srs-h1{font-family:var(--font-display);font-size:28px;margin:4px 0 4px;color:var(--wine);letter-spacing:-.5px}
.srs-sub{margin:0;color:var(--muted);font-size:12px}
.srs-resultactions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.srs-outline{border:1px solid #d9c79a;background:var(--paper);color:var(--wine);border-radius:10px;padding:10px 13px;font-weight:750;font-size:12px;cursor:pointer;min-height:40px}
.srs-filterchips{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0}
.srs-filterchips span{background:#efe4c4;border-radius:99px;padding:6px 11px;font-size:11px;color:#674238}
[data-theme="dark"] .srs-filterchips span{background:#3a2f22;color:#e8d7a6}
.srs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.srs-card{overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);cursor:pointer;transition:transform .18s,box-shadow .18s}
.srs-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #35101718}
.srs-card:focus-visible{outline:3px solid var(--wine);outline-offset:2px}
.srs-photo{height:150px;position:relative;overflow:hidden;background:#f2d886;--photo-loader-surface:#f2d886;--photo-loader-dot-border:#5b0e14;--photo-loader-dot-fill:#f6df91}
.srs-photo img{width:100%;height:100%;object-fit:cover;display:block;position:relative;z-index:0;pointer-events:none;-webkit-user-drag:none;user-select:none}.srs-badge,.srs-heart{z-index:3}
.srs-photo.image-error .photo-loading{opacity:0;visibility:hidden}.srs-photo img.srs-broken{display:none}
.srs-badge{position:absolute;left:11px;top:11px;background:var(--gold);color:var(--wine);font-size:10px;font-weight:800;padding:5px 9px;border-radius:99px}
.srs-heart{position:absolute;right:9px;top:9px;width:36px;height:36px;border-radius:50%;border:0;background:#fffaf0e8;color:var(--wine);font-size:17px;cursor:pointer}
.srs-heart.saved{background:var(--wine);color:var(--cream)}
.srs-body{padding:13px}
.srs-price{font-size:16px;font-weight:850;color:var(--wine)}
.srs-period{font-size:11px;color:var(--muted);font-weight:500}
.srs-body h3{margin:6px 0 4px;font-size:14px;color:var(--ink)}
.srs-address{font-size:11px;color:var(--muted)}
.srs-specs{display:flex;gap:12px;border-top:1px solid #eee4ce;margin-top:10px;padding-top:9px;color:#6f584b;font-size:11px;flex-wrap:wrap}
.srs-idline{display:flex;justify-content:space-between;align-items:center;margin-top:10px;color:#88786b;font-size:10px;gap:6px}
.srs-idline span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.srs-copy{border:0;background:transparent;color:#8a4532;font-weight:750;font-size:10px;cursor:pointer;flex:none;padding:6px 4px;min-height:26px}
.srs-copy.copied{color:var(--green)}
.srs-empty{grid-column:1/-1;padding:34px;text-align:center;color:var(--muted);background:#fffaf0;border-radius:16px;border:1px solid var(--line)}
[data-theme="dark"] .srs-empty{background:#241d17;border-color:#4a3d30}
.srs-filterbackdrop{display:none;position:fixed;inset:0;background:#20111588;z-index:20;align-items:center;justify-content:center;padding:16px}
.srs-filterbackdrop.open{display:flex}
.srs-filterpanel{background:var(--paper);width:min(560px,100%);max-height:90vh;overflow:auto;border-radius:20px;padding:20px;box-shadow:0 28px 80px #1b080bcc}
.srs-filterhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.srs-close{border:0;background:#f1e4c6;color:var(--wine);border-radius:50%;width:34px;height:34px;font-size:16px;cursor:pointer}
[data-theme="dark"] .srs-close{background:#3a2f22;color:#e8d7a6}
.srs-filterpanel select,.srs-filterpanel input{height:44px;border:1px solid var(--line);border-radius:10px;background:#fffdf7;padding:0 10px;width:100%;color:var(--ink)}
[data-theme="dark"] .srs-inputbox,[data-theme="dark"] .srs-filterpanel select,[data-theme="dark"] .srs-filterpanel input,[data-theme="dark"] .srs-idrow input,[data-theme="dark"] .srs-custom{background:#241d17;border-color:#4a3d30;color:#f2ecdf}
[data-theme="dark"] .srs-segmented{background:#322820}
[data-theme="dark"] .srs-beds button,[data-theme="dark"] .srs-chips button,[data-theme="dark"] .srs-inspiration button,[data-theme="dark"] .srs-idrow button{background:#241d17;border-color:#4a3d30;color:#e8d7a6}
[data-theme="dark"] .srs-beds button.active{background:#5a4a1f;color:#f4dc8d}
[data-theme="dark"] .srs-card{background:#241d17;border-color:#4a3d30}
[data-theme="dark"] .srs-body h3{color:#f2ecdf}
[data-theme="dark"] .srs-specs{border-color:#3a2f22;color:#c9b99b}
[data-theme="dark"] .srs-title,[data-theme="dark"] .srs-h1,[data-theme="dark"] .srs-h2{color:#EBD798}
@media(max-width:900px){.srs-hero{grid-template-columns:1fr;gap:22px;padding-top:14px}.srs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.srs-hero{gap:18px;padding-top:6px}.srs-card{padding:16px;border-radius:16px}.srs-grid{grid-template-columns:1fr;gap:12px}.srs-photo{height:176px}.srs-title{font-size:34px}.srs-inspiration{grid-template-columns:1fr}.srs-inspiration button{height:auto}.srs-resultactions{width:100%}.srs-resultactions>*{flex:1}}
/* Chat thread back button: cream-on-cream was effectively invisible,
   especially in dark mode — make it a clearly visible wine circle. */
.back-button{background:var(--wine);color:var(--cream);box-shadow:0 2px 8px #28080926}
.back-button:hover{background:var(--wine2)}
[data-theme="dark"] .back-button{background:var(--gold);color:var(--wine)}

/* ============ Mobile chat keyboard-aware layout (chat-kb-open) ============
   Applied while the message input is focused on a phone: the thread becomes
   a fixed column under the brandbar, the bottom navigation hides, and the
   composer sits directly above the measured keyboard inset. */
@media(max-width:759px){
  :root{--sb-nav:calc(67px + env(safe-area-inset-bottom))}
  /* In a chat thread on mobile, dock the whole thread above the bottom
     navigation: messages fill the space and the composer sits on the nav. */
  body.chat-thread{overflow:hidden}
  body.chat-thread .chat-page{position:fixed;top:var(--sb-top);left:0;right:0;bottom:var(--sb-nav);min-height:0;height:auto;padding:10px 12px 8px;margin:0;z-index:14}
  body.chat-thread .chat-page .thread-messages{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto}
}
@media(max-width:759px){
  :root{--sb-top:57px;--sb-kb-inset:0px}
  body.chat-kb-open{overflow:hidden}
  body.chat-kb-open .bottomnav{display:none}
  body.chat-kb-open .chat-page{position:fixed;top:var(--sb-top);left:0;right:0;bottom:var(--sb-kb-inset);min-height:0;height:auto;padding:10px 12px 8px;margin:0;z-index:14}
  body.chat-kb-open .chat-page .thread-messages{flex:1 1 auto;min-height:0;max-height:none}
  body.chat-kb-open .chat-page .live-compose{padding-top:9px}
}

/* ================= Finance Portal (#/finance) =================
   Same brand system: wine primary, gold accents, cream panels.
   The portal renders inside the app's own brandbar + bottom nav;
   sub-sections use a scrollable tab row instead of a sidebar. */
.fin{max-width:1080px;margin:0 auto}
.finhead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}
.finhead h1{margin:4px 0 3px}
.finhead p{margin:0}
.fneyebrow{font-size:9px;letter-spacing:1.4px;color:#a18347;font-weight:850}
.finsecure{font-size:9px;color:#61735d;background:#eef3e9;border:1px solid #dbe6d7;padding:6px 9px;border-radius:99px;white-space:nowrap}
.finrolebar{display:flex;align-items:center;gap:8px;margin:2px 0 10px}
.finrolechip{font-size:9px;font-weight:850;letter-spacing:.6px;color:var(--wine);background:#f6ecd4;border:1px solid #ead9a2;border-radius:99px;padding:5px 9px}
.fintabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:12px;overflow-x:auto;scrollbar-width:none}
.fintabs::-webkit-scrollbar{display:none}
.fintabs button{border:0;background:none;padding:10px 10px;color:var(--muted);font:700 11px inherit;cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap;min-height:38px}
.fintabs button.active{color:var(--wine);border-color:var(--wine)}
.finstats{grid-template-columns:repeat(4,1fr);display:grid;gap:10px;margin-bottom:12px}
.finstathead{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:9px;font-weight:700;gap:6px}
.staticon{width:26px;height:26px;flex:none;background:#faf1dc;border-radius:8px;display:grid;place-items:center;color:var(--wine);font-size:12px}
.finrow{display:grid;grid-template-columns:1.25fr .95fr;gap:12px;margin-bottom:12px;align-items:start}
.panelhead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.panelhead h2{font-size:13px;margin:0}
.panelhead p{font-size:10px;color:var(--muted);margin:3px 0 0}
.btn.primary{background:var(--wine);border-color:var(--wine)}
.finchart{height:135px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 33px,#f4efe7 34px);border-bottom:1px solid var(--line)}
.finchart svg{height:100%;width:100%;display:block}
.finmonths{display:flex;justify-content:space-between;color:#a79d94;font-size:8px;margin-top:5px}
.finbalance{border-radius:12px;padding:14px;background:linear-gradient(120deg,#581d29,#743541);color:#fff;position:relative;overflow:hidden}
.finbalance:after{content:"";position:absolute;width:150px;height:150px;right:-55px;top:-60px;border:1px solid #ffffff27;border-radius:50%;box-shadow:0 0 0 18px #ffffff0d,0 0 0 38px #ffffff09}
.finbalance small{font-size:9px;color:#ecd7bb;display:block}
.finbalance strong{display:block;font-size:25px;margin:3px 0 10px;letter-spacing:-.7px}
.finbalance .btn{background:var(--gold);color:var(--wine);border:0;position:relative;z-index:1}
.febreak-title,.finbreak-title{font-weight:800;font-size:12px}
.fees{display:grid;margin-top:6px}
.feerow{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #f1ece5;font-size:11px}
.feerow span{color:var(--muted)}
.feerow.total{font-size:12px;font-weight:800;border:0;padding-top:11px}
.finpolicy{margin-top:11px;padding:9px 11px;background:#fff8e7;border:1px solid #eee1c2;border-radius:9px;color:#705f3d;font-size:10px;line-height:1.55}
.finhint{font-size:10px;color:var(--muted);margin:8px 0 0}
.finmethods{display:flex;gap:8px;flex-wrap:wrap}
.finmethod{flex:1;min-width:130px;border:1px solid var(--line);border-radius:10px;padding:10px;display:flex;align-items:center;gap:8px;background:#fff}
.finmethod i{font-style:normal;width:26px;height:26px;flex:none;background:#f6efdf;color:var(--wine);display:grid;place-items:center;border-radius:8px}
.finmethod b{display:block;font-size:10px}
.finmethod small{font-size:9px;color:var(--muted)}
.fintx{display:flex;align-items:center;gap:8px;min-width:0}
.fntxicon{width:28px;height:28px;flex:none;border-radius:8px;background:#f7f0df;color:var(--wine);display:grid;place-items:center}
.fintx b{display:block;font-size:10px}
.fintx small{display:block;color:var(--muted);font-size:9px}
.finamt{font-weight:800;white-space:nowrap}
.finref{font-size:9px;background:#f7f3ec;border-radius:6px;padding:2px 6px;color:#6d5f52}
.finpill{display:inline-block;padding:4px 8px;border-radius:99px;font-size:9px;font-weight:800;background:#eaf2e9;color:#477355;white-space:nowrap}
.finpill.pending{background:#fcf2d8;color:#9a7023}
.finpill.recorded{background:#e8eef7;color:#3f5f8a}
.finpill.cancelled{background:#f3eee9;color:#8b8179}
.tablepanel{padding:0;overflow:hidden}
.tablepanel .panelhead,.tablepanel .tabletop{padding:13px 14px 4px}
.tabletop{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.tabletop h2{font-size:13px;margin:0}
.tabletop p{font-size:10px;color:var(--muted);margin:3px 0 0}
.tablewrap{overflow:auto}
.tablewrap table{width:100%;border-collapse:collapse;white-space:nowrap}
.tablewrap th{font-size:9px;color:#968c82;text-transform:uppercase;letter-spacing:.6px;text-align:left;padding:9px 13px;background:#fbfaf8;border-block:1px solid #f0ece6}
.tablewrap td{font-size:11px;padding:10px 13px;border-bottom:1px solid #f2eee8;vertical-align:middle}
.tablewrap tbody tr:last-child td{border:0}
.finfilters{display:flex;gap:6px;padding-bottom:12px}
.finfilters select{border:1px solid var(--line);border-radius:8px;padding:8px;font-size:11px;background:#fff;color:#62564f}
.fininvoice .fees{margin:2px 0 8px}
.finalert{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border:1px solid #e8dfc7;background:#fbf7eb;border-radius:10px;color:#6d5b38;font-size:11px;line-height:1.55;margin-bottom:12px}
.finformitems{display:grid;gap:8px;border:1px dashed #e4d3b4;border-radius:10px;padding:11px;background:#fffdf6}
.finitemrow .finitemlabel{display:grid;gap:4px;font-size:11px;font-weight:700}
.finitemrow input{border:1px solid var(--line);border-radius:9px;padding:9px}
.finfoot{text-align:center;font-size:8px;letter-spacing:.4px;color:#a49a91;margin-top:18px;line-height:1.6}
@media(max-width:860px){.finstats{grid-template-columns:repeat(2,1fr)}.finrow{grid-template-columns:1fr}}
@media(max-width:480px){.finhead{flex-direction:column}.finsecure{align-self:flex-start}.finbalance strong{font-size:22px}}

/* Dark theme — finance */
[data-theme="dark"] .fneyebrow{color:#c9a96b}
[data-theme="dark"] .finsecure{background:#22301f;border-color:#39503a;color:#a8c79a}
[data-theme="dark"] .finrolechip{background:#3a2f1d;border-color:#5a4a26;color:#EBD798}
[data-theme="dark"] .fintabs button.active{color:#EBD798;border-color:#EBD798}
[data-theme="dark"] .staticon{background:#3a2b1d;color:#EBD798}
[data-theme="dark"] .finchart{background:repeating-linear-gradient(to bottom,transparent 0,transparent 33px,#241f19 34px);border-color:#2a251f}
[data-theme="dark"] .finchart svg path{stroke:#EBD798}
[data-theme="dark"] .finbalance{background:linear-gradient(120deg,#3a141a,#57262e)}
[data-theme="dark"] .feerow{border-color:#2a251f}
[data-theme="dark"] .feerow span{color:#a89d8f}
[data-theme="dark"] .finpolicy{background:#3a2f1d;border-color:#5a4a26;color:#c9b98f}
[data-theme="dark"] .finmethod{background:#1b1815;border-color:#2a251f}
[data-theme="dark"] .finmethod i{background:#3a2b1d;color:#EBD798}
[data-theme="dark"] .fntxicon{background:#3a2b1d;color:#EBD798}
[data-theme="dark"] .finref{background:#2a251f;color:#c9b99b}
[data-theme="dark"] .finpill{background:#22301f;color:#a8c79a}
[data-theme="dark"] .finpill.pending{background:#3a2f1d;color:#EBD798}
[data-theme="dark"] .finpill.recorded{background:#22304a;color:#a9c3e8}
[data-theme="dark"] .finpill.cancelled{background:#2a251f;color:#a89d8f}
[data-theme="dark"] .tablewrap th{background:#1b1815;border-color:#2a251f;color:#a89d8f}
[data-theme="dark"] .tablewrap td{border-color:#241f19}
[data-theme="dark"] .tablepanel{background:#171411;border-color:#2a251f}
[data-theme="dark"] .finfilters select{background:#1b1815;border-color:#2a251f;color:#d8cdbb}
[data-theme="dark"] .finalert{background:#3a2f1d;border-color:#5a4a26;color:#c9b98f}
[data-theme="dark"] .finformitems{background:#1b1815;border-color:#4a3b22}
/* ==================== Admin console (admin.js) ====================
   Duty-based console for super administrators and duty admins.
   Mobile: stacked with a scrollable section strip. Desktop (≥760px):
   the preview's sidebar layout in Shelterbaze burgundy + sand gold. */
.accon{display:block;min-height:60vh}
.acside{background:var(--wine);color:#fff;padding:14px 12px;border-radius:0 0 16px 16px}
.acbrand{display:flex;align-items:center;gap:9px;padding:2px 4px 12px;border-bottom:1px solid #ffffff22}
.acbrand-mark{width:34px;height:34px;background:var(--gold);color:var(--wine);border-radius:10px;display:grid;place-items:center;font-size:19px;font-weight:900;flex:none}
.acbrand b{display:block;font-size:15px;font-family:var(--font-display);font-stretch:114%}
.acbrand small{font-size:8px;color:#ecd9b4;letter-spacing:1.2px;font-weight:800}
.acnav{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:10px 0 2px;align-items:center}
.acnav::-webkit-scrollbar{display:none}
.acnav-label{display:none}
nav.acnav button.acnavitem{background:#ffffff12;border:0;color:#f6e9d8;text-align:left;padding:8px 11px;border-radius:9px;font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;flex:0 0 auto}
nav.acnav button.acnavitem:hover{background:#ffffff20}
nav.acnav button.acnavitem.active{background:#ffffff26;color:#fff;box-shadow:inset 3px 0 var(--gold)}
.acnav-ico{width:15px;text-align:center}
.acbadge{margin-left:auto;border-radius:999px;background:var(--gold);color:#38141b;padding:1px 7px;font-size:9px;font-weight:800}
.acme{display:flex;gap:9px;align-items:center;border-top:1px solid #ffffff26;padding:11px 4px 2px;margin-top:8px}
.acme b{font-size:11px;display:block}
.acme small{font-size:9px;color:#e5cdbd}
.acme-ava{width:29px;height:29px;background:#e9c977;border-radius:50%;display:grid;place-items:center;color:#481823;font-size:10px;font-weight:800;flex:none}
.acavatar{width:31px;height:31px;border-radius:50%;background:#f0e5d2;color:#67313b;display:grid;place-items:center;font-size:10px;font-weight:800;flex:none}
.acavatar.small{width:24px;height:24px;font-size:8px}
.acmain{min-width:0}
.actop{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:12px 2px 4px;border-bottom:1px solid var(--line);position:sticky;top:40px;background:var(--paper);z-index:5}
.accrumb{font-size:11px;color:var(--muted)}
.accrumb b{color:var(--ink)}
.accrumb span{color:#c7bdb2}
.actop-tools{display:flex;gap:7px}
.acicon{width:34px;height:34px;border:1px solid var(--line);background:#fff;border-radius:9px;cursor:pointer;color:var(--wine);font-size:14px}
.accontent{padding:14px 0 8px}
.acfoot{text-align:center;color:#a49a91;font-size:9px;padding:14px 0 6px}
.acwelcome{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.aceyebrow{font-size:9px;font-weight:850;letter-spacing:1.3px;color:#a08346}
.acwelcome h1{font-size:21px;line-height:1.2;margin:4px 0;letter-spacing:-.5px}
.acwelcome p{font-size:11px;color:var(--muted);margin:0}
.acactions{display:flex;gap:7px;flex-wrap:wrap}
.acstats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}
.acstat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;box-shadow:var(--shadow)}
.acstat-head{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:10px;font-weight:700}
.acstat-ico{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#f7f0de;font-size:13px}
.acstat strong{display:block;font-size:20px;letter-spacing:-.6px;margin-top:6px;color:var(--ink)}
.acstat-sub{margin-top:3px;color:var(--green);font-size:9px}
.acrow{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:12px}
.acrow2{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px}
.acpanel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:14px;box-shadow:var(--shadow)}
.acpanel-table{padding:0;overflow:hidden}
.acpanel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px;flex-wrap:wrap}
.acpanel-head h2{font-size:13px;margin:0}
.acpanel-head p{font-size:9px;color:var(--muted);margin:3px 0 0}
.acsubhead{font-size:9px;letter-spacing:1.1px;color:#a08346;font-weight:850;margin:12px 0 6px}
.actabletop{padding:13px 14px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.actabletop h2{font-size:13px;margin:0}
.actabletop p{font-size:9px;color:var(--muted);margin:3px 0 0}
.acfilters{display:flex;align-items:center;gap:6px}
.acfilters .select{max-width:none}
.actablewrap{overflow-x:auto}
.actable{border-collapse:collapse;width:100%;white-space:nowrap}
.actable th{text-align:left;color:#988d83;text-transform:uppercase;letter-spacing:.6px;font-size:8px;padding:9px 13px;background:#fbfaf8;border-block:1px solid #f0ece6}
.actable td{font-size:10px;padding:10px 13px;border-bottom:1px solid #f2eee8}
.actable tbody tr:last-child td{border:0}
.acprop{display:flex;align-items:center;gap:8px}
.acprop b{display:block;font-size:10px}
.acprop small,.acprop .small{display:block;color:var(--muted);font-size:9px;margin-top:2px}
.acthumb{width:34px;height:29px;border-radius:6px;background:linear-gradient(140deg,#d7b06b,#612b32 70%);display:grid;place-items:center;color:#fff;font-size:12px;flex:none}
.acrowbtns{display:flex;gap:6px;flex-wrap:wrap}
.actodo{display:grid;gap:7px}
.actodoitem{display:flex;align-items:center;gap:9px;border:1px solid #f0ece5;border-radius:9px;padding:8px}
.actodoitem b{font-size:10px;display:block}
.actodoitem small{font-size:9px;color:var(--muted)}
.actodo-ico{width:27px;height:27px;border-radius:7px;background:#f9f1e0;display:grid;place-items:center;flex:none}
.actodoitem .btn{margin-left:auto}
.acchart{height:150px;border-bottom:1px solid #eee9e0}
.acchart svg{width:100%;height:100%;display:block}
.acmonths{display:flex;justify-content:space-between;color:#a59b92;font-size:8px;margin-top:6px}
.aclegend{display:flex;gap:12px;font-size:9px;color:var(--muted);margin-top:8px}
.aclegend i{display:inline-block;width:7px;height:7px;background:var(--wine);border-radius:50%;margin-right:4px}
.aclegend i.gold{background:#c39b50}
.acevent{display:flex;align-items:flex-start;gap:9px;padding:9px 0;border-bottom:1px solid #f1ede7;min-width:0}
.acevent:last-child{border-bottom:0}
.acevent b{font-size:11px}
.acevent > div{flex:1;min-width:0}
.acevent p{margin:2px 0;color:var(--muted);font-size:10px;line-height:1.5;overflow-wrap:anywhere;word-break:break-word}
.acevent time{margin-left:auto;color:#a49a91;font-size:9px;white-space:nowrap}
.acevent-ico{width:26px;height:26px;background:#f5eedc;border-radius:50%;display:grid;place-items:center;font-size:11px;flex:none}
.acevent.clickable{cursor:pointer;border-radius:9px}
.acevent.clickable:hover{background:#fffaf0}
.acchev{margin-left:auto;color:#b6aca2;font-size:18px;align-self:center;flex:none}
.aclast{font-style:italic;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.acquickgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.acquick{background:#fffaf0;border:1px solid #efe5ce;border-radius:10px;text-align:left;padding:11px;cursor:pointer;color:#45232a}
.acquick.static{cursor:default}
.acquick b{display:block;font-size:10px;margin-top:5px}
.acquick small{font-size:9px;color:var(--muted)}
.acquick span{font-size:15px}
.acnotice{border:1px solid #eee1c2;background:#fff8e6;border-radius:9px;padding:9px 11px;color:#705f3d;font-size:10px;line-height:1.55;margin-top:10px}
.acpill{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:99px;font-size:9px;font-weight:800;white-space:nowrap}
.acpill:before{content:"";width:5px;height:5px;background:currentColor;border-radius:50%}
.acdenied{background:#fff;border:1px solid var(--line);border-radius:13px;padding:30px 22px;text-align:center;color:var(--muted);margin:14px 0}
.acdenied b{display:block;color:var(--ink);margin:8px 0 5px;font-size:14px}
.acdenied p{font-size:11px;margin:0 0 12px;line-height:1.6}
.acdenied span{font-size:22px}
.acdenied.small{padding:16px;margin:10px 0;text-align:left;display:flex;gap:10px;align-items:flex-start}
.acdenied.small b{margin:0 0 3px;font-size:12px}
.acdenied.small p{margin:0 0 8px}
.acbar{display:flex;align-items:center;gap:9px;padding:7px 0;font-size:10px}
.acbar b{width:74px;flex:none}
.acbar span{width:34px;text-align:right;color:var(--muted)}
.acbar-track{height:7px;background:#efece6;border-radius:9px;flex:1;overflow:hidden}
.acbar-fill{height:100%;border-radius:9px}
.acthread{display:grid;gap:8px;max-height:52vh;overflow-y:auto;padding:4px 2px 10px;border-bottom:1px solid var(--line);margin-bottom:10px}
.acmsg{background:#f4f0e9;border-radius:12px 12px 12px 3px;padding:8px 11px;max-width:86%;font-size:11px}
.acmsg.mine{justify-self:end;background:#f3e3bb;border-radius:12px 12px 3px 12px}
.acmsg b{font-size:9px;color:#67313b}
.acmsg p{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.acmsg time{font-size:8px;color:#8d8478}
.acreply label{font-size:10px}
.acconfirm p{font-size:11px;line-height:1.6;margin:6px 0}
.acaccess-list{display:grid;gap:4px;margin:9px 0;background:#fbf7ee;border:1px solid #efe5ce;border-radius:9px;padding:9px 11px}
.acaccess-list span{font-size:10px;color:#4e6b4d;font-weight:600}
.acaccess-list span.no{color:#973d48}
.acsubnote{margin-top:9px;font-size:9px;color:var(--muted);line-height:1.55}
.acnotifcard{background:#fff8e6;border:1px solid #eee1c2;border-radius:12px;padding:11px 12px;margin:10px 0}
.acnotifhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.acnotifhead b{font-size:11px;color:#705f3d}
.acnotif{display:flex;gap:8px;padding:6px 0;border-bottom:1px solid #f1e8d2}
.acnotif:last-of-type{border-bottom:0}
.acnotif-ico{color:#a08346}
.acnotif b{font-size:10px;display:block;color:#4b3d20}
.acnotif small{font-size:9px;color:#8a795a;display:block;line-height:1.5;overflow-wrap:anywhere}
.acnotif time{font-size:8px;color:#a49a91}
/* Long free-text (inbox messages, report details, audit notes) must wrap
   inside its cell instead of stretching the console page horizontally. */
.actable td.acwrap{white-space:normal;overflow-wrap:anywhere;word-break:break-word;min-width:170px;max-width:420px}
.acmsg{max-width:min(86%,560px)}

/* Desktop console layout */
@media(min-width:760px){
  .accon{display:grid;grid-template-columns:225px minmax(0,1fr);min-height:calc(100vh - 40px)}
  .acside{padding:18px 12px;border-radius:0;position:sticky;top:40px;height:calc(100vh - 40px);display:flex;flex-direction:column;overflow-y:auto}
  .acbrand{padding-bottom:16px}
  .acbrand b{font-size:16px}
  nav.acnav{display:grid;gap:3px;overflow:visible;flex:1;align-content:start}
  .acnav-label{display:block;padding:12px 10px 5px;font-size:8px;letter-spacing:1.3px;color:#d5b5a9;font-weight:800}
  .acnav button{padding:9px 10px;font-size:11.5px}
  .acme{margin-top:auto}
  .actop{padding:14px 20px;top:40px}
  .accontent{padding:20px;max-width:1180px}
  .acstats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .acrow{grid-template-columns:1.35fr 1fr}
  .acrow2{grid-template-columns:1fr 1fr}
  .acwelcome h1{font-size:23px}
}
@media(max-width:480px){
  .acstats{grid-template-columns:1fr 1fr;gap:7px}
  .acstat{padding:10px}
  .acstat strong{font-size:18px}
  .acwelcome h1{font-size:19px}
  .actabletop{align-items:flex-start;flex-direction:column}
}
[data-theme="dark"] .acside{background:#2a1215}
[data-theme="dark"] .acstat,[data-theme="dark"] .acpanel,[data-theme="dark"] .acicon{background:#241d17;border-color:#4a3d30;color:#f2ecdf}
[data-theme="dark"] .acstat strong,[data-theme="dark"] .acpanel-head h2,[data-theme="dark"] .actabletop h2,[data-theme="dark"] .acevent b,[data-theme="dark"] .accrumb b,[data-theme="dark"] .acwelcome h1,[data-theme="dark"] .acdenied.small b{color:#f2ecdf}
[data-theme="dark"] .actop{background:#1a1412;border-color:#4a3d30}
[data-theme="dark"] .acquick,[data-theme="dark"] .acnotice,[data-theme="dark"] .acnotifcard{background:#241d17;border-color:#4a3d30;color:#e8d7a6}
[data-theme="dark"] nav.acnav button.acnavitem{background:#ffffff10}
[data-theme="dark"] .acevent{border-color:#3a2f22}
[data-theme="dark"] .acdenied{background:#241d17;border-color:#4a3d30;color:#c9b99b}
[data-theme="dark"] .acdenied b{color:#f2ecdf}
[data-theme="dark"] .actable th{background:#241d17;border-color:#3a2f22;color:#c9b99b}
[data-theme="dark"] .actable td{border-color:#322820}
[data-theme="dark"] .acmsg{background:#322820}
[data-theme="dark"] .acmsg.mine{background:#5a4a1f}


/* ==================== Rental cost breakdown on listing cards ====================
   Rent + the lister-entered charges (service charge, agency, caution, legal),
   summed to the estimated total due at move-in — same math as the agent
   listing wizard's review page. */
.costbreak{margin-top:9px;border:1px solid #eee3d2;background:#fffdf6;border-radius:9px;padding:8px 10px;display:grid;gap:3px}
.costbreak-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:10px;color:#786d65}
.costbreak-row b{font-weight:700;color:#5c534d;white-space:nowrap;font-variant-numeric:tabular-nums}
.costbreak-total{display:flex;justify-content:space-between;align-items:baseline;gap:8px;border-top:1px dashed #e4d6bf;margin-top:3px;padding-top:5px;font-size:10px}
.costbreak-total span{color:#332322;font-weight:800}
.costbreak-total b{color:var(--green);font-weight:850;white-space:nowrap;font-variant-numeric:tabular-nums}
.srs-card .costbreak{margin-top:10px}
[data-theme="dark"] .costbreak{background:#241d17;border-color:#4a3d30}
[data-theme="dark"] .costbreak-row{color:#b3a89f}
[data-theme="dark"] .costbreak-row b{color:#d8cec4}
[data-theme="dark"] .costbreak-total span{color:#f2ecdf}
[data-theme="dark"] .costbreak-total{border-color:#4a3d30}

/* Super-admin gate screens (authenticator setup + 5-symbol phrase) */
.acgate{background:#fff;border:1px solid var(--line);border-radius:13px;padding:22px;max-width:460px;margin:14px auto;box-shadow:var(--shadow);text-align:center}
.acgate h1{font-size:19px;margin:4px 0 8px;letter-spacing:-.4px}
.acgate p{font-size:11px;color:var(--muted);line-height:1.6;margin:0 0 12px;text-align:center}
.acgate .form{text-align:left}
.acgate-qr{display:grid;place-items:center;padding:10px;margin:0 auto 12px;background:#fff;border:1px solid var(--line);border-radius:12px;width:fit-content}
.acgate-qr img,.acgate-qr svg{width:190px;height:190px;display:block}
.acgate-chip{font-size:10px;font-weight:800;color:var(--wine);background:var(--gold);border-radius:20px;padding:8px 10px;white-space:nowrap}
[data-theme="dark"] .acgate{background:#241d17;border-color:#4a3d30;color:#f2ecdf}
[data-theme="dark"] .acgate h1{color:#f2ecdf}
[data-theme="dark"] .acgate-qr{background:#fff;border-color:#4a3d30}

/* ==================== Lister header on the detail contact panel ====================
   Shows the person an enquiry actually reaches (posting agent, else linked
   landlord) with their picture, in place of the generic CONTACT THE AGENT. */
.listerhead{display:flex;align-items:center;gap:10px;margin:2px 0 9px;min-width:0}
.listerhead b{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.listerhead .loc{margin-top:2px}
.listerhead .agent-avatar{width:44px;height:44px;font-size:13px;flex:none}
[data-theme="dark"] .listerhead b{color:#f2ecdf}


/* ==================== Full-screen call experience ====================
   Matches the calling-UI preview: radial wine backdrop, pulsing rings
   around the contact avatar, property context chip, and the three
   control rows (incoming answer/decline, outgoing cancel, connected
   mute/end/speaker) plus the ended end-state. */
.cbs-screen{position:fixed;inset:0;z-index:9999;background:radial-gradient(ellipse at 50% 24%,#75414a 0,#4a1722 55%,#35111a 100%);color:#fff8e8;display:flex;flex-direction:column;align-items:center;text-align:center;padding:calc(18px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom))}
.cbs-top{width:100%;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#f2dfbb}
.cbs-secure{color:#e6d6b2}
.cbs-center{margin:auto 0;display:flex;flex-direction:column;align-items:center}
.cbs-avatarwrap{width:150px;height:150px;display:grid;place-items:center;position:relative;margin-bottom:24px}
.cbs-avatarwrap.hide{display:none}
.cbs-ring{position:absolute;inset:0;border:1px solid #f1d79988;border-radius:50%;animation:cbsPulse 2s infinite}
.cbs-ring:nth-child(2){inset:13px;animation-delay:.5s}
.cbs-ring:nth-child(3){inset:26px;animation-delay:1s}
@keyframes cbsPulse{0%{transform:scale(.83);opacity:.18}50%{opacity:.75}100%{transform:scale(1.12);opacity:0}}
.cbs-avatar{width:92px;height:92px;border-radius:50%;background:linear-gradient(140deg,#f3db9c,#b88a58);display:grid;place-items:center;color:var(--wine);font-size:28px;font-weight:800;border:3px solid #f5df9c;box-shadow:0 5px 20px #1c0a0c55;position:relative;z-index:1;overflow:hidden}
.cbs-avatar img{width:100%;height:100%;object-fit:cover}
.cbs-screen .cbs-name{font-size:24px;margin:0;letter-spacing:-.5px}
.cbs-sub{font-size:12px;color:#ead6bd;margin:5px 0 0}
.cbs-state{font-size:13px;color:#eddba9;margin:14px 0 4px;min-height:18px}
.cbs-chip{font-size:11px;color:#f0dfba;background:#ffffff12;border:1px solid #ffffff1e;border-radius:99px;padding:6px 12px;margin-top:10px}
.cbs-speakerline{margin-top:12px}
.cbs-speakerline button{background:#ffffff12;border:1px solid #ffffff2c;color:#fff8e8;border-radius:99px;padding:7px 14px;font-size:12px;cursor:pointer}
.cbs-speakerline button.on{background:#f0dfb1;color:var(--wine)}
.cbs-network{font-size:11px;color:#d6c5ad;margin-top:8px}
.cbs-actions{width:100%;max-width:340px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;align-items:center;margin-bottom:10px}
.cbs-actions.two{grid-template-columns:1fr 1fr}
.cbs-actions.one{grid-template-columns:1fr;justify-items:center}
.cbs-control{display:flex;flex-direction:column;align-items:center;gap:7px;background:none;border:0;color:#fff8e8;font-size:11px;cursor:pointer;padding:0}
.cbs-control .round{width:54px;height:54px;border-radius:50%;background:#ffffff18;border:1px solid #ffffff2c;display:grid;place-items:center;font-size:19px}
.cbs-control.on .round{background:#f0dfb1;color:var(--wine)}
.cbs-control.end .round{background:#cc4652;border:0;width:62px;height:62px;font-size:23px}
.cbs-control.answer .round{background:#39a55c;border:0;width:62px;height:62px;font-size:23px;animation:cbsAnswer 1.6s infinite}
.cbs-control.decline .round{background:#ce4651;border:0;width:62px;height:62px;font-size:23px}
@keyframes cbsAnswer{0%,100%{box-shadow:0 0 0 0 #50cd6c55}50%{box-shadow:0 0 0 10px #50cd6c00}}
@media(max-width:759px){.cbs-actions{max-width:300px}}
.cbs-rec{font-size:10px;color:#c9b69a;margin:10px 0 2px}

/* ==================== Incoming-call top banner (system-style) ====================
   Compact alert for incoming and call-waiting states; matches the
   locked-screen preview: burgundy glass, sand-gold accents, brand mark. */
.cbs-banner{position:fixed;top:calc(10px + env(safe-area-inset-top));left:10px;right:10px;z-index:9997;display:flex;align-items:center;gap:9px;background:linear-gradient(145deg,#5a1b27f2,#3c0d18f5);border:1px solid #ead49a99;border-radius:16px;padding:9px 10px;box-shadow:0 14px 34px #321a1d45;color:#fff9ec}
.cbsb-body{display:flex;align-items:center;gap:10px;flex:1;min-width:0;background:none;border:0;color:#fff9ec;text-align:left;cursor:pointer;padding:0}
.cbsb-mark{width:26px;height:26px;flex:none;border-radius:8px;background:#ead49a;color:#3c0d18;display:grid;place-items:center;font-size:16px;font-weight:800}
.cbsb-body .cbs-avatar{width:38px;height:38px;font-size:13px;border-width:2px;box-shadow:none;position:static}
.cbsb-who{min-width:0;display:flex;flex-direction:column;gap:2px}
.cbsb-who b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cbsb-who small{font-size:10px;color:#ead9b9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cbsb-act{width:44px;height:44px;flex:none;border-radius:50%;border:0;display:grid;place-items:center;font-size:17px;cursor:pointer}
.cbsb-act.decline{background:#792c38;color:#fff9ec;border:1px solid #d97a78}
.cbsb-act.answer{background:#ead49a;color:#3c0d18}
.cbsb-act.answer{animation:cbsAnswer 1.6s infinite}
.cbsb-waiting{border-color:#d97a7899}

/* ==================== Inspection notice + request form ====================
   Branded burgundy / sand-gold / warm-cream notice shown before a chat with a
   lister, and the composer ＋ menu with the inspection request form. */
.inspect-notice{border-top:4px solid #3c0d18}
.in-brand{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;color:#3c0d18;margin-bottom:8px;text-transform:uppercase;letter-spacing:.4px}
.in-mark{width:24px;height:24px;border-radius:7px;background:#3c0d18;color:#ead49a;display:grid;place-items:center;font-size:15px;flex:none}
.in-tag{margin-left:auto;color:#9c7d3e;font-size:9px;letter-spacing:1px}
.in-copy{font-size:13px;color:var(--ink);margin:0 0 10px}
.in-prop{background:#faf3df;border:1px solid #ead9a9;border-radius:10px;padding:10px 12px;margin-bottom:12px}
.in-prop b{color:#3c0d18}
.in-prop code{display:block;margin-top:5px;font-size:11px;color:#6c5a3a}
.compose-plus{position:relative;flex:none}
.compose-menu{position:absolute;bottom:46px;right:0;width:max-content;max-width:min(260px,calc(100vw - 24px));background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 26px #3c1a1b22;display:grid;overflow:hidden;z-index:60;transform-origin:bottom right;animation:composeMenuRise .16s ease-out}
@keyframes composeMenuRise{from{opacity:0;transform:translateY(6px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.compose-menu button{border:0;background:#fff;text-align:left;padding:11px 13px;font-size:12px;color:var(--ink);cursor:pointer}
.compose-menu button:hover{background:#faf3df}
.safetynotice{background:#fff8e8;border:1px solid #eadfc9;border-radius:9px;padding:9px 11px;color:#5c4a17;font-size:11px;line-height:1.55;margin-top:7px;text-align:left}
[data-theme="dark"] .safetynotice{background:#262015;border-color:#3a332a;color:#d8c89a}
.inspect-page{padding-top:8px}
.inspect-page .back-button{margin-bottom:6px}
.inspect-page .form{display:grid;gap:10px}
.inspect-page .unitactions{display:flex;gap:10px;margin-top:4px}

/* ==================== Inspection request card + bottom sheet ==================== */
.bubble.insp{background:#fff9e8;border-color:#ddc98e;padding:0;overflow:hidden}
.insp-card{padding:10px 12px}
.insp-card b{font-size:11px;color:#401019;display:flex;align-items:center;gap:6px}
.insp-pill{font-size:8px;font-weight:800;color:#80632a;background:#efe2bc;padding:3px 8px;border-radius:99px;letter-spacing:.5px}
.insp-card p{margin:6px 0 0;font-size:11px;color:#5f5148;line-height:1.55}
.insp-back{position:fixed;inset:0;z-index:9000;background:#2410188c;backdrop-filter:blur(4px);display:flex;align-items:flex-end;justify-content:center}
.insp-sheet{width:100%;max-width:520px;background:#fff9eb;border:1px solid #e7d5a7;border-bottom:0;border-radius:20px 20px 0 0;padding:14px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -15px 35px #27151b33;animation:cbsRise .2s ease-out}
@keyframes cbsRise{from{transform:translateY(16px);opacity:0}to{transform:translateY(0);opacity:1}}
.insp-handle{height:4px;width:38px;background:#ddcfba;border-radius:9px;margin:0 auto 12px}
.insp-sheethead{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.insp-sheethead h3{font-size:17px;color:#401019;margin:0;letter-spacing:-.3px}
.insp-sheethead button{border:0;background:none;color:#85776d;font-size:20px;cursor:pointer}
.insp-field{margin:10px 0}
.insp-field label{display:block;font-size:9px;font-weight:800;color:#574649;margin:0 0 5px;text-transform:uppercase;letter-spacing:.5px}
.insp-field input,.insp-field select,.insp-field textarea{width:100%;border:1px solid #e2d6c2;border-radius:9px;padding:9px 10px;background:#fffdf8;font:12px inherit;color:#3b3030;outline-color:#ad8a4a}
.insp-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.insp-helper{font-size:10px;line-height:1.5;color:#88796d;margin:8px 0 3px}
.insp-send{width:100%;border:0;border-radius:10px;background:#401019;color:#fff8e8;padding:11px;font-size:11px;font-weight:800;margin-top:4px;cursor:pointer;box-shadow:0 5px 12px #40101922}
[data-theme="dark"] .bubble.insp{background:#2b2124;border-color:#4a3d30}
[data-theme="dark"] .insp-card b{color:#ead9b9}
[data-theme="dark"] .insp-pill{background:#4a3d30;color:#e3cf9d}
[data-theme="dark"] .insp-card p{color:#c9bba9}
[data-theme="dark"] .insp-back{background:#100a0cbf}
[data-theme="dark"] .insp-sheet{background:#262015;border-color:#4a3d30}
[data-theme="dark"] .insp-sheethead h3{color:#f2ecdf}
[data-theme="dark"] .insp-sheethead button{color:#a8988a}
[data-theme="dark"] .insp-field label{color:#d8c89a}
[data-theme="dark"] .insp-field input,[data-theme="dark"] .insp-field select,[data-theme="dark"] .insp-field textarea{background:#1f1a17;border-color:#4a3d30;color:#f2ecdf}
[data-theme="dark"] .insp-helper{color:#a8988a}

/* ==================== Marketplace completion (bookings, alerts, compare,
   nearby, trust badges) — uses the existing palette and tokens ============ */
.mkmodal{max-width:420px;width:calc(100vw - 34px)}
.mkbadge{position:relative;display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:800;letter-spacing:.3px;border-radius:99px;padding:3px 9px;cursor:help;vertical-align:middle}
.mkbadge i{font-style:normal}
.mkbadge .mktip{display:none;position:absolute;left:0;top:calc(100% + 7px);z-index:80;width:230px;background:#3c0d18;color:#fff8e8;font-size:11px;font-weight:500;letter-spacing:0;line-height:1.5;padding:9px 11px;border-radius:9px;box-shadow:0 10px 24px #3c1a1b44;text-align:left;cursor:default}
.mkbadge:hover .mktip,.mkbadge:focus .mktip,.mkbadge:focus-within .mktip{display:block}
.mkbadge-prop{background:#e7efe2;color:#25603a;border:1px solid #bcd8c2}
.mkbadge-prop i{color:#25603a}
.mkbadge-id{background:#e9edf6;color:#2c4a77;border:1px solid #c3d0e6}
.mkbadge-id i{color:#2c4a77}
.mktrustpanel{margin-top:10px}
.mktrustrow{display:flex;align-items:flex-start;gap:9px;margin-top:8px}
.mktrustrow .mkbadge{flex:none;margin-top:1px}
.mktrustrow .loc{font-size:11px}
.mkcmpbtn{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:#fff;border-radius:99px;font-size:11px;font-weight:700;padding:6px 12px;cursor:pointer;color:var(--ink);margin-top:9px}
.mkcmpbtn.on{background:#3c0d18;border-color:#3c0d18;color:#ead49a}
.mktray{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(74px + env(safe-area-inset-bottom));z-index:90;background:#3c0d18;color:#fff8e8;border-radius:14px;box-shadow:0 12px 30px #3c1a1b55;display:flex;align-items:center;gap:8px;padding:9px 12px;max-width:calc(100vw - 20px);flex-wrap:wrap}
.mktray-chip{display:inline-flex;align-items:center;gap:6px;background:#ffffff14;border:1px solid #ffffff2c;border-radius:99px;padding:5px 6px 5px 11px;font-size:11px;font-weight:700;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mktray-chip button{border:0;background:#ffffff22;color:#fff8e8;width:20px;height:20px;border-radius:50%;font-size:12px;cursor:pointer;line-height:1;flex:none}
.mktray-actions{display:inline-flex;align-items:center;gap:8px}
.mktray-hint{font-size:11px;color:#ead6bd}
.mktray-clear{border:0;background:none;color:#e6c98d;font-size:11px;font-weight:700;cursor:pointer;text-decoration:underline}
.mkcmpmodal{max-width:860px;width:calc(100vw - 20px)}
.mkcmpscroll{overflow:auto;max-height:70vh;-webkit-overflow-scrolling:touch}
table.mkcmp{border-collapse:collapse;min-width:560px;width:100%;font-size:12px}
table.mkcmp th,table.mkcmp td{border-bottom:1px solid var(--line);padding:9px 10px;text-align:left;vertical-align:top}
table.mkcmp thead th{position:sticky;top:0;background:#fffdf8;z-index:1}
table.mkcmp thead img{width:100%;height:88px;object-fit:cover;border-radius:9px;margin-bottom:6px}
table.mkcmp thead b{display:block;font-size:12px}
table.mkcmp tbody th{font-size:11px;color:var(--muted);white-space:nowrap;font-weight:700}
.mkcmpprice{font-size:14px;color:var(--green)}
.mkdist{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:800;color:#2c4a77;background:#e9edf6;border-radius:99px;padding:3px 9px;margin-top:5px}
.mkmoderow{margin:10px 0 2px}
.mkmodetoggle{display:inline-flex;border:1px solid var(--line);border-radius:99px;overflow:hidden;background:#fff}
.mkmodetoggle button{border:0;background:none;padding:8px 16px;font-size:11px;font-weight:800;cursor:pointer;color:var(--muted)}
.mkmodetoggle button.on{background:#3c0d18;color:#ead49a}
.mkmapwrap{margin-top:10px}
.mkmapwrap iframe{width:100%;height:300px;border:0;border-radius:12px;display:block;background:#efe6d5}
.mkmapnote{font-size:10.5px;margin-top:6px}
.srs-nearrow{display:flex;align-items:center;gap:9px;margin-top:9px;flex-wrap:wrap}
.srs-nearhint{font-size:10px;color:#85695a;max-width:230px}
.mk-nearbtn.on{background:#3c0d18;border-color:#3c0d18;color:#ead49a}
.mktimeline{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.mkstep{font-size:10px;font-weight:800;letter-spacing:.2px;color:var(--muted);border:1px dashed var(--line);border-radius:99px;padding:4px 10px}
.mkstep.done{color:#25603a;background:#e7efe2;border:1px solid #bcd8c2;border-style:solid}
.mkstep.active{color:#8a6d1f;background:#f7efd3;border:1px solid #e2cf96;border-style:solid}
.mkstep.bad{color:#8f2d33;background:#f8e5e2;border:1px solid #e6bcb6;border-style:solid}
.mkviewing .mkkv{font-size:11.5px;color:var(--muted);margin-top:4px}
.mksearchrow{margin-top:9px}
.mksearchrow .select{max-width:170px}
@media (max-width:560px){
  .mktray{bottom:calc(84px + env(safe-area-inset-bottom));padding:8px 10px}
  .mkcmpmodal{padding-left:10px;padding-right:10px}
  .mkbadge .mktip{width:200px}
}
[data-theme="dark"] .mkcmpbtn{background:#2b1a1c;border-color:#4a2b2f;color:#f2ecdf}
[data-theme="dark"] .mkcmpbtn.on{background:#ead49a;border-color:#ead49a;color:#3c0d18}
[data-theme="dark"] table.mkcmp thead th{background:#2b1a1c}
[data-theme="dark"] .mkbadge-prop{background:#20362a;color:#a9d8b4;border-color:#2f5440}
[data-theme="dark"] .mkbadge-id{background:#233046;color:#aecbf0;border-color:#37507a}
[data-theme="dark"] .mkdist{background:#233046;color:#aecbf0}
[data-theme="dark"] .mkmodetoggle{background:#2b1a1c;border-color:#4a2b2f}
[data-theme="dark"] .mkmodetoggle button{color:#cbb}
[data-theme="dark"] .mkmodetoggle button.on{background:#ead49a;color:#3c0d18}
[data-theme="dark"] .srs-nearhint{color:#b39f92}
/* The menu starts hidden via the HTML hidden attribute; without this rule the
   display:grid above overrides it and the menu shows permanently. */
.compose-menu[hidden]{display:none!important}
.member-id{font-size:10px;color:var(--muted);letter-spacing:.3px}
[data-theme="dark"] .member-id{color:#a8988a}
/* The account page's own-ID pill: tap to copy. */
.macct-uid{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;border:1px dashed var(--line);background:none;border-radius:99px;padding:3px 10px;font-size:10.5px;font-weight:800;letter-spacing:.4px;color:var(--muted);cursor:pointer;margin-top:3px}
.macct-uid:hover{color:var(--wine);border-color:var(--wine)}
[data-theme="dark"] .macct-uid{border-color:#4a3d30;color:#a8988a}
[data-theme="dark"] .macct-uid:hover{color:#e6c98d;border-color:#e6c98d}
/* Agent-list ID pill: same tap-to-copy behaviour. */
.mkidcopy{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;border:1px dashed var(--line);background:none;border-radius:99px;padding:3px 9px;font-size:10px;font-weight:800;letter-spacing:.4px;color:var(--muted);cursor:pointer;margin-top:4px}
.mkidcopy:hover{color:var(--wine);border-color:var(--wine)}
[data-theme="dark"] .mkidcopy{border-color:#4a3d30;color:#a8988a}
[data-theme="dark"] .mkidcopy:hover{color:#e6c98d;border-color:#e6c98d}

/* Property gallery counts shown on marketplace cards. */
.gallery-counts{display:flex;gap:10px;margin-top:7px;font-size:10px;color:var(--muted)}
.gallery-counts span{white-space:nowrap}

/* Keep gallery media counts readable on compact and dark-mode property cards. */
.gallery-counts{display:flex!important;align-items:center;flex-wrap:wrap;gap:6px;margin-top:9px;color:var(--wine);font-size:11px;font-weight:750;line-height:1.25}
.gallery-counts span{display:inline-flex;align-items:center;min-height:22px;padding:3px 7px;border:1px solid #e4d8c9;border-radius:999px;background:#fbf6ec;color:#5b0e14;white-space:nowrap}
[data-theme="dark"] .gallery-counts span{border-color:#59433b;background:#302522;color:#f0d996}

/* Gallery totals sit on the image so cards clearly signal their media gallery. */
.photo,.srs-photo{position:relative}
.gallery-counts-badge{position:absolute;z-index:3;left:8px;bottom:8px;display:inline-flex;align-items:center;max-width:calc(100% - 16px);min-height:26px;padding:4px 9px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(24,18,17,.82);color:#fff;font-size:10px;font-weight:750;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;box-shadow:0 1px 5px rgba(0,0,0,.2)}

/* Property detail gallery also displays the media total over its main image. */
.gallery-main>.gallery-counts-badge{left:10px;bottom:10px}
/* Agent directory profile cards */
.agent-profile-card{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:13px;padding:13px;border:1px solid #eadfc9;border-radius:17px;background:linear-gradient(115deg,#fffaf0 0%,var(--paper) 58%,#fff 100%);box-shadow:0 5px 16px #3d1a120d;min-width:0}
.agent-profile-photo{position:relative;width:72px;height:72px;display:grid;place-items:center;border-radius:21px;background:linear-gradient(145deg,#f3d98e,#b98045);box-shadow:0 5px 12px #75451c24;flex:none}
.agent-profile-photo .agent-avatar{width:64px;height:64px;border:2px solid var(--paper);border-radius:18px;object-fit:cover;overflow:hidden;font-size:16px}
.agent-photo-mark{position:absolute;right:-4px;bottom:-4px;width:23px;height:23px;display:grid;place-items:center;border:2px solid var(--paper);border-radius:50%;background:var(--wine);color:#f7e4a5;font-size:7px;font-weight:900;letter-spacing:-.4px}
.agent-profile-info{min-width:0}
.agent-profile-verified{display:inline-flex;align-items:center;gap:4px;color:#486347;background:#edf4e9;border:1px solid #dce9d8;border-radius:99px;padding:4px 8px;font-size:9px;font-weight:800}
.agent-profile-verified span{display:grid;place-items:center;width:13px;height:13px;border-radius:50%;background:#54764e;color:#fff;font-size:9px}
.agent-profile-info h3{font-size:14px;margin:7px 0 2px;line-height:1.2;overflow-wrap:anywhere}
.agent-profile-location{font-size:10px;color:var(--muted);margin:3px 0 5px}
.agent-profile-info .mkidcopy{margin:1px 0 5px}
.agent-profile-message{display:inline-flex;align-items:center;gap:7px;margin-top:4px}
.agent-profile-message span{font-size:14px;line-height:10px}
[data-theme="dark"] .agent-profile-card{background:linear-gradient(115deg,#29231b,#211d18 58%,#1e1b17);border-color:#493a2a;box-shadow:0 5px 16px #0002}
[data-theme="dark"] .agent-profile-verified{background:#263025;border-color:#3c4e38;color:#c8ddbb}
@media(max-width:360px){.agent-profile-card{grid-template-columns:64px minmax(0,1fr);gap:10px;padding:10px}.agent-profile-photo{width:62px;height:62px;border-radius:18px}.agent-profile-photo .agent-avatar{width:54px;height:54px;border-radius:15px}}

.acapp-agency{font-size:10px;line-height:1.55;color:var(--muted);padding:8px 10px;margin:5px 0 2px;background:var(--paper);border:1px solid var(--line);border-radius:9px;overflow-wrap:anywhere}
.acapp-agency b{color:var(--ink)}
.agent-apply-modal{width:min(520px,100%)}
/* Support AI assistant: hand-off notes, assistant bubbles, suggestion chips */
.chat-sysnote{align-self:center;justify-self:center;max-width:88%;margin:4px auto;text-align:center;font-size:10.5px;line-height:1.5;color:var(--muted);background:var(--paper);border:1px dashed var(--line);border-radius:12px;padding:7px 12px;overflow-wrap:anywhere}
.assistant-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:3px;max-width:86%}
.assistant-tag{font-size:9.5px;font-weight:800;color:var(--mustard);letter-spacing:.2px;padding-left:2px}
.suggest-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:3px}
.chipbtn{border:1px solid var(--line);background:#fff;color:var(--wine);border-radius:999px;padding:6px 11px;font-size:10.5px;font-weight:700;text-align:left;line-height:1.35}
.chipbtn:active{background:#f6efdd}
[data-theme="dark"] .chat-sysnote{background:#1b1815;border-color:#3a332b;color:#b5ac9d}
[data-theme="dark"] .chipbtn{background:#242019;border-color:#3a332b;color:#e8d49a}
[data-theme="dark"] .chipbtn:active{background:#2e2820}
[data-theme="dark"] .assistant-tag{color:#d7b85d}
/* Support inbox status dots: red = new unopened text from support, blue = opened but not yet answered */
.status-dot{width:12px;height:12px;border-radius:50%;flex:none;align-self:center}
.status-dot.red{background:#e03131;box-shadow:0 0 0 3px #e0313122}
.status-dot.blue{background:#269be8;box-shadow:0 0 0 3px #269be822}
.status-dot.green{background:#2f9e44;box-shadow:0 0 0 3px #2f9e4422}
.tabdot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-left:5px;vertical-align:1px}
.tabdot.red{background:#e03131}.tabdot.blue{background:#269be8}.tabdot.green{background:#2f9e44}
.deal.active .tabdot.red{background:#ff9d9d}.deal.active .tabdot.blue{background:#9ed2ff}.deal.active .tabdot.green{background:#a7e3b0}
/* Inbox dot legend: sits beside the New chat button, informational only, never intercepts taps */
.newchat-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:10px 0 4px}
.dot-legend{display:flex;flex-wrap:wrap;gap:3px 12px;align-items:center;font-size:9.5px;line-height:1.4;color:var(--muted);pointer-events:none;user-select:none}
.dot-legend i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}
.dot-legend i.red{background:#e03131}.dot-legend i.blue{background:#269be8}.dot-legend i.green{background:#2f9e44}
/* Thread-header dot: inline before the status line, smaller than the row dots */
.status-dot.head{width:9px;height:9px;display:inline-block;align-self:auto;margin-right:6px;vertical-align:-1px}
/* Voice notes + typing indicator */
.mic-button{width:44px;height:44px;display:grid;place-items:center;border:0;padding:0;border-radius:50%;background:#f4eee3;color:var(--wine);font-size:19px;line-height:1;cursor:pointer;flex:none}
.voice-recording{align-items:center;min-height:46px}
.rec-dot{width:11px;height:11px;border-radius:50%;background:#e03131;flex:none;animation:sb-rec-pulse 1.1s ease-in-out infinite}
@keyframes sb-rec-pulse{0%,100%{opacity:1}50%{opacity:.2}}
.voice-recording b{font-size:12px;color:var(--wine);min-width:34px;text-align:center}
.voice-hint{flex:1;font-size:11px;color:var(--muted)}
.voice-message{min-width:180px}
.voice-message audio{width:min(250px,62vw);height:38px;display:block}
.voice-label{display:block;font-size:9.5px;font-weight:800;color:var(--mustard);margin-bottom:3px}
.typing-indicator{color:#2f9e44;font-weight:750}
[data-theme="dark"] .typing-indicator{color:#7ed49a}
[data-theme="dark"] .mic-button{background:#242019;color:#e8d49a}
/* Thread ⋮ menu page, escrow pay page, lister profile (property chats) */
.threadmenu-btn{font-size:17px;font-weight:800;letter-spacing:1px}
.menu-card{display:grid;gap:8px;margin:12px 0}
.chatmenu-item{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:12px;text-align:left;cursor:pointer}
.chatmenu-item:active{background:#fffaf0}
.chatmenu-item .mi{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:10px;background:#f6efdd;color:var(--wine);font-size:15px;font-weight:800}
.chatmenu-item .mi.gold{background:var(--gold);color:#57321f}
.chatmenu-item .mt{flex:1;min-width:0;display:grid;gap:2px}
.chatmenu-item .mt b{font-size:12px}
.chatmenu-item .mt small{font-size:10px;color:var(--muted)}
.chatmenu-item .chev{color:var(--muted);flex:none}
.convcode-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:12px;margin-top:4px}
.convcode-label{font-size:9px;font-weight:850;color:var(--muted);letter-spacing:.8px}
.convcode-card .coderow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 7px}
.convcode-card code{font-size:12.5px;font-weight:800;color:var(--wine);letter-spacing:.4px}
.pay-prop{margin-top:2px}
.pay-prop b{font-size:14px}
.payrows{display:grid;gap:6px;margin:10px 0}
.payrow{display:flex;justify-content:space-between;gap:10px;font-size:11.5px;color:var(--ink)}
.payrow.total{font-weight:850;color:var(--wine);border-top:1px solid var(--line);padding-top:8px;margin-top:4px;font-size:12.5px}
.paystep{display:flex;gap:9px;margin:9px 0;font-size:11px;line-height:1.5;color:var(--ink);align-items:flex-start}
.paystep .n{width:20px;height:20px;flex:none;border-radius:50%;background:var(--wine);color:var(--cream);display:grid;place-items:center;font-size:10px;font-weight:800}
[data-theme="dark"] .chatmenu-item,[data-theme="dark"] .convcode-card{background:#242019;border-color:#3a332b;color:#f2ecdf}
[data-theme="dark"] .chatmenu-item:active{background:#2e2820}
[data-theme="dark"] .chatmenu-item .mi{background:#332b22;color:#e8d49a}
[data-theme="dark"] .chatmenu-item .mi.gold{background:#d7b85d;color:#3a2c12}
[data-theme="dark"] .chatmenu-item .mt small,[data-theme="dark"] .convcode-label{color:#b5ac9d}
[data-theme="dark"] .convcode-card code{color:#e8d49a}
[data-theme="dark"] .payrow{color:#f2ecdf}
[data-theme="dark"] .payrow.total{color:#e8d49a;border-color:#3a332b}
/* App icon library sizing inside list rows (More page, viewings, finance) */
.morelink{display:grid;grid-template-columns:auto 1fr;column-gap:11px;align-items:center}
.morelink span.moreico{width:34px;height:34px;display:grid;place-items:center;background:#f6ecda;border-radius:10px;color:var(--wine)}
.morelink span.moreico svg{display:block}
.morelink.locked span.moreico{opacity:.75}
[data-theme="dark"] .morelink span.moreico{background:#2a251f;color:#EBD798}
.mkv-ico{color:var(--wine);margin-right:7px;flex:none;vertical-align:-3px}
.mkstep{display:inline-flex;align-items:center;gap:5px}
.mkstep svg{flex:none}
.escrow-state{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:750;color:var(--ink);background:#f6efdd;border-radius:10px;padding:9px 11px}
.escrow-state.ok{color:#2f9e44;background:#e7efe2}
[data-theme="dark"] .escrow-state{background:#332b22;color:#f2ecdf}
[data-theme="dark"] .escrow-state.ok{background:#1e3524;color:#7ed49a}
.fntxicon svg,.staticon svg{display:block}
/* More page as a home-screen grid: colorful app-icon tiles with labels below */
.moretiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:14px 8px;margin:4px 0 8px}
.moretile{display:grid;justify-items:center;gap:6px;border:0;background:transparent;padding:10px 4px;border-radius:14px;cursor:pointer;color:var(--ink);text-align:center;min-width:0}
.moretile:active{background:var(--cream)}
.moretile .moreico{width:54px;height:54px;border-radius:14px;display:grid;place-items:center;box-shadow:0 4px 10px #2808091a}
.moretile .moretile-label{font-size:11.5px;font-weight:750;line-height:1.25;overflow-wrap:anywhere}
.moretile small{font-size:9px;color:var(--muted);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.moretile.current .moretile-label{color:var(--wine);font-weight:850}
.moretile.current .moreico{outline:2px solid var(--wine);outline-offset:2px}
.moretile.locked{opacity:.6}
[data-theme="dark"] .moretile{color:#f2ecdf}
[data-theme="dark"] .moretile:active{background:#242019}
[data-theme="dark"] .moretile.current .moretile-label{color:#EBD798}
[data-theme="dark"] .moretile.current .moreico{outline-color:#EBD798}
/* iOS home-screen style icon tiles: every list icon renders as a rounded
   colored square with a white glyph. Colors are per icon name (assigned once,
   consistent everywhere) and win over light + dark base rules by order. */
.prowico:has(>svg[data-ico]),.macct-ico:has(>svg[data-ico]),.moreico:has(>svg[data-ico]),.mi:has(>svg[data-ico]),.staticon:has(>svg[data-ico]),.fntxicon:has(>svg[data-ico]){color:#fff}
.mkv-ico:has(>svg[data-ico]){display:inline-grid;place-items:center;width:26px;height:26px;border-radius:8px;color:#fff}
.prowico:has(>svg[data-ico="gear"]),.macct-ico:has(>svg[data-ico="gear"]),.moreico:has(>svg[data-ico="gear"]),.mi:has(>svg[data-ico="gear"]),.staticon:has(>svg[data-ico="gear"]),.fntxicon:has(>svg[data-ico="gear"]),.prowico:has(>svg[data-ico="home"]),.macct-ico:has(>svg[data-ico="home"]),.moreico:has(>svg[data-ico="home"]),.mi:has(>svg[data-ico="home"]),.staticon:has(>svg[data-ico="home"]),.fntxicon:has(>svg[data-ico="home"]),.prowico:has(>svg[data-ico="shield"]),.macct-ico:has(>svg[data-ico="shield"]),.moreico:has(>svg[data-ico="shield"]),.mi:has(>svg[data-ico="shield"]),.staticon:has(>svg[data-ico="shield"]),.fntxicon:has(>svg[data-ico="shield"]),.prowico:has(>svg[data-ico="calendar"]),.macct-ico:has(>svg[data-ico="calendar"]),.moreico:has(>svg[data-ico="calendar"]),.mi:has(>svg[data-ico="calendar"]),.staticon:has(>svg[data-ico="calendar"]),.fntxicon:has(>svg[data-ico="calendar"]),.mkv-ico:has(>svg[data-ico="calendar"]),.prowico:has(>svg[data-ico="flag"]),.macct-ico:has(>svg[data-ico="flag"]),.moreico:has(>svg[data-ico="flag"]),.mi:has(>svg[data-ico="flag"]),.staticon:has(>svg[data-ico="flag"]),.fntxicon:has(>svg[data-ico="flag"]){background:#5B0E14}
.prowico:has(>svg[data-ico="user"]),.macct-ico:has(>svg[data-ico="user"]),.moreico:has(>svg[data-ico="user"]),.mi:has(>svg[data-ico="user"]),.staticon:has(>svg[data-ico="user"]),.fntxicon:has(>svg[data-ico="user"]),.prowico:has(>svg[data-ico="chat"]),.macct-ico:has(>svg[data-ico="chat"]),.moreico:has(>svg[data-ico="chat"]),.mi:has(>svg[data-ico="chat"]),.staticon:has(>svg[data-ico="chat"]),.fntxicon:has(>svg[data-ico="chat"]),.prowico:has(>svg[data-ico="arrowin"]),.macct-ico:has(>svg[data-ico="arrowin"]),.moreico:has(>svg[data-ico="arrowin"]),.mi:has(>svg[data-ico="arrowin"]),.staticon:has(>svg[data-ico="arrowin"]),.fntxicon:has(>svg[data-ico="arrowin"]),.prowico:has(>svg[data-ico="download"]),.macct-ico:has(>svg[data-ico="download"]),.moreico:has(>svg[data-ico="download"]),.mi:has(>svg[data-ico="download"]),.staticon:has(>svg[data-ico="download"]),.fntxicon:has(>svg[data-ico="download"]){background:#2e77d0}
.prowico:has(>svg[data-ico="mail"]),.macct-ico:has(>svg[data-ico="mail"]),.moreico:has(>svg[data-ico="mail"]),.mi:has(>svg[data-ico="mail"]),.staticon:has(>svg[data-ico="mail"]),.fntxicon:has(>svg[data-ico="mail"]),.prowico:has(>svg[data-ico="eye"]),.macct-ico:has(>svg[data-ico="eye"]),.moreico:has(>svg[data-ico="eye"]),.mi:has(>svg[data-ico="eye"]),.staticon:has(>svg[data-ico="eye"]),.fntxicon:has(>svg[data-ico="eye"]),.prowico:has(>svg[data-ico="help"]),.macct-ico:has(>svg[data-ico="help"]),.moreico:has(>svg[data-ico="help"]),.mi:has(>svg[data-ico="help"]),.staticon:has(>svg[data-ico="help"]),.fntxicon:has(>svg[data-ico="help"]){background:#14808c}
.prowico:has(>svg[data-ico="phone"]),.macct-ico:has(>svg[data-ico="phone"]),.moreico:has(>svg[data-ico="phone"]),.mi:has(>svg[data-ico="phone"]),.staticon:has(>svg[data-ico="phone"]),.fntxicon:has(>svg[data-ico="phone"]),.prowico:has(>svg[data-ico="key"]),.macct-ico:has(>svg[data-ico="key"]),.moreico:has(>svg[data-ico="key"]),.mi:has(>svg[data-ico="key"]),.staticon:has(>svg[data-ico="key"]),.fntxicon:has(>svg[data-ico="key"]){background:#7b5ea7}
.prowico:has(>svg[data-ico="heart"]),.macct-ico:has(>svg[data-ico="heart"]),.moreico:has(>svg[data-ico="heart"]),.mi:has(>svg[data-ico="heart"]),.staticon:has(>svg[data-ico="heart"]),.fntxicon:has(>svg[data-ico="heart"]),.prowico:has(>svg[data-ico="bell"]),.macct-ico:has(>svg[data-ico="bell"]),.moreico:has(>svg[data-ico="bell"]),.mi:has(>svg[data-ico="bell"]),.staticon:has(>svg[data-ico="bell"]),.fntxicon:has(>svg[data-ico="bell"]),.prowico:has(>svg[data-ico="arrowout"]),.macct-ico:has(>svg[data-ico="arrowout"]),.moreico:has(>svg[data-ico="arrowout"]),.mi:has(>svg[data-ico="arrowout"]),.staticon:has(>svg[data-ico="arrowout"]),.fntxicon:has(>svg[data-ico="arrowout"]){background:#C4703F}
.prowico:has(>svg[data-ico="badge"]),.macct-ico:has(>svg[data-ico="badge"]),.moreico:has(>svg[data-ico="badge"]),.mi:has(>svg[data-ico="badge"]),.staticon:has(>svg[data-ico="badge"]),.fntxicon:has(>svg[data-ico="badge"]),.prowico:has(>svg[data-ico="savings"]),.macct-ico:has(>svg[data-ico="savings"]),.moreico:has(>svg[data-ico="savings"]),.mi:has(>svg[data-ico="savings"]),.staticon:has(>svg[data-ico="savings"]),.fntxicon:has(>svg[data-ico="savings"]),.prowico:has(>svg[data-ico="arrowup"]),.macct-ico:has(>svg[data-ico="arrowup"]),.moreico:has(>svg[data-ico="arrowup"]),.mi:has(>svg[data-ico="arrowup"]),.staticon:has(>svg[data-ico="arrowup"]),.fntxicon:has(>svg[data-ico="arrowup"]),.prowico:has(>svg[data-ico="mappin"]),.macct-ico:has(>svg[data-ico="mappin"]),.moreico:has(>svg[data-ico="mappin"]),.mi:has(>svg[data-ico="mappin"]),.staticon:has(>svg[data-ico="mappin"]),.fntxicon:has(>svg[data-ico="mappin"]){background:#2f9e44}
.prowico:has(>svg[data-ico="banknote"]),.macct-ico:has(>svg[data-ico="banknote"]),.moreico:has(>svg[data-ico="banknote"]),.mi:has(>svg[data-ico="banknote"]),.staticon:has(>svg[data-ico="banknote"]),.fntxicon:has(>svg[data-ico="banknote"]),.prowico:has(>svg[data-ico="receipt"]),.macct-ico:has(>svg[data-ico="receipt"]),.moreico:has(>svg[data-ico="receipt"]),.mi:has(>svg[data-ico="receipt"]),.staticon:has(>svg[data-ico="receipt"]),.fntxicon:has(>svg[data-ico="receipt"]),.prowico:has(>svg[data-ico="building"]),.macct-ico:has(>svg[data-ico="building"]),.moreico:has(>svg[data-ico="building"]),.mi:has(>svg[data-ico="building"]),.staticon:has(>svg[data-ico="building"]),.fntxicon:has(>svg[data-ico="building"]),.prowico:has(>svg[data-ico="bolt"]),.macct-ico:has(>svg[data-ico="bolt"]),.moreico:has(>svg[data-ico="bolt"]),.mi:has(>svg[data-ico="bolt"]),.staticon:has(>svg[data-ico="bolt"]),.fntxicon:has(>svg[data-ico="bolt"]){background:#D4A017;color:#3a2c12}
.prowico:has(>svg[data-ico="inbox"]),.macct-ico:has(>svg[data-ico="inbox"]),.moreico:has(>svg[data-ico="inbox"]),.mi:has(>svg[data-ico="inbox"]),.staticon:has(>svg[data-ico="inbox"]),.fntxicon:has(>svg[data-ico="inbox"]),.prowico:has(>svg[data-ico="lock"]),.macct-ico:has(>svg[data-ico="lock"]),.moreico:has(>svg[data-ico="lock"]),.mi:has(>svg[data-ico="lock"]),.staticon:has(>svg[data-ico="lock"]),.fntxicon:has(>svg[data-ico="lock"]),.prowico:has(>svg[data-ico="contrast"]),.macct-ico:has(>svg[data-ico="contrast"]),.moreico:has(>svg[data-ico="contrast"]),.mi:has(>svg[data-ico="contrast"]),.staticon:has(>svg[data-ico="contrast"]),.fntxicon:has(>svg[data-ico="contrast"]),.prowico:has(>svg[data-ico="clock"]),.macct-ico:has(>svg[data-ico="clock"]),.moreico:has(>svg[data-ico="clock"]),.mi:has(>svg[data-ico="clock"]),.staticon:has(>svg[data-ico="clock"]),.fntxicon:has(>svg[data-ico="clock"]),.prowico:has(>svg[data-ico="slash"]),.macct-ico:has(>svg[data-ico="slash"]),.moreico:has(>svg[data-ico="slash"]),.mi:has(>svg[data-ico="slash"]),.staticon:has(>svg[data-ico="slash"]),.fntxicon:has(>svg[data-ico="slash"]){background:#64748b}
.prowico:has(>svg[data-ico="logout"]),.macct-ico:has(>svg[data-ico="logout"]),.moreico:has(>svg[data-ico="logout"]),.mi:has(>svg[data-ico="logout"]),.staticon:has(>svg[data-ico="logout"]),.fntxicon:has(>svg[data-ico="logout"]),.prowico:has(>svg[data-ico="trash"]),.macct-ico:has(>svg[data-ico="trash"]),.moreico:has(>svg[data-ico="trash"]),.mi:has(>svg[data-ico="trash"]),.staticon:has(>svg[data-ico="trash"]),.fntxicon:has(>svg[data-ico="trash"]),.prowico:has(>svg[data-ico="warn"]),.macct-ico:has(>svg[data-ico="warn"]),.moreico:has(>svg[data-ico="warn"]),.mi:has(>svg[data-ico="warn"]),.staticon:has(>svg[data-ico="warn"]),.fntxicon:has(>svg[data-ico="warn"]){background:#c0392b}
.moreico:has(>svg[data-ico="drop"]),.mi:has(>svg[data-ico="drop"]),.prowico:has(>svg[data-ico="drop"]),.macct-ico:has(>svg[data-ico="drop"]),.staticon:has(>svg[data-ico="drop"]),.fntxicon:has(>svg[data-ico="drop"]){background:#1e88d2}
.moreico:has(>svg[data-ico="code"]),.mi:has(>svg[data-ico="code"]),.prowico:has(>svg[data-ico="code"]),.macct-ico:has(>svg[data-ico="code"]),.staticon:has(>svg[data-ico="code"]),.fntxicon:has(>svg[data-ico="code"]){background:#6d5bd0}
/* Escrow keys row in the conversation menu: far-right tappable key action */
.chatmenu-item{cursor:pointer}
.chatmenu-item.static{cursor:default}
.keybtn{width:42px;height:42px;flex:none;margin-left:auto;border:0;border-radius:11px;background:#f6efdd;color:var(--wine);font-size:17px;cursor:pointer;display:grid;place-items:center}
.keybtn:active{transform:scale(.94)}
.keybtn.urgent{background:var(--gold);color:#3a2c12;box-shadow:0 0 0 3px #d7b85d40}
[data-theme="dark"] .keybtn{background:#332b22;color:#e8d49a}
[data-theme="dark"] .keybtn.urgent{background:#d7b85d;color:#3a2c12}

/* Agent KYC gate: face-match camera panel (verification.js) */
.akcamwrap{position:relative;border-radius:14px;overflow:hidden;background:#141414;aspect-ratio:4/3;margin:2px 0 10px}
.akcamwrap video{width:100%;height:100%;object-fit:cover;display:block}
.akcamprompt{position:absolute;left:0;right:0;bottom:0;background:rgba(20,8,9,.72);color:var(--cream);font-size:12px;font-weight:700;padding:8px 10px;text-align:center}


/* ============== Identity verification welcome screen ============== */
.kyi-page{background:#faf9f6;min-height:calc(100svh - 150px);padding:12px 18px calc(92px + env(safe-area-inset-bottom));color:var(--ink)}
.kyi-backrow{max-width:600px;margin:0 auto 16px;display:flex;align-items:center;gap:10px}
.kyi-back{width:32px;height:34px;border:0;background:none;color:var(--ink);font-size:30px;line-height:1;padding:0;text-align:left}
.page .kyi-backrow h1{font-family:var(--font-display);font-size:22px;font-weight:800;line-height:1.2;letter-spacing:-.4px;margin:0;color:var(--ink)}
.kyi-content{max-width:560px;margin:0 auto}
.kyi-hero{text-align:center;padding:4px 8px 16px}
.kyi-shield{width:82px;height:82px;border-radius:50%;background:#efe5e3;color:var(--wine);display:grid;place-items:center;margin:0 auto 18px}
.kyi-shield svg{width:42px;height:42px}
.kyi-hero h2{font-family:var(--font-display);font-size:23px;line-height:1.2;letter-spacing:-.5px;color:var(--ink);margin:0 0 9px}
.kyi-hero p{max-width:430px;margin:0 auto;color:#77736e;font-size:14px;line-height:1.45}
.kyi-card{background:#fff;border:1px solid #eeeae4;border-radius:20px;padding:19px 18px 16px;margin:12px 0 17px;box-shadow:0 3px 14px #34151208}
.kyi-card h3{display:flex;align-items:center;gap:10px;font-size:16px;line-height:1.25;color:#171513;margin:0 0 12px}
.kyi-cardicon{width:24px;height:24px;display:grid;place-items:center;color:var(--wine);font-size:24px;font-weight:700}
.kyi-introcopy{color:#716e69;font-size:13px;line-height:1.45;margin:0 0 12px}
.kyi-row{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;align-items:start;margin:11px 0 0}
.kyi-rowicon{color:var(--wine);font-size:20px;line-height:1.2;text-align:center}
.kyi-row p{font-size:13px;line-height:1.45;color:#716e69;margin:0}
.kyi-row b{color:#211e1b}
.kyi-consent{display:flex;align-items:flex-start;gap:11px;padding:13px 14px;margin:8px 0 14px;border-radius:13px;background:#f3f1ed;color:#68645f;font-size:13px;line-height:1.45;cursor:pointer}
.kyi-consent input{width:20px;height:20px;accent-color:var(--wine);flex:none;margin:1px 0 0}
.kyi-start{width:100%;min-height:52px;border:0;border-radius:12px;background:var(--wine);color:#fff;font-size:15px;font-weight:750;padding:13px 16px;box-shadow:0 3px 8px #5b0e1420}
.kyi-start:active{transform:translateY(1px)}
.kyi-refresh{display:flex;align-items:center;justify-content:center;gap:10px;margin:16px auto 0;padding:9px 14px;border:0;background:transparent;color:#262320;font-size:14px;font-weight:650}
.kyi-refresh span{font-size:22px;line-height:1}
.kyi-footnote{text-align:center;color:#89847e;font-size:11px;line-height:1.4;margin:8px auto 0!important}
@media(max-width:420px){
  .kyi-page{padding-left:15px;padding-right:15px;padding-top:9px}
  .kyi-backrow{margin-bottom:12px}
  .kyi-hero{padding-bottom:12px}
  .kyi-shield{width:72px;height:72px;margin-bottom:13px}
  .kyi-shield svg{width:37px;height:37px}
  .kyi-hero h2{font-size:21px}
  .kyi-hero p{font-size:13px}
  .kyi-card{padding:16px 15px 13px;border-radius:17px;margin-top:9px}
  .kyi-card h3{font-size:15px}
  .kyi-row p,.kyi-introcopy{font-size:12px}
  .kyi-consent{font-size:12px;padding:11px 12px}
  .kyi-start{min-height:49px;font-size:14px}
}


/* ============== Landlord portal dashboard ============== */
.lp-page{padding:18px 16px calc(96px + env(safe-area-inset-bottom));max-width:980px;margin:0 auto}
.lp-dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 18px}
.lp-dashboard-head h1,.lp-section-head h1{font-size:24px;color:var(--wine);margin:3px 0 2px}
.lp-dashboard-head p,.lp-section-head p{font-size:12px;color:var(--muted);margin:0}
.lp-dashboard-head .eyebrow,.lp-section-head .eyebrow{font-size:10px;letter-spacing:1.2px;color:#9a7965;font-weight:800}
.lp-balance-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px;border-radius:18px;background:linear-gradient(130deg,#5B0E14,#76242A);color:#fff8ec;box-shadow:0 7px 20px #5b0e1426;margin:0 0 22px}
.lp-balance-card>div:first-child{display:grid;gap:4px}
.lp-balance-card span{font-size:12px;opacity:.86}
.lp-balance-card b{font-size:30px;line-height:1.15;letter-spacing:-.6px}
.lp-balance-card small{font-size:11px;opacity:.8}
.lp-withdraw{display:grid;justify-items:center;gap:4px;border:1px solid #fff4d455;background:#ffffff12;color:#fff7e8;border-radius:14px;padding:10px 14px;min-width:118px}
.lp-withdraw .moreico{background:#f3dfaa;color:var(--wine);width:38px;height:38px}
.lp-withdraw b{font-size:12px}
.lp-withdraw small{font-size:10px;opacity:.82}
.lp-quick-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:18px 0 10px}
.lp-quick-head h2{font-size:17px;color:var(--ink);margin:0}
.lp-quick-head small{font-size:11px;color:var(--muted)}
.lp-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.lp-action{min-height:125px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;padding:13px 12px;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--ink);box-shadow:var(--shadow)}
.lp-action:hover{border-color:#d8c6a8;transform:translateY(-1px)}
.lp-action .moreico,.lp-listtop .moreico{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#f1e8dc;color:var(--wine);flex:none}
.lp-action b{font-size:12px;line-height:1.2}
.lp-action small{font-size:10px;line-height:1.35;color:var(--muted)}
.lp-section-head{display:grid;gap:8px;margin:2px 0 17px}
.lp-back{width:max-content;border:0;background:transparent;color:var(--wine);font-size:12px;font-weight:750;padding:5px 0}
.lp-info{border:1px solid #eadbb9;background:#fff8e6;border-radius:12px;padding:11px 13px;color:#695a43;font-size:12px;line-height:1.45;margin:0 0 12px}
.lp-listcard{background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px;margin:10px 0;box-shadow:var(--shadow)}
.lp-listtop{display:flex;align-items:center;gap:10px}
.lp-grow{min-width:0;flex:1;display:grid;gap:3px}
.lp-grow b{font-size:13px;color:var(--ink)}
.lp-grow small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.lp-list-price{font-size:16px;font-weight:800;color:var(--wine);margin:8px 0 0 52px}
.lp-status{font-size:10px;font-weight:750;text-transform:capitalize;border-radius:20px;padding:5px 8px;background:#eee9e2;color:#655b52;white-space:nowrap}
.lp-status.active,.lp-status.resolved{background:#e7efe3;color:#456346}
.lp-status.pending,.lp-status.new{background:#fff0c9;color:#75531b}
.lp-status.declined{background:#f9e6e4;color:#8a3d34}
.lp-status.in_review{background:#e8eef6;color:#415b79}
.lp-row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}
.lp-row-actions .textbtn{color:var(--wine);font-weight:750;font-size:11px}
.lp-report-meta{font-size:10px;color:var(--muted);margin-top:8px}
.lp-subhead{font-size:15px;font-weight:800;margin:20px 0 6px}
.lp-resume{margin-top:18px}
.lp-facegate{max-width:520px;margin:12px auto;padding:18px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);text-align:center}
.lp-facegate .kyi-shield{width:72px;height:72px;margin:0 auto 12px}
.lp-facegate h2{font-size:19px;color:var(--wine);margin:4px 0 7px}
.lp-facegate>p{font-size:12px;line-height:1.45;color:var(--muted)}
.lp-facegate .kyi-card{margin:14px 0;text-align:left}
.lp-facegate .kyi-card small{display:block;margin-top:7px}
.lp-warning{color:#8c4c2d!important;font-size:11px!important;line-height:1.4}
.lp-finance-gate{text-align:center;max-width:600px;margin:16px auto;padding:22px}
.lp-finance-gate .moreico{width:46px;height:46px;display:grid;place-items:center;margin:0 auto 8px;background:#f1e8dc;color:var(--wine);border-radius:14px}
.lp-finance-gate h2{margin:5px 0}
.lp-finance-gate .loc{max-width:430px;margin:0 auto 12px}
@media(max-width:700px){
 .lp-page{padding:13px 14px calc(92px + env(safe-area-inset-bottom))}
 .lp-dashboard-head{align-items:flex-start}
 .lp-dashboard-head h1,.lp-section-head h1{font-size:22px}
 .lp-dashboard-head>.btn{white-space:nowrap;font-size:10px;padding:9px 10px}
 .lp-balance-card{padding:15px;border-radius:16px;gap:9px}
 .lp-balance-card b{font-size:26px}
 .lp-withdraw{min-width:104px;padding:8px 9px}
 .lp-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .lp-action{min-height:112px;padding:11px}
 .lp-action:last-child{grid-column:auto}
 .lp-quick-head{align-items:flex-start;flex-direction:column}
 .lp-quick-head small{display:block}
}
@media(max-width:360px){
 .lp-dashboard-head>.btn{font-size:9px;padding:8px}
 .lp-balance-card b{font-size:23px}
 .lp-withdraw{min-width:94px}
}

/* Broken card photos: settle to the plain card background instead of a
   frozen loader dot (also stops the loader re-appearing on every re-render
   for images that failed). */
.photo.image-error .photo-loading,.srs-photo.image-error .photo-loading{opacity:0;visibility:hidden}

/* ===== Broadcast ticker (ticker.js) — slim information bar above the bottom
   navigation; admin messages scroll in from the right and out by the left. ===== */
.sb-ticker{position:fixed;left:0;right:0;bottom:calc(67px + env(safe-area-inset-bottom));z-index:16;background:var(--wine);color:#ffe9ad;font-size:11.5px;font-weight:700;line-height:1.4;padding:9px 0;overflow:hidden;box-shadow:0 -6px 18px -10px #28080966;display:none}
.sb-ticker.on{display:block}
.sb-ticker-track{white-space:nowrap;display:inline-block;padding-left:100%;animation:sbTickerScroll linear both}
@keyframes sbTickerScroll{from{transform:translateX(0)}to{transform:translateX(-100%)}}
[data-theme="dark"] .sb-ticker{background:#2a0f14;color:#f3d9a8;border-top:1px solid #4a2b28}

/* ===== Yellow portal loader (loading.js sbPortalLoaderHtml) — the branded
   yellow Shelterbaze page with the logo mark, used as the tenant, agent and
   landlord portal loading state. ===== */
.sb-yloader{min-height:calc(100dvh - 58px);display:grid;place-content:center;justify-items:center;gap:13px;background:#f1e196;padding:30px 20px;text-align:center}
.sb-ylogo{width:52px;height:52px;object-fit:contain;display:block}
.sb-yword{font-weight:900;font-size:22px;letter-spacing:-1px;color:var(--wine);font-family:var(--font-display)}
.sb-yword span{color:#8c6027}
.sb-ymsg{font-size:12.5px;font-weight:750;color:#591C1C}
.sb-ybar{width:180px;height:5px;border-radius:9px;background:#d8c58f;overflow:hidden}
.sb-ybar i{display:block;height:100%;width:32%;border-radius:9px;background:linear-gradient(90deg,var(--wine),#a45c35);animation:sbYBar 1.6s ease-in-out infinite}
@keyframes sbYBar{from{transform:translateX(-110%)}to{transform:translateX(330%)}}
@media(prefers-reduced-motion:reduce){.sb-ybar i{animation:none;width:65%}}

/* ===== Build My House wizard (build-my-house.js) — from the approved
   shelterbaze-build-my-house.html mockup, on the app palette. ===== */
.bh-shell{max-width:750px;margin:0 auto;padding-bottom:20px}
.bh-intro{text-align:center;margin:2px 0 16px}
.bh-eyebrow{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--terracotta);font-weight:800}
.bh-intro h1{font-size:24px;letter-spacing:-.6px;line-height:1.1;color:var(--wine);margin:8px 0 6px;font-family:var(--font-display)}
.bh-intro p{font-size:12px;line-height:1.6;color:var(--muted);max-width:560px;margin:0 auto}
.bh-restart{margin-top:6px}
.bh-progress{max-width:750px;margin:0 auto 14px}
.bh-progtop{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:7px}
.bh-segments{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}
.bh-segments i{height:5px;background:#e7dfd5;border-radius:9px}
.bh-segments i.done{background:var(--terracotta)}
.bh-steps{display:flex;justify-content:space-between;gap:6px;margin-top:8px}
.bh-steps span{font-size:8.5px;color:#9a928a;white-space:nowrap}
.bh-steps span.active{color:var(--wine);font-weight:800}
.bh-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px 16px;box-shadow:var(--shadow)}
.bh-stepcap{font-size:10px;color:var(--terracotta);text-transform:uppercase;letter-spacing:.16em;font-weight:800}
.bh-h2{color:var(--wine);font-size:21px;letter-spacing:-.4px;margin:7px 0;font-family:var(--font-display)}
.bh-desc{color:var(--muted);font-size:12px;line-height:1.55;margin:0 0 18px}
.bh-question{font-size:12px;font-weight:800;margin:18px 0 10px;color:var(--ink)}
.bh-choices{display:grid;gap:10px}
.bh-choice{display:grid;grid-template-columns:32px 1fr;column-gap:10px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px;text-align:left;min-height:0;color:var(--ink);transition:.16s;align-items:start}
.bh-choice:hover{border-color:#d3b998;background:#fffcf5}
.bh-choice.selected{border:1.5px solid var(--wine);background:#fbf4e9;box-shadow:0 0 0 2px #5b0e1410}
.bh-ci{width:32px;height:32px;border-radius:9px;background:#f7e7da;color:var(--wine);display:grid;place-items:center;font-size:16px}
.bh-ct strong{display:block;font-size:12px;color:var(--wine)}
.bh-ct small{display:block;color:var(--muted);font-size:10px;line-height:1.45;margin-top:3px}
.bh-formgrid{display:grid;grid-template-columns:1fr;gap:0}
.bh-field{margin-bottom:13px;min-width:0}
.bh-field.full{grid-column:auto}
.bh-field label{display:block;font-size:10.5px;font-weight:780;color:#514944;margin-bottom:6px}
.bh-field input,.bh-field select,.bh-field textarea{width:100%;height:42px;border:1px solid #e4ddd4;border-radius:9px;background:#fff;padding:0 11px;color:var(--ink);font-size:12.5px;outline:none}
.bh-field textarea{height:auto;min-height:80px;padding:10px;resize:vertical}
.bh-field input:focus,.bh-field select:focus,.bh-field textarea:focus{border-color:var(--terracotta);box-shadow:0 0 0 3px #d98c5e20}
.bh-field input[type=file]{height:auto;padding:9px}
.bh-hint{font-size:9.5px;color:var(--muted);line-height:1.45;display:block;margin-top:5px}
.bh-checkrow{display:grid;grid-template-columns:1fr;gap:8px}
.bh-check{display:flex;align-items:flex-start;gap:8px;padding:10px;border:1px solid var(--line);border-radius:10px;font-size:11px;line-height:1.45;color:#564e48;font-weight:600}
.bh-check input{accent-color:var(--wine);margin:1px 0 0;flex:none}
.bh-consent{margin-top:4px}
.bh-callout{border-radius:11px;background:#faf4e9;color:#695a3a;padding:12px 14px;font-size:11px;line-height:1.55;margin:15px 0}
.bh-callout b{color:var(--wine)}
.bh-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.bh-btn{border:0;border-radius:10px;padding:12px 16px;font-weight:800;font-size:12px;min-height:44px}
.bh-btn.primary{background:var(--wine);color:var(--cream)}
.bh-btn.primary:hover{background:var(--wine2)}
.bh-btn.ghost{background:#fff;border:1px solid var(--line);color:var(--wine)}
.bh-summary{display:grid;grid-template-columns:1fr;gap:9px}
.bh-sumitem{padding:11px;border:1px solid var(--line);border-radius:10px;background:#fdfcf9;min-width:0}
.bh-sumitem small{display:block;text-transform:uppercase;font-size:8.5px;letter-spacing:.1em;color:var(--muted);margin-bottom:4px}
.bh-sumitem b{font-size:12px;line-height:1.4;overflow-wrap:anywhere;color:var(--ink)}
.bh-success{text-align:center;padding:28px 12px}
.bh-checkmark{width:58px;height:58px;border-radius:50%;margin:0 auto 14px;background:#eaf4eb;color:var(--green);display:grid;place-items:center;font-size:26px}
.bh-success .bh-desc{margin-bottom:16px}
.bh-foot{text-align:center;color:#948a82;font-size:9.5px;margin:16px auto 0;max-width:650px;line-height:1.55;padding:0 12px}
[data-theme="dark"] .bh-panel{background:#221a18;border-color:#4a2b28}
[data-theme="dark"] .bh-intro h1,[data-theme="dark"] .bh-h2,[data-theme="dark"] .bh-steps span.active{color:#f3d9a8}
[data-theme="dark"] .bh-desc,[data-theme="dark"] .bh-intro p,[data-theme="dark"] .bh-ct small,[data-theme="dark"] .bh-hint{color:#b3a99e}
[data-theme="dark"] .bh-choice,[data-theme="dark"] .bh-field input,[data-theme="dark"] .bh-field select,[data-theme="dark"] .bh-field textarea,[data-theme="dark"] .bh-btn.ghost{background:#2b211e;border-color:#4a2b28;color:#f2ecdf}
[data-theme="dark"] .bh-choice.selected,[data-theme="dark"] .bh-sumitem{background:#33261f;border-color:#6b4038}
[data-theme="dark"] .bh-ct strong,[data-theme="dark"] .bh-question,[data-theme="dark"] .bh-sumitem b,[data-theme="dark"] .bh-field label{color:#f2ecdf}
[data-theme="dark"] .bh-choice:hover{background:#33261f}
[data-theme="dark"] .bh-callout{background:#33291c;color:#d8c49a}
[data-theme="dark"] .bh-actions{border-top-color:#4a2b28}
[data-theme="dark"] .bh-segments i{background:#3a2e2a}
[data-theme="dark"] .bh-ci{background:#4a2b28;color:#f3d9a8}
@media(max-width:360px){.bh-btn{padding:12px 12px;font-size:11px}.bh-actions button{max-width:65%}.bh-steps span:not(.active){display:none}}

/* ===== Tenant portal (tenant-portal.js) — from the approved tenant dashboard
   mockup: wine/gold cards, cover blocks, per-property detail grids. ===== */
.td-page{max-width:1100px;margin:0 auto}
.td-brand{display:flex;align-items:center;gap:8px;margin:2px 0 14px}
.td-brand img{width:28px;height:28px;object-fit:contain;border-radius:7px}
.td-brand b{font-size:16px;font-weight:800;letter-spacing:-.04em;color:var(--wine);text-transform:lowercase;font-family:var(--font-display)}
.td-cap{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.15em;margin-left:auto}
.td-nav{display:flex;gap:6px;overflow:auto;scrollbar-width:none;margin-bottom:16px;padding-bottom:2px}
.td-nav::-webkit-scrollbar{display:none}
.td-navbtn{flex:none;display:flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;color:var(--wine);padding:9px 12px;border-radius:10px;font-size:11.5px;font-weight:700}
.td-navbtn.on{background:var(--gold);color:var(--wine);border-color:var(--gold);font-weight:800}
.td-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:18px}
.td-kicker{font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--terracotta)}
.td-head h1{font-size:24px;letter-spacing:-.5px;color:var(--wine);margin:6px 0;font-family:var(--font-display)}
.td-sub{font-size:12px;color:var(--muted);line-height:1.55;margin:0}
.td-grid{display:grid;gap:12px;margin-bottom:14px;min-width:0}
.td-grid>*{min-width:0}
.td-stats{grid-template-columns:1fr 1fr}
.td-dash,.td-two,.td-split{grid-template-columns:1fr}
.td-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px;box-shadow:var(--shadow);min-width:0}
.td-statcap{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}
.td-ico{background:#fbefe6;color:var(--wine);width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-weight:800;font-style:normal;flex:none}
.td-stat{font-weight:800;color:var(--wine);font-size:20px;letter-spacing:-.4px;margin:10px 0 3px}
.td-tiny{font-size:10px;color:var(--muted)}
.td-card h3{color:var(--wine);font-size:15px;margin:0 0 4px;font-family:var(--font-display)}
.td-ctitle{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:10px}
.td-ctitle h2{font-size:13.5px;color:var(--wine);margin:0;font-family:var(--font-display)}
.td-ctitle h3{margin:0}
.td-home{padding:0;overflow:hidden}
.td-cover{height:150px;background:linear-gradient(130deg,#d4c09f,#806b50 55%,#493c32);position:relative}
.td-cover.tall{height:190px}
.td-cover:after{content:"";position:absolute;right:26px;bottom:0;width:40%;height:72%;background:repeating-linear-gradient(90deg,#f1e9dc 0 30px,#baa78f 30px 36px);border-radius:5px 5px 0 0;box-shadow:-14px 0 #998b77}
.td-badge{position:absolute;top:12px;left:14px;background:#fff;color:var(--green);font-size:9px;font-weight:800;padding:6px 9px;border-radius:30px;border:0;z-index:1}
.td-homeinfo{padding:14px 16px}
.td-meta{display:flex;gap:14px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:12px;padding-top:11px;font-size:10px;color:#635d57}
.td-actions{display:grid;gap:8px;margin-top:12px}
.td-escrow{background:var(--wine);color:#fff;border:0;position:relative;overflow:hidden}
.td-escrow:after{content:"";position:absolute;right:-70px;top:-80px;width:180px;height:180px;border:1px solid #f0e19355;border-radius:50%;box-shadow:0 0 0 22px #f0e1930b,0 0 0 44px #f0e19308}
.td-escrow h3{color:var(--gold);font-size:13.5px;margin:0}
.td-escrow .td-stat{font-size:26px;color:#fff;margin-top:18px}
.td-escrow p{font-size:11px;color:#edd8d6;line-height:1.5;margin:0 0 4px}
.td-pill,.td-status{display:inline-block;border-radius:30px;padding:5px 9px;font-size:9px;font-weight:800;background:#e9f3eb;color:var(--green);white-space:nowrap}
.td-status.pending{background:#fbf1dd;color:#946a15}
.td-status.review{background:#fceedf;color:#a45c35}
.td-escrow .td-pill{background:var(--gold);color:var(--wine);margin-top:12px}
.td-escrow .td-btn{width:100%;margin-top:14px}
.td-btn{border:0;border-radius:10px;padding:11px 14px;font-size:12px;font-weight:800;min-height:42px;background:var(--wine);color:var(--cream);cursor:pointer}
.td-btn.light{background:#fff;color:var(--wine);border:1px solid var(--line)}
.td-btn.gold{background:var(--gold);color:var(--wine)}
.td-btn.sm{padding:8px 10px;font-size:11px;min-height:36px}
.td-list{display:grid;gap:0;min-width:0}
.td-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 0;border-top:1px solid var(--line)}
.td-item:first-child{padding-top:0;border-top:0}
.td-itemleft{display:flex;align-items:center;gap:10px;min-width:0}
.td-itemleft strong{font-size:11.5px;display:block}
.td-itemleft small{font-size:10px;color:var(--muted);display:block;margin-top:4px;line-height:1.45}
.td-quick{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.td-quick button{min-height:74px;background:#fff;border:1px solid var(--line);border-radius:11px;text-align:left;padding:11px;color:var(--wine)}
.td-quick button span{font-size:17px}
.td-quick button b{display:block;font-size:11px;margin-top:5px}
.td-quick button small{font-size:9px;color:var(--muted)}
.td-notice{background:#f8f2e6;color:#705c39;border-radius:11px;padding:12px 14px;font-size:11px;line-height:1.55;margin-top:14px}
.td-detailgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.td-detail{background:#faf9f6;border-radius:9px;padding:11px;min-width:0}
.td-detail small{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:5px}
.td-detail b{font-size:11px;overflow-wrap:anywhere}
.td-hero{background:linear-gradient(125deg,var(--wine),#79242d);color:#fff;padding:20px;border-radius:15px;margin-bottom:14px}
.td-hero h2{margin:8px 0;font-size:19px;font-family:var(--font-display)}
.td-hero p{font-size:11px;color:#ecd8d6;line-height:1.5;max-width:600px;margin:0}
.td-row{display:flex;gap:10px;flex-wrap:wrap}
.td-tablewrap{overflow:auto}
.td-table{border-collapse:collapse;width:100%;min-width:480px}
.td-table th{text-align:left;font-size:9px;color:var(--muted);letter-spacing:.07em;text-transform:uppercase;padding:10px;border-bottom:1px solid var(--line)}
.td-table td{font-size:11px;padding:12px 10px;border-bottom:1px solid #f0ede8;overflow-wrap:anywhere}
.td-amount{font-weight:800;color:var(--wine)}
.td-avatar{width:34px;height:34px;border-radius:50%;background:#f0d4bf;color:var(--wine);display:grid;place-items:center;font-weight:800;font-size:11px;font-style:normal;flex:none}
.td-chips{display:grid;grid-template-columns:1fr;gap:8px}
.td-chip{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px;font-size:11.5px;font-weight:750;color:var(--wine);text-align:left}
.td-chip small{font-weight:600;font-size:9.5px;color:var(--muted)}
.td-chip.on{border-color:var(--wine);background:#fbf4e9;box-shadow:0 0 0 2px #5b0e1410}
.td-field{margin:0 0 12px}
.td-field label{display:block;font-size:10px;font-weight:750;margin-bottom:6px;color:#514944}
.td-field input,.td-field select,.td-field textarea{width:100%;padding:11px;border:1px solid var(--line);border-radius:9px;font-size:12.5px;outline:0;background:#fff;color:var(--ink)}
.td-field textarea{min-height:92px;resize:vertical}
.td-field input:focus,.td-field select:focus,.td-field textarea:focus{border-color:var(--terracotta);box-shadow:0 0 0 3px #d98c5e20}
[data-theme="dark"] .td-card,[data-theme="dark"] .td-navbtn,[data-theme="dark"] .td-quick button,[data-theme="dark"] .td-chip,[data-theme="dark"] .td-btn.light,[data-theme="dark"] .td-field input,[data-theme="dark"] .td-field select,[data-theme="dark"] .td-field textarea{background:#221a18;border-color:#4a2b28;color:#f2ecdf}
[data-theme="dark"] .td-brand b,[data-theme="dark"] .td-head h1,[data-theme="dark"] .td-card h3,[data-theme="dark"] .td-ctitle h2,[data-theme="dark"] .td-stat,[data-theme="dark"] .td-navbtn{color:#f3d9a8}
[data-theme="dark"] .td-navbtn.on{background:var(--gold);color:var(--wine)}
[data-theme="dark"] .td-sub,[data-theme="dark"] .td-tiny,[data-theme="dark"] .td-statcap,[data-theme="dark"] .td-itemleft small,[data-theme="dark"] .td-detail small{color:#b3a99e}
[data-theme="dark"] .td-detail,[data-theme="dark"] .td-chip.on{background:#33261f;border-color:#6b4038}
[data-theme="dark"] .td-itemleft strong,[data-theme="dark"] .td-detail b,[data-theme="dark"] .td-chip{color:#f2ecdf}
[data-theme="dark"] .td-notice{background:#33291c;color:#d8c49a}
[data-theme="dark"] .td-amount{color:#f3d9a8}
[data-theme="dark"] .td-meta{color:#b3a99e;border-top-color:#4a2b28}
[data-theme="dark"] .td-item{border-top-color:#4a2b28}
[data-theme="dark"] .td-table td{border-bottom-color:#3a2e2a}
[data-theme="dark"] .td-table th{color:#b3a99e}
[data-theme="dark"] .td-ico{background:#4a2b28;color:#f3d9a8}
@media(min-width:700px){
  .td-stats{grid-template-columns:repeat(4,1fr)}
  .td-dash{grid-template-columns:1.35fr .9fr}
  .td-two{grid-template-columns:1.2fr .8fr}
  .td-split{grid-template-columns:1fr 1fr}
  .td-actions{grid-template-columns:1fr 1.25fr}
  .td-chips{grid-template-columns:1fr 1fr}
  .td-head h1{font-size:27px}
}

/* ===== Borehole wizard success loader (borehole.js) — from the approved
   mockup: three bouncing water drops. ===== */
.bo-loader{text-align:center}
.bo-drops{height:64px;display:flex;justify-content:center;align-items:center;gap:13px;margin:6px 0 14px}
.bo-drop{width:20px;height:27px;background:var(--wine);border-radius:50% 50% 50% 0;transform:rotate(-45deg);animation:boDropBounce 900ms ease-in-out infinite}
.bo-drop.d2{background:var(--terracotta);animation-delay:140ms;transform:scale(.82) rotate(-45deg)}
.bo-drop.d3{background:#9ebfc7;animation-delay:280ms;transform:scale(.68) rotate(-45deg)}
@keyframes boDropBounce{0%,100%{translate:0 7px;opacity:.62}50%{translate:0 -8px;opacity:1}}
@media(prefers-reduced-motion:reduce){.bo-drop{animation:none}}

/* Home feed: the For Sale / For Rent tabs stay pinned just under the sticky
   subheader while property cards scroll beneath them (--sb-tabs-top is
   synced from the real topbar height by sbSyncTabsTop in app.js). */
.home-page .dealtabs{position:sticky;top:var(--sb-tabs-top,57px);z-index:9;background:var(--paper);padding:10px 15px 12px;margin:0;box-shadow:0 8px 16px -14px #28080945;border-bottom:1px solid var(--line)}
[data-theme="dark"] .home-page .dealtabs{background:#141210;border-bottom-color:#2a221e}

/* ===== Borehole request loading screen (borehole.js) — distinct full-screen
   state shown only while the real submission is processing, from the
   approved shelterbaze-borehole-loading.html mockup. ===== */
.bo-fullscreen{margin:-16px -15px -96px;background:#f1e196;min-height:calc(100dvh - 150px);display:grid;place-items:center;padding:0 14px 40px}
.bo-loading-card{width:min(100%,520px);background:#fff;border:1px solid var(--line);border-radius:20px;padding:38px 30px;text-align:center;box-shadow:var(--shadow)}
.bo-loadcard .bh-eyebrow{display:block}
.bo-drops-lg{display:flex;align-items:center;justify-content:center;gap:14px;height:80px;margin:10px auto 17px}
.bo-drop-lg{width:22px;height:31px;background:var(--wine);border-radius:55% 55% 55% 0;transform:rotate(-45deg);animation:boFloat 1s ease-in-out infinite}
.bo-drop-lg.d2{width:18px;height:26px;background:var(--terracotta);animation-delay:.17s}
.bo-drop-lg.d3{width:15px;height:21px;background:#9dc0ca;animation-delay:.34s}
@keyframes boFloat{0%,100%{translate:0 8px;opacity:.62}50%{translate:0 -8px;opacity:1}}
.bo-loadtitle{font-size:25px;line-height:1.15;letter-spacing:-.9px;color:var(--wine);margin:0 0 9px;font-family:var(--font-display)}
.bo-loaddesc{font-size:12px;line-height:1.6;color:var(--muted);max-width:380px;margin:0 auto}
.bo-track{height:5px;border-radius:9px;background:#eee8df;overflow:hidden;margin:25px 0 22px}
.bo-track i{display:block;height:100%;width:32%;border-radius:9px;background:linear-gradient(90deg,var(--terracotta),var(--gold));animation:boLoadBar 1.8s ease-in-out infinite}
@keyframes boLoadBar{0%{transform:translateX(-100%)}100%{transform:translateX(320%)}}
.bo-loadnote{text-align:left;background:#fbf4e9;border:1px solid #efe4d0;border-radius:12px;padding:14px 15px;color:#695a3a;font-size:11px;line-height:1.55}
.bo-loadnote strong{color:var(--wine)}
.bo-loadsupport{margin-top:14px;color:var(--muted);font-size:10px;line-height:1.5}
.bo-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:560px){.bo-fullscreen{padding:0 12px 30px}.bo-loading-card{padding:30px 20px;border-radius:17px}.bo-loadtitle{font-size:23px}}
@media(prefers-reduced-motion:reduce){.bo-drop-lg,.bo-track i{animation:none}.bo-track i{width:65%}}
[data-theme="dark"] .bo-fullscreen{background:#171010}
[data-theme="dark"] .bo-loading-card{background:#221a18;border-color:#4a2b28}
[data-theme="dark"] .bo-loadtitle{color:#f3d9a8}
[data-theme="dark"] .bo-loaddesc,[data-theme="dark"] .bo-loadsupport{color:#b3a99e}
[data-theme="dark"] .bo-loadnote{background:#33291c;border-color:#4a3a24;color:#d8c49a}
[data-theme="dark"] .bo-loadnote strong{color:#f3d9a8}
[data-theme="dark"] .bo-track{background:#3a2e2a}

/* ===== Viewport hardening (Android WebView / large screens) =====
   Android scales WebView text by the system font/display size, inflating the
   layout until the city chips and hero run past the right edge of the screen.
   text-size-adjust:100% stops that inflation in CSS (the native shell also
   pins WebView textZoom to 100 in MainActivity); overflow-x:clip on the root
   stops any stray child from making the whole page pan sideways (clip, unlike
   hidden, does not create a scroll container, so the sticky topbar keeps
   working). */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-x:clip}

/* ===== Bottom navigation ===== */
/* Never pan sideways: the seven items are fixed at 54px each (378px total),
   which overflows 360px-wide Android viewports and makes "More" fall off the
   edge with a scrollable nav bar. Let the items shrink to share the row. */
.bottomnav{overflow:visible}
.bottomnav .navitem{flex:1 1 0;min-width:0;max-width:56px}
/* On large screens the bar used to stretch edge to edge with huge gaps.
   Cap it to the same 520px column as the More sheet and float it centered. */
@media(min-width:760px){
  .bottomnav{left:0;right:0;width:100%;max-width:520px;margin:0 auto;border-left:1px solid var(--line);border-right:1px solid var(--line);border-radius:16px 16px 0 0}
}
[data-theme="dark"] .bottomnav{border-left-color:#2a251f;border-right-color:#2a251f}

/* ===== Auth screens (sign in / sign up): status-bar safe area =====
   Inside the fullscreen native shells the page draws beneath the system
   status bar (viewport-fit=cover), so the brand header, the back button
   and the story headline must clear env(safe-area-inset-top) on top of
   their offsets — otherwise the Shelterbaze header sits inside the
   network/battery icons. In ordinary browsers the inset is 0, so the
   layout is unchanged there. */
@media(max-width:800px){
  .abrand{top:calc(20px + env(safe-area-inset-top))}
  .ascreen .xback{top:calc(14px + env(safe-area-inset-top))}
  .astory{padding:calc(96px + env(safe-area-inset-top)) 22px 30px}
}
@media(min-width:801px){
  .abrand{top:calc(clamp(22px,5vh,52px) + env(safe-area-inset-top))}
  .ascreen .xback{top:calc(18px + env(safe-area-inset-top))}
}

/* ===== Broadcast ticker: pinned banner under the top edge =====
   The ticker renders in the document flow right after the brand header
   (ticker.js anchors it there) and pins to the top edge on scroll, so it
   stays visible without ever floating over the listings. The brand header
   itself scrolls away beneath it; the hero (search + city chips) pins
   right below the ticker via --sb-ticker-top so search stays reachable
   while browsing. Idle (no broadcast) the bar stays display:none and
   --sb-ticker-top is 0px, so nothing shifts. */
.sb-ticker{position:sticky;left:auto;right:auto;bottom:auto;top:var(--sb-topbar-h,0px);z-index:12;box-shadow:none;height:35px;border-bottom:1px solid #ffffff1a}
[data-theme="dark"] .sb-ticker{border-top:0;border-bottom:1px solid #4a2b28}
.topbar{position:sticky;top:0;z-index:13}
.hero{position:relative;z-index:auto}
.hero-copy{align-items:flex-start}

/* Guests play broadcasts too now — but not on the immersive sign-in/sign-up
   screen: it is a full-viewport layout, and the in-flow ticker bar above it
   would push it below the fold. */
body.auth-screen .sb-ticker{display:none}

/* ===== Home: For Sale / For Rent tabs pin below the ticker =====
   The hero scrolls away with the content, so the tabs settle directly under
   the pinned brand strip + ticker (--sb-topbar-h is the brand strip's
   rendered height, kept fresh by app.js — it already includes the top
   inset, so no env() is added here) and listings scroll beneath them. */
body.home-page .dealtabs{position:sticky;top:calc(var(--sb-topbar-h,0px) + var(--sb-ticker-top,0px));z-index:10;background:var(--paper);border-bottom:1px solid var(--line)}
[data-theme="dark"] body.home-page .dealtabs{background:#141210;border-bottom-color:#2a251f}

/* ===== Page background matches the app in both themes =====
   In the native shells the WebView surface outside the app column — the
   overscroll zone and the strip under the bottom nav's safe-area padding —
   used to show the bare gray body background, a white flash around the
   dark app. Paint it with the app's own background instead. */
body{background:var(--paper)}
[data-theme="dark"] body{background:#141210}

/* ===== Bottom nav: contained icons on every platform =====
   The bar used to be a fixed 67px box whose content zone changed with
   env(safe-area-inset-bottom) — on Android (inset 0) the icons sat low in
   the bar and the raised + button cleared the top edge, touching the
   listings. Size the bar by its content instead: a stable 48px icon row
   plus the bottom inset, so every icon and the + button stay inside the
   white underlay on Android and iOS alike. Content-positioning buffers
   elsewhere still use the taller 67px figure, which only adds slack. */
.bottomnav{height:auto;padding:4px 2px calc(6px + env(safe-area-inset-bottom))}
.bottomnav .navitem{min-height:48px}
:root{--sb-topbar-h:56px}

/* ===== Chat thread: conversation header pinned below the ticker =====
   The stack on a chat thread is brand strip → ticker → profile header,
   all pinned; the message list scrolls beneath them. When a broadcast
   finishes, ticker.js sets --sb-ticker-top back to 0 and the header
   slides up into the freed slot, exactly like the home page hero. */
.thread-top{position:sticky;top:calc(var(--sb-topbar-h,56px) + var(--sb-ticker-top,0px));z-index:9;background:var(--paper)}
[data-theme="dark"] .thread-top{background:#141210}
