:root{--ink:#132d3a;--muted:#66757d;--green:#097c55;--green-dark:#056341;--pale:#eaf6ef;--line:#dde5e4;--surface:#f5f8f7;--white:#fff;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);font-size:16px;line-height:1.5}*{box-sizing:border-box}body{margin:0;background:var(--white)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a:hover{color:var(--green)}:focus-visible{outline:3px solid #38a979;outline-offset:3px}button,input,select,textarea{max-width:100%}input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{width:100%;min-height:48px;border:1px solid #cbd6d3;border-radius:9px;padding:11px 12px;background:white;color:var(--ink)}textarea{resize:vertical}input[type=checkbox]{width:20px;height:20px;accent-color:var(--green);flex-shrink:0}label{display:block;font-size:.875rem;font-weight:600}label input,label select,label textarea{margin-top:7px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2.15rem,4.2vw,3.6rem);letter-spacing:-.055em;line-height:1.09;margin-bottom:20px;font-weight:750}h2{font-size:1.4rem;letter-spacing:-.025em}h3{font-size:1.125rem}small,.help{font-size:.8125rem;line-height:1.5}.shell{max-width:1400px;padding-left:48px;padding-right:48px;margin:auto}.local-strip{background:var(--ink);color:white;text-align:center;padding:7px 16px;font-size:.75rem;font-weight:700;letter-spacing:.08em}.local-strip span{font-weight:400;letter-spacing:0;margin-left:20px;color:#d7e7e1}header{border-bottom:1px solid var(--line);background:white}.nav{display:flex;align-items:center;gap:40px;min-height:96px}.brand{display:flex;align-items:center;font-size:1.5rem;font-weight:800;letter-spacing:-.05em;white-space:nowrap}.brand-dot{color:var(--green)}.brand-symbol{width:40px;height:40px;background:var(--green);color:white;margin-right:10px;border-radius:12px;font-size:30px;line-height:35px;text-align:center;position:relative}.brand-symbol span{font-size:22px;margin-left:-3px}nav,.nav-right{display:flex;align-items:center;gap:24px}nav{font-size:.9375rem}.nav-right{margin-left:auto;gap:16px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:11px 20px;border:1px solid var(--line);border-radius:9px;font-weight:650;font-size:.9375rem;background:white;text-align:center}.button:hover{background:var(--surface)}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{color:white;background:var(--green-dark)}.sell{white-space:nowrap}.sell span{font-size:23px;line-height:20px}.language{border:0;background:transparent;min-width:44px;min-height:48px;font-size:.875rem}.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:44px;height:44px;flex-shrink:0;background:var(--pale);color:var(--green);font-weight:700;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.intro{display:flex;align-items:center;justify-content:space-between;padding:48px 0 32px;gap:48px}.eyebrow{font-size:.75rem;letter-spacing:.13em;font-weight:750;color:var(--green);margin-bottom:18px}.intro h1 span{color:var(--green)}.intro p{color:var(--muted);margin-bottom:0}.intro-aside{max-width:320px;width:30%}.location-pill{font-size:.875rem;display:inline-flex;background:var(--surface);padding:9px 14px;border-radius:30px;gap:8px;margin-bottom:20px}.intro-note{border-left:3px solid #b7dfcd;padding-left:20px}.intro-note p{font-size:.875rem;margin:7px 0 12px}.intro-note a{font-size:.875rem;font-weight:700;color:var(--green)}.searchbar{display:flex;align-items:center;gap:16px;background:var(--surface);padding:9px 10px 9px 20px;border:1px solid var(--line);border-radius:12px}.searchbar>span{font-size:32px;color:var(--muted)}.searchbar input{border:0!important;background:transparent!important;box-shadow:none;flex:1;min-width:0}.category-row{display:flex;gap:9px;overflow:auto;padding:22px 0 30px;scrollbar-width:thin}.chip{display:inline-flex;align-items:center;justify-content:center;padding:10px 17px;min-height:44px;border:1px solid var(--line);border-radius:30px;white-space:nowrap;background:white;font-size:.875rem;font-weight:550}.chip.selected{background:var(--ink);color:white;border-color:var(--ink)}.chip:hover{border-color:var(--green)}.market-layout{display:grid;grid-template-columns:218px minmax(0,1fr);gap:32px}.filter-panel summary{display:flex;justify-content:space-between;font-weight:700;cursor:pointer;min-height:48px;align-items:center;list-style:none}.filter-panel summary span{display:none}.filter-content{display:grid;gap:20px;padding-top:15px}.price-inputs{display:flex;align-items:center;gap:7px;margin-top:-12px}.price-inputs input{min-width:0}.muted{color:var(--muted);font-weight:400}.check{display:flex;align-items:center;gap:10px;min-height:32px;font-weight:500}.check input{margin:0}.reset{font-size:.875rem;text-align:center;color:var(--muted);padding:8px}.side-note{background:var(--pale);border-radius:12px;padding:22px;margin-top:32px;color:#145839}.side-note p{font-size:.875rem;margin:12px 0 0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin-bottom:15px}.section-heading h2{margin:0}.section-heading>span{font-size:.875rem;color:var(--muted);white-space:nowrap}.listing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px}.listing-card{min-width:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:transform .15s,box-shadow .15s}.listing-card:hover{transform:translateY(-3px);box-shadow:0 8px 25px #133d3010}.card-image{aspect-ratio:4/3;display:block;position:relative;overflow:hidden;background:#e9edef}.card-image>img{height:100%;width:100%;object-fit:cover}.tone-True{background:#edf2e9}.no-photo{height:100%;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#60797a}.no-photo>span{font-size:3.8rem;font-weight:800;letter-spacing:-.13em;opacity:.35}.no-photo small{font-size:.75rem}.badges{position:absolute;left:12px;top:12px;display:flex;gap:6px;flex-wrap:wrap}.badge{background:#fffffff0;border-radius:5px;padding:4px 8px;font-size:.75rem;font-weight:650}.saved-heart{position:absolute;right:12px;bottom:12px;background:white;color:var(--green);border-radius:50%;padding:6px 12px}.card-content{padding:16px}.card-meta{display:flex;justify-content:space-between;gap:8px;font-size:.75rem;color:var(--muted);margin-bottom:8px}.card-title{font-weight:650;line-height:1.35;display:block;overflow-wrap:anywhere}.price{display:block;font-size:1.25rem;letter-spacing:-.025em;margin:10px 0 14px}.price small{font-weight:500;letter-spacing:0}.card-bottom{border-top:1px solid #eaf0ed;padding-top:12px;font-size:.75rem;display:flex;align-items:center;justify-content:space-between;gap:7px;color:var(--muted)}.bundle-dot{background:var(--pale);border-radius:4px;color:var(--green);padding:2px 6px}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:330px;padding:28px;grid-column:1/-1;background:var(--surface);border-radius:12px}.empty p{max-width:360px;color:var(--muted)}.empty-mark{font-size:3rem;color:var(--green);margin-bottom:15px}.pagination{display:flex;gap:16px;align-items:center;justify-content:center;margin:36px 0}footer{margin-top:64px!important;padding-top:28px;padding-bottom:32px;border-top:1px solid var(--line);display:flex;align-items:center;gap:24px;font-size:.875rem;color:var(--muted)}footer p{margin:0}footer>span{margin-left:auto}.brand.small{font-size:1.125rem;color:var(--ink)}.full{width:100%}.notices{margin-top:24px}.notice{padding:13px 18px;background:var(--pale);border-radius:8px;margin-bottom:12px;font-size:.9375rem}.notice.error{background:#fff0ed;color:#9c382d}.back{display:inline-flex;min-height:48px;align-items:center;margin:18px 0;color:var(--muted);font-size:.875rem}.detail-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:50px}.gallery-main{background:var(--surface);border-radius:16px;overflow:hidden;aspect-ratio:4/3}.gallery-main>img{width:100%;height:100%;object-fit:contain}.thumbnails{display:flex;gap:12px;margin:15px 0;overflow:auto}.thumbnails button{padding:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--surface);width:85px;height:75px;flex-shrink:0}.thumbnails img{width:100%;height:100%;object-fit:cover}.description{margin-top:28px}.description p{white-space:normal;overflow-wrap:anywhere;line-height:1.8}.detail-info h1{font-size:2.5rem;overflow-wrap:anywhere}.detail-price{font-size:2rem;font-weight:750;margin-bottom:0}.detail-price small{font-size:1.125rem;font-weight:500}.facts{border-block:1px solid var(--line);margin:24px 0;padding:18px 0;display:grid;gap:14px}.facts>div{display:flex;justify-content:space-between;gap:20px;font-size:.875rem}.facts span{color:var(--muted)}.facts b{text-align:right}.seller{display:flex;gap:14px;align-items:center;margin-bottom:20px}.seller small{display:block;color:var(--muted)}.detail-info>.button,.detail-info>form{margin-bottom:10px}.safety{font-size:.875rem;background:var(--surface);padding:16px;border-radius:8px;color:var(--muted);margin-top:20px}.report{font-size:.875rem}.report form{margin-top:15px}.danger{color:#a3342e}.pill{display:inline-block;padding:6px 12px;background:var(--pale);color:var(--green);border-radius:6px}.form-layout{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.3fr);gap:70px;margin:55px auto;max-width:1100px}.form-layout aside>p{color:var(--muted);line-height:1.8}.form-card{border:1px solid var(--line);border-radius:16px;padding:30px;background:white}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 18px}.field.wide{grid-column:1/-1}.field>label{margin-bottom:6px}.required{color:var(--green)}.field .check{height:100%}.field .help{display:block;margin-top:8px;color:var(--muted)}.form-card .full{margin-top:24px}.profile-links{display:grid;gap:15px;margin-top:32px;color:var(--green);font-size:.9375rem}.text-button{padding:0;background:none;border:0;color:inherit;min-height:44px}.upload{border:1px dashed #a4bbb0;border-radius:12px;padding:20px;margin-top:28px;background:var(--surface)}.upload label span{display:block;font-size:.8125rem;font-weight:400;color:var(--muted);margin:6px 0 16px}.upload input{font-size:.875rem;width:100%}#upload-preview,.existing-photos{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}#upload-preview img,.existing-photos img{width:85px;height:75px;object-fit:cover;border-radius:6px}.existing-photos label{display:flex;flex-direction:column;font-size:.8125rem}.existing-photos span{display:flex;align-items:center;gap:5px}.errorlist{font-size:.875rem;color:#ac3228;padding-left:20px}.blocked{margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}.blocked form{display:flex;align-items:center;justify-content:space-between;gap:10px}.auth-layout{display:grid;grid-template-columns:1fr 1fr;max-width:1050px;margin:60px auto;border:1px solid var(--line);border-radius:20px;overflow:hidden}.auth-story{background:var(--pale);padding:45px;display:flex;flex-direction:column;align-items:flex-start}.auth-story h1{font-size:3rem}.auth-story p{line-height:1.8;color:#3c6353}.auth-monogram{font-size:6rem;font-weight:800;line-height:1;letter-spacing:-.12em;color:var(--green);margin-top:30px}.auth-card{padding:45px}.auth-card label{margin-bottom:20px}.google b{font-size:1.3rem}.divider{display:flex;align-items:center;gap:10px;margin:26px 0;font-size:.75rem;color:var(--muted)}.divider:before,.divider:after{content:'';height:1px;background:var(--line);flex:1}.auth-bottom{font-size:.875rem;text-align:center;margin-top:22px}.auth-bottom a{font-weight:650;color:var(--green)}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:40px 0 25px;gap:20px}.page-heading h1{font-size:2.7rem;margin:0}.page-heading .eyebrow{margin-bottom:10px}.inbox{display:grid;grid-template-columns:320px minmax(0,1fr);border:1px solid var(--line);border-radius:14px;overflow:hidden;min-height:570px}.chat-list{border-right:1px solid var(--line);max-height:680px;overflow:auto}.chat-preview{display:flex;gap:14px;padding:22px;border-bottom:1px solid var(--line)}.chat-preview.current{background:var(--pale)}.chat-preview p{font-size:.875rem;margin:4px 0;color:var(--muted);overflow-wrap:anywhere}.chat-preview small{color:var(--muted);font-size:.75rem}.chat-icon{display:flex;align-items:center;justify-content:center;background:var(--surface);border-radius:10px;width:42px;height:42px;flex-shrink:0;font-size:1.5rem;color:var(--green)}.conversation{display:flex;flex-direction:column;min-width:0;min-height:570px}.conversation>.empty{height:100%;border-radius:0;flex:1}.chat-header{padding:18px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.chat-header a{overflow-wrap:anywhere;min-width:0}.chat-header small{display:block;color:var(--muted)}.message-history{height:430px;overflow:auto;padding:24px;display:flex;flex-direction:column;gap:14px;background:#f8faf9}.message{align-self:flex-start;background:white;border:1px solid var(--line);border-radius:12px 12px 12px 2px;padding:12px 16px;max-width:85%;overflow-wrap:anywhere}.message.mine{align-self:flex-end;background:var(--pale);border-color:#c5e3d3;border-radius:12px 12px 2px 12px}.message p{margin:0 0 6px}.message small{font-size:.75rem;color:var(--muted)}.message-compose{padding:18px;display:flex;gap:12px;align-items:center;margin-top:auto}.message-compose textarea{min-width:0}.skip{position:absolute;top:-100px;left:20px;padding:15px;background:white;z-index:10}.skip:focus{top:10px}
@media(min-width:1600px){.shell{max-width:1510px}.listing-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.shell{padding-inline:30px}.nav{gap:25px}nav,.nav-right{gap:15px}.listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.market-layout{grid-template-columns:200px minmax(0,1fr);gap:25px}.form-layout{gap:35px}.auth-story,.auth-card{padding:30px}.detail-layout{gap:30px}.desktop-link{display:none}}
@media(max-width:800px){.shell{padding-inline:22px}.nav{gap:14px;min-height:68px}.brand{font-size:1.35rem}.nav-right{gap:8px}.sell{font-size:.875rem;padding-inline:12px}.intro{padding-top:32px;gap:25px}.intro-aside{width:36%;max-width:260px}.intro-note{display:none}.intro h1{font-size:2.7rem}.intro>div:first-child{max-width:70%}.market-layout{grid-template-columns:1fr}.filter-panel details{border:1px solid var(--line);border-radius:10px;padding:0 16px}.filter-panel summary span{display:inline}.filter-content{grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:20px}.filter-content>.price-inputs{margin:0}.side-note{display:none}.category-row{padding-bottom:22px}.section-heading{margin-bottom:12px}.listing-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.card-content{padding:12px}.card-meta{flex-direction:column;gap:2px}.card-bottom{flex-wrap:wrap}.detail-layout{grid-template-columns:1fr 1fr;gap:24px}.detail-info h1{font-size:2rem}.facts>div{flex-direction:column;gap:3px}.facts b{text-align:left}.form-layout{grid-template-columns:1fr;gap:24px;margin:35px auto;max-width:650px}.form-layout h1{font-size:2.5rem}.profile-links{display:flex;flex-wrap:wrap;align-items:center;margin-top:15px;gap:20px}.auth-layout{margin:35px auto;grid-template-columns:1fr;max-width:520px}.auth-story{padding:28px}.auth-story h1{font-size:2rem}.auth-story p,.auth-monogram{display:none}.auth-story h1{margin:0}.auth-story .eyebrow{margin-bottom:14px}.inbox{grid-template-columns:250px minmax(0,1fr)}.chat-preview{padding:16px;gap:9px}.chat-icon{display:none}footer{flex-wrap:wrap;gap:12px}footer>span{width:100%;margin:0}}
@media(max-width:600px){.shell{padding-inline:16px}.local-strip{font-size:.6875rem}.local-strip span{margin-left:8px;font-size:.75rem;letter-spacing:0}.nav{gap:10px}.brand-symbol{width:32px;height:34px;font-size:25px;line-height:30px;border-radius:10px;margin-right:7px}.brand-symbol span{font-size:18px}.brand{font-size:1.22rem}.nav-right{gap:2px}.language{min-width:36px}.login-link{font-size:.875rem;padding:10px 6px}.intro{display:block;padding:30px 0 22px}.intro>div:first-child{max-width:100%}.intro h1{font-size:2.6rem;margin-bottom:15px}.intro p{font-size:.9375rem}.intro-aside{width:100%;max-width:none;margin-top:16px}.location-pill{margin:0;font-size:.8125rem;padding:6px 11px}.eyebrow{font-size:.6875rem;letter-spacing:.1em;margin-bottom:14px}.searchbar{gap:5px;padding-left:12px}.searchbar .button{padding-inline:15px}.searchbar input{font-size:.9375rem;padding-inline:6px}.category-row{gap:8px;padding-top:16px}.chip{padding:8px 13px}.listing-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.section-heading h2{font-size:1.2rem}.section-heading>span{font-size:.8125rem}.market-layout{gap:20px}.filter-content{grid-template-columns:1fr}.no-photo{min-height:0}.card-image .no-photo{height:100%}.card-image .no-photo>span{font-size:3rem}.card-image .no-photo small{font-size:.75rem}.card-title{font-size:.9375rem}.card-content{padding:12px}.card-meta{font-size:.75rem}.price{font-size:1.125rem}.badge{font-size:.75rem;padding:3px 6px}.badges{left:7px;top:7px}.detail-layout{display:flex;flex-direction:column;gap:0}.detail-layout>section{display:contents}.gallery-main{order:1}.thumbnails{order:2}.detail-info{order:3;margin-top:18px}.description{order:4}.detail-info h1{font-size:2.2rem}.gallery-main{aspect-ratio:4/3}.description{margin-top:20px}.facts>div{flex-direction:row;gap:12px}.facts b{text-align:right}.form-card{padding:20px}.fields{grid-template-columns:1fr}.field.wide{grid-column:auto}.form-layout h1{font-size:2.25rem}.page-heading{margin:28px 0 20px;flex-wrap:wrap}.page-heading h1{font-size:2.2rem}.inbox{grid-template-columns:1fr;min-height:480px}.inbox:not(.chat-open) .conversation{display:none}.inbox.chat-open .chat-list{display:none}.chat-list{border:0}.chat-icon{display:flex}.chat-preview{padding:18px}.conversation{min-height:480px}.message-history{padding:16px}.message{max-width:92%}.message-compose{padding:12px;gap:8px}.message-compose button{padding-inline:14px}.chat-header{padding:16px}.auth-card{padding:25px}.form-layout{margin-bottom:20px}footer{margin-top:42px!important}.auth-bottom{line-height:1.9}}
@media(max-width:359px){.listing-grid{grid-template-columns:1fr}.intro h1{font-size:2.3rem}.local-strip span{display:none}.card-meta{flex-direction:row}.card-image{aspect-ratio:4/3}.brand{font-size:1.1rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.field{min-width:0}.field input[type=file]{width:100%;min-width:0;font-size:.875rem}.form-card,.form-layout>aside{min-width:0}

/* ---------- v2: navigation, unread notifications, chat ---------- */
.top-nav a{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:44px}
.top-nav a[aria-current=page]{color:var(--green);font-weight:650}
.top-nav a[aria-current=page]:after{content:'';position:absolute;left:0;right:0;bottom:2px;height:2px;border-radius:2px;background:var(--green)}
.unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#e5322d;color:#fff;font-size:.6875rem;font-weight:750;line-height:1;box-shadow:0 0 0 2px #fff}
.unread-badge[hidden],.unread-dot[hidden],.chat-unread[hidden]{display:none}
.tabbar{display:none}
.desktop-only{}
/* chat list */
.chat-preview{align-items:flex-start;position:relative}
.chat-avatar{width:44px;height:44px;font-size:1rem}
.chat-preview-body{min-width:0;flex:1}
.chat-preview-top,.chat-preview-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}
.chat-preview-top b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-preview-top small{flex-shrink:0}
.chat-preview p.chat-item{margin:2px 0;color:var(--ink);font-size:.8125rem;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-preview p.chat-snippet{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.chat-unread{flex-shrink:0;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#e5322d;color:#fff;font-size:.6875rem;font-weight:750;display:inline-flex;align-items:center;justify-content:center}
.chat-preview.has-unread b{font-weight:800}
.chat-preview.has-unread .chat-snippet{color:var(--ink);font-weight:600}
.chat-preview.has-unread small{color:#c22a25;font-weight:650}
.chat-preview:hover{background:var(--surface)}
.chat-preview.current:hover{background:var(--pale)}
.chat-list .empty{min-height:260px;border-radius:0;background:transparent}
/* conversation */
.chat-header{gap:12px;justify-content:flex-start}
.chat-title{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.chat-title>span:last-child{min-width:0}
.chat-title b,.chat-title small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-back{display:none}
.chat-empty{background:transparent;min-height:0;flex:1}
.message.is-new{animation:pop .25s ease-out}
@keyframes pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.message-compose{align-items:flex-end;border-top:1px solid var(--line);background:white}
.message-compose textarea{min-height:48px;max-height:160px;resize:none;line-height:1.4}
.message-compose button{flex-shrink:0}
.message-compose svg,.tabbar svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.message-compose svg{display:none}
.chat-blocked{margin:16px}
/* form helpers */
.field[hidden]{display:none}
@media(max-width:800px){
  .top-nav,.nav .sell{display:none}
  body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  .tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:20;background:#fffffff5;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
  .tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;font-size:.6875rem;font-weight:600;color:var(--muted);border-radius:10px}
  .tabbar a svg{width:24px;height:24px}
  .tabbar a[aria-current=page]{color:var(--green)}
  .tabbar a[aria-current=page] svg{stroke-width:2.3}
  .tabbar .tab-sell svg{width:38px;height:38px;padding:8px;border-radius:12px;background:var(--green);color:#fff;stroke-width:2.6;box-shadow:0 4px 12px #097c5540}
  .tabbar .tab-sell{gap:1px}
  .tab-icon{position:relative;display:inline-flex}
  .unread-dot{position:absolute;top:-1px;right:-3px;width:11px;height:11px;border-radius:50%;background:#e5322d;box-shadow:0 0 0 2px #fff}
  .nav-right{gap:6px}
  .inbox{grid-template-columns:290px minmax(0,1fr)}
}
@media(max-width:600px){
  input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{font-size:16px} /* stops iOS zooming into fields */
  .searchbar input{font-size:16px}
  .desktop-only{display:none}
  .local-strip{padding:5px 12px}
  .nav{min-height:60px}
  .listing-grid{gap:12px 10px}
  .chat-avatar{width:40px;height:40px}
  .chat-preview{padding:14px 4px;gap:12px}
  .inbox{grid-template-columns:1fr;border:0;border-radius:0;min-height:0}
  .inbox:not(.chat-open) .chat-list{border-top:1px solid var(--line)}
  /* open chat fills the phone screen like a messaging app */
  body.chat-is-open{padding-bottom:0}
  body.chat-is-open .local-strip,body.chat-is-open .inbox-heading,body.chat-is-open footer,body.chat-is-open .tabbar,body.chat-is-open .notices{display:none}
  body.chat-is-open main.shell{padding-inline:0}
  body.chat-is-open .conversation{height:calc(100vh - 61px);height:calc(100dvh - 61px);min-height:0}
  body.chat-is-open .message-history{flex:1;height:auto;min-height:0}
  .chat-back{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin-left:-6px;border-radius:50%;font-size:1.35rem;flex-shrink:0}
  .chat-back:hover{background:var(--surface)}
  .chat-header{padding:10px 12px}
  .message-compose{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
  .message-compose button{width:48px;padding:0}
  .message-compose button span{display:none}
  .message-compose svg{display:block}
  .profile-links{gap:6px 18px}
  .detail-info h1{font-size:1.9rem}
}
.admin-link{font-size:.875rem;font-weight:700;padding:6px 12px;border-radius:999px;background:var(--ink);color:#fff;white-space:nowrap}.admin-link:hover{color:#fff;background:#0b1d26}
.alerts-button{margin-left:auto;margin-right:12px}.alerts-button[hidden]{display:none}
.toasts{position:fixed;top:16px;right:16px;z-index:50;display:flex;flex-direction:column;gap:10px;width:min(360px,calc(100vw - 32px));pointer-events:none}
.toast{pointer-events:auto;display:flex;align-items:flex-start;gap:12px;padding:12px 12px 12px 14px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:12px;box-shadow:0 12px 30px #132d3a2e;animation:toast-in .25s ease-out;transition:opacity .3s,transform .3s}
.toast:hover{color:var(--ink);border-color:var(--green)}.toast.leaving{opacity:0;transform:translateX(24px)}
.toast-avatar{width:36px;height:36px;font-size:.9rem}.toast-body{display:flex;flex-direction:column;min-width:0;flex:1}.toast-body b{font-size:.875rem}.toast-body small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toast-text{font-size:.875rem;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.toast-close{border:0;background:transparent;font-size:1.25rem;line-height:1;color:var(--muted);min-width:32px;min-height:32px;border-radius:8px}.toast-close:hover{background:var(--surface)}
@keyframes toast-in{from{opacity:0;transform:translateY(-10px)}}
@media(max-width:800px){.toasts{top:auto;bottom:calc(84px + env(safe-area-inset-bottom));left:16px;right:16px;width:auto}.admin-link{display:none}.alerts-button{display:none}}
@media(prefers-reduced-motion:reduce){.toast{animation:none;transition:none}}
.badge.badge-hidden{background:#9c382d;color:#fff}
.leaflet-container{position:relative;z-index:0;font:inherit}
.view-switch{display:inline-flex;margin-left:auto;margin-right:14px;border:1px solid var(--line);border-radius:999px;padding:3px;background:var(--surface)}
.view-switch a{padding:6px 16px;border-radius:999px;font-size:.875rem;font-weight:650;color:var(--muted)}
.view-switch a[aria-current]{background:#fff;color:var(--ink);box-shadow:0 1px 4px #132d3a1f}
.listing-map{height:min(68vh,640px);min-height:360px;border-radius:16px;border:1px solid var(--line);overflow:hidden}
.map-note{margin-top:10px;font-size:.8125rem;color:var(--muted)}
.map-popup{display:flex;flex-direction:column;gap:8px;max-height:260px;overflow:auto}
.map-popup-item{display:flex;gap:10px;align-items:center;color:var(--ink)}.map-popup-item:hover{color:var(--green)}
.map-popup-item img{width:56px;height:56px;object-fit:cover;border-radius:8px;flex-shrink:0}
.map-popup-item>span{display:flex;flex-direction:column;min-width:0}.map-popup-item b{font-size:.9rem;line-height:1.3}
.map-popup-price{font-weight:750;color:var(--green)}.map-popup-item small{color:var(--muted)}
.detail-map-wrap{display:flex;flex-direction:column;gap:8px;margin:18px 0}
.detail-map{height:220px;border-radius:14px;border:1px solid var(--line);overflow:hidden}
.map-picker{margin:22px 0}.map-picker-head{display:flex;align-items:center;gap:6px}.map-picker-head .text-button{margin-left:auto}
.map-picker-head .text-button[hidden]{display:none}
.pick-map{height:320px;border-radius:14px;border:1px solid var(--line);overflow:hidden;cursor:crosshair}
@media(max-width:600px){.listing-map{height:62vh}.pick-map{height:280px}.view-switch{margin-right:8px}.view-switch a{padding:6px 12px}}
.leaflet-tooltip.map-count{background:transparent;border:0;box-shadow:none;color:#fff;font-weight:800;font-size:.75rem;padding:0}.leaflet-tooltip.map-count:before{display:none}
.map-picker-head .text-button{color:var(--green);font-weight:650;font-size:.875rem}
.your-data{margin-top:30px;padding-top:24px;border-top:1px solid var(--line);display:grid;gap:12px;justify-items:start}.your-data h3,.your-data p{margin:0}.your-data a:not(.button){color:var(--green);font-weight:600}
.delete-account{width:100%;font-size:.875rem}.delete-account summary{cursor:pointer;color:#a3342e;font-weight:650;min-height:44px;display:flex;align-items:center}.delete-account form{display:grid;gap:12px;margin-top:8px}.delete-account p{margin:4px 0 0;color:var(--muted)}
.footer-links{display:flex;gap:16px;flex-wrap:wrap}.footer-links a:hover{color:var(--green)}
.auth-legal{color:var(--muted)}.auth-legal a{color:var(--green);font-weight:600}
.legal{max-width:760px;margin:40px auto 0;line-height:1.75}.legal h1{font-size:clamp(2rem,4vw,2.8rem)}.legal h2{margin-top:36px;font-size:1.25rem}.legal ul{padding-left:22px}.legal li{margin:4px 0}.legal .updated{color:var(--muted);font-size:.875rem}.legal a{color:var(--green);font-weight:600}.legal .draft{background:#fff7e0;border:1px solid #f0d58a;border-radius:10px;padding:12px 16px;font-size:.875rem}
.error-page{text-align:center;padding:70px 0 30px;max-width:560px;margin:auto}.error-page .code{font-size:5rem;font-weight:800;letter-spacing:-.06em;color:var(--green);line-height:1}.error-page p{color:var(--muted)}.error-page .actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:20px}
.chat-report-link{margin-left:auto;font-size:.8125rem;font-weight:650;color:var(--muted);white-space:nowrap;padding:8px 10px;border-radius:8px}.chat-report-link:hover{color:#a3342e;background:#fff0ed}
.reasons{border:0;padding:0;margin:0 0 18px;display:grid;gap:6px}.reasons legend{font-weight:700;margin-bottom:8px}
.help a{color:var(--green);font-weight:600}
@media(max-width:600px){.chat-report-link span{display:none}}
input[type=radio]{width:20px;height:20px;accent-color:var(--green);flex-shrink:0;margin:0}

/* Bigger tap targets on phones without changing the layout */
.profile-links>a,.footer-links a{padding:10px 0;margin:-10px 0}

/* "Why UniPassOn?" section under the listings on the home page */
.why{margin:56px 0 24px;padding:36px;background:var(--pale);border-radius:16px}
.why h2{font-size:1.75rem;line-height:1.2;margin:0 0 26px;max-width:620px}
.why-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.why-card{background:var(--white);border-radius:12px;padding:20px}
.why-card h3{font-size:1rem;margin:14px 0 6px}
.why-card p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.5}
.why-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--pale);color:var(--green)}
.why-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1150px){.why-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.why{margin:40px -4px 16px;padding:24px 16px}.why h2{font-size:1.35rem;margin-bottom:18px}.why-grid{grid-template-columns:1fr;gap:10px}.why-card{display:grid;grid-template-columns:42px 1fr;column-gap:14px;padding:16px}.why-icon{grid-row:span 2}.why-card h3{margin:2px 0 4px}}

/* Email sign-in, sign-up and code pages */
.auth-card .check{flex-direction:row;margin:-4px 0 20px;font-size:.875rem}
.auth-card .errorlist{margin:-14px 0 16px}
.auth-card small.help{display:block;margin:-14px 0 18px}
.auth-card small.help+.errorlist{margin-top:-12px}
.code-input{font-size:1.6rem;letter-spacing:.35em;text-align:center;font-variant-numeric:tabular-nums}
.forgot{margin:-10px 0 18px;text-align:right;font-size:.875rem}
.resend{margin-top:14px}
.link-button{background:none;border:0;padding:0;font:inherit;color:var(--green);text-decoration:underline;cursor:pointer}
.button.busy{opacity:.75;cursor:progress}
.forgot a,.auth-bottom a{display:inline-block;padding:10px 0;margin:-10px 0}
