:root{--navy:#0d1b2a;--accent:#5B7C99;--frost:#DCE6F0;--frost-navy:#1E3A5F;--frost-text:#0F2744;--ink:#1b2430;--muted:#6b7480;--card:#EEF3F8}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,sans-serif;color:var(--ink);background:var(--navy)}
#bg{position:fixed;inset:0;z-index:-1}.bgimg{position:absolute;inset:0;background-size:cover;background-position:center;transition:opacity 2s;opacity:0}
.bgimg.on{opacity:1}.shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,16,28,.18),rgba(8,16,28,.5))}
.hidden{display:none!important}.glass{background:rgba(220,230,240,.96);border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.brand{font-family:'Playfair Display',serif;font-weight:700;color:#fff;font-size:22px;letter-spacing:.5px}.brand span{color:var(--accent)}
#login{min-height:100vh;display:flex;align-items:center;justify-content:center}.login{width:380px;padding:36px;text-align:center}
.login .brand{color:var(--navy);font-size:34px}.sub{color:var(--muted);font-size:12px;letter-spacing:2px;text-transform:uppercase;margin:6px 0 18px}
.lead{color:#3a4450;font-size:14px}.msg{color:#b03030;font-size:13px;min-height:18px}.note{font-size:11px;color:var(--muted);margin-top:8px}
input,select{width:100%;padding:10px 12px;border:1px solid #d6dbe1;border-radius:10px;font:inherit;font-size:14px;margin:5px 0;background:#fff}
button{width:100%;padding:11px;border:0;border-radius:10px;background:var(--navy);color:#fff;font-weight:600;cursor:pointer;margin:5px 0}
button.ghost{background:transparent;color:var(--navy);border:1px solid #cfd5dc}
header{display:flex;align-items:center;gap:30px;padding:16px 32px;background:rgba(8,16,28,.6);backdrop-filter:blur(8px);position:sticky;top:0;z-index:1000}
nav a{color:#dfe5ec;margin-right:20px;cursor:pointer;font-weight:500;padding-bottom:4px}nav a.on{color:#fff;border-bottom:2px solid var(--accent)}
.who{margin-left:auto;color:#cfd6de;font-size:13px}.who a{color:var(--accent);margin-left:12px;cursor:pointer}
.hero{padding:40px 32px 20px;color:#fff}.hero h1{font-family:'Playfair Display',serif;font-size:40px;margin:0}.hero p{color:#cfd6de}
#app{display:grid;grid-template-columns:300px 1fr;grid-template-areas:"h h" "hero hero" "f m" "ft ft"}header{grid-area:h}.hero{grid-area:hero}
#filters{grid-area:f;margin:0 0 30px 32px;padding:18px;align-self:start;position:sticky;top:80px}main{grid-area:m;padding:0 32px 30px 24px}
footer{grid-area:ft;color:#9aa5b1;font-size:11px;padding:16px 32px}footer a{color:var(--accent)}
.row{display:flex;gap:8px;align-items:center}.chk{font-size:13px;white-space:nowrap;display:flex;gap:6px;align-items:center}.chk input{width:auto}
details{margin:6px 0;font-size:13px}summary{cursor:pointer;font-weight:600;padding:6px 0}.agrp{font-size:11px;text-transform:uppercase;color:var(--muted);margin-top:6px}
.count{color:#fff;margin-bottom:12px;font-size:14px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.card{background:var(--card);border-radius:14px;padding:18px;box-shadow:0 10px 30px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:6px}
.card .rent{font-size:24px;font-weight:700;color:var(--navy)}.card .bld{font-weight:600}.card .meta{color:var(--muted);font-size:13px}
.tag{display:inline-block;font-size:11px;padding:3px 8px;border-radius:20px;background:#eef1f5;margin:2px 3px 0 0}.tag.op{background:#e8f5ec;color:#1f7a3f}.tag.pop{background:#fff4dc;color:#8a6110}.tag.inc{background:#f6ecdc;color:#7a5520}
.card .co{font-size:12px;border-top:1px solid #eef0f3;padding-top:8px;margin-top:auto}.card a{color:#1d4e89}
#map{height:70vh;border-radius:14px}.pad{padding:24px}table{width:100%;border-collapse:collapse;font-size:13px}td,th{border-bottom:1px solid #eee;padding:6px;text-align:left}
td button{width:auto;padding:4px 10px;font-size:12px;margin:0 2px}#more{width:200px;margin:20px auto;display:block;color:#fff;border-color:#fff6}
.logo{width:100%;max-width:320px;margin:0 auto 18px;display:block}.hlogo{height:30px;background:#DCE6F0;padding:4px 10px;border-radius:8px}.login{width:420px}
.title{font-family:'Playfair Display',serif;color:var(--navy);font-size:26px;margin:0 0 6px}.lead{font-weight:600}.login .brand.big{font-size:22px;margin-top:10px}

.credit{margin-top:6px;color:#5B7C99;font-size:13px;letter-spacing:.08em;text-transform:uppercase}
footer b{color:#5B7C99}
#filters .fh{font-family:'Playfair Display',serif;font-size:20px;color:#0d1b2a;margin-bottom:6px;border-bottom:2px solid #5B7C99;padding-bottom:6px}
#filters .fl{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#6b7280;margin:10px 0 3px;font-weight:600}
.notice{background:linear-gradient(90deg,#1E3A5F,#5B7C99);color:#fff;font-weight:600;padding:10px 16px;border-radius:10px;margin-bottom:12px;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.card.lc{padding:0;overflow:hidden;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}
.card.lc:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(0,0,0,.35)}
.card.lc .ph{height:110px;background-size:cover;background-position:center;position:relative}
.card.lc .ph:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,27,42,.1),rgba(13,27,42,.75))}
.rentb{position:absolute;left:14px;bottom:10px;z-index:1;color:#fff;font:700 24px 'Playfair Display',serif}.rentb small{font:400 12px Inter;opacity:.8;margin-left:3px}
.srcb{position:absolute;right:10px;top:10px;z-index:1;background:rgba(13,27,42,.8);color:#DCE6F0;font-size:11px;padding:3px 8px;border-radius:20px;border:1px solid #5B7C99}
.card.lc .cb{padding:14px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.warn{margin-top:auto;font-size:12px;font-weight:700;color:#fff;background:linear-gradient(90deg,#1E3A5F,#5B7C99);padding:6px 10px;border-radius:6px;text-align:center}
.own{font-size:12px;background:#eef3fb;padding:5px 8px;border-radius:4px}
nav{flex-wrap:nowrap}nav a{white-space:nowrap;font-size:13.5px;padding:6px 9px!important}header .brand{white-space:nowrap;font-size:20px}.who{white-space:nowrap;font-size:12px}
html,body{overflow-x:hidden;max-width:100vw}header{gap:10px}header nav{flex:1;justify-content:center;min-width:0}

.fbtn,.fclose{display:none}
@media (max-width:820px){
 body{font-size:15px}
 header{flex-wrap:wrap;padding:8px 10px!important;gap:6px}
 header .hlogo{height:26px}header .brand{font-size:17px}.who{order:2;margin-left:auto;font-size:11px}
 header nav{order:3;flex:1 1 100%;overflow-x:auto;-webkit-overflow-scrolling:touch;justify-content:flex-start;scrollbar-width:none}
 header nav::-webkit-scrollbar{display:none}
 .hero{padding:12px 14px!important}.hero h1{font-size:22px!important}
 #app{display:block!important}
 main{padding:0 10px 20px!important;width:auto!important;margin:0!important}
 .cards{grid-template-columns:1fr!important}
 .fbtn{display:block;position:sticky;top:6px;z-index:40;margin:8px 10px;width:calc(100% - 20px);padding:12px;border-radius:10px;border:0;background:#1E3A5F;color:#fff;font-weight:700;font-size:16px}
 #filters{position:fixed!important;left:0;right:0;bottom:0;top:auto!important;max-height:85vh;overflow-y:auto;z-index:1000;border-radius:16px 16px 0 0;transform:translateY(105%);transition:transform .25s;width:auto!important;margin:0!important}
 #filters.open{transform:none}
 .fclose{display:block;width:100%;margin-bottom:8px;padding:10px;border:0;border-radius:8px;background:#0d1b2a;color:#DCE6F0;font-weight:700}
 #filters input,#filters select{font-size:16px;min-height:42px}
 #map{height:70vh!important}
 table{display:block;overflow-x:auto}
 .login{width:auto!important;margin:20px 12px!important;padding:22px!important}.title{font-size:24px!important}.logo{max-width:100%}
 footer{font-size:11px;padding:10px}
 .co a,.own a{display:inline-block;padding:3px 0}
}#who{display:inline-block;max-width:170px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}header nav{overflow-x:auto;scrollbar-width:none}.who{flex:0 0 auto;position:relative;z-index:2}

/* Home view */
.homelink{display:flex;align-items:center;gap:12px;cursor:pointer;text-decoration:none}
#homeView{display:none;grid-column:1/-1;min-height:calc(100vh - 70px);padding:40px 16px;align-items:center;justify-content:center}
body.home #homeView{display:flex}
body.home #app>:not(header):not(#homeView):not(footer){display:none!important}
.hcard{max-width:760px;width:100%;text-align:center;color:#fff;background:rgba(8,16,28,.55);backdrop-filter:blur(6px);border-radius:20px;padding:36px 28px;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.hcard .hl{max-width:340px;width:80%;background:#DCE6F0;border-radius:10px;padding:8px 14px;margin-bottom:18px}
.hcard h1{font-family:'Playfair Display',serif;font-size:40px;line-height:1.15;margin:0 0 10px}
.hsub{font-size:17px;color:#dfe5ec;margin:0 0 18px}.hbrand{font-family:'Playfair Display',serif;font-size:30px;font-weight:700}.hbrand span{color:#7A9BB8}
.hest{letter-spacing:.25em;font-size:12px;color:#c9d2dc;margin-top:4px}.hcred{letter-spacing:.12em;text-transform:uppercase;font-size:12px;color:#7A9BB8;margin-top:8px}
.hgo{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:26px}
.hgo button{background:var(--frost);color:var(--frost-text);border:0;border-radius:12px;padding:16px 10px;font:600 15px Inter,sans-serif;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:58px}
.hgo button small{font-weight:500;font-size:11px;color:#5B7C99;margin-top:2px}.hgo button:hover{background:#c5d4e4}.hgo button.adm,.hgo button[data-go="all"]{background:var(--frost-navy);color:#fff}.hgo button.adm small,.hgo button[data-go="all"] small{color:#DCE6F0}.hgo button.adm:hover,.hgo button[data-go="all"]:hover{background:#16304f}
.hcount{margin-top:16px;font-size:13px;color:#c9d2dc}
@media(max-width:760px){.hcard{padding:24px 16px}.hcard h1{font-size:28px}.hsub{font-size:15px}.hbrand{font-size:24px}.hgo{grid-template-columns:1fr 1fr;gap:10px}#homeView{padding:18px 10px;min-height:auto}}
/* review batch 10/23 */
header{flex-wrap:wrap;row-gap:6px}header nav{display:flex;flex:1 1 420px;overflow-x:auto;min-width:0}.who{margin-left:auto;flex:0 0 auto}
.hero h1,.hero p,.count,.cocon{text-shadow:0 2px 8px rgba(0,0,0,.85)}
.count{background:rgba(8,16,28,.6);display:inline-block;padding:4px 10px;border-radius:8px}
#coDetail h3{background:#e8eef5;color:#0d1b2a;padding:6px 12px;border-radius:8px}
.fgo{background:#1E3A5F;color:#fff;font-size:16px;font-weight:700;margin-top:10px}
.bnote{font-size:12px;font-weight:700;color:#8a1c1c;background:#fde8e8;border:1px solid #f3b5b5;padding:6px 8px;border-radius:6px;margin:4px 0}
.tag.noam{background:#fff4dc;color:#7a5520}
.costrip{padding:10px 14px;margin-bottom:14px}#coNames{display:flex;gap:6px;overflow-x:auto;padding:6px 0 8px;-webkit-overflow-scrolling:touch}
#coNames a{flex:0 0 auto;white-space:nowrap;background:#0d1b2a;color:#fff;padding:7px 12px;border-radius:18px;font-size:13px;cursor:pointer}#coNames a:hover{background:#5B7C99;color:#fff}
#coUpd{margin:10px 0 16px;max-height:none}#coUpd details{border-top:1px solid #e5e8ec;padding:4px 0}.updt{white-space:pre-wrap;font-size:12px;max-height:480px;overflow:auto;background:#f7f8fa;padding:10px;border-radius:8px}
.cocon{color:#fff}.cocon a{color:#7A9BB8}
@media (max-width:820px){body{padding-bottom:84px}main,footer{padding-bottom:84px!important}#filters{padding-bottom:90px!important}#more{margin-bottom:40px}}
.vl{display:block;text-align:center;background:#0d1b2a;color:#fff!important;font-weight:700;font-size:14px;padding:10px;border-radius:8px;text-decoration:none;margin-top:4px}.vl:hover{background:#5B7C99;color:#fff!important}
/* natural daylight backgrounds — no CSS brightness/HDR (10/25) */
.bgimg{filter:none}.shade{background:linear-gradient(180deg,rgba(8,16,28,.14),rgba(8,16,28,.42))!important}
header{background:rgba(8,16,28,.72)}.hcard{background:rgba(8,16,28,.52)}
.hero{background:rgba(8,16,28,.50);border-radius:14px;margin:14px 32px 10px;padding:16px 22px!important}
.count,.cocon{background:rgba(8,16,28,.68);padding:6px 12px;border-radius:8px;display:inline-block}#coDetail h2,#coDetail h3{background:#e8eef5;color:#0d1b2a;padding:6px 12px;border-radius:8px;display:inline-block;text-shadow:none}
footer{background:rgba(8,16,28,.70);color:#dfe5ec}
@media (max-width:820px){.hero{margin:8px 10px}}
/* independent filter scroll (desktop/tablet) */
@media (min-width:821px){#filters{position:sticky!important;top:var(--hh,72px);max-height:calc(100vh - var(--hh,72px) - 16px);overflow-y:auto;overscroll-behavior:contain}}
.leaflet-control-zoom a{width:40px!important;height:40px!important;line-height:40px!important;font-size:22px!important}
/* sticky fix: hidden overflow on html/body made them scroll containers */
html,body{overflow-x:clip!important;overflow-y:visible!important}
#app{overflow:visible!important}
@media (min-width:821px){#filters{position:sticky!important;top:var(--hh,72px)!important;max-height:calc(100vh - var(--hh,72px) - 12px)!important;overflow-y:auto!important;overscroll-behavior:contain;align-self:start}}
/* two-pane search view >=600px */
@media (min-width:600px){
 html:has(body.sv:not(.home)),body.sv:not(.home){height:100dvh!important;overflow:hidden!important;padding-bottom:0!important}
 body.sv:not(.home) #app{display:grid!important;height:100dvh!important;overflow:hidden!important;grid-template-columns:minmax(240px,300px) 1fr!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;grid-template-areas:"h h" "hero hero" "f m" "ft ft"!important}
 body.sv:not(.home) #filters,body.sv:not(.home) main{min-height:0!important;height:100%!important;max-height:none!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}
 body.sv:not(.home) #filters{position:static!important;transform:none!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;width:auto!important;z-index:auto;border-radius:12px;margin:0 0 8px 12px!important;padding-bottom:18px!important;align-self:stretch;box-sizing:border-box}
 body.sv:not(.home) main{padding:0 16px 16px 16px!important;align-self:stretch}
 body.sv:not(.home) footer{padding:6px 16px!important;font-size:11px}
 body.sv:not(.home) .fbtn,body.sv:not(.home) #fclose{display:none!important}
}
@media (min-width:600px){body.sv:not(.home) .hero{padding:10px 16px 6px!important}body.sv:not(.home) .hero h1{font-size:24px!important}}
/* v3 independent filter scroll: always-visible scrollbar + full-height phone drawer */
#filters{overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#5B7C99 rgba(0,0,0,.08)}
#filters::-webkit-scrollbar{width:8px;-webkit-appearance:none}#filters::-webkit-scrollbar-thumb{background:#5B7C99;border-radius:8px}#filters::-webkit-scrollbar-track{background:rgba(0,0,0,.06)}
@media (max-width:599px){
 #filters{top:0!important;bottom:0!important;height:100vh!important;height:100dvh!important;max-height:none!important;border-radius:0!important;overflow-y:scroll!important;touch-action:pan-y;padding-bottom:calc(40px + env(safe-area-inset-bottom))!important;box-sizing:border-box}
 #fclose{position:sticky;top:0;z-index:5}
 html.fopen,body.fopen{overflow:hidden!important;height:100%!important}
}
/* v4: Search Now always reachable + extra bottom room (window may extend under Windows taskbar) */
@media (min-width:600px){
 body.sv:not(.home) #filters{touch-action:pan-y!important;pointer-events:auto!important;padding-bottom:160px!important}
 body.sv:not(.home) #filters .fgo{position:sticky;bottom:8px;z-index:6;box-shadow:0 -6px 16px rgba(255,255,255,.9)}
 #fgoTop{display:block!important;position:sticky;top:0;z-index:7;width:100%;margin:0 0 10px}
}
#fgoTop{display:none}
/* v5 phone pass (<600px only; desktop untouched) */
#mbar{display:none}
@media (max-width:599px){
 html,body{-webkit-text-size-adjust:100%}
 body.sv .hero,body.mp .hero{padding:8px 12px!important;margin:6px 8px!important}body.sv .hero h1,body.mp .hero h1{font-size:18px!important;margin:0}body.sv .hero p,body.mp .hero p{font-size:12px;margin:2px 0 0}
 #fbtn{display:none!important}
 #mbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:900;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(13,27,42,.96);box-shadow:0 -4px 14px rgba(0,0,0,.25)}
 body.home #mbar{display:none}
 #mbar button{flex:1;min-height:48px;border:0;border-radius:12px;font:700 16px Inter,sans-serif;background:#1E3A5F;color:#fff}
 #mbar button.alt{background:#DCE6F0;color:#0F2744}
 .card.lc{font-size:15px}.card.lc a[href^="tel:"],.card.lc a[href^="mailto:"]{display:inline-block;min-height:40px;line-height:40px;padding:0 4px;word-break:break-all}
 .card.lc button,.card.lc a.btn,#cards .ghost,#more{min-height:48px;font-size:16px}
 .card.lc .ph{height:150px}
 #cards img{max-width:100%;height:auto}
 #map{height:calc(100dvh - 190px)!important;min-height:360px;border-radius:10px}
 .leaflet-popup-content{font-size:15px;line-height:1.4;max-width:78vw!important;max-height:55vh;overflow:auto}
 .leaflet-popup-content a{display:inline-block;min-height:36px;line-height:36px}
 #filters .fgo{position:sticky;bottom:0;z-index:6;min-height:52px;font-size:17px;box-shadow:0 -8px 16px rgba(255,255,255,.95)}
 #filters{padding-bottom:calc(16px + env(safe-area-inset-bottom))!important}
 #filters.open~#mbar,body.fopen #mbar{display:none}
 table{font-size:13px}#v-admin input,#v-admin button{min-height:44px;font-size:16px}#v-admin .row{flex-wrap:wrap}
 .login input,.login button{min-height:48px;font-size:16px!important}
}
/* v6: single Search Now, normal button at the very end of the panel */
#filters .fgo,body.sv:not(.home) #filters .fgo{position:static!important;bottom:auto!important;box-shadow:none!important;margin-top:16px;z-index:auto}
@media (min-width:600px){body.sv:not(.home) #filters{padding-bottom:20px!important}}
/* v7: OP / incentive highlight */
.opbadge{display:inline-block;background:#16a34a;color:#fff;font-weight:800;letter-spacing:.04em;padding:4px 10px;border-radius:999px;font-size:12px}
#fop{border:2px solid #16a34a!important;font-weight:700;color:#0f5132}
#fop.hi{background:#16a34a!important;color:#fff!important}
#fop option{color:#111;background:#fff}
.tag.op,.tag.pop{background:#16a34a!important;color:#fff!important;font-weight:800!important;border:0!important;padding:3px 10px!important;border-radius:999px!important}
.tag.pop{background:#22c55e!important}
.tag.inc{background:#f97316!important;color:#fff!important;font-weight:800!important;border:0!important;padding:3px 10px!important;border-radius:999px!important}
.tag.inc a{color:#fff!important}
.leaflet-popup-content .tag{font-size:12px;margin-left:2px}
.tag.nnote{background:#eef2f7!important;color:#334155!important;font-weight:500;white-space:normal}
#filters{background:#EEF3F8!important;backdrop-filter:none!important}

/* Management tab: vertical searchable index, no horizontal scroll */
.mgidx{margin-bottom:16px}.mgh{margin:0 0 10px;font-family:Playfair Display;color:#0d1b2a}
#coQ{width:100%;box-sizing:border-box;font-size:16px;padding:12px 14px;border:1px solid #cfd6de;border-radius:10px;margin-bottom:6px}
#coIdx{margin-top:10px;column-width:340px;column-gap:22px}
.mgco{break-inside:avoid;padding:10px 0;border-top:1px solid #e5e8ec}
.mgn{font-weight:700;font-size:16px;color:#0d1b2a;cursor:pointer;text-decoration:underline;text-decoration-color:#5B7C99;text-underline-offset:3px}.mgn:hover{color:#1E3A5F}
.mgb{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.mgb a{background:#eef2f6;color:#0d1b2a;padding:5px 10px;border-radius:14px;font-size:13px;cursor:pointer;max-width:100%;overflow-wrap:anywhere}
.mgb a i{font-style:normal;color:#1E3A5F;font-weight:700}.mgb a:hover{background:#5B7C99;color:#fff}
.mghead{margin-bottom:14px}.mghead h2{margin:8px 0 2px;font-family:Playfair Display;color:#0d1b2a;overflow-wrap:anywhere;background:#e8eef5;padding:8px 14px;border-radius:10px;display:inline-block;text-shadow:none}
.mgback{width:auto!important;color:#0d1b2a!important;margin-right:8px}
.mgbh{color:#0d1b2a;overflow-wrap:anywhere;background:#e8eef5;padding:8px 12px;border-radius:8px}.mgbh span{color:#1E3A5F;font-size:13px;font-weight:600}
.ukind{display:inline-block;font-size:11px;font-weight:700;padding:2px 8px;border-radius:10px;margin:0 4px}
.ukind.lf{background:#dbeafe;color:#1e3a8a}.ukind.mu{background:#ede9fe;color:#5b21b6}
#coUpd summary{cursor:pointer;overflow-wrap:anywhere}
@media(max-width:700px){#coIdx{column-width:auto;columns:1}.updt{font-size:11px}}

.azbar{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0;max-width:100%}
.azbar button{min-width:30px;padding:5px 7px;border:1px solid #cfd8e3;border-radius:8px;background:#DCE6F0;color:#1E3A5F;font-weight:600;cursor:pointer}
.azbar button.on{background:#1E3A5F;color:#fff}
.azbar button:disabled{opacity:.35;cursor:default;background:#f2f2f2}

.coqrow{display:flex;gap:8px;align-items:stretch;margin:8px 0}.coqrow #coQ{flex:1;min-width:0;margin:0}.cogo{flex:none;padding:0 18px;font-weight:700;border-radius:10px;background:#1E3A5F;color:#fff;border:0;cursor:pointer;min-height:42px;font-size:16px}

.azbar{display:flex!important;flex-wrap:wrap;gap:4px}.azbar button{width:auto!important;min-width:30px;flex:0 0 auto!important;padding:4px 6px!important;margin:0!important;display:inline-block!important}
@media(max-width:600px){.azbar button{min-width:28px;font-size:13px}.coqrow .cogo{width:auto!important;flex:none!important}}

.flyerlink{margin-left:8px;padding:2px 8px;border-radius:10px;background:#1d4ed8;color:#fff!important;font-size:12px;text-decoration:none;white-space:nowrap}

/* Original update = landlord flyer/PDF (NOT MPG Tue/Fri, NOT ListingForce) — impossible to miss */
.ukind.orig{background:#dc2626!important;color:#fff!important;border:1px solid #991b1b;box-shadow:0 0 0 2px rgba(220,38,38,.35);text-transform:none;letter-spacing:.03em;padding:3px 10px;border-radius:6px 6px 0 0;font-size:12px;font-weight:800}
.origct{color:#dc2626!important;font-weight:800}
.updsec{margin-top:12px}.updsecH{font-size:13px;font-weight:800;color:#0d1b2a;margin:8px 0 4px;text-transform:uppercase;letter-spacing:.04em}
.origsec{border:2px solid #dc2626;border-radius:12px;padding:8px 12px;background:#fef2f2;margin:10px 0 14px}
.origsec .updsecH{color:#b91c1c}
.formslist{margin-top:12px}.flul{padding-left:18px;line-height:1.8}.placeholder-forms{background:#f7f8fa;border:1px dashed #cfd5dc;border-radius:12px;padding:18px;color:#3a4450}
#formsNote{margin:6px 0 12px}

/* Useful forms — jump buttons + download cards */
.formsidx .formjumps{display:flex;flex-wrap:nowrap;gap:.5rem;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:.35rem 0 .75rem;margin:0 0 .5rem;scrollbar-width:thin}
.formsidx .formjump{flex:0 0 auto;border:1px solid rgba(0,0,0,.12);background:#eef2ff;color:#1e293b;border-radius:999px;padding:.45rem .9rem;font:inherit;font-weight:600;cursor:pointer;white-space:nowrap}
.formsidx .formjump:hover,.formsidx .formjump:active{background:#dbeafe;border-color:#93c5fd}
.formsidx .formjump.on{background:#2563eb;color:#fff;border-color:#1d4ed8}
.formsidx .formcard.hidden{display:none!important}
.formsidx .formcards{display:flex;flex-direction:column;gap:.75rem}
.formsidx .formcard{display:flex;flex-direction:column;gap:.35rem}
.formsidx .formtitle{margin:0;font-size:1.15rem}
.formsidx .formdl{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;margin-top:.15rem;padding:.4rem .75rem;border-radius:8px;background:#2563eb;color:#fff;font-weight:700;text-decoration:none;min-height:34px;font-size:13px;border:0;font:inherit;cursor:pointer}
.formsidx .formdl:hover{background:#1d4ed8}
@media (max-width:520px){.formsidx .formdl{width:100%;text-align:center}}

.formsidx .formdlrow{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.35rem}
.formsidx .formdl-word{background:#0f766e}
.formsidx .formdl-word:hover{background:#0d9488}
.formsidx .formdl-open{background:#15803d}
.formsidx .formdl-open:hover{background:#166534}
@media (max-width:520px){.formsidx .formdlrow .formdl{flex:1 1 100%;width:auto;text-align:center}}

/* In-app PDF viewer — slim equal tabs */
.pdfview{position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;background:#0f172a;color:#fff}
.pdfview.hidden{display:none!important}
.pdfbar-top{
  z-index:10001;flex:0 0 auto;display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;padding:6px 8px;
  background:#111827;border-bottom:1px solid rgba(255,255,255,.12);
}
.pdfbar-bottom{display:none!important}
.pdfbtn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:32px;max-height:36px;padding:6px 4px;margin:0;
  border:0;border-radius:8px;font:700 12px/1.1 Inter,system-ui,sans-serif;
  text-align:center;text-decoration:none;cursor:pointer;white-space:nowrap;
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;
}
.pdfback{background:#3d4f66;color:#f0f4f8}
.pdfback:active{background:#2f3e52}
.pdftype{background:#4a6fa5;color:#f0f4f8}
.pdftype:active{background:#3b5a86}
.pdfprint{background:#5b7c99;color:#f0f4f8}
.pdfprint:active{background:#4a6680}
.pdfopentab{background:#334155;color:#e2e8f0}
.pdfopentab:active{background:#475569}
.pdftitle,.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.pdfstage{position:relative;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;background:#525659}
.pdfframe{flex:1 1 auto;width:100%;height:100%;border:0;background:#525659;min-height:0}
.pdfhint{margin:0;padding:4px 8px;font-size:10px;line-height:1.25;color:#cbd5e1;background:#1e293b}
.pdfhint.hidden{display:none!important}
body.pdf-open{overflow:hidden;overscroll-behavior:none}
.pdfactions{display:contents}



.formsidx .formdl-print{background:#0284c7}
.formsidx .formdl-print:hover,.formsidx .formdl-print:active{background:#0369a1}

.formsidx .formdlrow{gap:.35rem;margin-top:.15rem}
.formsidx .formdlrow .formdl{min-height:32px;padding:.35rem .65rem;font-size:12px}


/* Search select + compress/print pack */
.card.lc{position:relative}
.card.lc .pick{position:absolute;top:8px;left:8px;z-index:3;background:rgba(255,255,255,.95);border-radius:6px;padding:3px;box-shadow:0 1px 4px rgba(0,0,0,.25);line-height:0;cursor:pointer}
.card.lc .pickcb{width:18px;height:18px;margin:0;accent-color:#1d4ed8;cursor:pointer}
.selbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 12px;padding:8px 10px;border-radius:12px;background:rgba(13,27,42,.94);color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.28);position:sticky;top:8px;z-index:40}
.selbar.hidden{display:none!important}
.selcount{font:700 12px/1.2 Inter,system-ui,sans-serif;margin-right:4px;white-space:nowrap}
.selbtn{border:0;border-radius:8px;padding:6px 10px;min-height:30px;font:700 11px/1.15 Inter,system-ui,sans-serif;cursor:pointer;background:#e2e8f0;color:#0d1b2a;white-space:nowrap}
.selbtn.selpri{background:#1E3A5F;color:#fff}
.selbtn.selprint{background:#38bdf8;color:#0d1b2a}
.selbtn:active{filter:brightness(.95)}
.packview{position:fixed;inset:0;z-index:10050;display:flex;flex-direction:column;background:#f4f6f8;color:#0d1b2a}
.packview.hidden{display:none!important}
.packbar{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px 10px;background:#111827;color:#fff;border-bottom:1px solid rgba(255,255,255,.12)}
.packbar .selcount{color:#e2e8f0}
.packbody{flex:1 1 auto;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:12px;-webkit-overflow-scrolling:touch}
.pk-card{background:#fff;border:1px solid #e5e8ec;border-radius:12px;padding:14px 16px;break-inside:avoid;page-break-inside:avoid}
.pk-rent{font-weight:800;font-size:18px;color:#0d1b2a;margin-bottom:4px}
.pk-bld{font-weight:700;font-size:15px;margin-bottom:4px}
.pk-meta,.pk-am{font-size:13px;color:#475569;margin:2px 0}
.pk-co{margin-top:8px;padding-top:8px;border-top:1px solid #eef0f3;font-size:12px}
.pk-own{font-size:12px;margin-top:6px}
.pk-warn{font-size:12px;color:#b45309;margin-top:6px;font-weight:600}
.pk-tags{margin:6px 0;display:flex;flex-wrap:wrap;gap:4px}
body.pack-open{overflow:hidden}
@media (max-width:599px){
 .selbar{position:fixed;left:8px;right:8px;bottom:calc(58px + env(safe-area-inset-bottom));top:auto;margin:0;padding:8px;gap:5px}
 body.hassel #v-search{padding-bottom:150px}
 .selbtn{padding:5px 8px;font-size:10px;min-height:28px}
 .selcount{font-size:11px;width:100%}
 .card.lc .pickcb{width:20px;height:20px}
}
@media print{
 body.printing-pack #bg,body.printing-pack header,body.printing-pack .hero,body.printing-pack #filters,body.printing-pack #fbtn,body.printing-pack #mbar,body.printing-pack footer,body.printing-pack #login,body.printing-pack #pdfView,body.printing-pack #homeView,body.printing-pack #v-map,body.printing-pack #v-companies,body.printing-pack #v-owners,body.printing-pack #v-fsbo,body.printing-pack #v-forms,body.printing-pack #v-admin,body.printing-pack #v-search,body.printing-pack .packbar{display:none!important}
 body.printing-pack #packView{display:block!important;position:static;inset:auto;background:#fff;color:#000}
 body.printing-pack #packBody{display:block;padding:0;overflow:visible}
 body.printing-pack .pk-card{box-shadow:none;border:1px solid #ccc;margin:0 0 10px;border-radius:0;page-break-inside:avoid}
 @page{margin:12mm}
}




/* Home after sign-in: buttons only (no logo/login info dump) */
body.home #homeView{align-items:flex-start;padding-top:16px}
.hcard-go{background:rgba(8,16,28,.45);padding:16px 14px;max-width:720px;width:100%}
.hcard-go .hgo{margin-top:0}
@media(max-width:760px){
  body.home #homeView{padding:12px 10px 24px;min-height:auto;align-items:stretch}
  .hcard-go{padding:12px 10px;border-radius:14px}
  .hcard-go .hgo{grid-template-columns:1fr 1fr;gap:10px}
  .hcard-go .hgo button[data-go="admin"]{grid-column:1/-1}
}

/* Force-hide post-login home brand (even if phone has old HTML cached) */
body.home .hcard > img.hl,
body.home .hcard > h1,
body.home .hcard > .hsub,
body.home .hcard > .hbrand,
body.home .hcard > .hest,
body.home .hcard > .hcred{display:none!important}
body.home .hcard{padding:14px 12px!important;background:rgba(8,16,28,.4)!important;box-shadow:none!important}

/* Useful forms: dropdown picker (not all names listed) */
.formsidx .formpick-lab{display:block;font-weight:700;font-size:14px;margin:0 0 .35rem;color:#0f172a}
.formsidx .formpick{
  display:block;width:100%;box-sizing:border-box;
  appearance:auto;-webkit-appearance:menulist;
  font:600 16px/1.3 Inter,system-ui,sans-serif;
  padding:.75rem .9rem;border-radius:12px;
  border:1px solid rgba(0,0,0,.18);background:#fff;color:#0f172a;
  min-height:48px;margin:0 0 .65rem;
}
.formsidx .formjumps,.formsidx .formjumps-scroll{display:none!important}
/* Hide Search listings hero / listing counts on Useful forms & other non-search tabs */
body.forms .hero,body.notsearch .hero,body.forms #fbtn,body.notsearch #fbtn,body.forms #mbar{display:none!important}
body.forms main,body.notsearch main{padding-top:10px}

.owninfo{margin:12px auto 4px;padding:10px 12px;border-top:1px solid rgba(255,255,255,.25);font-size:14px;line-height:1.45;text-align:center}.owninfo p{margin:2px 0}.owninfo .own,footer .own{font-weight:700}.owninfo a{color:inherit;text-decoration:underline}footer div{margin:2px 0}@media(max-width:480px){.owninfo{font-size:13px}footer{font-size:12px}}

.homeown{margin-top:16px;padding:12px;border-top:1px solid rgba(0,0,0,.12);font-size:14px;line-height:1.5;text-align:center;display:block!important}
.homeown b{font-size:14px}
.homeown a{color:inherit;text-decoration:underline}


/* Fixed ownership bar — every page incl. signed-in Home (outside #app so body.home cannot hide it) */
#ownBar.ownbar, .ownbar{
  position:fixed!important;left:0!important;right:0!important;bottom:0!important;
  z-index:10050!important;display:block!important;visibility:visible!important;opacity:1!important;
  background:rgba(8,16,28,.94)!important;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-top:1px solid rgba(212,176,106,.4);
  color:#e8eef5;text-align:center;
  padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));
  font:500 12px/1.35 Inter,system-ui,sans-serif;
  pointer-events:auto;box-sizing:border-box;
}
.ownbar-own{color:#7A9BB8;font-weight:600;font-size:11px;letter-spacing:.03em;margin:0 0 2px}
.ownbar-line{color:#dfe5ec;margin:0;word-wrap:break-word}
.ownbar a{color:#7A9BB8;text-decoration:none}
body{padding-bottom:calc(56px + env(safe-area-inset-bottom,0px))!important}
body.home{padding-bottom:calc(56px + env(safe-area-inset-bottom,0px))!important}
/* Keep #mbar above the ownership bar on Search */
@media (max-width:820px){
  #mbar{bottom:calc(52px + env(safe-area-inset-bottom,0px))!important}
  body{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))!important}
  body.home,body.forms,body.notsearch{padding-bottom:calc(56px + env(safe-area-inset-bottom,0px))!important}
}
body.printing-pack #ownBar,body.printing-pack .ownbar{display:none!important}
@media(max-width:480px){.ownbar{font-size:11px;padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px))}.ownbar-own{font-size:10px}}

#app>footer,footer{display:none!important}.ownbar-own{display:none!important}

/* My CRM — full-viewport app shell (hides site chrome), MPG navy frost */
body.crm{
  background:#0d1b2a!important;
  padding-bottom:0!important;
  overflow:hidden!important;
}
body.crm #bg{display:none!important}
body.crm #ownBar,body.crm .ownbar{display:none!important}
body.crm #app>header,body.crm header{display:none!important}
body.crm #app{
  grid-template-columns:1fr!important;
  grid-template-areas:"m"!important;
  display:block!important;
  min-height:100dvh;
  height:100dvh;
  overflow:hidden;
  background:#EEF3F8;
}
body.crm #homeView,body.crm .hero,body.crm #fbtn,body.crm #mbar,body.crm #filters{display:none!important}
body.crm main{
  padding:0!important;margin:0!important;max-width:none!important;
  height:100dvh;overflow:hidden;display:flex;flex-direction:column;
}
body.crm #v-crm{
  flex:1;min-height:0;height:100%;display:flex;flex-direction:column;
}
body.crm #v-crm.hidden{display:none!important}
body.crm #crmDash.hidden{display:none}

.crmshell{
  display:grid;
  grid-template-columns:232px minmax(0,1fr);
  flex:1;min-height:0;height:100%;
  background:#EEF3F8;
  border-radius:0;
  overflow:hidden;
  border:0;
  box-shadow:none;
  max-width:none;
  margin:0;
  position:relative;
}
.crmscrim{
  display:none;position:fixed;inset:0;background:rgba(8,16,28,.45);z-index:40;
}
.crmnavside{
  background:linear-gradient(180deg,#0d1b2a 0%,#16304f 55%,#1E3A5F 100%);
  color:#fff;
  padding:18px 12px 16px;
  display:flex;
  flex-direction:column;
  gap:2px;
  z-index:50;
  min-height:0;
  overflow-y:auto;
}
.crmbrand{display:flex;align-items:center;gap:10px;padding:4px 8px 18px;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:12px}
.crmbrand-mark{
  width:40px;height:40px;border-radius:10px;background:rgba(220,230,240,.18);
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;letter-spacing:.04em;
  border:1px solid rgba(220,230,240,.28);color:#DCE6F0;flex-shrink:0;
}
.crmbrand-name{font-weight:700;font-size:14px;letter-spacing:.01em;line-height:1.2}
.crmbrand-sub{font-size:11px;color:#9fb3c9;font-weight:600;margin-top:2px;letter-spacing:.04em;text-transform:uppercase}
.crmnavlist{display:flex;flex-direction:column;gap:4px;flex:1}
.crmnavitem{
  display:flex;align-items:center;gap:10px;width:100%;text-align:left;
  min-height:44px;padding:10px 12px;border-radius:10px;border:0;margin:0;
  background:transparent;color:#DCE6F0;font-weight:600;font-size:14px;cursor:pointer;
}
.crmnavitem:hover{background:rgba(220,230,240,.1)}
.crmnavitem.on{background:rgba(220,230,240,.18);color:#fff;box-shadow:inset 0 0 0 1px rgba(220,230,240,.22)}
.crmnavico{width:22px;text-align:center;opacity:.95;flex-shrink:0}
.crmnavfoot{margin:10px 8px 4px;font-size:11px;line-height:1.4;color:#8aa0b8}
.crmnavexit{margin:12px 4px 0;padding-top:12px;border-top:1px solid rgba(255,255,255,.12)}
.crmexit{
  width:100%;min-height:42px;padding:10px 12px;margin:0;border:0;border-radius:10px;
  background:rgba(220,230,240,.12);color:#DCE6F0;font-weight:700;font-size:13px;cursor:pointer;text-align:left;
}
.crmexit:hover{background:rgba(220,230,240,.22);color:#fff}
.crmexit-top{
  width:auto;min-height:36px;padding:8px 12px;background:var(--frost-navy);color:#fff;font-size:13px;border-radius:9px;text-align:center;
}

.crmmain{min-width:0;padding:0;background:linear-gradient(180deg,#f3f7fb 0%,#eef3f8 100%);overflow:hidden;display:flex;flex-direction:column;min-height:0}
.crmapptop{
  display:none;align-items:center;gap:10px;padding:10px 12px;
  background:linear-gradient(180deg,#0d1b2a 0%,#16304f 100%);color:#fff;
  border-bottom:1px solid rgba(255,255,255,.1);flex-shrink:0;position:sticky;top:0;z-index:30;
}
.crmmenubtn{
  width:42px!important;min-width:42px;min-height:42px;padding:0!important;margin:0!important;
  border-radius:10px;background:rgba(220,230,240,.14);color:#fff;border:0;font-size:20px;font-weight:700;cursor:pointer;
}
.crmapptop-brand{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.15}
.crmapptop-title{font-weight:700;font-size:15px}
.crmapptop-sub{font-size:11px;color:#9fb3c9;font-weight:600}

.crmpane{padding:18px 20px 22px;overflow-x:hidden;overflow-y:auto;flex:1;min-height:0;-webkit-overflow-scrolling:touch}
.crmpagehead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 14px;flex-wrap:wrap}
.crmpagetitle{margin:0;font-size:22px;font-weight:700;color:var(--frost-navy);letter-spacing:-.01em}
.crmpagesub{margin:4px 0 0;font-size:13px;color:var(--muted);line-height:1.4;max-width:52ch}
.crmpagesub b{color:var(--frost-text)}

/* KPI stats — stay in one row like desktop (even on phone) */
.crmstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}
.crmstat{background:#fff;border:1px solid #d5dee8;border-radius:16px;padding:16px 18px;display:flex;align-items:center;gap:14px;box-shadow:0 2px 8px rgba(15,39,68,.04);min-width:0}
.crmstat-ico{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;flex-shrink:0}
.crmstat-ico-leads{background:#dbeafe;color:#1d4ed8}
.crmstat-ico-deals{background:#dcfce7;color:#15803d}
.crmstat-ico-due{background:#ede9fe;color:#5b21b6}
.crmstat-body{min-width:0}
.crmstat-n{font-size:28px;font-weight:700;color:var(--frost-navy);line-height:1.1}
.crmstat-l{font-size:12px;color:var(--muted);font-weight:600;letter-spacing:.02em}
.crmstat-sub{font-size:11px;color:#22c55e;font-weight:600;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crmstat-due{background:#faf9ff;border-color:#d4d0f0}
.crmstat-due .crmstat-n{color:#3d3f8f}
.crmstat-due .crmstat-sub{color:#6d28d9}

/* Dashboard layout: board + side rail */
.crmdash{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:14px;align-items:start}
.crmdash-main{min-width:0}
.crmdash-side{display:flex;flex-direction:column;gap:12px;position:sticky;top:12px}
.crmwidget{background:#fff;border:1px solid #d5dee8;border-radius:16px;padding:14px 16px;box-shadow:0 2px 8px rgba(15,39,68,.04)}
.crmwidget h4{margin:0 0 12px;color:var(--frost-navy);font-size:15px;font-weight:700}
.crmfeed,.crmtasks{display:flex;flex-direction:column;gap:10px;max-height:280px;overflow-y:auto}
.crmfeed-item,.crmtask{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.35}
.crmfeed-dot{width:28px;height:28px;border-radius:8px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff}
.crmfeed-dot.new{background:#3b82f6}
.crmfeed-dot.stage{background:#22c55e}
.crmfeed-dot.search{background:#a855f7}
.crmfeed-dot.follow{background:#eab308;color:#422006}
.crmfeed-dot.note{background:#14b8a6}
.crmfeed-dot.email{background:#0ea5e9}
.crmfeed-body{min-width:0;flex:1}
.crmfeed-body b{color:var(--frost-navy);font-weight:600}
.crmfeed-time{font-size:11px;color:var(--muted);margin-top:2px}
.crmtask{background:#f8fafc;border-radius:10px;padding:10px 12px;border:1px solid #e8eef5;cursor:pointer}
.crmtask:hover{border-color:var(--accent);background:#fff}
.crmtask-check{width:18px;height:18px;border:2px solid #c5d0dc;border-radius:5px;flex-shrink:0;margin-top:1px;background:#fff}
.crmtask-body{min-width:0;flex:1}
.crmtask-body b{color:var(--frost-navy);display:block;font-size:13px}
.crmtask-when{font-size:11px;font-weight:700;margin-top:2px}
.crmtask-when.today{color:#c2410c}
.crmtask-when.soon{color:#1d4ed8}
.crmtask-when.later{color:var(--muted)}
.crmside-empty{font-size:12px;color:var(--muted);padding:4px 0;line-height:1.4}

.crmtoolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;flex-wrap:wrap}
.crmov{margin:0;font-size:17px;color:var(--frost-navy);font-weight:700}
.crmaddtop{width:auto;min-height:40px;padding:8px 16px;border-radius:10px;font-size:14px;font-weight:700;background:var(--frost-navy);color:#fff;border:0;margin:0}
.crmemptyhint{margin:0 0 10px;padding:10px 14px;background:#fff;border-radius:10px;border:1px dashed #c5d0dc}
.crmbig{width:100%;min-height:48px;padding:14px 16px;border-radius:12px;font-size:16px;font-weight:700;background:var(--frost-navy);color:#fff;border:0}
button.crmbig.ghost,.crmbig.ghost{background:#DCE6F0;color:var(--frost-text);border:1px solid #c5d0dc}
.crmform{margin:0 0 14px;padding:14px;background:#fff;border-radius:12px;border:1px solid #d5dee8}

/* Kanban — 6 columns on desktop; same board language on phone via horizontal scroll */
.crmboard{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  padding:2px 0 8px;
  overflow:visible;
}
.crmcol{
  min-width:0;
  background:#f4f7fb;border-radius:14px;padding:0 0 8px;
  display:flex;flex-direction:column;gap:0;min-height:240px;
  border:1px solid #e2e8f0;overflow:hidden;
}
.crmcol-h{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:11px;padding:10px 10px;color:#fff;letter-spacing:.01em;gap:6px}
.crmcol-h span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crmcol-h em{font-style:normal;background:rgba(255,255,255,.28);border-radius:999px;padding:2px 7px;font-size:11px;color:#fff;font-weight:700;flex-shrink:0}
.crmcol.st-new .crmcol-h{background:#3b82f6}
.crmcol.st-contacted .crmcol-h{background:#22c55e}
.crmcol.st-showing .crmcol-h{background:#eab308;color:#422006}
.crmcol.st-showing .crmcol-h em{color:#422006;background:rgba(255,255,255,.45)}
.crmcol.st-applied .crmcol-h{background:#a855f7}
.crmcol.st-lease .crmcol-h{background:#14b8a6}
.crmcol.st-closed .crmcol-h{background:#64748b}
.crmcol-cards{display:flex;flex-direction:column;gap:8px;flex:1;padding:10px 8px 4px;min-height:80px}
.crmcol-empty{font-size:11px;color:#94a3b8;margin:8px 4px;text-align:center}

/* Lead cards */
.crmlead{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px rgba(15,39,68,.05);transition:box-shadow .15s,border-color .15s}
.crmlead:hover{border-color:#b8c6d6;box-shadow:0 4px 12px rgba(15,39,68,.1)}
.crmlead-open{width:100%;text-align:left;background:transparent;color:inherit;border:0;border-radius:0;padding:12px 12px 8px;margin:0;font:inherit;cursor:pointer;display:block}
.crmlead-open b.crmlead-name{color:var(--frost-navy);font-size:13px;display:block;margin-bottom:4px}
.crmlead-interest{font-size:11px;color:var(--muted);line-height:1.35;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.crmlead-budget{font-size:15px;font-weight:700;color:var(--frost-navy);margin-bottom:6px}
.crmlead-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.crmlead-pill{display:inline-block;font-size:9px;font-weight:700;padding:3px 7px;border-radius:999px;text-transform:uppercase;letter-spacing:.03em}
.crmlead-pill.st-new{background:#dbeafe;color:#1d4ed8}
.crmlead-pill.st-contacted{background:#dcfce7;color:#15803d}
.crmlead-pill.st-showing{background:#fef9c3;color:#a16207}
.crmlead-pill.st-applied{background:#f3e8ff;color:#7e22ce}
.crmlead-pill.st-lease{background:#ccfbf1;color:#0f766e}
.crmlead-pill.st-closed{background:#e2e8f0;color:#475569}
.crmlead-acts{display:flex;gap:4px;align-items:center;padding:0 6px 8px;border-top:0}
.crmlead-acts .crmStageSel{flex:1;margin:0;padding:6px 2px;font-size:10px;min-height:34px}
.crmnav{width:32px!important;min-width:32px;padding:6px!important;margin:0!important;font-size:14px;background:#DCE6F0;color:var(--frost-navy);border:0;border-radius:8px}
.crmnav:disabled{opacity:.35}
.crmAddInCol{width:calc(100% - 16px);margin:4px 8px 8px;padding:10px;min-height:40px;font-size:12px;font-weight:600;background:transparent;color:#3b82f6;border:0;border-radius:8px}
.crmAddInCol:hover{background:rgba(59,130,246,.08)}
.crmdue{font-size:10px;margin-top:0;color:var(--muted);font-weight:600}
.crmdue.on{color:#5b21b6;background:#ede9fe;display:inline-block;padding:2px 6px;border-radius:6px}
.crmempty{padding:24px;background:#fff;border-radius:12px;border:1px dashed #c5d0dc;text-align:center}
.crmlist{display:flex;flex-direction:column;gap:10px}
.crmcard{background:#fff;border:1px solid #d5dee8;border-radius:12px;padding:12px 14px;cursor:pointer}
.crmcard-static{cursor:default}
.crmcard:hover{border-color:var(--accent)}
.crmcard-static:hover{border-color:#d5dee8}
.crmcard b{color:var(--frost-navy)}
.crmdetail{margin-top:8px;padding:16px;background:#fff;border-radius:14px;border:1px solid #d5dee8}
.crmleadhead{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;align-items:flex-start;margin:12px 0}
.crmleadhead h3{margin:0 0 6px;color:var(--frost-navy);font-size:22px}
.crmbadge{display:inline-block;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:#DCE6F0;color:var(--frost-navy)}
.crmbadge.st-new{background:#dbeafe;color:#1d4ed8}
.crmbadge.st-contacted{background:#dcfce7;color:#15803d}
.crmbadge.st-showing{background:#fef9c3;color:#a16207}
.crmbadge.st-applied{background:#f3e8ff;color:#7e22ce}
.crmbadge.st-lease{background:#ccfbf1;color:#0f766e}
.crmbadge.st-closed{background:#e2e8f0;color:#475569}
.crmstagebar .crmStageSel{width:auto;min-width:160px;min-height:44px;font-weight:600}
.crmactions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 16px}
.crmact{display:flex;align-items:center;justify-content:center;min-height:52px;border-radius:12px;background:var(--frost-navy);color:#fff!important;font-weight:700;font-size:16px;text-decoration:none;border:0;cursor:pointer;font-family:inherit}
button.crmact{appearance:none;-webkit-appearance:none;width:100%}
.crmact.disabled,.crmact[aria-disabled="true"],.crmact:disabled{opacity:.4;pointer-events:none;background:#94a3b8}
.crmgrid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.crmpanel{background:#f5f8fb;border-radius:12px;padding:14px}
.crmpanel h4{margin:0 0 10px;color:var(--frost-navy);font-size:15px}
.crmpanel textarea,.crmpanel input{width:100%}
.crmnotes{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.crmnote{background:#fff;border-radius:8px;padding:8px 10px;font-size:13px;border:1px solid #e5ebf2}
.crmnote .meta{font-size:11px}
.crmnoteadd{display:flex;gap:8px;margin-top:10px}
.crmnoteadd textarea{flex:1;min-height:64px;border:1px solid #d6dbe1;border-radius:10px;padding:8px;font:inherit}
.crmnoteadd button{width:auto;align-self:flex-end;padding:12px 16px}

.crmsteps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.crmstep{display:flex;gap:12px;align-items:flex-start}
.crmstep-n{
  width:28px;height:28px;border-radius:50%;flex-shrink:0;
  background:var(--frost-navy);color:#fff;font-weight:700;font-size:13px;
  display:flex;align-items:center;justify-content:center;margin-top:2px;
}
.crmstep-body{min-width:0;flex:1}
.crmstep-body h3{margin:0 0 6px;color:var(--frost-navy);font-size:16px}
.crmstep-body .meta{margin:0 0 8px}
.crmconnectcard{max-width:720px}

.crmconnectcard{background:#fff;border:1px solid #d5dee8;border-radius:16px;padding:18px 20px;max-width:640px;box-shadow:0 2px 8px rgba(15,39,68,.04)}
.crmconnectcard h3{margin:0 0 10px;color:var(--frost-navy);font-size:18px}

/* Leads list + Tasks full page */
.crmleadslist,.crmtasksfull{display:flex;flex-direction:column;gap:8px}

.crmtasks-empty{text-align:left;padding:20px 18px}
.crmtasks-empty > b{display:block;margin-bottom:14px;font-size:16px;color:var(--frost-navy);text-align:center}
.crmsteps-compact{gap:12px}
.crmsteps-compact .crmstep-n{width:24px;height:24px;font-size:12px}
.crmsteps-compact .crmstep-body h3{font-size:14px}
.crmtask-group{margin:0 0 18px}
.crmtask-group-h{margin:0 0 10px;font-size:15px;font-weight:700;color:var(--frost-navy);display:flex;align-items:center;gap:8px}
.crmtask-group-h em{font-style:normal;background:#DCE6F0;color:var(--frost-navy);border-radius:999px;padding:2px 8px;font-size:12px;font-weight:700}
.crmtask-group-overdue .crmtask-group-h{color:#9a3412}
.crmtask-group-overdue .crmtask-group-h em{background:#ffedd5;color:#9a3412}
.crmtask-group-today .crmtask-group-h{color:#1d4ed8}
.crmtask-group-today .crmtask-group-h em{background:#dbeafe;color:#1d4ed8}
.crmtask-cards{display:flex;flex-direction:column;gap:10px}
.crmtask-card{
  background:#fff;border:1px solid #c5d0dc;border-radius:14px;padding:14px 16px;
  box-shadow:0 2px 8px rgba(15,39,68,.06);cursor:pointer;
  transition:border-color .15s,box-shadow .15s;
}
.crmtask-card:hover{border-color:var(--frost-navy);box-shadow:0 4px 14px rgba(15,39,68,.1)}
.crmtask-card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.crmtask-card-task{display:block;font-size:15px;color:var(--frost-navy);margin-bottom:4px}
.crmtask-card-name{font-size:13px;color:var(--muted)}
.crmtask-card-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap}
.crmtask-acts{display:flex;gap:8px;flex-wrap:wrap}
.crmtask-act{
  display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;border-radius:9px;
  background:var(--frost-navy);color:#fff!important;font-weight:700;font-size:13px;text-decoration:none;
}
.crmtask-act:hover{background:#16304f}

.crmleadrow,.crmtaskrow{
  display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto auto;gap:10px;align-items:center;
  background:#fff;border:1px solid #d5dee8;border-radius:12px;padding:12px 14px;cursor:pointer;
  box-shadow:0 1px 3px rgba(15,39,68,.04);
}
.crmleadrow:hover,.crmtaskrow:hover{border-color:var(--accent)}
.crmleadrow b,.crmtaskrow b{color:var(--frost-navy);font-size:14px}
.crmleadrow .meta,.crmtaskrow .meta{font-size:12px;margin-top:2px}
.crmrow-empty{padding:28px;background:#fff;border-radius:12px;border:1px dashed #c5d0dc;text-align:center;color:var(--muted);font-size:14px}

.fsave{margin-top:8px!important}
.fsave-pri{background:var(--frost-navy)!important;color:#fff!important;border:0!important;font-weight:700;min-height:46px;font-size:15px}
.fsavebox{margin-top:8px;padding:12px;background:#eef3f8;border-radius:12px;border:1px solid #c5d0dc}
.fsave-go{background:var(--frost-navy);color:#fff;font-weight:700;min-height:48px;font-size:15px}
body.printing-pack #v-crm{display:none!important}



/* Phone subpage chrome: Back to Dashboard + full-width pane */
.crmsubbar{
  display:none;align-items:center;gap:10px;padding:10px 12px;
  background:#fff;border-bottom:1px solid #d5dee8;flex-shrink:0;
  position:sticky;top:0;z-index:28;
}
.crmbackdash{
  width:auto!important;min-height:40px;padding:8px 14px!important;margin:0!important;
  border-radius:10px;border:0;background:var(--frost-navy);color:#fff;
  font-weight:700;font-size:13px;cursor:pointer;flex-shrink:0;
}
.crmbackdash:hover{background:#16304f}
.crmsubbar-title{font-weight:700;font-size:15px;color:var(--frost-navy);min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.crmnavsep{height:1px;background:rgba(255,255,255,.12);margin:10px 8px;border:0}
.crmagent{
  display:flex;align-items:center;gap:10px;
  margin-top:auto;padding:12px 10px 8px;
  border-top:1px solid rgba(255,255,255,.12);
}
.crmagent-av{
  width:40px;height:40px;border-radius:50%;
  background:rgba(255,255,255,.18);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:13px;flex-shrink:0;
}
.crmagent-name{font-weight:700;font-size:13px;color:#fff;line-height:1.2}
.crmagent-co{font-size:11px;color:rgba(255,255,255,.65);margin-top:2px}
.crmnavexit{margin-top:8px}
.crmnavfoot{margin-top:8px}

.crmcalwrap{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:16px;align-items:start}
.crmcalhead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.crmcalmonth{font-weight:700;font-size:16px;color:var(--frost-navy)}
.crmcalgrid{
  display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;
  background:#fff;border:1px solid #c5d0dc;border-radius:14px;padding:10px;
}
.crmcaldowe{text-align:center;font-size:11px;font-weight:600;color:var(--muted);padding:4px 0}
.crmcalcell{
  aspect-ratio:1;border:0;background:transparent;border-radius:10px;
  position:relative;cursor:pointer;font:600 13px Inter,sans-serif;color:var(--frost-navy);
  display:flex;align-items:center;justify-content:center;
}
.crmcalcell.empty{cursor:default;pointer-events:none}
.crmcalcell:hover:not(.empty){background:#e8eef5}
.crmcalcell.today{box-shadow:inset 0 0 0 2px var(--frost-navy)}
.crmcalcell.sel{background:var(--frost-navy);color:#fff}
.crmcalcell.has .crmcaldot{
  position:absolute;bottom:6px;left:50%;transform:translateX(-50%);
  width:5px;height:5px;border-radius:50%;background:#3b82f6;
}
.crmcalcell.sel.has .crmcaldot{background:#fff}
.crmcalagenda{background:#fff;border:1px solid #c5d0dc;border-radius:14px;padding:12px 14px;min-height:200px}
.crmcalitem{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e8eef5}
.crmcalitem:last-child{border-bottom:0}
/* crmcalitem-act moved below */

@media (max-width:980px){
 .crmcalwrap{grid-template-columns:1fr}
 .crmagent{margin-top:16px}
}

/* Wide tablet: keep board scrollable if needed, side rail below */
@media (max-width:1280px){
 .crmdash{grid-template-columns:1fr}
 .crmdash-side{position:static;display:grid;grid-template-columns:1fr 1fr;gap:12px}
 .crmboard{grid-template-columns:repeat(6,minmax(150px,1fr));overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;padding-bottom:12px}
 .crmcol{scroll-snap-align:start;min-width:150px}
}

/* Phone / narrow:
   Dashboard home: always-visible sidebar + main (discoverable tabs).
   Any other tab (or lead detail): FULL-WIDTH page, sidebar hidden, Back to Dashboard. */
@media (max-width:980px){
 .crmshell{
   grid-template-columns:min(156px,40vw) minmax(0,1fr);
 }
 .crmapptop{display:none!important}
 .crmscrim{display:none!important}
 body.crm-navopen .crmscrim{display:none!important}
 .crmnavside{
   position:relative;top:auto;left:auto;bottom:auto;width:auto;
   transform:none!important;transition:none;
   box-shadow:none;padding:12px 8px 14px;
   flex-direction:column;flex-wrap:nowrap;
   z-index:1;
 }
 .crmbrand{width:auto;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:10px;padding:2px 4px 12px;gap:8px}
 .crmbrand-mark{width:34px;height:34px;font-size:11px;border-radius:9px}
 .crmbrand-name{font-size:12px}
 .crmbrand-sub{font-size:10px}
 .crmnavlist{flex-direction:column;flex-wrap:nowrap;width:100%;gap:2px}
 .crmnavitem{width:100%;min-height:38px;padding:8px 8px;font-size:12px;gap:8px;border-radius:9px}
 .crmnavico{width:18px;font-size:13px}
 .crmnavfoot{display:none}
 .crmnavexit{margin:10px 2px 0;padding-top:10px}
 .crmexit{min-height:38px;padding:8px 8px;font-size:11px}
 .crmagent{margin-top:auto;padding:10px 4px 4px;gap:8px}
 .crmagent-av{width:32px;height:32px;font-size:11px}
 .crmagent-name{font-size:11px}
 .crmagent-co{font-size:9px}
 .crmpane{padding:10px 10px 18px}
 .crmdash-side{grid-template-columns:1fr}
 .crmfeed,.crmtasks{max-height:200px}
 .crmleadrow,.crmtaskrow{grid-template-columns:1fr;gap:6px}
 .crmstats{gap:6px;grid-template-columns:repeat(3,minmax(0,1fr))}
 .crmstat{padding:8px 8px;gap:6px;border-radius:12px;flex-direction:column;align-items:flex-start}
 .crmstat-ico{width:28px;height:28px;font-size:12px;border-radius:8px}
 .crmstat-n{font-size:18px}
 .crmstat-l{font-size:9px}
 .crmstat-sub{font-size:9px}
 .crmboard{
   display:flex;gap:10px;grid-template-columns:none;
   overflow-x:auto;-webkit-overflow-scrolling:touch;
   scroll-snap-type:x proximity;padding:2px 2px 14px;
 }
 .crmcol{flex:0 0 min(240px,68vw);max-width:260px;min-width:180px;scroll-snap-align:start}
 .crmpagetitle{font-size:18px}
 .crmpagesub{font-size:11px}
 .crmov{font-size:15px}
 .crmcalwrap{grid-template-columns:1fr}

 /* Full-page tab / lead detail — no squeezed split */
 body.crm-subpage .crmshell{grid-template-columns:1fr}
 body.crm-subpage .crmnavside{display:none!important}
 body.crm-subpage .crmsubbar{display:flex!important}
 body.crm-subpage .crmpane{padding:12px 14px 22px}
 body.crm-subpage .crmcol{flex:0 0 min(260px,78vw);max-width:300px;min-width:210px}
 body.crm-subpage .crmpagetitle{font-size:20px}
 body.crm-subpage .crmpagesub{font-size:12px}
}
@media (max-width:820px){
 .crmnoteadd{flex-direction:column}
 .crmnoteadd button{width:100%}
 .crmgrid2{grid-template-columns:1fr}
 .crmactions{grid-template-columns:1fr}
 .crmstat{padding:10px 8px}
 .crmstat-n{font-size:20px}
 .crmcol{flex:0 0 78vw;max-width:280px;min-width:210px}
}

/* Home tile polish — balanced 2×4 / 4×2, Navy frost */
.hgo{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:0}
.hgo button{background:var(--frost);color:var(--frost-text);border:0;border-radius:14px;padding:18px 12px;font:600 15px Inter,sans-serif;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:78px;gap:4px;box-shadow:0 2px 0 rgba(15,39,68,.06);transition:background .15s,transform .12s,box-shadow .15s}
.hgo button small{font-weight:500;font-size:11px;color:#5B7C99;margin-top:0;line-height:1.25;max-width:16em}
.hgo button:hover{background:#c5d4e4;transform:translateY(-1px);box-shadow:0 6px 16px rgba(15,39,68,.12)}
.hgo button.hgo-pri,.hgo button.adm,.hgo button[data-go="all"]{background:var(--frost-navy);color:#fff}
.hgo button.hgo-pri small,.hgo button.adm small,.hgo button[data-go="all"] small{color:#DCE6F0}
.hgo button.hgo-pri:hover,.hgo button.adm:hover,.hgo button[data-go="all"]:hover{background:#16304f}
.hgo button[data-go="admin"]{grid-column:1/-1;min-height:56px}
.hcard-go{max-width:820px}
@media(max-width:760px){
 .hgo{grid-template-columns:1fr 1fr;gap:10px}
 .hgo button{min-height:72px;padding:14px 10px;font-size:14px;border-radius:12px}
 .hgo button[data-go="admin"]{grid-column:1/-1}
 .hcard-go .hgo button[data-go="forms"]{grid-column:auto}
}
@media(min-width:761px) and (max-width:980px){
 .hgo{grid-template-columns:repeat(3,1fr)}
 .hgo button[data-go="admin"]{grid-column:1/-1}
}

/* Tappable phone / email across My CRM */
a.crm-contact-link,
a.crmtask-act,
.crmact[href^="tel:"],
.crmact[href^="mailto:"],
.crmdetail a[href^="tel:"],
.crmdetail a[href^="mailto:"],
.crm-contact-line a {
  color: var(--accent, #1a73e8);
  text-decoration: underline;
  text-underline-offset: 2px;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
a.crm-contact-link:active,
a.crmtask-act:active { opacity: .75; }
.crm-contact-line { margin-top: .2rem; }
.crm-contact-line a { margin-right: .15rem; }
/* Shared add form sits in crmmain above page panes */
#crmAddForm.crmform {
  margin: .75rem 1rem 1rem;
  max-width: 640px;
}
body.crm-subpage #crmAddForm.crmform { margin-left: .75rem; margin-right: .75rem; }

/* Tasks empty tips — not tabs / not clickable */
.crmtasks-empty{pointer-events:none;user-select:text}
.crmtasks-empty-h{margin:0 0 4px;font-size:16px;font-weight:700;color:var(--frost-navy);text-align:center}
.crmtasks-empty-sub{margin:0 0 14px;text-align:center;font-size:12px}
.crmtasks-tips{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;text-align:left}
.crmtasks-tips li{display:flex;gap:12px;align-items:flex-start}
.crmtasks-tip-n{
  flex:0 0 24px;width:24px;height:24px;border-radius:50%;
  background:#DCE6F0;color:var(--frost-navy);font-size:12px;font-weight:700;
  display:inline-flex;align-items:center;justify-content:center;line-height:1;
}
.crmtasks-tips b{display:block;font-size:14px;color:var(--frost-navy);margin-bottom:2px}
.crmtasks-tips .meta{margin:0}
#crmTasksFull.crmtasks-under-form,
#crmTasksFull[hidden]{display:none!important}

/* Admin — Resend email usage */
.email-usage{margin:0 0 22px;padding:16px 16px 14px;border-radius:14px;background:#EEF3F8;border:1px solid #c5d0dc}
.email-usage h3{margin:0 0 6px;color:var(--frost-navy);font-size:16px}
.email-usage .eu-bars{display:grid;gap:12px;margin-top:12px}
.email-usage .eu-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:13px;color:var(--frost-text)}
.email-usage .eu-row b{color:var(--frost-navy);font-size:15px}
.email-usage .eu-track{height:10px;border-radius:999px;background:#DCE6F0;overflow:hidden;margin-top:6px}
.email-usage .eu-fill{height:100%;border-radius:999px;background:var(--frost-navy);min-width:0;transition:width .3s ease}
.email-usage .eu-fill.warn{background:#b45309}
.email-usage .eu-fill.crit{background:#b91c1c}
.email-usage .eu-note{margin:12px 0 0;font-size:12px;color:var(--muted);line-height:1.45}
.email-usage .eu-badge{display:inline-block;font-size:11px;font-weight:700;padding:3px 8px;border-radius:999px;background:#DCE6F0;color:var(--frost-navy);margin-left:6px}
@media (max-width:640px){
  .email-usage{padding:14px}
  .email-usage .eu-row b{font-size:14px}
}

/* nav: show all search tabs */
header nav{flex-wrap:wrap!important;overflow-x:visible!important;row-gap:2px;column-gap:0;justify-content:flex-start!important}
header nav a{margin-right:10px!important;font-size:13px!important;padding:5px 7px!important}
header nav a[data-mode="date"]{color:#fff;background:rgba(91,124,153,.35);border-radius:8px}
@media (max-width:820px){
  header nav{flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:thin!important}
  header nav::-webkit-scrollbar{display:block;height:4px}
}
/* end nav search tabs */

/* mg names: navy readable — every management/building name */
.mgn{
  color:#0d1b2a!important;font-weight:800;text-decoration-color:#1E3A5F;
  background:#e8eef5;padding:4px 10px;border-radius:8px;display:inline-block;
  text-shadow:none!important;
}
.mgn:hover{color:#1E3A5F!important;background:#d5e0ec}
.mgb a{
  background:#e8eef5!important;color:#0d1b2a!important;font-weight:700;
  border:1px solid rgba(30,58,95,.18);text-shadow:none!important;
}
.mgb a i{color:#1E3A5F!important;font-weight:800}
.mgb a:hover{background:#1E3A5F!important;color:#fff!important;border-color:#1E3A5F}
.mgb a:hover i{color:#fff!important}
.mghead h2,#coDetail h2,#coDetail h3,.mgbh{
  background:#e8eef5!important;color:#0d1b2a!important;text-shadow:none!important;
  padding:8px 14px;border-radius:10px;display:inline-block;font-weight:700;
}
.mgbh span{color:#1E3A5F!important;font-weight:600}
.mgh{color:#0d1b2a!important;text-shadow:none!important}
#coNames a{background:#1E3A5F!important;color:#fff!important;font-weight:700}
#coNames a:hover,#coNames a.on{background:#0d1b2a!important;color:#fff!important}
.mgback{color:#0d1b2a!important;font-weight:700}
/* end mg names */


/* date bar */
.datebar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 6px;padding:10px 12px;background:rgba(220,230,240,.92);border:1px solid rgba(30,58,95,.18);border-radius:12px}
.datebar.hidden{display:none!important}
.datepill{width:auto!important;margin:0!important;padding:7px 12px!important;border-radius:999px!important;border:1px solid rgba(30,58,95,.22)!important;background:#fff!important;color:var(--frost-navy)!important;font-weight:700;font-size:13px;cursor:pointer}
.datepill.on,.datepill:hover{background:var(--frost-navy)!important;color:#fff!important;border-color:var(--frost-navy)!important}
.datecustom{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:4px}
.datecustom.hidden{display:none!important}
.datefld{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--frost-navy)}
.datefld input[type=date]{padding:6px 8px;border:1px solid rgba(30,58,95,.25);border-radius:8px;font:inherit;color:var(--frost-navy);background:#fff}
.dateapply{width:auto!important;margin:0!important;padding:7px 14px!important;border-radius:9px!important;background:var(--frost-navy)!important;color:#fff!important;font-weight:700;font-size:13px;border:0!important}
@media (max-width:640px){
  .datebar{padding:8px}
  .datepill{padding:6px 10px!important;font-size:12px}
}
/* end date bar */

/* mg names forced — every management page */
#v-companies .mgname,#v-companies .mgbh,#v-companies .mghead h2,#v-companies #coDetail h2,#v-companies #coDetail h3,
#coDetail .mgname,#coDetail h2,#coDetail h3,#coDetail .mgbh{
  background:#e8eef5!important;color:#0d1b2a!important;text-shadow:none!important;
}
#v-companies .mgn,#coIdx .mgn{
  background:#e8eef5!important;color:#0d1b2a!important;text-shadow:none!important;
}
#v-companies .mgb a{background:#e8eef5!important;color:#0d1b2a!important;text-shadow:none!important}
/* end mg forced */


/* By date → Today: management Original/update PDFs above listing cards */
.dateupds{margin:8px 0 12px;padding:12px 14px;border:2px solid #dc2626;border-radius:12px;background:#fef2f2}
.dateupds.hidden{display:none!important}
.dateupd-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin-bottom:8px}
.dateupd-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;border-top:1px solid rgba(185,28,28,.18)}
.dateupd-row:first-of-type{border-top:0}
.dateupd-co{border:0;background:#e8eef5;color:#0d1b2a;font-weight:800;padding:4px 10px;border-radius:8px;cursor:pointer;font:inherit;text-decoration:underline;text-decoration-color:#1E3A5F}
.dateupd-co:hover{background:#dbe7f5}
.dateupd-title{font-weight:600;color:#0d1b2a;overflow-wrap:anywhere}
.dateupd-date{white-space:nowrap}
@media(max-width:600px){.dateupd-row{gap:6px}.dateupd-co{width:100%;text-align:left}}

.crmcal-export{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.crmcal-export .ghost,.crmcalsaved .ghost{font-size:12px;padding:4px 8px;min-height:auto}
.crmcalitem-act{flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.crmcalsaved{margin:10px 0;padding:10px 12px;background:#eef6ff;border:1px solid #c5d8ef;border-radius:8px;font-size:14px;line-height:1.45}
.crmcalsaved.hidden{display:none}
.crmparty-extra{margin:8px 0;padding:8px 10px;background:#f5f8fc;border:1px solid #e0e8f0;border-radius:8px}
.crmparty-extra.hidden{display:none}
.crmparty-block{margin-bottom:8px}
.crmparty-block:last-child{margin-bottom:0}
.crmparty-label{font-weight:600;margin-bottom:4px}
.crmparty-detail{margin:8px 0;padding:8px 10px;background:#f5f8fc;border-radius:8px}

.crmgmail-input{width:100%;max-width:420px;box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid #c5d0dc;border-radius:10px;font-size:16px;background:#fff}
.crmgmail-input:focus{outline:2px solid var(--frost-navy);outline-offset:1px}
