:root{--ink:#15253b;--muted:#758396;--line:#e4e9f2;--nav:#101c30;--mint:#19a795;--bg:#f4f6fb;--sh:0 12px 40px #102b421c}
*{box-sizing:border-box}html,body{height:100%;margin:0;font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}input,textarea,select{outline:none}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #16a999;outline-offset:2px}.hidden{display:none!important}#app{height:100dvh;min-height:440px;display:flex;flex-direction:column;background:var(--bg)}.top{height:69px;flex-shrink:0;background:var(--nav);display:flex;align-items:center;gap:15px;color:#fff;padding:0 20px;z-index:1100}.brand{display:flex;align-items:center;gap:11px;min-width:220px}.brand strong{font-size:17px;white-space:nowrap}.brand strong span{color:#51dfc7;font-size:11px;letter-spacing:1.2px;margin-left:4px}.brand small{display:block;color:#a6b0bd;font-size:11px}.connection{font-size:11px;padding:7px 10px;border-radius:20px;white-space:nowrap}.connection.live{background:#1b594b;color:#80f2d5}.connection.demo{background:#765728;color:#ffe8b1}.connection.syncing{background:#273c62;color:#c5d6fa}.topnav{margin-left:auto;display:flex;gap:7px}.navbtn{border:0;background:transparent;color:#a9b5c5;border-radius:10px;padding:9px 13px;font-weight:650}.navbtn.selected{background:#26364d;color:#fff}.userbar{display:flex;align-items:center;gap:10px;color:#ced5df;font-size:12px}.topbutton{border:1px solid #53677e;background:transparent;color:#fff;padding:6px 9px;border-radius:9px}.workarea{display:flex;min-height:0;flex:1}.sidebar{width:355px;min-width:290px;background:#fff;display:flex;flex-direction:column;z-index:450;border-right:1px solid var(--line)}.sidebarhead{padding:21px 19px 15px}.smalllabel{color:#8e9ba8;font-size:10px;letter-spacing:1.25px;font-weight:750}.sidebar h1,.teamview h1{font-size:24px;line-height:1.25;margin:4px 0 11px;letter-spacing:-.7px}.summary{display:flex;gap:10px;color:#6b798a;font-size:12px}.summary b{color:#203549}.searcharea{padding:0 16px 13px;border-bottom:1px solid var(--line)}.searcharea input{background:#f8fafd;border:1px solid #dae2ed;border-radius:12px;width:100%;padding:11px 12px;font-size:12px}.filters{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px}.filter{border:1px solid #e0e6ee;border-radius:25px;padding:6px 9px;background:#fff;color:#5a687c;font-weight:650;font-size:11px}.filter.active{background:#142439;color:white;border-color:#142439}.businesslist{min-height:0;flex:1;overflow-y:auto;padding:12px}.placeitem{width:100%;text-align:left;background:#fff;border:1px solid #e8edf2;border-radius:12px;padding:11px 12px;margin-bottom:8px;display:block}.placeitem:hover,.placeitem.selected{border-color:#61b8af;background:#f8fffe}.itemhead{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.itemhead strong{font-size:13px;font-weight:700}.placeitem small{display:block;color:#77869b;margin-top:5px;font-size:11px}.badge{display:inline-flex;align-items:center;border-radius:100px;padding:3px 8px;font-size:10px;white-space:nowrap;font-weight:750}.badge.unvisited{background:#ebeff3;color:#526174}.badge.interested{background:#fff1d2;color:#8f5e0a}.badge.sold{background:#dbf6eb;color:#107449}.badge.rejected{background:#fee5e8;color:#b43f49}.badge.followup{background:#e5efff;color:#3a69bd}.sidebottom{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:11px 15px;color:#7f8a9b;font-size:11px}.textbutton{border:0;background:transparent;color:#277e83;font-size:12px;font-weight:750}.main{flex:1;min-width:0;position:relative}.mapview{width:100%;height:100%;position:relative}.mapview #map{height:100%;width:100%;background:#edf1f5}.maptop{position:absolute;top:15px;left:15px;right:80px;z-index:550;display:flex;gap:8px;flex-wrap:wrap;pointer-events:none}.maptop>*{pointer-events:auto}.maptop select,.action{border:1px solid #dfe6ee;box-shadow:0 3px 13px #12274116;background:white;color:#243750;padding:10px 12px;border-radius:11px;min-height:40px;font-size:12px;font-weight:700}.maptop select{max-width:185px}.action.accent{background:#119e90;border-color:#119e90;color:#fff}.action.full{width:100%;justify-content:center}.mapright{position:absolute;top:15px;right:17px;z-index:560;display:grid;gap:8px}.mapright button{background:#fff;box-shadow:0 3px 13px #12274120;border:1px solid #e1e6eb;border-radius:11px;width:44px;height:44px;font-size:20px;color:#1c3c4f;font-weight:700}.mapright button+button{font-size:12px}.mapnotice{position:absolute;left:16px;bottom:67px;z-index:450;max-width:420px;padding:9px 11px;background:#ffffffec;box-shadow:var(--sh);border:1px solid #e0e7eb;border-radius:10px;color:#66778a;font-size:11px}.legend{position:absolute;left:15px;bottom:15px;z-index:450;display:flex;flex-wrap:wrap;gap:12px;padding:10px 13px;border:1px solid #dfe6eb;border-radius:13px;box-shadow:var(--sh);background:white;font-size:11px}.legend span{display:inline-flex;align-items:center;gap:6px}.dot{display:inline-block;width:11px;height:11px;border:2px solid #708090;border-radius:50%;background:white;flex:none}.dot.interested,.pin.interested{background:#efbb52;border-color:#c78d2a}.dot.sold,.pin.sold{background:#15a777;border-color:#08724b}.dot.rejected,.pin.rejected{background:#e05b68;border-color:#ad3844}.dot.followup,.pin.followup{background:#6195ed;border-color:#3765ba}.pin{width:27px;height:27px;border:3px solid #718093;background:white;border-radius:50%;box-shadow:0 3px 12px #11294066;display:grid;place-items:center}.pin:after{content:'';display:block;width:5px;height:5px;background:#8795a7;border-radius:100%}.pin:not(.unvisited):after{background:white}.leaflet-marker-icon{background:transparent!important;border:0!important}.leaflet-control-attribution{font-size:10px!important}.empty{text-align:center;padding:34px 14px;color:#8090a1;font-size:12px;line-height:1.65}.overlay{position:fixed;inset:0;background:#0a1a3294;z-index:2100;display:flex;justify-content:flex-end;align-items:stretch}.drawer{background:#fff;width:min(410px,100%);height:100%;overflow:auto;padding:24px 23px;box-shadow:-15px 0 55px #001c3330}.dialog{width:min(510px,calc(100% - 25px));margin:auto;background:white;border-radius:22px;padding:24px;max-height:90vh;overflow-y:auto;box-shadow:var(--sh)}.dialog p{font-size:12px;color:#718096}.dialogtop,.detailtop{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.dialogtop h2,.detailtop h2{margin:0;font-size:22px;line-height:1.2}.close{border:0;background:#eff2f5;border-radius:10px;padding:6px 11px;font-size:22px;line-height:1.3}.detailheader{margin:20px 0}.detailheader h2{font-size:26px;margin:6px 0}.detailmeta{font-size:12px;color:#718096;margin:9px 0}.detailmeta strong{color:#27394b}.statusgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:20px 0}.statuschoice{border:1px solid #dee5ec;padding:10px;text-align:left;background:white;border-radius:11px;display:flex;gap:8px;align-items:center;font-size:12px;font-weight:700}.statuschoice.active{border:2px solid #0da593;background:#f4fffc}.drawer label,.dialog label,.authcard label{display:block;margin:12px 0;color:#3d4d61;font-weight:700;font-size:12px}.drawer input,.drawer textarea,.dialog input,.authcard input{display:block;width:100%;border:1px solid #dfe5ec;border-radius:10px;padding:11px 12px;font-size:13px;margin-top:5px;background:#fcfdff;color:#203145}.drawer textarea{min-height:105px;resize:vertical}.rowbuttons{display:flex;gap:10px;justify-content:flex-end;margin-top:17px;flex-wrap:wrap}.detailfoot{margin-top:20px;border-top:1px solid #e8ebf0;padding-top:12px;font-size:11px;color:#7a8798}.teamview{padding:26px 28px;height:100%;overflow:auto;background:#f7f9fc}.teamheading{display:flex;gap:16px;justify-content:space-between;align-items:flex-start}.teamheading p{color:#7b8998;margin:0;font-size:12px}.teamactions{display:flex;gap:8px}.teamstats{display:flex;gap:12px;flex-wrap:wrap;margin:23px 0}.statcard{background:white;border:1px solid #e5e9f0;padding:17px 19px;border-radius:15px;min-width:150px}.statcard b{font-size:26px;display:block}.statcard small{color:#798697}.teamtablewrap{overflow-x:auto;background:white;border:1px solid #e8ebf1;border-radius:17px}.teamtable{border-collapse:collapse;min-width:850px;width:100%}.teamtable th{text-align:left;font-size:11px;color:#748397;background:#f9fafc;padding:14px 12px}.teamtable td{border-top:1px solid #eef0f3;padding:11px 12px;font-size:12px}.teamtable select{border:1px solid #dfe4eb;padding:7px;border-radius:8px;max-width:130px}.teamtable td small{display:block;color:#92a0ad}.teamtable td .action{padding:6px 8px;min-height:28px}.teamtable input{accent-color:#13a691}.privacy{padding:18px;margin-top:15px;background:#fff;border:1px solid #e7ebf1;border-radius:14px;font-size:12px;color:#6b7787;line-height:1.6}.privacy strong{color:#2c3d52}.authscreen{position:fixed;inset:0;background:radial-gradient(circle at 50% 20%,#284b5b,#101c30 65%);z-index:3000;display:grid;place-items:center;padding:20px}.authcard{width:min(390px,100%);background:#fff;border-radius:25px;padding:31px;box-shadow:0 20px 75px #0005;text-align:center}.authcard h1{font-size:23px;margin:12px 0 5px}.authcard p{color:#738497;font-size:12px;margin:5px 0 16px}.authcard label{text-align:left}.authcard input{margin-bottom:13px}.loginhint{margin-top:22px!important}.error{font-size:12px;color:#ba303f;background:#fff0f1;padding:10px;border-radius:9px;margin-top:13px}#toast{display:none;position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#18283b;color:#fff;z-index:3500;padding:12px 17px;border-radius:12px;box-shadow:0 6px 30px #0005;font-size:12px;max-width:90vw;text-align:center}
@media(max-width:850px){.top{padding:0 12px;gap:9px;height:63px}.brand{min-width:auto}.brand small,.userbar #userName{display:none}.connection{font-size:10px}.sidebar{width:310px;min-width:265px}.teamview{padding:18px}.teamheading{flex-wrap:wrap}.maptop{right:60px}.maptop select{max-width:132px}}
@media(max-width:650px){.top{height:58px}.brand img{width:32px;height:32px}.brand strong{font-size:13px}.brand strong span{font-size:9px}.connection{font-size:9px;padding:4px 7px}.navbtn{padding:7px;font-size:12px}.workarea{flex-direction:column}.main{order:1;flex:1;min-height:0}.sidebar{order:2;width:100%;height:34dvh;min-height:190px;flex:none;border-right:0;border-top:1px solid var(--line)}.sidebarhead{padding:10px 12px 4px}.sidebar h1{display:none}.sidebar .summary{font-size:11px}.searcharea{padding:4px 10px 7px}.searcharea input{padding:8px 10px}.filters{margin-top:6px;gap:4px}.filter{padding:5px 7px;font-size:10px}.businesslist{padding:6px 10px}.placeitem{padding:8px 10px;margin-bottom:5px}.sidebottom{display:none}.maptop{top:9px;left:8px;right:48px;gap:5px}.maptop select{width:115px;padding:7px 6px;font-size:10px;min-height:35px}.maptop .action{padding:7px 9px;font-size:10px;min-height:35px}.mapright{top:9px;right:7px;gap:5px}.mapright button{width:37px;height:37px}.legend{bottom:8px;left:8px;gap:7px;font-size:9px;padding:7px}.mapnotice{display:none}.drawer{width:100%;height:auto;max-height:86dvh;position:absolute;bottom:0;left:0;border-radius:22px 22px 0 0;padding:19px}.teamview{padding:14px}.teamstats{margin:13px 0}.statcard{min-width:110px}.dialog{padding:20px}.userbar{gap:0}}


/* ---------- NFC Sales Map TEAM 2.1: responsive, mobile-first refresh ---------- */
:root {--nav:#ffffff;--mint:#0b8d78;--ink:#17263a;--muted:#758293;--line:#e4e9ef;--bg:#f6f8fb;--sh:0 12px 40px rgba(27,42,63,.12)}
html,body{overflow:hidden;-webkit-tap-highlight-color:transparent}
#app{background:#f8fafc;min-height:0}
.top{height:64px;background:#fff;color:#152a42;border-bottom:1px solid #e8edf2;padding:0 20px;gap:14px;box-shadow:0 3px 14px #25375408}
.brand{min-width:190px}.brand strong{font-size:17px;font-weight:800;letter-spacing:-.4px}.brand strong span{color:#0a947e}.brand small{color:#8a97a6}
.connection{border:1px solid #d5f3e7;font-weight:700}.connection.live{background:#e8f9f1;color:#147554}.connection.demo{background:#fff7e5;color:#90652d}.connection.syncing{background:#f2f5fc;color:#48618e}
.topnav{margin-left:auto;gap:4px;padding:4px;border-radius:12px;background:#f1f5f8}
.navbtn{color:#6c7d8f;padding:9px 16px;border-radius:9px;font-size:13px;font-weight:750}.navbtn.selected{color:#123046;background:#fff;box-shadow:0 2px 6px #26344616}
.userbar{color:#8090a1}.topbutton{color:#334b5f;background:#fff;border:1px solid #e1e9ee;padding:8px 11px}
.sidebar{width:326px;min-width:326px;background:#fff;box-shadow:3px 0 15px #1e324106;transition:width .22s ease,min-width .22s ease,opacity .22s ease;overflow:hidden}
.sidebarhead{padding:21px 20px 14px}.sidebar h1{font-size:23px;margin:6px 0 12px;letter-spacing:-.7px}
.sidetitle{display:flex;align-items:flex-start;justify-content:space-between}.listclose{display:none}
.searcharea{padding:0 18px 13px}.searcharea input{height:44px;background:#f8fafb;border:1px solid #dfe6ec;border-radius:12px;padding:0 12px;font-size:13px}
.filter{padding:7px 10px;font-size:11px;border-color:#e4e9ef}.filter.active{background:#193149;border-color:#193149}
.businesslist{padding:13px 15px}.placeitem{border-radius:13px;padding:13px 13px;transition:border-color .15s,background .15s,transform .15s;box-shadow:0 2px 8px #2c435706}
.placeitem:hover{border-color:#86c9bd;transform:translateY(-1px)}.placeitem strong{font-size:13px}
.sidebottom{padding:13px 19px}
.main{background:#f4f6f8;overflow:hidden}.mapview{isolation:isolate}.mapview #map{height:100%;width:100%;background:#eef1f4}
.rasterfallback .leaflet-tile-pane{filter:saturate(.6) brightness(1.055) contrast(.96)}
.leaflet-container{font-family:inherit!important;outline:none!important;touch-action:pan-x pan-y}
.leaflet-container .leaflet-control-attribution{background:rgba(255,255,255,.92)!important;border-radius:6px 0 0 0;padding:2px 5px!important}
.leaflet-control-zoom{border:0!important;box-shadow:0 2px 12px #20304726!important;margin-bottom:26px!important;margin-right:18px!important}
.leaflet-control-zoom a{width:38px!important;height:38px!important;line-height:36px!important;border-radius:10px!important;color:#285066!important}
.maptop{left:18px;top:18px;right:auto;gap:9px;max-width:calc(100% - 135px)}
.maptop select,.action{background:#fff;box-shadow:0 4px 16px #2c405b18;border:1px solid #e4eaf0;border-radius:12px;min-height:43px;padding:10px 14px;font-size:13px}
.maptop select{min-width:164px;max-width:206px}.action.accent{background:#0e9784;border-color:#0e9784;color:white}
.mapright{top:18px;right:19px;gap:9px}.mapright button{width:46px;height:46px;border-radius:13px;background:#fff;border:1px solid #e3eaf0;box-shadow:0 3px 13px #20304720;font-size:21px}
.mapnotice{bottom:71px;left:17px;border-radius:12px;font-size:12px;box-shadow:0 5px 16px #15384b17;max-width:340px}
.legend{left:17px;bottom:15px;gap:11px;padding:10px 13px;font-size:11px;border-radius:13px;box-shadow:0 4px 18px #21354916}
.pin{width:31px;height:31px;border:3px solid #fff;box-shadow:0 1px 5px #1a2c4766,0 0 0 1px #74899d;border-radius:999px;background:#e6e9ef;display:grid;place-items:center;transition:transform .15s}
.pin:after{width:7px;height:7px;background:#fff}.pin.unvisited{background:#fff;border:3px solid #6c8498;box-shadow:0 3px 9px #1c344b46}.pin.unvisited:after{background:#8da0af}
.pin.interested{background:#ffc74e;border-color:#fff;box-shadow:0 2px 10px #564a2e77}.pin.sold{background:#17af75;border-color:#fff;box-shadow:0 2px 10px #206e5077}.pin.rejected{background:#e05b67;border-color:#fff;box-shadow:0 2px 10px #78434b77}.pin.followup{background:#497edc;border-color:#fff;box-shadow:0 2px 10px #35476b77}
.pin:hover{transform:scale(1.14)}
.sideToggle{display:flex;position:absolute;z-index:560;left:18px;top:77px;width:43px;height:43px;align-items:center;justify-content:center;background:#fff;color:#284055;border:1px solid #e5eaf0;border-radius:12px;box-shadow:0 4px 18px #20304718;font-size:20px;cursor:pointer}
body.sidebar-collapsed .sidebar{width:0;min-width:0;opacity:0;border:0}
body.sidebar-collapsed .sidebar>*{visibility:hidden}
.mobiletools,.mobilebottom,.mobileshade{display:none}
.overlay{background:rgba(13,30,51,.45);backdrop-filter:blur(4px)}
.drawer{box-shadow:-12px 0 50px #06213924;border-radius:22px 0 0 22px;padding:26px}
.detailheader h2{font-size:26px;letter-spacing:-.6px}.statuschoice{font-size:13px;min-height:45px;padding:10px}.statuschoice.active{border-color:#0e9a84;background:#f1fcf8}
.dialog{border-radius:23px}.authscreen{background:radial-gradient(circle at 50% 20%,#2c6070,#10263b 65%)}
#toast{font-size:13px;padding:12px 18px}
@media (max-width:850px) and (min-width:701px){.brand small,.connection{display:none}.sidebar{width:286px;min-width:286px}.maptop{right:90px}}
@media (max-width:700px){
 html,body,#app{height:100%;height:100dvh;min-height:0;overscroll-behavior:none}
 .top{height:56px;min-height:56px;padding:0 14px;gap:10px;box-shadow:none;padding-top:env(safe-area-inset-top);box-sizing:content-box}
 .brand{gap:7px;min-width:auto}.brand img{width:31px;height:31px}.brand strong{font-size:14px}.brand strong span{font-size:9px;letter-spacing:.8px;margin-left:2px}.brand small,.connection,.userbar #userName{display:none!important}
 .topnav{margin-left:auto;padding:3px;gap:2px}.navbtn{font-size:12px;padding:8px 11px;min-height:36px}.userbar{margin-left:0}.topbutton{font-size:11px;padding:8px 9px;white-space:nowrap}
 .workarea{display:block;position:relative;flex:1;min-height:0;overflow:hidden}
 .main{width:100%;height:100%;position:relative}.mapview{height:100%;width:100%}.mapview #map{height:100%;width:100%}
 .sidebar{position:fixed;z-index:1250;left:0;right:0;bottom:0;top:auto;width:100%!important;min-width:0!important;height:min(78dvh,730px)!important;max-height:calc(100dvh - 45px);display:flex;transform:translateY(110%);opacity:1!important;transition:transform .28s cubic-bezier(.22,.85,.23,1);border:0;box-shadow:0 -16px 70px #112c4440;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom);visibility:visible!important}
 .sidebar>*{visibility:visible!important}body.mobile-list-open .sidebar{transform:translateY(0)}
 .sidebarhead{padding:18px 18px 8px}.sidebarhead:before{content:'';position:absolute;top:8px;left:calc(50% - 21px);height:4px;width:42px;border-radius:50px;background:#d5dde5}
 .sidetitle{display:flex;gap:8px;align-items:center}.sidebar h1{display:block;font-size:19px;margin:4px 0 5px}.sidebar .summary{font-size:11px;gap:12px}.listclose{display:grid;place-items:center;width:37px;height:37px;border:0;border-radius:10px;background:#f1f5f8;color:#485d73;font-size:18px;flex-shrink:0}
 .searcharea{padding:6px 15px 10px}.searcharea input{height:42px;font-size:14px}.filters{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:7px;padding-bottom:3px;margin-top:8px;scrollbar-width:none}.filters::-webkit-scrollbar{display:none}.filter{white-space:nowrap;padding:9px 12px;font-size:12px}
 .businesslist{overflow-y:auto;padding:9px 14px 12px;flex:1}.placeitem{padding:13px;min-height:70px;margin-bottom:8px}.placeitem strong{font-size:14px}.placeitem small{font-size:12px}.sidebottom{display:flex;padding:11px 16px;font-size:11px}
 .mobileshade{display:block;position:fixed;inset:0;background:#10293b66;z-index:1220;opacity:0;pointer-events:none;transition:opacity .25s}body.mobile-list-open .mobileshade{opacity:1;pointer-events:auto}
 .mobiletools{display:block;position:absolute;top:11px;left:12px;right:12px;z-index:570;pointer-events:none}.mobiletools>*{pointer-events:auto}
 .mobilesearch{display:flex;align-items:center;gap:8px;width:100%;height:52px;padding:0 14px;background:#fff;border:1px solid #e0e8ef;border-radius:16px;box-shadow:0 8px 23px #182f4b24}.mobilesearch span{font-size:27px;color:#0b9284;font-weight:400;line-height:1}.mobilesearch input{width:100%;border:0!important;background:transparent!important;box-shadow:none!important;font-size:15px!important;color:#203549;min-width:0;outline:none!important}
 .mobilefilters{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin-top:10px;padding:0 0 5px;max-width:100%;touch-action:pan-x}.mobilefilters::-webkit-scrollbar{display:none}
 .mobilefilter{background:rgba(255,255,255,.96);color:#516578;padding:9px 12px;font-size:12px;font-weight:750;white-space:nowrap;border:1px solid #e4eaf0;border-radius:50px;box-shadow:0 3px 12px #1c344726;min-height:37px}
 .mobilefilter.active{background:#193149;border-color:#193149;color:#fff}
 .maptop{top:115px;left:12px;right:72px;max-width:none;gap:7px;flex-wrap:nowrap;align-items:center}
 .maptop select{width:auto;min-width:0;max-width:145px;flex:1;padding:9px 12px;border-radius:12px;min-height:42px;font-size:12px}
 .maptop #loadNearby{display:none}.maptop #addPlace{flex:0 0 auto;min-height:42px;padding:9px 12px;font-size:12px;white-space:nowrap}
 .mapright{top:115px;right:12px;gap:8px}.mapright button{width:46px;height:46px;border-radius:13px}
 .sideToggle{display:none}
 .mobilebottom{display:flex;position:absolute;z-index:570;left:12px;right:12px;bottom:calc(22px + env(safe-area-inset-bottom));gap:9px}
 .mobilebottom button{height:51px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #e3eaf1;border-radius:15px;font-size:14px;font-weight:800;box-shadow:0 8px 22px #172a4450;white-space:nowrap}
 .mobileload{background:#fff;color:#203c56;flex:1}.mobilelist{background:#0c907d;color:#fff;flex:1;border-color:#0c907d!important}.mobilecount{display:inline-grid;place-items:center;background:#ffffff32;border-radius:9px;min-width:25px;height:24px;padding:0 5px;color:#fff;font-size:12px}
 .legend{left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom));font-size:10px;justify-content:space-between;gap:6px;max-width:none;overflow:hidden;padding:7px 10px;border-radius:12px}
 .legend span{gap:3px;white-space:nowrap}.legend .dot{width:9px;height:9px}.mapnotice{display:none}
 .leaflet-bottom.leaflet-right{bottom:calc(156px + env(safe-area-inset-bottom))}.leaflet-control-zoom{margin-right:12px!important;margin-bottom:0!important}.leaflet-control-zoom a{width:43px!important;height:43px!important;line-height:42px!important}
 .leaflet-control-attribution{font-size:8px!important;max-width:250px}
 .overlay{align-items:flex-end;justify-content:center;backdrop-filter:none}.drawer{width:100%;height:auto;max-height:86dvh;position:absolute;left:0;bottom:0;border-radius:24px 24px 0 0;padding:24px 18px calc(17px + env(safe-area-inset-bottom));overflow-y:auto;box-shadow:0 -18px 55px #142b4340}
 .drawer:before{content:'';display:block;width:45px;height:5px;border-radius:100px;background:#d6dde5;margin:-11px auto 15px;position:sticky;top:0;z-index:1}
 .detailheader{margin:12px 0}.detailheader h2{font-size:23px}.detailmeta{font-size:12px}.statusgrid{gap:8px;margin:13px 0;grid-template-columns:repeat(2,minmax(0,1fr))}.statuschoice{min-height:49px;font-size:13px}.drawer input,.drawer textarea{font-size:16px}.rowbuttons .action{flex:1;min-height:44px}
 .dialog{width:calc(100% - 28px);max-height:89dvh;padding:20px;border-radius:22px}.dialog input{font-size:16px}
 .teamview{height:100%;overflow:auto;padding:17px 13px 30px}.teamheading h1{font-size:21px}.teamheading p{font-size:12px}.teamactions{width:100%}.teamactions .action{flex:1;font-size:12px}.teamstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.statcard{min-width:0;padding:12px;border-radius:12px}.statcard b{font-size:19px}.statcard small{font-size:10px}.teamtablewrap{border:0;background:transparent;overflow:visible}.teamtable,.teamtable tbody,.teamtable tr,.teamtable td{display:block;min-width:0;width:100%}.teamtable thead{display:none}.teamtable tr{margin:0 0 14px;padding:13px;border:1px solid #e4eaf0;border-radius:16px;background:#fff;box-shadow:0 4px 18px #223a4f0a}.teamtable td{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:9px 3px;border:0!important;font-size:12px;min-height:34px;text-align:right}.teamtable td:first-child{display:block;text-align:left}.teamtable td:not(:first-child)::before{font-weight:700;color:#687b90;white-space:nowrap;text-align:left}.teamtable td:nth-child(2)::before{content:'Role'}.teamtable td:nth-child(3)::before{content:'Přístup'}.teamtable td:nth-child(4)::before{content:'Úpravy'}.teamtable td:nth-child(5)::before{content:'Aktivita'}.teamtable td:nth-child(6)::before{content:'Dnes'}.teamtable td:nth-child(7)::before{content:'7 dní'}.teamtable td:last-child{justify-content:flex-end}.teamtable td .action{width:100%}
 .authcard{border-radius:22px;padding:24px 22px}.authcard input{font-size:16px}
 #toast{bottom:calc(90px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100% - 24px)}
}
@media(max-width:365px){.brand strong{font-size:12px}.navbtn{padding:8px 7px}.topbutton{padding:7px}.maptop select{max-width:123px}.maptop #addPlace{font-size:11px}.mobilefilter{font-size:11px;padding:9px 10px}.legend{font-size:9px;padding:7px}.mobilebottom button{font-size:12px}}

/* v2.2 — čistá WebGL mapa a souvislé sledování polohy */
.mapview #map{background:#e8eef1!important;touch-action:pan-x pan-y!important;overscroll-behavior:contain}
.maplibregl-map{font-family:inherit!important;outline:none!important;touch-action:none!important}
.maplibregl-canvas{outline:none!important}
.maplibregl-ctrl-bottom-right{z-index:2;right:9px;bottom:15px}
.maplibregl-ctrl-group{border-radius:12px!important;overflow:hidden;border:1px solid #e3eaf0!important;box-shadow:0 6px 25px #182f4b24!important;background:#fff!important}
.maplibregl-ctrl-group button{width:43px!important;height:43px!important}
.maplibregl-ctrl-group button:hover{background:#f1f5f8!important}
.maplibregl-ctrl-attrib{font-size:10px!important;border-radius:6px;padding:2px 6px!important}
.mapright{z-index:650}
.mapright button{display:grid;place-items:center;transition:background .16s,box-shadow .16s,color .16s,transform .15s}
.mapright button:active{transform:scale(.94)}
.mapright .gps-active{color:#1688ed;border-color:#afcfee;box-shadow:0 2px 13px #2689f52a}
.mapright .gps-follow{background:#eff7ff;color:#0668d8;border-color:#4299f0}
.mapright #stopLocation{font-size:17px;width:33px;height:33px;justify-self:center;color:#a23a3e;border-color:#f0e2e2;background:#fff8f8}
.gps-position{position:relative;width:24px;height:24px;pointer-events:none;z-index:1000}
.gps-position .gps-core{display:block;position:absolute;inset:4px;background:#1887ee;border:3px solid white;box-shadow:0 1px 5px #163a6770;border-radius:50%}
.gps-position .gps-halo{position:absolute;inset:-6px;background:#2388ed26;border-radius:50%;border:1px solid #278cf04a;animation:gpsPulse 2.7s ease-out infinite}
@keyframes gpsPulse{0%{transform:scale(.65);opacity:1}72%{transform:scale(1.25);opacity:.2}100%{transform:scale(1.25);opacity:0}}
.gps-status{position:absolute;top:76px;right:17px;z-index:640;background:#fff;box-shadow:0 3px 14px #1c344b1a;border:1px solid #e0e8ef;color:#26628e;padding:7px 10px;font-size:11px;font-weight:750;border-radius:9px;max-width:210px;white-space:nowrap;pointer-events:none}
@media (prefers-reduced-motion: reduce){.gps-position .gps-halo{animation:none}}
@media(max-width:700px){
 .maplibregl-ctrl-bottom-right{bottom:calc(160px + env(safe-area-inset-bottom))!important;right:4px!important}
 .maplibregl-ctrl-group button{width:42px!important;height:42px!important}
 .maplibregl-ctrl-attrib{font-size:8px!important;max-width:225px}
 .gps-status{top:169px;right:12px;max-width:165px;white-space:normal;font-size:10px}
 .mapright{top:115px;right:12px}
 .mapright button{width:46px;height:46px}
 .mapright #stopLocation{width:35px;height:35px}
}

/* v2.4 — větší klikací oblasti značek při zachování mapového designu */
.maplibregl-canvas{cursor:grab}
.maplibregl-canvas:active{cursor:grabbing}
.businesslist .empty{line-height:1.55}
