:root{
  --bg:#FFFFFF; --s1:#FAFAFA; --s2:#F4F4F5; --tile:#F6F6F5; --line:#ECECEE; --line2:#E2E2E5;
  --ink:#18181B; --ink2:#55555E; --muted:#9A9AA3;
  --acc:#0E8578; --acc-soft:#ECF6F4; --gold:#B98A00; --gold-soft:#FBF6E6; --red:#D23F35; --red-soft:#FCEEEC;
  --map:#F4F5F4; --road:#FFFFFF; --water:#E6EEF1; --park:#EBF2E8;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#111113; --s1:#151518; --s2:#1C1C20; --tile:#1C1C20; --line:#26262B; --line2:#303036;
  --ink:#F4F4F5; --ink2:#B4B4BC; --muted:#76767F;
  --acc:#2DB3A3; --acc-soft:#14302C; --gold:#E3B341; --gold-soft:#2C2512; --red:#EF6158; --red-soft:#341A18;
  --map:#18181B; --road:#26262B; --water:#172A31; --park:#18291F;
}}
:root[data-theme="dark"]{
  --bg:#111113; --s1:#151518; --s2:#1C1C20; --tile:#1C1C20; --line:#26262B; --line2:#303036;
  --ink:#F4F4F5; --ink2:#B4B4BC; --muted:#76767F;
  --acc:#2DB3A3; --acc-soft:#14302C; --gold:#E3B341; --gold-soft:#2C2512; --red:#EF6158; --red-soft:#341A18;
  --map:#18181B; --road:#26262B; --water:#172A31; --park:#18291F;
}
*,*::before,*::after{box-sizing:inherit}
html,body{height:100%}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 Geist,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
h1,h2,h3,h4{font-weight:600;letter-spacing:-.02em;margin:0}
svg{flex:none}

.app{height:100%;display:flex;flex-direction:column}
.top{height:64px;flex:none;display:flex;align-items:center;gap:24px;padding:0 24px;border-bottom:1px solid var(--line);background:var(--bg)}
.brand{display:flex;align-items:center;gap:10px;font-weight:600;font-size:17px;width:208px}
.tsearch{flex:1;max-width:520px;display:flex;align-items:center;gap:10px;background:var(--s2);border-radius:10px;padding:0 12px}
.tsearch svg{width:17px;height:17px;color:var(--muted)}
.tsearch input{border:0;background:none;outline:none;flex:1;padding:9px 0;min-width:0}
.tact{margin-left:auto;display:flex;align-items:center;gap:10px}
.ib{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;color:var(--ink2);position:relative}
.ib:hover{background:var(--s2)}
.ib svg{width:19px;height:19px}
.ib .dot{position:absolute;top:8px;right:9px;width:7px;height:7px;border-radius:50%;background:var(--red)}

.body{flex:1;display:flex;min-height:0}
.side{width:232px;flex:none;border-right:1px solid var(--line);padding:18px 12px;display:flex;flex-direction:column;gap:2px}
.nav{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:10px;color:var(--ink2);font-weight:500;width:100%;text-align:left}
.nav svg{width:19px;height:19px}
.nav:hover{background:var(--s1)}
.nav.on{background:var(--s2);color:var(--ink)}
.nav .n{margin-left:auto;font-size:12px;font-weight:600;background:var(--ink);color:var(--bg);border-radius:999px;padding:0 7px;line-height:19px}
.side .sp{flex:1}
.side .note{font-size:12.5px;color:var(--muted);padding:12px;border-top:1px solid var(--line);margin-top:8px}
.side .note button{color:var(--ink2);font-weight:500;text-decoration:underline;text-underline-offset:2px}
main{flex:1;min-width:0;overflow:auto}
.wrap{max-width:1180px;padding:32px 40px 60px}
.flush{height:100%;overflow:hidden}
.mnav{display:none}

/* type + basics */
.ph{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px;flex-wrap:wrap}
.ph h1{font-size:28px;line-height:1.15}
.ph p{margin:4px 0 0;color:var(--muted)}
.muted{color:var(--muted)}
.small{font-size:13px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;padding:10px 16px;font-weight:600;font-size:14.5px;white-space:nowrap;text-decoration:none}
.btn svg{width:17px;height:17px}
.btn.pri{background:var(--ink);color:var(--bg)}
.btn.pri:hover{opacity:.88}
.btn.line{border:1px solid var(--line2);color:var(--ink)}
.btn.line:hover{background:var(--s1)}
.btn.acc{background:var(--acc);color:#fff}
.btn.danger{background:var(--red);color:#fff}
.btn.full{width:100%;padding:12px 16px}
.btn[disabled]{opacity:.35;pointer-events:none}
.link{color:var(--ink2);font-weight:500;text-decoration:underline;text-underline-offset:3px}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{border:1px solid var(--line2);border-radius:999px;padding:6px 13px;font-size:13.5px;font-weight:500;color:var(--ink2);background:var(--bg)}
.chip:hover{border-color:var(--muted)}
.chip.on{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.seg{display:inline-flex;border:1px solid var(--line2);border-radius:10px;padding:3px;gap:2px}
.seg button{padding:6px 12px;border-radius:7px;font-size:13.5px;font-weight:500;color:var(--muted);display:flex;gap:6px;align-items:center}
.seg button svg{width:15px;height:15px}
.seg button.on{background:var(--s2);color:var(--ink)}
.pill{display:inline-flex;align-items:center;font-size:12px;font-weight:600;border-radius:999px;padding:2px 9px;white-space:nowrap}
.p-wait{background:var(--s2);color:var(--ink2)}
.p-act{background:var(--gold-soft);color:var(--gold)}
.p-ok{background:var(--acc-soft);color:var(--acc)}
.p-bad{background:var(--red-soft);color:var(--red)}
.av{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:600;font-size:13px;background:var(--s2);color:var(--ink2);flex:none}
.av.me{background:var(--ink);color:var(--bg)}
.av.lg{width:56px;height:56px;font-size:18px}
.feat{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;color:var(--ink2)}
.feat svg{width:13px;height:13px;color:var(--acc)}
.feats{display:flex;gap:6px 14px;flex-wrap:wrap}
.lab{display:block;font-size:13px;font-weight:500;color:var(--ink2);margin:18px 0 7px}
.inp{width:100%;border:1px solid var(--line2);background:var(--bg);border-radius:10px;padding:11px 13px;outline:none}
.inp:focus{border-color:var(--ink)}
textarea.inp{resize:none;min-height:88px}
.ig{display:flex;border:1px solid var(--line2);border-radius:10px;overflow:hidden}
.ig span{padding:11px 12px;background:var(--s1);color:var(--ink2);border-right:1px solid var(--line2)}
.ig input{border:0;flex:1;padding:11px 13px;outline:none;background:var(--bg);min-width:0}
.ig:focus-within{border-color:var(--ink)}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--ink2);margin-top:16px}
.check input{width:18px;height:18px;accent-color:var(--ink);margin:2px 0 0;flex:none}
.err{color:var(--red);font-size:13px;margin-top:8px}
.hint{font-size:13px;color:var(--muted);margin:8px 0 0}
.empty{padding:70px 20px;text-align:center;color:var(--muted)}
.empty h3{color:var(--ink);font-size:17px;margin-bottom:4px}

/* discover */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:28px 20px;margin-top:22px}
.card{text-align:left;display:flex;flex-direction:column;gap:10px}
.tile{aspect-ratio:4/3;width:100%;border-radius:14px;background:var(--tile);display:grid;place-items:center;font-size:58px;position:relative;transition:background .15s}
.card:hover .tile{background:var(--s2)}
.tag{position:absolute;left:10px;top:10px;font-size:11.5px;font-weight:600;background:var(--bg);color:var(--ink2);border-radius:6px;padding:2px 8px}
.card b{display:block;font-weight:600;font-size:15px;line-height:1.3}
.card .for{display:block;font-size:13px;color:var(--ink2);margin-top:2px}
.card .mt{display:flex;gap:10px;font-size:12.5px;color:var(--muted);margin-top:4px}
.mapv{display:grid;grid-template-columns:1.35fr 1fr;gap:20px;margin-top:22px}
.mapbox{position:relative;border-radius:16px;overflow:hidden;background:var(--map);border:1px solid var(--line);min-height:460px}
.mapbox.sm{min-height:0;height:140px;border-radius:12px}
.mapbox svg.base{position:absolute;inset:0;width:100%;height:100%}
.pin{position:absolute;transform:translate(-50%,-100%)}
.pin svg{width:30px;height:35px;display:block;transition:transform .15s}
.pin .c{position:absolute;top:-6px;right:-10px;background:var(--ink);color:var(--bg);font-size:11px;font-weight:600;border-radius:999px;padding:0 6px;line-height:17px;border:2px solid var(--bg)}
.pin.on svg{transform:scale(1.25)}
.panel{border:1px solid var(--line);border-radius:16px;padding:18px}
.rows{display:flex;flex-direction:column}
.irow{display:flex;gap:14px;align-items:center;padding:12px 0;text-align:left;width:100%}
.irow+.irow{border-top:1px solid var(--line)}
.irow .t{width:56px;height:56px;border-radius:12px;background:var(--tile);display:grid;place-items:center;font-size:28px;flex:none}
.irow .tx{flex:1;min-width:0}
.irow .tx b{display:block;font-weight:600;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.irow .tx small{display:block;color:var(--muted);font-size:13px}

/* item */
.back{display:inline-flex;align-items:center;gap:6px;color:var(--ink2);font-weight:500;font-size:14px;margin-bottom:18px}
.back svg{width:16px;height:16px}
.itemv{display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:start}
.hero{aspect-ratio:1.1;border-radius:20px;background:var(--tile);display:grid;place-items:center;font-size:140px;position:relative}
.thumbs{display:flex;gap:10px;margin-top:10px}
.thumbs span{width:64px;height:64px;border-radius:10px;background:var(--tile);display:grid;place-items:center;font-size:26px;opacity:.6}
.thumbs span:first-child{opacity:1;outline:1.5px solid var(--ink)}
.iinfo .meta{display:flex;gap:12px;font-size:13.5px;color:var(--muted)}
.iinfo h1{font-size:32px;line-height:1.15;margin:6px 0 10px}
.iinfo p.desc{color:var(--ink2);margin:0 0 22px;max-width:52ch}
.sec{padding:18px 0;border-top:1px solid var(--line)}
.sec h4{font-size:13px;font-weight:500;color:var(--muted);margin-bottom:10px}
.who{display:flex;align-items:center;gap:12px}
.who b{font-weight:600;display:block}
.who small{color:var(--muted);font-size:13px}
.ver{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;color:var(--acc);font-weight:500;margin-left:auto}
.ver svg{width:14px;height:14px}
.acts{display:flex;gap:10px;margin-top:6px}

/* split views */
.split{display:grid;grid-template-columns:340px 1fr;height:100%}
.split.three{grid-template-columns:300px 1fr 300px}
.list{border-right:1px solid var(--line);overflow:auto;display:flex;flex-direction:column}
.list .lh{padding:22px 20px 12px;display:flex;justify-content:space-between;align-items:center;gap:10px;position:sticky;top:0;background:var(--bg);z-index:1}
.list .lh h2{font-size:20px}
.lrow{display:flex;gap:12px;align-items:center;padding:13px 20px;text-align:left;width:100%;border-left:2px solid transparent}
.lrow:hover{background:var(--s1)}
.lrow.on{background:var(--s1);border-left-color:var(--ink)}
.lrow .tx{flex:1;min-width:0}
.lrow .tx b{display:block;font-weight:600;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lrow .tx small{display:block;color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lrow .rt{display:flex;flex-direction:column;align-items:flex-end;gap:5px;font-size:12px;color:var(--muted)}
.lrow .un{width:8px;height:8px;border-radius:50%;background:var(--acc)}
.pair{position:relative;width:54px;height:42px;flex:none}
.pair span{position:absolute;width:36px;height:36px;border-radius:10px;background:var(--tile);display:grid;place-items:center;font-size:19px;border:2px solid var(--bg)}
.pair span:last-child{left:18px;top:6px}
.detail{overflow:auto}
.dwrap{max-width:720px;padding:28px 40px 60px}
.mback{display:none}
.ticket{display:grid;grid-template-columns:1fr 56px 1fr;align-items:center;border:1px solid var(--line);border-radius:18px;padding:22px}
.ticket .sd{display:flex;gap:14px;align-items:center;min-width:0}
.ticket .sd+.sw+.sd{flex-direction:row-reverse;text-align:right}
.ticket .em{width:64px;height:64px;border-radius:14px;background:var(--tile);display:grid;place-items:center;font-size:34px;flex:none}
.ticket small{display:block;color:var(--muted);font-size:12.5px}
.ticket b{font-weight:600;line-height:1.3}
.ticket .sw{width:40px;height:40px;border-radius:50%;border:1px solid var(--line2);display:grid;place-items:center;margin:auto;color:var(--ink2)}
.ticket .sw svg{width:18px;height:18px}
.dh{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}
.dh h3{font-size:17px}
.meet{display:grid;grid-template-columns:200px 1fr;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.meet .mapbox{border:0;border-radius:0;min-height:130px}
.meet .mi{padding:16px 18px}
.meet .mi b{font-weight:600;display:block}
.steps{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px}
.step{display:flex;gap:14px;padding:16px 18px;align-items:flex-start}
.step+.step{border-top:1px solid var(--line)}
.step .dt{width:26px;height:26px;border-radius:50%;border:1.5px solid var(--line2);display:grid;place-items:center;font-size:12px;font-weight:600;color:var(--muted);flex:none}
.step.ok .dt{background:var(--acc);border-color:var(--acc);color:#fff}
.step.ok .dt svg{width:14px;height:14px}
.step.now .dt{border-color:var(--ink);color:var(--ink)}
.step .tx{flex:1;font-weight:500;padding-top:2px}
.step .tx small{display:block;color:var(--muted);font-weight:400;font-size:13px}
.step .go{flex:none}
.step:not(.now):not(.ok){color:var(--muted)}
.pick{display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;text-align:left;width:100%}
.pick+.pick{margin-top:8px}
.pick:hover{border-color:var(--line2)}
.pick.on{border-color:var(--ink)}
.pick .t{width:48px;height:48px;border-radius:10px;background:var(--tile);display:grid;place-items:center;font-size:24px;flex:none;color:var(--acc)}
.pick .t svg{width:22px;height:22px}
.pick .tx{flex:1;min-width:0}
.pick .tx b{display:block;font-weight:600;font-size:14.5px}
.pick .tx small{color:var(--muted);font-size:13px}
.radio{width:18px;height:18px;border-radius:50%;border:1.5px solid var(--line2);flex:none}
.pick.on .radio{border:5px solid var(--ink)}
.footacts{display:flex;gap:10px;align-items:center;margin-top:22px;flex-wrap:wrap}
.sos{background:var(--red);color:#fff}

/* chat */
.conv{display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--line)}
.ch{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid var(--line)}
.ch .tx{flex:1;min-width:0}
.ch b{font-weight:600;display:block}
.ch small{color:var(--muted);font-size:13px}
.msgs{flex:1;overflow:auto;padding:20px 24px;display:flex;flex-direction:column;gap:6px}
.msg{max-width:min(520px,75%);padding:9px 14px;border-radius:16px;line-height:1.45;word-wrap:break-word}
.msg.me{align-self:flex-end;background:var(--ink);color:var(--bg);border-bottom-right-radius:5px}
.msg.them{align-self:flex-start;background:var(--s2);border-bottom-left-radius:5px}
.msg.sys{align-self:center;background:none;color:var(--muted);font-size:13px;text-align:center;max-width:80%;padding:6px 10px}
.mtime{align-self:center;font-size:12px;color:var(--muted);margin:10px 0 2px}
.cbar{display:flex;gap:10px;padding:14px 20px;border-top:1px solid var(--line)}
.cbar input{flex:1;border:1px solid var(--line2);border-radius:10px;padding:11px 14px;outline:none;min-width:0;background:var(--bg)}
.cbar input:focus{border-color:var(--ink)}
.ctx{overflow:auto;padding:20px}
.ctx h4{font-size:13px;color:var(--muted);font-weight:500;margin:0 0 10px}
.ctx .blk{padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.ctx .mini{display:flex;align-items:center;gap:10px}
.ctx .mini .em{width:44px;height:44px;border-radius:10px;background:var(--tile);display:grid;place-items:center;font-size:22px}
.ctx .mini b{font-weight:600;font-size:14px;display:block;line-height:1.3}
.ctx .mini small{color:var(--muted);font-size:12.5px}
.ctx .ar{display:flex;flex-direction:column;align-items:center;color:var(--muted);margin:4px 0 4px 12px;width:20px}
.ctx .ar svg{width:16px;height:16px;transform:rotate(90deg)}
.vcta{display:flex;flex-direction:column;gap:8px}
.lk{display:flex;align-items:center;gap:10px;padding:8px 0;color:var(--ink2);font-weight:500;width:100%;text-align:left}
.lk svg{width:17px;height:17px}

/* modal + call */
.scrim{position:fixed;inset:0;background:rgba(24,24,27,.32);display:grid;place-items:center;z-index:50;padding:20px;animation:fade .15s}
.modal{width:min(520px,100%);max-height:calc(100% - 20px);overflow:auto;background:var(--bg);border-radius:18px;padding:26px;box-shadow:0 30px 80px -30px rgba(0,0,0,.4);animation:pop .18s ease-out}
.modal h3{font-size:20px;margin-bottom:4px}
.modal>p{color:var(--ink2);margin:0 0 16px}
.modal .mf{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}
.modal.wide{width:min(980px,100%);padding:0;overflow:hidden;display:grid;grid-template-columns:1fr 320px;height:min(620px,100%)}
.stage{background:#0E0E10;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#F4F4F5}
.stage .face{width:120px;height:120px;border-radius:50%;background:#2A2A30;display:grid;place-items:center;font-size:38px;font-weight:600}
.stage .held{font-size:64px;animation:hold 3s ease-in-out infinite}
@keyframes hold{50%{transform:translateY(-6px) rotate(-4deg)}}
.stage .st{position:absolute;top:16px;left:18px;font-size:13px;color:#B4B4BC}
.stage .st b{display:block;color:#fff;font-size:16px;font-weight:600}
.stage .nr{position:absolute;top:18px;right:18px;font-size:12px;color:#B4B4BC;border:1px solid #3A3A40;border-radius:999px;padding:3px 10px}
.stage .self{position:absolute;right:16px;bottom:84px;width:150px;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:#26262B;display:grid;place-items:center;border:1px solid #3A3A40}
.stage .self video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.stage .self svg{width:40px;height:40px;color:#76767F}
.stage .ctrl{position:absolute;bottom:18px;left:0;right:0;display:flex;justify-content:center;gap:12px}
.cb{width:48px;height:48px;border-radius:50%;background:#26262B;color:#fff;display:grid;place-items:center}
.cb svg{width:20px;height:20px}
.cb.off{background:#F4F4F5;color:#18181B}
.cb.end{background:#D23F35;width:64px;border-radius:24px}
.vside{padding:22px;display:flex;flex-direction:column}
.vside h3{font-size:17px}
.vside p{color:var(--muted);font-size:13.5px;margin:4px 0 16px}
.vrow{display:flex;gap:10px;align-items:flex-start;padding:10px 0;text-align:left;width:100%;font-weight:500;font-size:14px}
.vrow+.vrow{border-top:1px solid var(--line)}
.box{width:20px;height:20px;border-radius:6px;border:1.5px solid var(--line2);display:grid;place-items:center;flex:none;margin-top:1px}
.vrow.on .box{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.vrow.on .box svg{width:13px;height:13px}
.them{font-size:13px;color:var(--muted);margin-top:12px}
.them.ok{color:var(--acc)}
.vside .sp{flex:1}
.why{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:16px;margin-bottom:26px}
.why>div{padding:18px}
.why>div+div{border-left:1px solid var(--line)}
.why svg{width:22px;height:22px;color:var(--acc)}
.why b{display:block;font-weight:600;margin:10px 0 2px}
.why small{color:var(--ink2);font-size:13px;line-height:1.45;display:block}
.rank{margin:0;padding:0;list-style:none;counter-reset:r}
.rank li{counter-increment:r;display:flex;gap:10px;padding:7px 0;font-size:14px}
.rank li::before{content:counter(r);width:22px;height:22px;border-radius:50%;border:1px solid var(--line2);display:grid;place-items:center;font-size:12px;font-weight:600;flex:none}
.stype{font-size:12px;font-weight:600;color:var(--ink2);background:var(--s2);border-radius:6px;padding:2px 8px;display:inline-block;margin-bottom:4px}
@media (max-width:900px){.why{grid-template-columns:1fr 1fr}.why>div:nth-child(3){border-left:0}.why>div:nth-child(n+3){border-top:1px solid var(--line)}}
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:var(--ink);color:var(--bg);border-radius:12px;padding:11px 18px;font-weight:500;font-size:14px;z-index:60;display:flex;gap:10px;align-items:center;animation:up .2s ease-out;max-width:calc(100% - 32px)}
.toast svg{width:17px;height:17px;color:var(--acc)}
@keyframes up{from{opacity:0;transform:translate(-50%,10px)}}
@keyframes pop{from{opacity:0;transform:scale(.97)}}
@keyframes fade{from{opacity:0}}

/* profile */
.prof{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.trust{display:flex;align-items:baseline;gap:10px}
.trust .sc{font-size:46px;font-weight:600;letter-spacing:-.03em;line-height:1}
.meter{height:5px;background:var(--s2);border-radius:5px;margin-top:12px;overflow:hidden}
.meter i{display:block;height:100%;background:var(--ink)}
.vr{display:flex;align-items:center;gap:12px;padding:12px 0}
.vr+.vr{border-top:1px solid var(--line)}
.vr .i{width:36px;height:36px;border-radius:10px;background:var(--s2);display:grid;place-items:center;color:var(--ink2)}
.vr .i svg{width:18px;height:18px}
.vr .tx{flex:1}
.vr .tx b{font-weight:600;display:block}
.vr .tx small{color:var(--muted);font-size:13px}
.idbox{border:1.5px dashed var(--line2);border-radius:12px;aspect-ratio:1.6;display:grid;place-items:center;color:var(--muted);font-size:13.5px;width:100%;text-align:center}
.idbox.ok{border-style:solid;border-color:var(--acc);color:var(--acc);background:var(--acc-soft)}

/* login */
.login{height:100%;display:grid;grid-template-columns:1fr 1fr}
.lform{display:flex;flex-direction:column;padding:32px 48px}
.lform .inner{margin:auto 0;max-width:380px;width:100%;align-self:center}
.lform h1{font-size:34px;line-height:1.1;margin:0 0 8px}
.lform .inner>p{color:var(--ink2);margin:0 0 24px}
.lart{background:var(--s1);border-left:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;padding:48px}
.lart .sw{display:flex;align-items:center;gap:22px;margin-bottom:44px}
.lart .sw .t{width:150px;height:150px;border-radius:24px;background:var(--bg);border:1px solid var(--line);display:grid;place-items:center;font-size:70px}
.lart .sw .x{width:46px;height:46px;border-radius:50%;background:var(--ink);color:var(--bg);display:grid;place-items:center}
.lart ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:18px;max-width:380px}
.lart li{display:flex;gap:14px}
.lart li span{width:26px;height:26px;border-radius:50%;border:1px solid var(--line2);display:grid;place-items:center;font-size:12.5px;font-weight:600;flex:none;background:var(--bg)}
.lart li b{font-weight:600;display:block}
.lart li small{color:var(--muted);font-size:13.5px}
.or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px;margin:18px 0}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}

/* responsive */
@media (max-width:1180px){.split.three{grid-template-columns:280px 1fr}.split.three .ctx{display:none}}
@media (max-width:900px){
  .side,.tsearch{display:none}
  .brand{width:auto}
  .top{padding:0 16px}
  .mnav{display:flex;justify-content:space-around;border-top:1px solid var(--line);padding:8px 4px 10px;background:var(--bg);flex:none}
  .mnav button{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:500;color:var(--muted);position:relative;min-width:56px}
  .mnav button svg{width:21px;height:21px}
  .mnav button.on{color:var(--ink)}
  .mnav .n{position:absolute;top:-4px;left:calc(50% + 6px);background:var(--ink);color:var(--bg);border-radius:999px;font-size:10px;padding:0 5px;line-height:15px}
  .wrap{padding:20px 16px 40px}
  .ph h1{font-size:24px}
  .grid{grid-template-columns:repeat(2,1fr);gap:20px 12px}
  .mapv,.itemv,.prof{grid-template-columns:1fr}
  .itemv{gap:22px}
  .hero{font-size:100px}
  .split,.split.three{grid-template-columns:1fr}
  .split .list{border-right:0}
  .split.sel .list{display:none}
  .split:not(.sel) .detail,.split:not(.sel) .conv{display:none}
  .mback{display:inline-flex}
  .dwrap{padding:18px 16px 40px}
  .ticket{padding:16px;grid-template-columns:1fr 44px 1fr}
  .ticket .sd,.ticket .sd+.sw+.sd{flex-direction:column;text-align:center;gap:8px}
  .meet{grid-template-columns:1fr}
  .modal.wide{grid-template-columns:1fr;height:100%;border-radius:0;overflow:auto}
  .modal.wide .stage{min-height:56vh}
  .login{grid-template-columns:1fr}
  .lart{display:none}
  .lform{padding:24px}
  .msgs{padding:16px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---- production additions ---- */
.hidden{display:none!important}
.brandmark{display:inline-flex;align-items:center;gap:10px;font-weight:600;font-size:17px}
.thumbimg{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.tile img,.hero img,.irow .t img,.pick .t img,.pair span img,.ticket .em img,.ctx .mini .em img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.tile,.hero,.irow .t,.pick .t,.pair span,.ticket .em,.ctx .mini .em{overflow:hidden}
.ph-empty{color:var(--muted)}
.ph-empty svg{width:40%;height:40%;opacity:.5}
.gallery{display:flex;gap:10px;margin-top:10px;overflow-x:auto}
.gallery button{width:64px;height:64px;border-radius:10px;overflow:hidden;background:var(--tile);flex:none;border:1.5px solid transparent}
.gallery button.on{border-color:var(--ink)}
.gallery img{width:100%;height:100%;object-fit:cover}
.photos-edit{display:flex;gap:10px;flex-wrap:wrap}
.photos-edit .ph{position:relative;width:92px;height:92px;border-radius:12px;overflow:hidden;background:var(--tile);margin:0;display:block}
.photos-edit .ph img{width:100%;height:100%;object-fit:cover}
.photos-edit .ph button{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center}
.photos-edit .ph button svg{width:14px;height:14px}
.photos-edit label.add{width:92px;height:92px;border-radius:12px;border:1.5px dashed var(--line2);display:grid;place-items:center;color:var(--muted);cursor:pointer;font-size:13px;text-align:center}
.lucky-box{border:1px solid var(--line);border-radius:16px;padding:16px;background:var(--s1)}
.lucky-box h4{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.lucky-ans{white-space:pre-wrap;margin:12px 0 0;color:var(--ink2)}
.spinner{width:18px;height:18px;border:2px solid var(--line2);border-top-color:var(--ink);border-radius:50%;animation:spin .8s linear infinite;display:inline-block;vertical-align:middle}
@keyframes spin{to{transform:rotate(360deg)}}
.center{display:grid;place-items:center;padding:60px 20px;color:var(--muted)}
.banner{display:flex;gap:12px;align-items:center;padding:12px 16px;border-radius:12px;background:var(--gold-soft);color:var(--ink);margin-bottom:18px;font-size:14px}
.banner svg{width:18px;height:18px;color:var(--gold)}
.mapreal{height:460px;border-radius:16px;border:1px solid var(--line);overflow:hidden;z-index:0}
.mapreal.sm{height:170px;border-radius:12px}
.leaflet-container{font:inherit}
.spot-pin{background:none;border:0}
.spot-pin svg{width:30px;height:35px;display:block}
.spot-pin b{position:absolute;top:-6px;right:-10px;background:var(--ink);color:var(--bg);font-size:11px;font-weight:600;border-radius:999px;padding:0 6px;line-height:17px;border:2px solid var(--bg)}
.creditchips{display:flex;gap:8px;flex-wrap:wrap}
.creditchips button{border:1px solid var(--line2);border-radius:12px;padding:12px 16px;font-weight:600;min-width:90px}
.creditchips button.on{border-color:var(--ink);background:var(--s2)}
.ledger .irow .t{width:40px;height:40px;font-size:14px;font-weight:600}
.notif-row{display:flex;gap:12px;padding:12px 0;border-top:1px solid var(--line);text-align:left;width:100%}
.notif-row:first-child{border-top:0}
.notif-row .dotu{width:8px;height:8px;border-radius:50%;background:var(--acc);margin-top:7px;flex:none}
.notif-row.read .dotu{background:transparent}
.legal{max-width:760px}
.legal h2{font-size:20px;margin:28px 0 8px}
.legal p,.legal li{color:var(--ink2)}
.callwrap .stage video,.callwrap .remote-video{width:100%;height:100%;object-fit:cover}
.remote-video{position:absolute;inset:0}
.remote-video div,.self div{width:100%!important;height:100%!important}
.toasts{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:70;display:flex;flex-direction:column;gap:8px;align-items:center}
.authwrap{min-height:100%}
.msg .rep{display:none}
@media (max-width:900px){.mapreal{height:340px}}

/* ===== v1.1: clean links, bigger logo, pickers, mobile app layout, Lucky chat, Swipe ===== */
a{color:inherit;text-decoration:none}
.link{color:var(--acc);font-weight:500;text-decoration:none}
.link:hover{text-decoration:underline;text-underline-offset:3px}
.side .note .link,.side .note button{color:var(--ink2);text-decoration:none}
.brand{gap:10px;font-size:22px;font-weight:600;letter-spacing:-.02em}
.brand svg{width:38px;height:38px}
.lform .brand{font-size:30px}
.lform .brand svg{width:56px;height:56px}
.lart .sw svg{width:180px;height:180px}

/* selects */
select.inp{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355555E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:38px;cursor:pointer}
.filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.filters .inp{width:auto;min-width:200px}
.searchbox{display:flex;align-items:center;gap:8px;border:1px solid var(--line2);border-radius:10px;padding:0 12px;flex:1;min-width:200px;background:var(--bg)}
.searchbox svg{width:17px;height:17px;color:var(--muted)}
.searchbox input{border:0;outline:none;padding:11px 0;flex:1;min-width:0;background:none}

/* city search */
.combo{position:relative}
.combo-list{position:absolute;left:0;right:0;top:calc(100% + 4px);background:var(--bg);border:1px solid var(--line2);border-radius:12px;box-shadow:0 12px 32px -12px rgba(0,0,0,.18);z-index:40;overflow:hidden}
.combo-list button{display:flex;justify-content:space-between;gap:10px;width:100%;text-align:left;padding:10px 14px;font-size:14.5px}
.combo-list button small{color:var(--muted);font-size:12.5px;white-space:nowrap}
.combo-list button:hover,.combo-list button.on{background:var(--s2)}
.combo-list .none{padding:12px 14px;color:var(--muted);font-size:14px}

/* will-trade-for picker */
.tags{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.tag-x{display:inline-flex;align-items:center;gap:6px;background:var(--ink);color:var(--bg);border-radius:999px;padding:6px 8px 6px 13px;font-size:13.5px;font-weight:500}
.tag-x button{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;color:var(--bg);opacity:.75}
.tag-x button svg{width:12px;height:12px}
.tags select.inp{width:auto;min-width:190px;padding-top:7px;padding-bottom:7px;border-radius:999px;font-size:13.5px}
.segc{display:inline-flex;border:1px solid var(--line2);border-radius:10px;padding:3px;gap:2px;flex-wrap:wrap}
.segc button{padding:7px 14px;border-radius:7px;font-size:14px;font-weight:500;color:var(--ink2)}
.segc button.on{background:var(--ink);color:var(--bg)}

/* Lucky floating chat */
.lucky-fab{position:fixed;right:24px;bottom:24px;z-index:45;width:58px;height:58px;border-radius:50%;background:var(--ink);color:var(--bg);display:grid;place-items:center;box-shadow:0 12px 28px -10px rgba(0,0,0,.45);transition:transform .15s}
.lucky-fab:hover{transform:scale(1.05)}
.lucky-fab svg{width:26px;height:26px}
.lucky-panel{position:fixed;right:24px;bottom:96px;z-index:46;width:380px;height:min(580px,calc(100vh - 140px));background:var(--bg);border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 60px -24px rgba(0,0,0,.35);display:flex;flex-direction:column;overflow:hidden;animation:pop .18s ease-out}
.lucky-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.lucky-head .lav{width:34px;height:34px;border-radius:50%;background:var(--acc-soft);color:var(--acc);display:grid;place-items:center}
.lucky-head .lav svg{width:18px;height:18px}
.lucky-head b{display:block;font-weight:600}
.lucky-head small{color:var(--muted);font-size:12.5px}
.lucky-msgs{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:8px}
.lmsg{max-width:85%;padding:9px 13px;border-radius:16px;font-size:14.5px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
.lmsg.me{align-self:flex-end;background:var(--ink);color:var(--bg);border-bottom-right-radius:5px}
.lmsg.lucky{align-self:flex-start;background:var(--s2);border-bottom-left-radius:5px}
.lcards{display:flex;flex-direction:column;gap:6px;align-self:stretch}
.lcard{display:flex;gap:10px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:12px}
.lcard .t{width:44px;height:44px;border-radius:10px;overflow:hidden;background:var(--tile);flex:none;display:grid;place-items:center}
.lcard .t img{width:100%;height:100%;object-fit:cover}
.lcard b{font-size:13.5px;font-weight:600;display:block}
.lcard small{font-size:12px;color:var(--muted)}
.lsugg{display:flex;gap:6px;flex-wrap:wrap}
.lsugg button{border:1px solid var(--line2);border-radius:999px;padding:6px 11px;font-size:13px;color:var(--ink2)}
.lucky-form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line)}
.lucky-form input{flex:1;border:1px solid var(--line2);border-radius:999px;padding:10px 14px;outline:none;min-width:0}
.lucky-form button{width:42px;height:42px;border-radius:50%;background:var(--ink);color:var(--bg);display:grid;place-items:center;flex:none}
.lucky-form button svg{width:17px;height:17px}

/* Swipe */
.swipe-wrap{max-width:440px;margin:0 auto;padding:20px 16px 40px}
.deck{position:relative;height:min(560px,calc(100vh - 290px));min-height:420px}
.scard{position:absolute;inset:0;background:var(--bg);border:1px solid var(--line);border-radius:22px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 18px 40px -26px rgba(0,0,0,.4);touch-action:none;user-select:none;transition:transform .25s ease}
.scard.back{transform:scale(.95) translateY(14px);opacity:.6}
.scard .photo{flex:1;min-height:0;background:var(--tile);position:relative}
.scard .photo img{width:100%;height:100%;object-fit:cover;pointer-events:none}
.scard .info{padding:14px 16px 16px}
.scard h3{font-size:20px;margin:0 0 2px}
.scard .meta{color:var(--muted);font-size:13px}
.scard .for{color:var(--ink2);font-size:14px;margin-top:6px}
.scard .badges{position:absolute;left:12px;top:12px;display:flex;gap:6px;flex-wrap:wrap}
.scard .badges span{background:rgba(255,255,255,.94);color:var(--ink);font-size:12px;font-weight:600;border-radius:999px;padding:4px 10px}
.scard .badges span.m{background:var(--acc);color:#fff}
.stamp{position:absolute;top:22px;font-weight:700;font-size:22px;border:3px solid;border-radius:10px;padding:2px 10px;opacity:0;transform:rotate(-12deg)}
.stamp.yes{left:20px;color:var(--acc)}
.stamp.no{right:20px;color:var(--red);transform:rotate(12deg)}
.stamp.save{left:50%;transform:translateX(-50%);color:var(--gold);top:auto;bottom:120px}
.sacts{display:flex;justify-content:center;gap:18px;margin-top:18px}
.sacts button{width:60px;height:60px;border-radius:50%;border:1px solid var(--line2);display:grid;place-items:center;background:var(--bg);box-shadow:0 6px 16px -10px rgba(0,0,0,.3)}
.sacts button svg{width:24px;height:24px}
.sacts .no{color:var(--red)}.sacts .save{color:var(--gold);width:50px;height:50px;margin-top:5px}.sacts .yes{color:#fff;background:var(--acc);border-color:var(--acc)}
.sacts .undo{color:var(--muted);width:44px;height:44px;margin-top:8px}

/* ===== phone layout: looks like an app ===== */
@media (max-width:900px){
  .top{height:58px;gap:10px;position:sticky;top:0;z-index:20}
  .brand{font-size:20px}.brand svg{width:32px;height:32px}
  .tact{gap:2px}
  .tact .btn.pri{display:none}
  .tact .ib{width:40px;height:40px}
  .mnav{position:sticky;bottom:0;z-index:20;padding:6px 6px calc(8px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 20px -16px rgba(0,0,0,.25)}
  .mnav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px 0;font-size:11px;font-weight:500;color:var(--muted)}
  .mnav a svg{width:23px;height:23px}
  .mnav a.on{color:var(--ink)}
  .mnav a.plus{flex:none;width:52px;height:44px;border-radius:14px;background:var(--ink);color:var(--bg);justify-content:center;margin:2px 4px}
  .mnav a.plus span{display:none}
  .scrim{align-items:flex-end;padding:0}
  .modal{width:100%;max-height:92%;border-radius:22px 22px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom,0px));animation:slideup .22s ease-out}
  .modal .mf{flex-direction:column-reverse}
  .modal .mf .btn{width:100%}
  .lucky-fab{right:16px;bottom:calc(82px + env(safe-area-inset-bottom,0px));width:52px;height:52px}
  .lucky-panel{left:0;right:0;bottom:0;width:auto;height:88%;border-radius:22px 22px 0 0;animation:slideup .22s ease-out}
  .filters .inp{min-width:0;flex:1}
  .ph{margin-bottom:14px}
  .wrap{padding:16px 16px 30px}
  .card b{font-size:14px}
  .footacts .btn{flex:1}
  .deck{height:calc(100vh - 330px);min-height:380px}
}
@keyframes slideup{from{transform:translateY(24px);opacity:0}}

.filters .searchbox{display:none}
@media (max-width:900px){.filters .searchbox{display:flex}}

/* sign-in: logo above the headline, room under the button */
.auth-brand{margin-bottom:28px}
.lform .inner h1{margin-top:0}
.forgot{text-align:center;margin:18px 0 0;font-size:14px}
@media (max-width:900px){.lform .inner{margin-top:24px}}

/* Safe Spots map: pins, check-in area, pin mode */
.pinbar{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;background:var(--red-soft);color:var(--ink);margin-bottom:10px;font-size:14px}
.pinbar svg{width:18px;height:18px;color:var(--red);flex:none}
.pinbar span{flex:1}
.spot-pin.pending svg{opacity:.55;filter:grayscale(1)}
.spot-pin.newpin svg{width:30px;height:40px;filter:drop-shadow(0 3px 4px rgba(0,0,0,.3))}
.maplegend{display:flex;gap:16px;flex-wrap:wrap;margin-top:10px;font-size:12.5px;color:var(--muted)}
.maplegend span{display:inline-flex;align-items:center;gap:6px}
.maplegend svg{width:15px;height:18px}
.maplegend .pend svg{opacity:.55}
.maplegend .ring{width:14px;height:14px;border-radius:50%;border:1.5px dashed var(--acc);background:rgba(14,133,120,.08);display:inline-block}
.spop{display:flex;flex-direction:column;gap:3px;min-width:200px;font-family:Geist,system-ui,sans-serif}
.spop b{font-size:14.5px;font-weight:600}
.spop small{color:var(--muted);font-size:12.5px}
.spop .feats{margin:4px 0}
.spop .btn{padding:7px 12px;font-size:13.5px}
.spotrow{width:100%}
.spotrow:hover{background:var(--s1)}
.mapsearch input{font-size:14.5px}
.leaflet-popup-content-wrapper{border-radius:14px}
.pickmap{height:280px}
@media (max-width:900px){.pickmap{height:230px}}

/* sign-in logo */
.lform .auth-brand{font-size:40px;gap:14px}
.lform .auth-brand svg{width:84px;height:84px}
@media (max-width:900px){.lform .auth-brand{font-size:32px}.lform .auth-brand svg{width:64px;height:64px}}

/* Me: header + tabs, one screen per tab */
.me-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.me-tabs{display:flex;width:fit-content;max-width:100%;overflow-x:auto;margin-bottom:18px}
.me-tabs a{padding:8px 14px;border-radius:7px;font-size:14px;font-weight:500;color:var(--muted);white-space:nowrap}
.me-tabs a.on{background:var(--s2);color:var(--ink)}
.me-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.me-2col{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.me-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}
.me-stats a{border:1px solid var(--line);border-radius:12px;padding:10px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:2px}
.me-stats a:hover{background:var(--s1)}
.me-stats b{font-size:20px;font-weight:600;display:flex;align-items:center;height:24px}
.me-stats b svg{width:20px;height:20px;color:var(--ink2)}
.me-stats span{font-size:12.5px;color:var(--muted)}
@media (max-width:900px){.me-grid,.me-2col{grid-template-columns:1fr}}

/* map popups: white card */
.leaflet-popup-content-wrapper{background:#fff;border-radius:16px;box-shadow:0 18px 40px -16px rgba(24,24,27,.28),0 0 0 1px rgba(24,24,27,.06);padding:0}
.leaflet-popup-content{margin:16px 18px 14px;min-width:220px;max-width:260px}
.leaflet-popup-tip{background:#fff;box-shadow:none}
.leaflet-container a.leaflet-popup-close-button{top:10px;right:10px;width:26px;height:26px;border-radius:50%;color:var(--muted);font:18px/24px Geist,system-ui,sans-serif;background:var(--s2)}
.leaflet-container a.leaflet-popup-close-button:hover{color:var(--ink)}
.spop{gap:5px}
.spop-h{display:flex;align-items:center;gap:8px;margin-bottom:2px}
.spop-ic{width:28px;height:28px;border-radius:9px;background:var(--acc-soft);color:var(--acc);display:grid;place-items:center}
.spop-ic svg{width:16px;height:16px}
.spop-type{font-size:12px;font-weight:600;color:var(--acc);letter-spacing:.01em}
.spop>b{font-size:16px;font-weight:600;color:var(--ink);line-height:1.25;margin-bottom:2px}
.spop-row{display:flex;align-items:flex-start;gap:7px;font-size:13px;color:var(--ink2);line-height:1.35}
.spop-row svg{width:14px;height:14px;color:var(--muted);margin-top:2px;flex:none}
.spop-feats{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0 4px}
.spop-feats span{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--ink2);background:var(--s1);border:1px solid var(--line);border-radius:999px;padding:3px 9px}
.spop-feats svg{width:11px;height:11px;color:var(--acc)}
.leaflet-container a.spop-go{margin-top:6px;display:flex;align-items:center;justify-content:center;gap:6px;padding:9px;border-radius:10px;background:var(--ink);color:#fff;font-weight:600;font-size:13.5px}
.spop-go svg{width:15px;height:15px}
.leaflet-container a.spop-go:hover{opacity:.88}

/* blue tick: government ID verified */
.vtick{display:inline-flex;vertical-align:-0.12em;margin-left:4px;line-height:0}
.vtick svg{width:1.05em;height:1.05em;min-width:14px;min-height:14px}
h1 .vtick svg{width:.8em;height:.8em}

/* popups: even margins, title clear of the close button */
.leaflet-popup-content{margin:18px 18px 16px}
.spop>b{padding-right:30px}
.leaflet-container a.leaflet-popup-close-button{top:12px;right:12px}
.pinpop{gap:4px}
.pinpop>b{font-size:15.5px;line-height:1.3}
.pinpop>small{margin-bottom:8px}
.pinpop .inp{width:100%;padding:10px 12px;font-size:14px;margin:0}
.pinpop-acts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.pinpop-acts .btn{width:100%;padding:9px 12px;font-size:14px}

/* Credits: three columns */
.cred-grid{display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:16px;align-items:start}
.cred-free{margin-top:16px;padding:12px;border-radius:12px;background:var(--s1);border:1px solid var(--line);font-size:13px;color:var(--ink2);display:flex;flex-direction:column;gap:2px}
.cred-free b{color:var(--ink);font-weight:600}
.cred-table table{width:100%;border-collapse:collapse}
.cred-table td{padding:10px 0;border-top:1px solid var(--line);vertical-align:top}
.cred-table tr:first-child td{border-top:0}
.cred-table td.ci{width:34px;color:var(--ink2)}.cred-table td.ci svg{width:18px;height:18px;margin-top:2px}
.cred-table b{font-weight:600;display:block;font-size:14.5px}
.cred-table small{color:var(--muted);font-size:12.5px;line-height:1.4;display:block}
.cred-table td.cn{text-align:right;font-weight:600;font-size:16px;white-space:nowrap;padding-left:10px}
.cred-table td.cn::after{content:' cr';font-size:12px;font-weight:500;color:var(--muted)}
.cred-how{margin-top:12px;padding:12px;border-radius:12px;background:var(--gold-soft);font-size:13px;color:var(--ink2);display:flex;flex-direction:column;gap:3px}
.cred-how b{display:flex;align-items:center;gap:6px;color:var(--ink);font-weight:600}
.cred-how b svg{width:16px;height:16px}
@media (max-width:1100px){.cred-grid{grid-template-columns:1fr 1fr}.cred-table{grid-column:1/-1}}
@media (max-width:900px){.cred-grid{grid-template-columns:1fr}}

/* pin popup: fixed width, even spacing, title clear of the close button */
.leaflet-container .pin-popup .leaflet-popup-content-wrapper{padding:0;border-radius:16px}
.leaflet-container .pin-popup .leaflet-popup-content{margin:20px 20px 18px;width:240px!important;min-width:0;max-width:none;line-height:1.35}
.leaflet-container .pin-popup a.leaflet-popup-close-button{top:14px;right:14px;width:28px;height:28px;font:18px/26px Geist,system-ui,sans-serif;text-align:center}
.pinpop{display:flex;flex-direction:column;gap:0}
.pinpop>b{display:block;font-size:15.5px;font-weight:600;line-height:1.3;padding-right:34px;margin:0}
.pinpop>small{display:block;margin:6px 0 14px;font-size:12.5px;color:var(--muted);line-height:1.4}
.pinpop .inp{display:block;width:100%;box-sizing:border-box;margin:0;padding:10px 12px;font-size:14px}
.pinpop-acts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.pinpop-acts .btn{width:100%;min-width:0;box-sizing:border-box;padding:10px 8px;font-size:14px;justify-content:center}

/* ===== loading states (the menu stays; only the page area loads) ===== */
.sk{display:block;border-radius:8px;margin:8px 0;background:linear-gradient(90deg,var(--s2) 0%,var(--s1) 40%,var(--s2) 80%);background-size:300% 100%;animation:shimmer 1.3s ease-in-out infinite}
.sk-card{display:block}.sk-img{aspect-ratio:1/0.75;border-radius:14px;margin:0 0 12px}
.sk-deck{height:min(520px,calc(100vh - 300px));border-radius:22px;margin-top:16px}
.sk-rows{margin-top:24px}.sk-row{display:flex;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.sk-row>div{flex:1}
.sk-dot{width:44px;height:44px;border-radius:12px;margin:0;flex:none}
@keyframes shimmer{0%{background-position:100% 0}100%{background-position:0 0}}

.spot-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;min-height:min(520px,calc(100vh - 260px));border:1px solid var(--line);border-radius:20px;background:radial-gradient(ellipse at center,var(--acc-soft) 0%,var(--bg) 70%);padding:30px 20px}
.spot-loading>b{font-size:16px;font-weight:600;max-width:420px;min-height:44px}
.spot-loading>b.in{animation:msgIn .45s ease-out}
.spot-loading>small{color:var(--muted);font-size:13px}
.radar{position:relative;width:180px;height:180px;margin-bottom:12px}
.radar>i{position:absolute;inset:0;border-radius:50%;border:1.5px solid var(--acc);opacity:0;animation:ring 2.6s ease-out infinite}
.radar>i:nth-child(2){animation-delay:.87s}.radar>i:nth-child(3){animation-delay:1.73s}
.radar .sweep{position:absolute;inset:10%;border-radius:50%;background:conic-gradient(from 0deg,rgba(14,133,120,.28),rgba(14,133,120,0) 28%);animation:spin 2.4s linear infinite}
.radar>b{position:absolute;left:50%;top:50%;width:58px;height:58px;margin:-29px 0 0 -29px;border-radius:18px;background:var(--ink);color:#fff;display:grid;place-items:center;box-shadow:0 10px 24px -10px rgba(0,0,0,.45);animation:bob 2.2s ease-in-out infinite}
.radar>b svg{width:28px;height:28px}
.radar>em{position:absolute;left:var(--x);top:var(--y);width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:var(--acc);box-shadow:0 0 0 4px rgba(14,133,120,.18);opacity:0;animation:blip 3.2s ease-out infinite;animation-delay:var(--d)}
@keyframes ring{0%{transform:scale(.35);opacity:.7}100%{transform:scale(1);opacity:0}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes blip{0%{opacity:0;transform:scale(.3)}12%{opacity:1;transform:scale(1.15)}22%{transform:scale(1)}70%{opacity:1}100%{opacity:0}}
@keyframes msgIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.sk,.radar>i,.radar .sweep,.radar>b,.radar>em,.spot-loading>b.in{animation:none}.radar>em{opacity:1}.radar>i:first-child{opacity:.4;transform:scale(.8)}}

/* popups: spacing as padding on the white box (margins on the content collapsed out of the box) */
.leaflet-container .leaflet-popup-content-wrapper{padding:18px 18px 16px;display:flow-root;box-sizing:border-box}
.leaflet-container .leaflet-popup-content{margin:0;min-width:220px;max-width:260px;overflow-wrap:anywhere}
.leaflet-container .leaflet-popup-content .spop{width:100%;box-sizing:border-box}
.leaflet-container a.spop-go{width:100%;box-sizing:border-box;margin:10px 0 0}
.leaflet-container .spop-feats{margin:8px 0 2px}
.leaflet-container .pin-popup .leaflet-popup-content-wrapper{padding:20px 20px 18px}
.leaflet-container .pin-popup .leaflet-popup-content{margin:0;width:240px!important;min-width:0;max-width:none}
.leaflet-container a.leaflet-popup-close-button{top:12px;right:12px}

/* sign-in: more room between the Sign in button and "Forgot password?" */
.lform .inner p.forgot{margin:26px 0 6px;text-align:center;font-size:14px}

/* reviews */
.reviews{margin-top:14px;display:flex;flex-direction:column;gap:10px}
.rv-h{display:flex;justify-content:space-between;align-items:center}
.rv{border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.rv p{margin:0;font-size:14px;color:var(--ink)}
.rv small{color:var(--muted);font-size:12px}
.rstars{color:var(--gold);letter-spacing:1px;font-size:14px}.rstars i{font-style:normal;color:var(--line2)}

/* ================= mobile and tablet polish (checked with real screenshots at 360–1440 px) ================= */
.mnav a{position:relative}                       /* the Trades/Chats count sits on its own tab, not on "+" */
.mnav .n{left:calc(50% + 4px);top:-2px}
.chips-scroll{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
.chips-scroll::-webkit-scrollbar{display:none}
.chips-scroll>*{flex:none}
.myacts{display:flex;gap:8px;align-items:center;flex:none}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overscroll-behavior-y:none}
button,a,.btn,.chip,.mnav a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}

/* Swipe: the card and its buttons always fit on screen */
.swipe-wrap{display:flex;flex-direction:column}
.deck{height:clamp(300px,calc(100dvh - 330px),620px);min-height:0}
.sacts{flex:none}

/* phones */
@media (max-width:899px){
  .inp,select.inp,textarea.inp,.searchbox input,.lucky-form input,input[type=text],input[type=email],input[type=password],input[type=number],textarea{font-size:16px}   /* iPhone zooms in on smaller text when you tap a field */
  .top{padding-top:env(safe-area-inset-top,0px);height:calc(58px + env(safe-area-inset-top,0px))}
  .deck{height:clamp(280px,calc(100dvh - 58px - 72px - 250px - env(safe-area-inset-bottom,0px)),560px)}
  .swipe-wrap{padding-top:12px;padding-bottom:12px}
  .swipe-wrap .ph{margin-bottom:8px}
  .sacts{margin-top:12px;gap:14px}
  .sacts button{width:54px;height:54px}.sacts .save{width:46px;height:46px}.sacts .undo{width:40px;height:40px}
  .myrow{flex-wrap:wrap}
  .myrow .tx{flex:1 1 calc(100% - 80px);min-width:0}
  .myrow .myacts{width:100%;padding-left:64px;flex-wrap:wrap}
  .ch{gap:10px}.ch .tx{min-width:0;flex:1}
  .ch .tx b,.ch .tx small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .me-head{align-items:flex-start}
  .me-tabs{width:100%}
  .lucky-panel{height:calc(88dvh - env(safe-area-inset-top,0px))}
}
@media (max-width:479px){
  .hide-sm{display:none}
  .wrap{padding-left:14px;padding-right:14px}
  .ph h1{font-size:24px}
  .footacts .btn{padding-left:12px;padding-right:12px}
}
/* tablets in portrait (and big phones in landscape): more room, so use it */
@media (min-width:600px) and (max-width:899px){
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .wrap{padding-left:24px;padding-right:24px}
  .itemv{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
  #itemForm{max-width:640px;margin:0 auto}
  .modal{max-width:560px;margin:0 auto;border-radius:22px 22px 0 0}
  .lucky-panel{left:auto;right:16px;width:420px;bottom:calc(84px + env(safe-area-inset-bottom,0px));height:min(620px,calc(100dvh - 180px));border-radius:20px}
}
/* phones turned sideways: very little height */
@media (max-height:500px) and (orientation:landscape){
  .deck{height:max(240px,calc(100dvh - 200px))}
  .top{height:50px}
  .lform .auth-brand{margin-bottom:12px}.lform .auth-brand svg{width:44px;height:44px}
}
/* large desktops: keep lines readable */
@media (min-width:1600px){ .wrap{max-width:1360px} }
/* Swipe on a phone turned sideways: photo beside the details so the buttons stay on screen */
@media (max-height:500px) and (orientation:landscape){
  .swipe-wrap{max-width:640px;padding-top:6px}
  .swipe-wrap .ph p,.swipe-wrap .ph .btn{display:none}
  .swipe-wrap .ph{margin-bottom:4px}.swipe-wrap .ph h1{font-size:20px}
  .deck{height:max(170px,calc(100dvh - 50px - 64px - 120px))}
  .scard{flex-direction:row}
  .scard .photo{flex:0 0 42%}
  .scard .info{flex:1;overflow:auto}
  .sacts{margin-top:8px}
}

/* sign-in: policy links and who runs Swapzy */
.auth-foot{max-width:380px;width:100%;align-self:center;margin-top:28px;padding-top:16px;border-top:1px solid var(--line)}
.legal-links{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px;line-height:1.5}
.legal-links a{color:var(--ink2);text-decoration:none;white-space:nowrap}
.legal-links a:hover{color:var(--ink);text-decoration:underline}
.operator-line{font-size:11.5px;color:var(--muted);line-height:1.6;margin:10px 0 0}
.operator-line span{display:block;text-wrap:balance}
.operator-line a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.operator-line a:hover{color:var(--ink2)}
.check a.link{font-weight:500}

.check>span{flex:1;min-width:0;line-height:1.5}
/* sign-in helper links and footer: centred */
.lform .inner p.auth-switch{margin:22px 0 0;text-align:center}
.auth-foot{text-align:center}
.auth-foot .legal-links{justify-content:center}

/* sign-in screens: field names inside the boxes (they float up when you type) */
.fl{position:relative;display:block;margin-top:12px}
.fl .combo{display:block}
.fl .inp{height:56px;padding:22px 14px 7px;font-size:16px;line-height:1.2}
.fl .fl-l{position:absolute;left:15px;top:28px;transform:translateY(-50%);font-size:15px;color:var(--muted);pointer-events:none;transition:top .15s,font-size .15s,color .15s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 30px)}
.fl:has(.inp:focus) .fl-l,.fl:has(.inp:not(:placeholder-shown)) .fl-l,.fl:has(.inp:autofill) .fl-l{top:9px;transform:none;font-size:11.5px;font-weight:500;color:var(--ink2)}
.fl:has(.inp:focus) .fl-l{color:var(--acc)}
.fl-pre .inp{padding-left:50px}
.fl-pre .pre{position:absolute;left:15px;top:27px;font-size:16px;line-height:1.2;color:var(--ink2);opacity:0;transition:opacity .15s;pointer-events:none}
.fl-pre:has(.inp:focus) .pre,.fl-pre:has(.inp:not(:placeholder-shown)) .pre{opacity:1}
.lform form .check{margin-top:16px}
/* phones and small tablets: everything centred */
@media (max-width:900px){
  .lform .inner{text-align:center}
  .lform .auth-brand{justify-content:center}
  .lform .inner .fl,.lform .inner .check,.lform .inner .combo-list{text-align:left}
}

/* confirm-email code on Me */
.email-code{display:flex;gap:8px;align-items:flex-start;margin-top:10px;max-width:340px}
.email-code .fl{flex:1;margin-top:0}.email-code .btn{height:56px;flex:none}

/* ---------- sign-in pages: hero + sheet (phones: dark hero, white sheet) ---------- */
.auth-hero,.auth-sheet{max-width:380px;width:100%;align-self:center}
.auth-hero{margin-top:auto}.auth-sheet{margin-bottom:auto;display:flex;flex-direction:column}
.auth-hero>p{color:var(--ink2);margin:0 0 24px}
.auth-hero h1{margin-top:0}
@media (max-width:900px){
  .login.authwrap{min-height:100%;background:#18181B}
  .lform{padding:0;min-height:100%;background:#18181B}
  .auth-hero{--ink:#FFFFFF;--acc:#2DB3A3;max-width:none;margin:0;padding:calc(40px + env(safe-area-inset-top,0px)) 28px 30px;text-align:center;color:#FFFFFF}
  .lform .auth-hero .auth-brand{justify-content:center;margin-bottom:16px;color:#FFFFFF;font-size:32px;flex-direction:column;gap:4px}
  .lform .auth-hero .auth-brand svg{width:92px;height:92px}
  .auth-hero h1{color:#FFFFFF;font-size:25px;line-height:1.18;letter-spacing:-.02em;max-width:330px;margin:0 auto}
  .auth-hero>p{color:#C9C9CF;font-size:14.5px;margin:10px auto 0;max-width:320px}
  .auth-sheet{max-width:none;margin:0;flex:1;background:var(--bg);border-radius:26px 26px 0 0;padding:24px 22px calc(16px + env(safe-area-inset-bottom,0px))}
  .auth-sheet .inner{max-width:420px;margin:0 auto;width:100%;text-align:center}
  .auth-sheet .inner form{text-align:left}
  .auth-sheet .auth-foot{max-width:420px;margin:auto auto 0;padding-top:14px}
  .lform .auth-sheet .inner{margin-top:0}
}
@media (max-width:900px) and (prefers-color-scheme:dark){.login.authwrap,.lform{background:#000}}

/* ---------- bottom menu on phones: more room on every side ---------- */
@media (max-width:900px){
  .mnav{padding:10px 12px calc(14px + env(safe-area-inset-bottom,0px));gap:4px;align-items:center}
  .mnav a{padding:6px 0 4px;gap:4px;border-radius:12px}
  .mnav a.plus{height:46px;width:54px;margin:0 6px}
}
.lform .auth-sheet .inner{margin:0;align-self:stretch}

/* ---------- softer look: tinted page behind white cards (Me, Credits), small touches elsewhere ---------- */
:root{--page:#F6F6F4}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--page:#0B0B0D}}
:root[data-theme="dark"]{--page:#0B0B0D}
main:has(.wrap.soft){background:var(--page)}
.panel{background:var(--bg);box-shadow:0 1px 2px rgba(16,24,40,.04)}
.wrap.soft .panel{border-color:transparent;box-shadow:0 1px 3px rgba(16,24,40,.06),0 0 0 1px rgba(16,24,40,.04)}
.ph h1{letter-spacing:-.02em}

/* Me */
.me-head{position:relative;background:var(--bg);border-radius:20px;padding:58px 20px 18px;overflow:hidden;box-shadow:0 1px 3px rgba(16,24,40,.06),0 0 0 1px rgba(16,24,40,.04);align-items:flex-end}
.me-head::before{content:'';position:absolute;left:0;right:0;top:0;height:70px;background:var(--acc-soft)}
.me-head>*{position:relative}
.me-head .who{align-items:flex-end}
.me-head .av.lg{width:76px;height:76px;font-size:24px;box-shadow:0 0 0 4px var(--bg)}
.me-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.me-chips span{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:500;color:var(--ink2);background:var(--s2);border-radius:999px;padding:4px 10px}
.me-chips span svg{width:14px;height:14px}
.me-chips span.ok{background:var(--acc-soft);color:var(--acc)}
.me-tabs{background:var(--bg);border-radius:12px;padding:4px;box-shadow:0 0 0 1px rgba(16,24,40,.05)}
.me-tabs a.on{background:var(--ink);color:var(--bg)}
.wrap.soft .meter{background:var(--acc-soft);height:7px}
.wrap.soft .meter i{background:var(--acc);border-radius:7px}
.vr .i{background:var(--acc-soft);color:var(--acc)}
.me-stats a{background:var(--s1);border-color:transparent}
.me-stats a:hover{background:var(--acc-soft)}
.me-stats b svg{color:var(--acc)}

/* Credits */
.cred-bal{background:var(--acc-soft)!important;box-shadow:none!important}
.cred-bal .cb-top{display:flex;align-items:center;gap:10px}
.cred-bal .cb-top h4{color:var(--ink2);margin:0}
.cred-bal .cb-ic{width:38px;height:38px;border-radius:12px;background:var(--bg);display:grid;place-items:center;color:var(--acc)}
.cred-bal .cb-ic svg{width:20px;height:20px}
.cred-bal .sc{font-size:54px}
.cred-bal .trust span:last-child{color:var(--ink2);font-weight:500}
.cred-bal .cred-free{background:var(--bg);border-color:transparent}
.creditchips button{background:var(--bg);display:flex;flex-direction:column;align-items:flex-start;gap:1px;font-size:16px;min-width:96px;padding:10px 14px}
.creditchips button small{font-size:11.5px;font-weight:500;color:var(--muted)}
.creditchips button.on{border-color:var(--acc);background:var(--acc-soft);box-shadow:0 0 0 1px var(--acc) inset}
.creditchips button.on small{color:var(--acc)}
.cred-table td.ci svg{width:16px;height:16px;margin:0;color:var(--acc)}
.cred-table td.ci{width:44px;padding-right:10px}
.cred-table td.ci{background-clip:content-box}
.cred-table td.ci svg{display:block;box-sizing:content-box;padding:8px;border-radius:10px;background:var(--acc-soft)}
.ledger{background:var(--bg);border-radius:16px;padding:4px 16px;box-shadow:0 1px 3px rgba(16,24,40,.06),0 0 0 1px rgba(16,24,40,.04)}
.ledger .irow .t{border-radius:12px;font-size:13.5px}
.ledger .irow .t.up{background:var(--acc-soft);color:var(--acc)}
.ledger .irow .t.down{background:var(--s2);color:var(--ink2)}
.me-head{padding-top:30px}
.me-head::before{height:66px}
.me-head .who{flex-direction:column;align-items:flex-start;gap:12px}
.me-head .who h1{margin-top:2px}
.cred-how span b{display:inline;font-weight:600}
@media (max-width:900px){.me-head{padding:30px 16px 16px}.me-head .footacts{width:100%}.me-head .footacts .btn{flex:1}}
/* small touches elsewhere: active bottom tab gets a soft teal pill */
@media (max-width:900px){.mnav a.on{color:var(--acc);background:var(--acc-soft)}.mnav a.on.plus{background:var(--ink);color:var(--bg)}}
