:root{--navy:#012b55;--navy-2:#0a3a6b;--red:#ff3f34;--white:#fff;--ink:#0b1a2b;--mute:#5d6b7c;--line:#e3e8ee;--bg:#f5f7fa;--card:#fff;--ok:#1a8f5a;--r:14px;--tab:62px;--top:56px}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:'Montserrat',system-ui,-apple-system,Segoe UI,sans-serif;font-size:15px;line-height:1.45}
body{min-height:100vh}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit}
h1,h2,h3{margin:0;font-weight:600}
h1{font-size:15px;letter-spacing:.18em;text-transform:uppercase}
h2{font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--navy)}
h3{font-size:15px}
.shell{max-width:560px;margin:0 auto;min-height:100vh;background:var(--white);position:relative;padding-bottom:calc(var(--tab) + env(safe-area-inset-bottom));box-shadow:0 0 0 1px var(--line)}
.shell.noTabs{padding-bottom:0}
.top{position:sticky;top:0;z-index:20;height:var(--top);display:flex;align-items:center;gap:8px;padding:0 14px;background:var(--navy);color:#fff}
.top .logo{height:30px;width:auto}
.top h1{flex:1;color:#fff;text-align:center}
.top .sp{flex:1}
.top .iconbtn{color:#fff}
.iconbtn{position:relative;width:40px;height:40px;border:0;background:none;display:grid;place-items:center;border-radius:50%;cursor:pointer;color:var(--navy)}
.iconbtn:hover{background:rgba(127,127,127,.15)}
.iconbtn svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dot{position:absolute;top:5px;right:4px;min-width:17px;height:17px;border-radius:9px;background:var(--red);color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center;padding:0 4px}
.tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:560px;height:calc(var(--tab) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid var(--line);display:flex;z-index:30}
.tabs a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;color:var(--mute);font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.tabs a svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tabs a.on{color:var(--navy)}
.tabs a.plus span.pl{width:42px;height:42px;border-radius:50%;background:var(--red);display:grid;place-items:center;color:#fff;margin-top:-14px;box-shadow:0 4px 12px rgba(255,63,52,.4)}
.tabs a.plus svg{stroke:#fff}
.pad{padding:16px}
.stack>*+*{margin-top:14px}
.row{display:flex;align-items:center;gap:10px}
.row.sb{justify-content:space-between}
.grow{flex:1;min-width:0}
.mute{color:var(--mute)}
.small{font-size:12.5px}
.tiny{font-size:11px;letter-spacing:.06em}
.up{text-transform:uppercase;letter-spacing:.14em;font-size:11.5px}
.center{text-align:center}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:14px}
.sect{padding:18px 16px 6px}
.hr{height:8px;background:var(--bg)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 20px;border-radius:999px;border:1.5px solid var(--navy);background:var(--navy);color:#fff;font-weight:600;letter-spacing:.12em;text-transform:uppercase;font-size:12px;cursor:pointer;text-decoration:none}
.btn:hover{background:var(--navy-2)}
.btn.red{background:var(--red);border-color:var(--red)}
.btn.ghost{background:transparent;color:var(--navy)}
.btn.ghost:hover{background:rgba(1,43,85,.07)}
.btn.sm{height:34px;padding:0 14px;font-size:11px}
.btn.block{width:100%}
.btn[disabled]{opacity:.5;pointer-events:none}
.link{background:none;border:0;padding:0;cursor:pointer;color:var(--navy);text-decoration:underline;text-underline-offset:3px;font-weight:500}
.link.red{color:var(--red)}
.field{display:block}
.field>span{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute);margin-bottom:6px}
.in,select.in,textarea.in{width:100%;border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff;outline:none}
.in:focus{border-color:var(--navy)}
textarea.in{min-height:96px;resize:vertical}
.err{color:var(--red);font-size:13px;min-height:18px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:7px 13px;font-size:12px;cursor:pointer;color:var(--ink)}
.chip.on{background:var(--navy);border-color:var(--navy);color:#fff}
.chip.static{cursor:default}
.badge{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--red);vertical-align:-3px;margin-left:5px}
.badge svg{width:10px;height:10px;stroke:#fff;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.av{border-radius:50%;object-fit:cover;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:600;flex:none;overflow:hidden}
.av.s{width:36px;height:36px;font-size:14px}.av.m{width:48px;height:48px;font-size:18px}.av.l{width:84px;height:84px;font-size:30px}
.person{display:flex;align-items:center;gap:12px;text-decoration:none}
.person b{font-weight:600}
.post{border-bottom:8px solid var(--bg)}
.post .head{display:flex;align-items:center;gap:10px;padding:12px 14px}
.post .ph{position:relative;background:#e9edf2;aspect-ratio:4/5;overflow:hidden}
.post .ph img{width:100%;height:100%;object-fit:cover}
.post .count{position:absolute;top:10px;right:10px;background:rgba(1,43,85,.8);color:#fff;border-radius:999px;font-size:11px;padding:3px 9px}
.post .feat{position:absolute;left:10px;top:10px;background:var(--red);color:#fff;font-size:10px;letter-spacing:.12em;text-transform:uppercase;padding:4px 9px;border-radius:999px;font-weight:600}
.post .bar{display:flex;align-items:center;gap:2px;padding:6px 8px}
.post .bar .iconbtn.on{color:var(--red)}
.post .bar .iconbtn.on svg{fill:var(--red)}
.post .body{padding:0 14px 14px}
.slider{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.slider::-webkit-scrollbar{display:none}
.slider>img{flex:none;width:100%;height:100%;object-fit:cover;scroll-snap-align:center}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}
.grid a{position:relative;display:block;aspect-ratio:1;background:#e9edf2}
.grid img{width:100%;height:100%;object-fit:cover}
.grid .multi{position:absolute;top:6px;right:6px;width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
.stats{display:flex;justify-content:space-around;text-align:center;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.stats a,.stats div{text-decoration:none;flex:1}
.stats b{display:block;font-size:17px}
.stats span{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
.seg{display:flex;border-bottom:1px solid var(--line);position:sticky;top:var(--top);background:#fff;z-index:10}
.seg button{flex:1;height:44px;border:0;background:none;cursor:pointer;font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute);border-bottom:2px solid transparent}
.seg button.on{color:var(--navy);border-color:var(--red);font-weight:600}
.empty{padding:48px 28px;text-align:center;color:var(--mute)}
.empty svg{width:44px;height:44px;stroke:var(--navy);fill:none;stroke-width:1.4;opacity:.5;margin:0 auto 12px}
.empty h3{color:var(--ink);margin-bottom:6px}
.list>*{border-bottom:1px solid var(--line)}
.item{display:flex;align-items:center;gap:12px;padding:12px 16px;text-decoration:none;cursor:pointer}
.item.unread{background:#f0f6fd}
.thumb{width:48px;height:48px;border-radius:10px;object-fit:cover;background:#e9edf2;flex:none}
.map{position:relative;height:260px;background:linear-gradient(#e8eef5,#dde6f0);overflow:hidden;border-bottom:1px solid var(--line)}
.map::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(1,43,85,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(1,43,85,.07) 1px,transparent 1px);background-size:40px 40px}
.map .ring{position:absolute;left:50%;top:50%;border:1.5px dashed rgba(1,43,85,.35);border-radius:50%;transform:translate(-50%,-50%)}
.map .you{position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px;border-radius:50%;background:var(--navy);box-shadow:0 0 0 6px rgba(1,43,85,.2)}
.pin{position:absolute;width:34px;height:34px;margin:-17px;border-radius:50%;border:2px solid #fff;background:var(--red);color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center;cursor:pointer;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.3);padding:0}
.pin img{width:100%;height:100%;object-fit:cover}
.sheetbg{position:fixed;inset:0;background:rgba(1,20,40,.5);z-index:100;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:#fff;width:100%;max-width:560px;border-radius:20px 20px 0 0;padding:18px 18px calc(18px + env(safe-area-inset-bottom));max-height:88vh;overflow:auto}
.sheet .grab{width:40px;height:4px;border-radius:2px;background:var(--line);margin:0 auto 14px}
.sheet .opt{display:block;width:100%;text-align:left;padding:14px 4px;border:0;border-bottom:1px solid var(--line);background:none;cursor:pointer;font-size:14.5px}
.sheet .opt.red{color:var(--red)}
#toast{position:fixed;left:50%;bottom:calc(var(--tab) + 18px);transform:translate(-50%,20px);background:var(--navy);color:#fff;padding:11px 18px;border-radius:999px;font-size:13px;opacity:0;pointer-events:none;transition:.25s;z-index:200;max-width:90vw;text-align:center}
#toast.show{opacity:1;transform:translate(-50%,0)}
#toast.bad{background:var(--red)}
.hero{background:var(--navy);color:#fff;padding:40px 24px 28px;text-align:center}
.hero img{height:84px;margin:0 auto 14px}
.hero p{margin:0;opacity:.85}
.dropzone{border:2px dashed var(--line);border-radius:var(--r);padding:30px;text-align:center;cursor:pointer;color:var(--mute)}
.thumbs{display:flex;gap:8px;overflow-x:auto;padding:4px 0}
.thumbs .t{position:relative;flex:none;width:84px;height:84px;border-radius:10px;overflow:hidden}
.thumbs .t img{width:100%;height:100%;object-fit:cover}
.thumbs .t button{position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;border:0;background:rgba(0,0,0,.65);color:#fff;cursor:pointer}
.msg{max-width:78%;padding:9px 13px;border-radius:16px;background:var(--bg);margin:6px 0;word-wrap:break-word}
.msg.me{margin-left:auto;background:var(--navy);color:#fff}
.msg small{display:block;opacity:.6;font-size:10px;margin-top:2px}
.stars{color:var(--red);letter-spacing:2px}
.star{border:0;background:none;font-size:30px;color:var(--line);cursor:pointer;padding:0 3px}
.star.on{color:var(--red)}
.status{display:inline-block;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;padding:3px 10px;border-radius:999px;background:var(--bg);color:var(--navy);font-weight:600}
.status.confirmed,.status.completed{background:#e4f5ec;color:var(--ok)}
.status.declined,.status.cancelled{background:#fdeceb;color:var(--red)}
.kv{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}
.kv span:first-child{color:var(--mute)}
.tl{border-left:2px solid var(--line);margin-left:6px;padding-left:16px}
.tl div{position:relative;padding:0 0 14px}
.tl div::before{content:"";position:absolute;left:-23px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--red)}
.switch{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.switch input{width:44px;height:26px;appearance:none;background:var(--line);border-radius:13px;position:relative;cursor:pointer;transition:.2s;flex:none}
.switch input::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s}
.switch input:checked{background:var(--navy)}
.switch input:checked::after{left:21px}
.loading{padding:40px;text-align:center;color:var(--mute)}
.spin{width:26px;height:26px;border:3px solid var(--line);border-top-color:var(--navy);border-radius:50%;margin:0 auto;animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.menu a.item svg{width:20px;height:20px;stroke:var(--navy);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.notice{background:#fff6e5;border:1px solid #f4dca6;border-radius:12px;padding:12px 14px;font-size:13px}
.notice.blue{background:#eef5fd;border-color:#cfe1f6}
.scroll-x{display:flex;gap:10px;overflow-x:auto;padding:4px 16px 12px;scrollbar-width:none}
.scroll-x::-webkit-scrollbar{display:none}
.mini{flex:none;width:130px;text-align:center;text-decoration:none;padding:14px 8px;border:1px solid var(--line);border-radius:var(--r)}
.mini .av{margin:0 auto 8px}
.cap{white-space:pre-wrap;word-wrap:break-word}
.tag{color:var(--navy);font-weight:500;text-decoration:none;margin-right:6px}
@media (min-width:600px){.shell{margin-top:0}}

/* ===== Polish pass: lighter, more editorial, less default-Android ===== */
:root{--sh:0 1px 2px rgba(1,43,85,.06),0 8px 24px rgba(1,43,85,.07);--r:20px}
svg{flex:none}
.chip svg,.item svg,.btn svg,.notice svg,.tile svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body{background:#fff;-webkit-font-smoothing:antialiased}
.shell{box-shadow:none;border-left:1px solid var(--line);border-right:1px solid var(--line)}
/* header: white glass with navy wordmark, thin red underline */
.top{background:rgba(255,255,255,.88);-webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px);color:var(--navy);border-bottom:1px solid var(--line);height:58px}
.top::after{content:"";position:absolute;left:0;bottom:-1px;width:56px;height:2px;background:var(--red)}
.top .logo{height:34px}
.top h1{color:var(--navy);font-size:13px;letter-spacing:.24em}
.top .iconbtn{color:var(--navy)}
.dot{background:var(--red);border:2px solid #fff;top:3px;right:2px}
/* tab bar: glass, quiet, small navy square for Post */
.tabs{background:rgba(255,255,255,.9);-webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px);border-top:1px solid var(--line)}
.tabs a{font-size:9.5px;letter-spacing:.14em;gap:3px}
.tabs a.on{color:var(--navy);font-weight:700}
.tabs a.on svg{stroke-width:2.3}
.tabs a.plus span.pl{width:46px;height:34px;border-radius:12px;background:var(--navy);margin-top:0;box-shadow:none}
.tabs a.plus svg{width:22px;height:22px}
/* posts: edge-to-edge photo, calmer meta */
.post{border-bottom:0;margin-bottom:26px}
.post .head{padding:6px 16px 12px}
.post .ph{aspect-ratio:4/5;border-radius:0;background:#eef1f5}
.post .bar{padding:8px 10px 2px}
.post .bar .iconbtn{color:var(--navy)}
.post .body{padding:2px 16px 4px}
.post .feat{background:#fff;color:var(--navy);box-shadow:var(--sh);left:14px;top:14px;border-radius:999px;font-weight:700}
.post .count{background:rgba(255,255,255,.9);color:var(--navy)}
.av{box-shadow:0 0 0 2px #fff,0 0 0 3px var(--line)}
.btn{box-shadow:none;letter-spacing:.14em}
.btn.red{box-shadow:0 6px 16px rgba(255,63,52,.28)}
.card,.mini{box-shadow:var(--sh);border:1px solid rgba(1,43,85,.06);border-radius:var(--r)}
.in,select.in,textarea.in{border-radius:14px;background:#f7f9fb;border:1.5px solid transparent}
.in:focus{background:#fff;border-color:var(--navy)}
.chip{border-radius:999px;background:#f3f6f9;border-color:transparent;font-weight:500}
.chip.on{background:var(--navy)}
h2{display:flex;align-items:center;gap:10px;font-size:12px;letter-spacing:.2em}
.sect{padding:26px 16px 10px}
.sect h2::after{content:"";flex:1;height:1px;background:var(--line)}
.seg{background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);top:58px}
.seg button{font-weight:500}
.hr{height:0;background:none}
.list>*{border-bottom:1px solid #eef1f5}
.item{padding:14px 16px}
.notice{border-radius:16px}
.empty{padding:64px 32px}
.empty svg{width:48px;height:48px;opacity:.35}
/* explore shortcuts */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px 16px}
.tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 6px;border-radius:18px;background:#f3f6f9;text-decoration:none;color:var(--navy);font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:600}
.tile:hover{background:#e9eff5}
.tile svg{width:26px;height:26px}
.grid{gap:3px}
.grid a{border-radius:2px}
.stats{border:0;background:#f7f9fb;margin:0 16px;border-radius:18px}
.map{border-radius:0}
.hero{background:linear-gradient(160deg,#012b55,#0a3a6b)}
.sheet{border-radius:26px 26px 0 0}
#toast{bottom:calc(var(--tab) + 22px);box-shadow:var(--sh)}
:focus-visible{outline:2px solid var(--red);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.badge svg,.item .badge svg,.chip .badge svg{width:10px;height:10px;stroke:#fff;stroke-width:3}
.mark{width:72px;height:auto;margin:0 auto}
.mark.pulse{animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35;transform:scale(.94)}}
.empty::before{content:"";display:block;width:64px;height:58px;margin:0 auto 14px;background:url(/img/mark-navy.png) center/contain no-repeat;opacity:.12}
.empty svg{display:none}
.hero .mark-white{width:56px;margin:14px auto 0;opacity:.9}

/* ===== Rounder layout ===== */
:root{--r:24px}
.dropzone{display:flex;flex-direction:column;align-items:center;gap:6px;border:2px dashed #cfd8e3;border-radius:28px;background:#f7f9fb;padding:34px 20px;color:var(--navy)}
.dropzone svg{width:40px;height:40px;stroke:var(--navy);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.dropzone.compact{padding:16px;flex-direction:row;justify-content:center;gap:12px;border-radius:999px}
.dropzone.compact svg{width:24px;height:24px}
.previews{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.previews.one{grid-template-columns:1fr}
.pv{position:relative;border-radius:26px;overflow:hidden;background:#eef1f5;aspect-ratio:4/5}
.previews.one .pv{aspect-ratio:4/5}
.pv img{width:100%;height:100%;object-fit:cover}
.pv button{position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:var(--navy);font-size:20px;line-height:1;cursor:pointer;box-shadow:var(--sh)}
.top{border-radius:0 0 26px 26px;box-shadow:0 6px 20px rgba(1,43,85,.07);border-bottom:0}
.top::after{display:none}
.tabs{left:50%;bottom:calc(10px + env(safe-area-inset-bottom));width:calc(100% - 24px);max-width:536px;height:64px;padding-bottom:0;border:1px solid rgba(1,43,85,.07);border-radius:30px;box-shadow:0 10px 30px rgba(1,43,85,.16)}
.shell{padding-bottom:calc(var(--tab) + 22px + env(safe-area-inset-bottom))}
.shell.noTabs{padding-bottom:0}
#toast{bottom:calc(var(--tab) + 36px)}
.tabs a.plus span.pl{border-radius:18px;width:50px;height:38px}
.seg{margin:12px 16px;border:0;border-radius:999px;background:#eef2f6;padding:4px;top:70px;gap:4px}
.seg button{height:38px;border:0;border-radius:999px;color:var(--mute)}
.seg button.on{background:#fff;color:var(--navy);box-shadow:0 2px 8px rgba(1,43,85,.12);border:0}
.post .ph{margin:0 12px;border-radius:28px}
.post .head{padding:6px 18px 12px}
.post .count{right:24px;top:14px}
.post .feat{left:26px}
.grid{gap:6px;padding:0 12px}
.grid a{border-radius:16px;overflow:hidden}
.map{margin:6px 16px 0;border-radius:28px;border:1px solid var(--line);aspect-ratio:1/1}
.in,select.in,textarea.in{border-radius:18px}
.hero{border-radius:0 0 36px 36px;padding-bottom:36px}
.stats{border-radius:22px}
.sheet{border-radius:30px 30px 0 0}
.msg{border-radius:22px}
.notice{border-radius:20px}
.item.notice{margin:0 16px}
.tile{border-radius:22px}
.thumb{border-radius:14px}
.mini{border-radius:24px}
.card{border-radius:24px}
.chips .chip,.scroll-x .chip{padding:8px 15px}
.list{margin:0 8px}
.list>*{border-radius:0}
@media (min-width:600px){.tabs{max-width:536px}}

/* ===== typeahead ===== */
.sugbox{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;border-radius:20px;box-shadow:0 14px 40px rgba(1,43,85,.22);border:1px solid var(--line);overflow:hidden;z-index:40}
.sug{display:flex;align-items:center;gap:12px;padding:10px 14px;text-decoration:none;color:var(--ink)}
.sug+.sug{border-top:1px solid #eef1f5}
.sug:hover{background:#f3f6f9}
.logo-w{display:none}

/* ===== Navy theme (default). Settings > Appearance turns it off. ===== */
body.dark{--ink:#fff;--mute:rgba(255,255,255,.64);--line:rgba(255,255,255,.14);--bg:#0a3a6b;--card:#0a3a6b;--sh:0 10px 30px rgba(0,12,28,.35);background:#012b55;color:#fff}
body.dark .logo-n{display:none}body.dark .logo-w{display:block}
body.dark .shell{background:#012b55;border-color:rgba(255,255,255,.08)}
body.dark .top{background:rgba(1,43,85,.86);color:#fff;box-shadow:0 8px 24px rgba(0,12,28,.35)}
body.dark .top h1,body.dark .top .iconbtn,body.dark .iconbtn{color:#fff}
body.dark .dot{border-color:#012b55}
body.dark h2{color:#fff}
body.dark .tabs{background:rgba(6,52,98,.92);border-color:rgba(255,255,255,.12);box-shadow:0 12px 32px rgba(0,12,28,.5)}
body.dark .tabs a{color:rgba(255,255,255,.55)}
body.dark .tabs a.on{color:#fff}
body.dark .tabs a.plus span.pl{background:var(--red);box-shadow:0 6px 16px rgba(255,63,52,.4)}
body.dark .card,body.dark .mini,body.dark .stats,body.dark .tile{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.1);box-shadow:none;color:#fff}
body.dark .tile:hover{background:rgba(255,255,255,.12)}
body.dark .in,body.dark select.in,body.dark textarea.in{background:rgba(255,255,255,.09);color:#fff;border-color:transparent}
body.dark .in::placeholder{color:rgba(255,255,255,.5)}
body.dark .in:focus{background:rgba(255,255,255,.14);border-color:#fff}
body.dark select.in option{color:#012b55}
body.dark .btn{background:#fff;border-color:#fff;color:#012b55}
body.dark .btn:hover{background:#e8eef5}
body.dark .btn.red{background:var(--red);border-color:var(--red);color:#fff}
body.dark .btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}
body.dark .btn.ghost:hover{background:rgba(255,255,255,.1)}
body.dark .link{color:#fff}body.dark .link.red{color:#ff8a82}
body.dark .chip{background:rgba(255,255,255,.1);color:#fff}
body.dark .chip.on{background:#fff;color:#012b55}
body.dark .seg{background:rgba(255,255,255,.09)}
body.dark .seg button{color:rgba(255,255,255,.65)}
body.dark .seg button.on{background:#fff;color:#012b55;box-shadow:none}
body.dark .list>*{border-color:rgba(255,255,255,.09)}
body.dark .item.unread{background:rgba(255,255,255,.07)}
body.dark .notice{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);color:#fff}
body.dark .notice.blue{background:rgba(255,255,255,.1)}
body.dark .kv{border-color:rgba(255,255,255,.12)}
body.dark .sheet{background:#0a3a6b;color:#fff}
body.dark .sheet .opt{color:#fff;border-color:rgba(255,255,255,.12)}
body.dark .sheet .opt.red{color:#ff8a82}
body.dark .sheet .grab{background:rgba(255,255,255,.25)}
body.dark .msg{background:rgba(255,255,255,.1)}
body.dark .msg.me{background:#fff;color:#012b55}
body.dark .empty h3{color:#fff}
body.dark .empty::before{background-image:url(/img/mark-white.png);opacity:.25}
body.dark .mark{filter:brightness(0) invert(1)}
body.dark .av{background:#1d5c9e;box-shadow:0 0 0 2px #012b55,0 0 0 3px rgba(255,255,255,.25)}
body.dark .status{background:rgba(255,255,255,.14);color:#fff}
body.dark .status.confirmed,body.dark .status.completed{background:rgba(70,210,140,.2);color:#7ff0b4}
body.dark .status.declined,body.dark .status.cancelled{background:rgba(255,63,52,.22);color:#ff9a93}
body.dark .map{background:linear-gradient(#0b3a6b,#08305a);border-color:rgba(255,255,255,.12)}
body.dark .map::before{background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px)}
body.dark .map .ring{border-color:rgba(255,255,255,.35)}
body.dark .map .you{background:#fff;box-shadow:0 0 0 6px rgba(255,255,255,.22)}
body.dark .dropzone{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.3);color:#fff}
body.dark .dropzone svg{stroke:#fff}
body.dark .pv,body.dark .post .ph,body.dark .grid a,body.dark .thumb{background:rgba(255,255,255,.08)}
body.dark .pv button{background:#fff}
body.dark .post .bar .iconbtn{color:#fff}
body.dark .post .bar .iconbtn.on{color:var(--red)}
body.dark .post .feat{background:var(--red);color:#fff}
body.dark .post .count{background:rgba(1,43,85,.8);color:#fff}
body.dark .tag{color:#9cc7ff}
body.dark .switch{border-color:rgba(255,255,255,.12)}
body.dark .switch input{background:rgba(255,255,255,.28)}
body.dark .switch input:checked{background:var(--red)}
body.dark .star{color:rgba(255,255,255,.25)}body.dark .star.on{color:var(--red)}
body.dark .stats span{color:rgba(255,255,255,.64)}
body.dark .sugbox{background:#0a3a6b;border-color:rgba(255,255,255,.15)}
body.dark .sug{color:#fff}body.dark .sug+.sug{border-color:rgba(255,255,255,.1)}body.dark .sug:hover{background:rgba(255,255,255,.08)}
body.dark #toast{background:#fff;color:#012b55}
body.dark .hero{background:#012b55}
body.dark .loading{color:#fff}
body.dark a{color:inherit}
.in:focus-visible{outline:none}

/* ===== Messages: character from the prototype ===== */
.top h1 .who{display:flex;align-items:center;gap:10px;text-decoration:none;text-transform:none;letter-spacing:0;text-align:left;color:inherit;font-weight:600}
.top h1:has(.who){text-align:left;flex:1}
.who .av{width:38px;height:38px;font-size:15px}
.who b{display:block;font-size:15px;line-height:1.15}
.who small{display:block;font-size:11.5px;font-weight:500;letter-spacing:.04em;color:var(--mute)}
.thread{padding:18px 16px 230px;display:flex;flex-direction:column;gap:6px;min-height:60vh}
.mrow{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.mrow.me{align-items:flex-end}
.bubble{max-width:80%;padding:11px 16px;font-size:14.5px;line-height:1.42;border-radius:20px 20px 20px 6px;background:#eef2f6;color:#012b55;word-wrap:break-word}
.mrow.me .bubble{border-radius:20px 20px 6px 20px;background:#012b55;color:#fff}
.stamp{font-size:10px;letter-spacing:.06em;color:var(--mute);padding:0 6px 6px;opacity:.9}
.bcard{width:min(290px,82%);border:1.5px solid #012b55;border-radius:20px;overflow:hidden;background:#fff;color:#012b55;margin:4px 0}
.bhead{padding:8px 16px;background:#012b55;color:#fff;font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
.bbody{padding:12px 16px;display:flex;flex-direction:column;gap:8px;font-size:14px}
.bbody .link{color:#012b55}
.composer{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:560px;z-index:25;padding:12px 14px calc(14px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px;background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-top:1px solid var(--line);border-radius:26px 26px 0 0;box-shadow:0 -10px 30px rgba(1,43,85,.1)}
.quick{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.quick::-webkit-scrollbar{display:none}
.quick .chip{flex:none;border:1px solid var(--line);background:#fff}
.sendrow{display:flex;gap:10px;align-items:center}
.sendrow .in{flex:1;border-radius:999px;padding:13px 18px;background:#eef2f6}
.sendbtn{width:48px;height:48px;border-radius:50%;border:0;background:var(--red);color:#fff;display:grid;place-items:center;cursor:pointer;flex:none;box-shadow:0 6px 16px rgba(255,63,52,.35)}
.sendbtn svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.convo{align-items:center}
.convo .clip{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.convo .strong{font-weight:600}
.unreaddot{width:11px;height:11px;border-radius:50%;background:var(--red);flex:none}
body.dark .composer{background:rgba(1,43,85,.94);border-color:rgba(255,255,255,.12);box-shadow:0 -10px 30px rgba(0,12,28,.45)}
body.dark .quick .chip{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.16)}
body.dark .sendrow .in{background:rgba(255,255,255,.12);color:#fff}
body.dark .bubble{background:rgba(255,255,255,.12);color:#fff}
body.dark .mrow.me .bubble{background:#fff;color:#012b55}
body.dark .bcard{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.4);color:#fff}
body.dark .bhead{background:#fff;color:#012b55}
body.dark .bbody .link{color:#fff}
.who .nm{display:flex;align-items:center;gap:2px}
.who .nm b{display:inline}
.who .nm .badge{margin-left:4px}
body:has(.composer) #toast{bottom:250px}

/* ---- landing / auth flow ---- */
.landing{position:relative;min-height:100vh;min-height:100dvh;background:#012b55;color:#fff;overflow:hidden;display:flex;justify-content:center}
.landing .swoosh{position:absolute;left:0;top:132px;width:100%;height:96px;pointer-events:none}
.lwrap{position:relative;width:100%;max-width:480px;padding:48px 24px 28px;display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.lword{height:84px;width:auto;max-width:78%;align-self:flex-start}
.lbody{margin-top:auto;padding-bottom:28px;padding-top:104px}
@media (max-height:720px){.lwrap{padding-top:28px;padding-bottom:18px}.lword{height:64px}.landing .swoosh{top:96px;height:80px}.lbody{padding-top:78px;padding-bottom:12px}.landing .hug{margin:6px 0 8px}.feat3{padding:8px 4px;gap:5px}.btn.tall{padding:12px 18px}.landing .hug{font-size:40px}.landing .lead{margin-bottom:14px}.feat3{padding:10px 6px}}
.landing .eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#ff3f34}
.landing .hug{font-size:46px;line-height:1.02;font-weight:800;margin:10px 0 12px;color:#fff;letter-spacing:-.02em}
.landing .lead{color:rgba(255,255,255,.78);font-size:16px;line-height:1.5;margin:0 0 20px}
.trio{display:flex;gap:10px}.feat3{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 6px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);font-size:12px;font-weight:600}
.feat3 span svg{width:22px;height:22px;stroke:#fff}
.lcta{display:flex;flex-direction:column;gap:10px}
.btn.white{background:#fff;color:#012b55}.btn.outline{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.5)}
.btn.tall{padding:15px 18px;font-size:16px;border-radius:999px}
.tiny.light{color:rgba(255,255,255,.65)}.tiny.light a{color:#fff;text-decoration:underline}.center{text-align:center}
.authshell{padding:0}.authtop{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 4px}
.authtop .logo{height:24px;width:auto}.authtop .authright{min-width:40px;text-align:right}
.authbody{padding:8px 20px 40px;max-width:480px;margin:0 auto}.bigh{font-size:30px;font-weight:800;letter-spacing:-.02em;margin:12px 0 18px}
.steps{padding:6px 20px 0;max-width:480px;margin:0 auto}.bars{display:flex;gap:6px}.bars i{flex:1;height:4px;border-radius:4px;background:rgba(128,150,180,.3)}.bars i.on{background:#ff3f34}
.stepl{font-size:12px;margin-top:6px;opacity:.7}
.dobgrid{display:grid;grid-template-columns:1.4fr 1fr 1.1fr;gap:10px}
.checkrow{display:flex;gap:12px;text-align:left;background:none;border:0;color:inherit;font:inherit;font-size:14px;line-height:1.4;padding:6px 0;cursor:pointer;align-items:flex-start}
.cbox{flex:none;width:24px;height:24px;border-radius:8px;border:2px solid rgba(128,150,180,.6);display:inline-flex;align-items:center;justify-content:center}
.cbox svg{width:15px;height:15px;stroke:#fff;opacity:0}.cbox.on{background:#ff3f34;border-color:#ff3f34}.cbox.on svg{opacity:1}
.btn:disabled{opacity:.45;cursor:not-allowed}
.avpick{width:84px;height:84px;border-radius:50%;border:2px dashed rgba(128,150,180,.7);background:rgba(128,150,180,.12);color:inherit;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:0;flex:none}
.avpick svg{width:28px;height:28px}.avpick img{width:100%;height:100%;object-fit:cover}
.rolecard{display:flex;align-items:center;gap:14px;text-align:left;width:100%;padding:14px;border-radius:18px;border:1.5px solid rgba(128,150,180,.35);background:rgba(128,150,180,.08);color:inherit;font:inherit;cursor:pointer}
.rolecard.on{border-color:#ff3f34;background:rgba(255,63,52,.1)}.rolecard small{display:block;opacity:.7;margin-top:2px;font-size:12.5px}
.rolecard .ric{width:44px;height:44px;border-radius:14px;background:#012b55;display:inline-flex;align-items:center;justify-content:center;flex:none}
.rolecard .ric svg{width:22px;height:22px;stroke:#fff}.muted-label{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;opacity:.65}
.bookrow[hidden]{display:none}

/* ---- nearby street map ---- */
.nbsearch{padding:12px 14px 4px}.nbbar{position:relative;display:flex;align-items:center;gap:8px;background:#fff;color:#012b55;border-radius:999px;padding:4px 6px 4px 14px;box-shadow:0 4px 16px rgba(0,0,0,.18);margin:0!important}
.nbbar .nbic svg{width:18px;height:18px;stroke:#012b55}.nbin{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:15px;color:#012b55;padding:10px 0}
.locbtn{flex:none;width:40px;height:40px;border-radius:50%;border:0;background:#012b55;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}.locbtn svg{width:20px;height:20px;stroke:#fff}
.nbchips{margin-top:10px}
.mapview{position:relative;height:380px;margin:8px 14px 0;border-radius:24px;overflow:hidden;box-shadow:0 6px 24px rgba(0,0,0,.22)}
.mapbg{position:absolute;inset:0;width:100%;height:100%}
.radlabel{position:absolute;left:12px;top:12px;background:#012b55;color:#fff;font-size:11px;font-weight:700;padding:6px 10px;border-radius:999px}
.youdot{position:absolute;left:50%;top:50%;width:0;height:0}.youdot i{position:absolute;left:-9px;top:-9px;width:18px;height:18px;border-radius:50%;background:#2f80ed;border:3px solid #fff;box-shadow:0 0 0 12px rgba(47,128,237,.2)}
.mpin{position:absolute;transform:translate(-50%,-100%);width:44px;height:44px;border-radius:50%;background:#012b55;border:3px solid #fff;box-shadow:0 4px 10px rgba(0,0,0,.35);padding:0;overflow:hidden;cursor:pointer;color:#fff;display:flex;align-items:center;justify-content:center}
.mpin img{width:100%;height:100%;object-fit:cover}.mpin b{font-size:16px}
.mpin.sel{background:#ff3f34;width:52px;height:52px;z-index:3;border-color:#fff}
.mcard{position:absolute;left:10px;right:10px;bottom:10px;background:#fff;color:#012b55;border-radius:18px;padding:12px;display:flex;align-items:center;gap:10px;box-shadow:0 8px 24px rgba(0,0,0,.3);z-index:4}
.mcard .mute{color:#5a6f88}.mcard a{color:inherit}.mcard .btn{color:#fff}
.nbic svg,.locbtn svg,.feat3 svg,.rolecard .ric svg,.avpick svg{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nbic svg{width:18px;height:18px;stroke:#012b55}.nbic{display:inline-flex}
.cbox svg{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.avpick svg{stroke:currentColor}.feat3 svg,.rolecard .ric svg,.locbtn svg{stroke:#fff}

.sugs.card{background:#fff!important;color:#012b55!important;border:1px solid #cfd9e6;border-radius:16px;box-shadow:0 10px 28px rgba(0,0,0,.35)}
.sugs .opt{color:#012b55!important;padding:12px 14px;border-radius:12px;font:inherit;width:100%;border:0;background:none;text-align:left;cursor:pointer}
.sugs .opt:hover{background:#eef3f9}

/* challenge banner */
.chalbanner{position:relative;overflow:hidden;border-radius:22px;background:#012b55;color:#fff;padding:22px 20px;display:flex;flex-direction:column;gap:10px;border:1px solid rgba(255,255,255,.14);box-shadow:0 6px 20px rgba(0,0,0,.18)}
.chalbanner>svg{position:absolute;right:-40px;top:-20px;width:300px;height:200px;pointer-events:none}
.chalbanner>*{position:relative}.chalbanner>svg{position:absolute}
.ceyebrow{font-size:11px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:#ff8a82}
.ctitle{font-weight:800;font-size:28px;line-height:1.1;letter-spacing:.05em;text-transform:uppercase}
.cdesc{margin:0;font-size:14px;line-height:1.5;color:#d7e2ee}
.cfoot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px;color:#d7e2ee;font-weight:600}
.cfoot .btn.white{background:#fff;color:#012b55}
a:has(>.chalbanner),a:has(>.chalbanner):hover{text-decoration:none}
.chalbanner>svg{right:-70px;top:-95px;opacity:.9}
.chalbanner .btn{white-space:nowrap;flex:none}.cfoot>span.small{flex:1;min-width:0}
.chalbanner>svg{right:-90px;top:-150px}
.chalbanner>svg{right:-60px;top:-118px}
.chalbanner>svg{right:-100px;top:-125px}
.chalbanner>svg{left:0;top:0;right:auto;width:100%;height:100%;opacity:1}

.mapview{box-shadow:0 6px 24px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.14)}
.radlabel{background:#fff;color:#012b55}
.youdot i{background:#ff3f34;border-color:#fff;box-shadow:0 0 0 12px rgba(255,63,52,.25)}
.mpin{background:#1d4a7c}.mpin.sel{background:#ff3f34}
.mcard a,.mcard a:hover{text-decoration:none}

/* get started card */
.getstarted{margin:12px 16px;padding:18px;border-radius:22px;background:#012b55;color:#fff;border:1px solid rgba(255,255,255,.16);box-shadow:0 6px 20px rgba(0,0,0,.2);display:flex;flex-direction:column;gap:10px}
body:not(.dark) .getstarted{box-shadow:0 6px 20px rgba(1,43,85,.25)}
.gshead{display:flex;justify-content:space-between;align-items:center}.gshead b{font-size:13px;letter-spacing:.14em;text-transform:uppercase}.gshead span{font-size:12px;font-weight:600;color:#d7e2ee}
.gsbar{height:6px;border-radius:3px;background:rgba(255,255,255,.2)}.gsbar i{display:block;height:6px;border-radius:3px;background:#ff3f34}
.gsrow{display:flex;align-items:center;gap:12px;min-height:46px;color:#fff;text-decoration:none;font-size:14px;font-weight:600}
.gsdot{flex:none;width:24px;height:24px;border-radius:50%;border:1.5px solid rgba(255,255,255,.55);display:inline-flex;align-items:center;justify-content:center}
.gsdot svg{width:14px;height:14px;fill:none;stroke:#fff;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;opacity:0}.gsdot.on{background:#ff3f34;border-color:#ff3f34}.gsdot.on svg{opacity:1}

/* ---------- desktop layout (sidebar + centered column); phones keep the tab bar ---------- */
.side{display:none}
@media (min-width:1000px){
  body,body.dark{background:#001f3f}body:not(.dark){background:#eaf0f6}
  .layout{display:flex;justify-content:center;align-items:flex-start;gap:28px;padding:0 24px;min-height:100vh}
  .side{display:flex;flex-direction:column;gap:18px;position:sticky;top:0;width:232px;flex:none;height:100vh;padding:28px 0 28px}
  .slogo{display:block;padding:0 12px}.slogo .logo{height:56px;width:auto}
  .side nav{display:flex;flex-direction:column;gap:4px}
  .sitem{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:16px;text-decoration:none;color:var(--ink);font-weight:600;font-size:15px;position:relative}
  body.dark .sitem{color:rgba(255,255,255,.72)}
  .sitem svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .sitem:hover{background:rgba(1,43,85,.07)}body.dark .sitem:hover{background:rgba(255,255,255,.08)}
  .sitem.on{background:rgba(1,43,85,.1);color:#012b55;font-weight:800}body.dark .sitem.on{background:rgba(255,255,255,.14);color:#fff}
  .sitem .dot{position:static;margin-left:auto;min-width:20px;height:20px;border-radius:10px;background:#ff3f34;color:#fff;font-size:11px;font-weight:700;display:inline-grid;place-items:center;padding:0 6px}
  .sidepost{margin-top:8px;display:flex!important;align-items:center;justify-content:center;gap:10px;border-radius:999px;padding:15px}
  .sidepost svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:2.4}
  .shell{flex:0 1 680px;width:680px;max-width:680px;margin:0;border-radius:0;min-height:100vh;padding-bottom:40px}
  .shell.noTabs{padding-bottom:0}
  .tabs{display:none}
  .top .logo,.shell>.top .iconbtn[href^="#/notifications"],.shell>.top .iconbtn[href^="#/messages"]{display:none}
  .shell>.top{min-height:56px}
  #toast{bottom:32px;left:calc(50% + 130px)}
  .composer{left:calc(50% + 130px);max-width:680px;border-radius:26px 26px 0 0}
  .mapview{height:480px}
  .grid{grid-template-columns:repeat(3,1fr)}
  .sheet{max-width:560px;border-radius:24px;margin:auto}
}

/* landing + sign-in on big screens */
@media (min-width:1000px){
  .landing{align-items:center}.lwrap{max-width:600px;min-height:auto;padding:64px 40px;gap:36px}.landing .hug{font-size:64px}
  .landing .swoosh{top:0;height:100%;width:100%;left:0}
  .authshell{max-width:560px!important;margin:0 auto!important;flex:none}
  body:not(.dark) .layout{background:transparent}
}
@media (min-width:1000px){.sitem .dot{border:0!important;top:auto!important;right:auto!important}}
@media (min-width:1000px){
  body .shell>.top .logo{display:none!important}
  .landing .swoosh{left:58%;width:42%;top:0;height:100%}
}

/* welcome / sign-in: split screen on desktop */
.lhero{display:none}.splitwrap{display:block}
@media (min-width:1000px){
  .landing{display:flex;justify-content:stretch}
  .landing>.swoosh{display:none}
  .landing .lwrap{flex:1 1 50%;max-width:none;min-height:100vh;justify-content:center;gap:40px;padding:56px max(40px,6vw)}
  .landing .lbody{margin-top:0;padding-bottom:0;padding-top:0;max-width:520px}
  .landing .lcta{max-width:520px}
  .lhero{display:flex;flex:1 1 50%;position:relative;align-items:center;justify-content:center;flex-direction:column;gap:22px;background:#023a73;overflow:hidden;min-height:100vh}
  .lhero svg{position:absolute;inset:0;width:100%;height:100%}
  .lhero img{position:relative;width:min(300px,50%);height:auto}
  .lherotag{position:relative;font-weight:800;font-size:22px;letter-spacing:.3em;text-transform:uppercase;color:#fff}
  .splitwrap{display:flex;min-height:100vh;background:#012b55}
  .splitwrap .lhero{flex:1 1 46%}
  .splitwrap .authshell{flex:1 1 54%;max-width:none!important;width:auto;margin:0!important;display:flex;flex-direction:column;align-items:center;border:0}
  .splitwrap .authtop,.splitwrap .steps,.splitwrap .authbody{width:100%;max-width:480px}
  .splitwrap .authbody{padding-top:24px}
  .splitwrap .authtop .logo{height:30px}
}
@media (min-width:1000px){.lherotag{position:absolute;bottom:52px;left:0;right:0;text-align:center}.lhero img{margin-top:-30px}}

/* ---------- wider desktop: roomier menu and content ---------- */
@media (min-width:1000px){
  .layout{gap:36px;padding:0 32px}
  .side{width:280px;padding-top:32px}
  .slogo .logo{height:64px}
  .sitem{font-size:16.5px;padding:14px 18px;gap:16px;border-radius:18px}
  .sitem svg{width:25px;height:25px}
  .sidepost{font-size:15px;padding:17px}
  .shell{flex:1 1 auto;width:auto;max-width:780px}
  .composer{left:calc(50% + 158px);width:min(780px,calc(100vw - 420px));max-width:780px}
  #toast{left:calc(50% + 158px)}
  .mapview{height:520px}
}
@media (min-width:1280px){
  .layout{gap:44px}
  .shell{max-width:960px}
  .composer{width:min(960px,calc(100vw - 440px));max-width:960px}
  .grid{grid-template-columns:repeat(4,1fr)}
  .top h1{font-size:18px}
}
@media (min-width:1600px){.shell{max-width:1040px}.composer{max-width:1040px;width:min(1040px,calc(100vw - 440px))}}

/* tag / collaborate picker */
#people-q{scroll-margin-top:96px}
#people-sug{position:static;top:auto;max-height:min(260px,38vh);overflow-y:auto;-webkit-overflow-scrolling:touch}
.sugbox{margin-top:6px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;color:#012b55;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.sugbox .sug{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;background:none;text-align:left;font:inherit;color:#012b55;cursor:pointer}
.sugbox .sug:hover{background:#eef3f9}.sugbox .mute{color:#5a6f88}
.pickedlist{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.pickedrow{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:16px;border:1px solid rgba(128,150,180,.35);background:rgba(128,150,180,.1)}
.seg2{display:inline-flex;border:1.5px solid rgba(128,150,180,.5);border-radius:999px;overflow:hidden;flex:none}
.seg2 button{border:0;background:transparent;color:inherit;font:inherit;font-size:12px;font-weight:700;padding:7px 12px;cursor:pointer}
.seg2 button.on{background:#ff3f34;color:#fff}
@media (max-width:420px){.pickedrow{flex-wrap:wrap}.pickedrow .grow{flex-basis:100%}}
/* bigger desktop menu */
@media (min-width:1000px){
  .side{width:308px;gap:22px}
  .slogo .logo{height:72px}
  .sitem{font-size:18px;padding:16px 20px;gap:18px;border-radius:20px}
  .sitem svg{width:27px;height:27px}
  .sidepost{font-size:16px;padding:19px}
  .composer,#toast{--x:0}
  .composer{left:calc(50% + 172px)}#toast{left:calc(50% + 172px)}
}

/* photo loading: shimmer behind images, failed state, pull-to-refresh */
@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}
.post .ph,.grid a,.thumb,.pv{background-image:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.10) 50%,transparent 70%);background-size:200% 100%;animation:shimmer 1.6s linear infinite}
.post .ph img,.grid img{position:relative;z-index:1;background:inherit}
img.imgfail{opacity:.35;min-height:60px}
html,body{overscroll-behavior-y:contain}
#ptr{position:fixed;top:6px;left:50%;width:38px;height:38px;margin-left:0;transform:translate(-50%,0);border-radius:50%;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.35);z-index:300;display:grid;place-items:center;opacity:0;pointer-events:none;transition:opacity .2s}
#ptr span{width:18px;height:18px;border-radius:50%;border:3px solid #cfd9e6;border-top-color:#ff3f34;display:block}
#ptr.ready span{border-top-color:#012b55}
#ptr.spin{opacity:1!important;transform:translate(-50%,40px)!important}
#ptr.spin span{animation:ptrspin .7s linear infinite}
@keyframes ptrspin{to{transform:rotate(360deg)}}

/* photo frame: shape follows the chosen ratio and stays a little smaller than full width */
.post .ph{--r:.8;aspect-ratio:var(--r);height:auto;width:min(calc(100% - 24px),calc(68vh * var(--r)));margin:0 auto;border-radius:24px}
.post .ph.r-3-4{--r:.75}.post .ph.r-1-1{--r:1}.post .ph.r-16-9{--r:1.7778}.post .ph.r-4-5{--r:.8}
.post .ph img{width:100%;height:100%;object-fit:cover}
.post .ph .slider{height:100%}
@media (min-width:1000px){.post .ph{width:min(calc(100% - 24px),560px,calc(64vh * var(--r)))}}

/* crop screen */
.cropbg{position:fixed;inset:0;z-index:400;background:rgba(1,16,34,.82);display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}
.cropbox{background:#012b55;color:#fff;border:1px solid rgba(255,255,255,.16);border-radius:26px;padding:18px;width:100%;max-width:480px;display:flex;flex-direction:column;align-items:center;gap:14px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.croptop{width:100%;font-size:15px;letter-spacing:.06em;text-transform:uppercase}
.cropstage{position:relative;overflow:hidden;border-radius:18px;background:#000;touch-action:none;cursor:grab;flex:none}
.cropstage img{position:absolute;left:50%;top:50%;max-width:none;user-select:none;-webkit-user-drag:none}
.croprow{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.croprow .chip:disabled{opacity:.35}
.zoomrow{display:flex;align-items:center;gap:12px;width:100%;max-width:340px}.zoomrow input{flex:1;accent-color:#ff3f34}
.cropbtns{display:flex;gap:10px;width:100%}.cropbtns .btn{flex:1}

/* new-post previews follow the chosen shape; empty home bar hidden on desktop (the sidebar has those buttons) */
.pv,.previews.one .pv{aspect-ratio:var(--pr,4 / 5)}
.previews.one .pv img,.pv img{width:100%;height:100%;object-fit:cover}
@media (min-width:1000px){.shell>.hometop{display:none}.previews.one{max-width:420px}}

/* spacing + photo dots */
.previews{margin-bottom:14px}
.dots{display:flex;justify-content:center;gap:6px;padding:10px 0 2px}
.dots button{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:rgba(128,150,180,.45);cursor:pointer;transition:all .2s}
.dots button.on{width:20px;border-radius:4px;background:#ff3f34}
.post .ph .count,.post .ph .feat{z-index:3}

/* notifications: bigger, rounder cards */
.notifs{display:flex;flex-direction:column;gap:10px;padding:12px 14px}
.notifs .item{gap:14px;padding:18px 18px;border-radius:26px;background:#fff;border:1px solid var(--line);box-shadow:0 2px 10px rgba(1,43,85,.06);font-size:15px;line-height:1.4;border-bottom:1px solid var(--line)}
.notifs .item.unread{background:#eef5fd;border-color:#cfe1f6}
.notifs .item .av{width:52px;height:52px;flex:none}
.notifs .item .av svg{width:24px;height:24px}
.notifs .item .tiny{font-size:12px}
body.dark .notifs .item{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.14);box-shadow:none}
body.dark .notifs .item.unread{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.22)}
@media (min-width:1000px){.notifs .item{padding:22px 24px;border-radius:30px;font-size:16px}.notifs .item .av{width:58px;height:58px}}
.ok{color:#1f9d55;font-weight:600}
body.dark .ok{color:#6fe3a0}
.cropstage.round::after{content:"";position:absolute;inset:0;background:radial-gradient(circle closest-side,transparent 99%,rgba(1,16,34,.62) 100%);pointer-events:none}
.card .switch:last-child{border-bottom:0}

/* iPhone installed app: keep everything below the status bar (time, wifi, battery) */
:root{--sat:env(safe-area-inset-top,0px)}
body{padding-top:var(--sat)}
body::before{content:"";position:fixed;top:0;left:0;right:0;height:var(--sat);background:#012b55;z-index:1000;pointer-events:none}
.top{top:var(--sat)}
#ptr{top:calc(6px + var(--sat))}
.landing{min-height:calc(100vh - var(--sat));min-height:calc(100dvh - var(--sat))}
.lwrap{min-height:calc(100vh - var(--sat));min-height:calc(100dvh - var(--sat))}
@media (min-width:1000px){.landing .lwrap,.lhero{min-height:calc(100vh - var(--sat))}}

/* add to home screen */
.installbar{display:flex;flex-direction:column;gap:12px;margin:12px 16px 0;padding:14px 12px 14px 16px;border-radius:22px;background:#fff;color:#012b55;box-shadow:0 6px 20px rgba(0,0,0,.22)}
.installbar b{font-size:15px}.installbar .small{color:#4a6078;line-height:1.3}
.installbar .irow{display:flex;align-items:flex-start;gap:8px}.installbar .btn{width:100%;padding-right:20px}
.installbar .iconbtn{flex:none;color:#012b55!important;font-size:24px;line-height:1;width:32px;height:32px}
.installsteps{list-style:none;margin:14px 0;padding:0;display:flex;flex-direction:column;gap:12px}
.installsteps li{display:flex;gap:12px;align-items:flex-start;line-height:1.4}
.installsteps li>span{flex:none;width:28px;height:28px;border-radius:50%;background:#ff3f34;color:#fff;font-weight:800;display:grid;place-items:center;font-size:14px}
