#content > :where(.card,.btn,.actions,.chips,.stack,.grid,details,.notice,.row){margin-block-end:1rem}
.welcome{background:#fff3e7;border:1px solid #f0dfd0;border-radius:24px;display:grid;grid-template-columns:1.18fr 1fr;align-items:center;min-height:305px;padding:clamp(1.4rem,4vw,3rem);overflow:hidden;position:relative}
.welcome h1{color:#25221f;font-size:clamp(2.4rem,5vw,4rem);line-height:.96;letter-spacing:-.065em;margin:.5rem 0 .85rem}
.welcome p{max-width:34ch}.welcome .btn{margin-top:1rem}
.welcome-art{height:210px;position:relative;min-width:0;isolation:isolate}
.welcome-art img{position:absolute;width:63%;height:82%;object-fit:cover;object-position:center;border:6px solid white;border-radius:17px;box-shadow:0 8px 23px #4223101a}
.welcome-art img:first-child{right:26%;top:2%;transform:rotate(-7deg);z-index:1}.welcome-art img:last-child{right:-3%;bottom:0;transform:rotate(9deg)}
.pick-row{display:flex;align-items:center;gap:.8rem;border:1px solid var(--line);border-radius:12px;padding:.65rem;font-weight:600}.pick-row input{margin-inline-start:auto}
.terms{display:flex;align-items:flex-start;gap:.55rem;flex-wrap:wrap;font-weight:500;font-size:.9rem}.terms input{flex:none;margin-top:.22rem}
.chip{display:inline-flex;align-items:center;gap:.45rem;cursor:pointer}.field small{font-weight:450;color:var(--muted)}
.gallery{display:flex;overflow:hidden}.gallery .item-photo{aspect-ratio:1.55;width:100%;height:auto;max-height:440px;object-fit:cover;flex:0 0 100%}
.photo-controls{display:flex;align-items:center;justify-content:space-between;padding:0 1.15rem;font-size:.875rem;color:var(--muted)}
.item-card{max-width:590px;touch-action:pan-y}.item-copy{padding:1.15rem}.item-copy>*+*{margin-top:.65rem}
.thumb{width:60px;height:60px;object-fit:cover;border-radius:10px;flex:none}
.tile{display:grid;gap:.7rem}.tile .row{flex-wrap:nowrap}.tile p{font-size:.9rem;color:var(--muted)}.tile .btn{justify-self:start}
.recovery,.card code{overflow-wrap:anywhere}.recovery{padding:1rem;border:1px dashed var(--line);border-radius:10px;background:var(--soft);font-size:1.05rem}
.offer-row{display:flex;align-items:center;justify-content:space-between;text-decoration:none;color:var(--ink)}.offer-row h3{margin:.3rem 0}
.swap-pair{display:flex;align-items:center;gap:1rem;justify-content:space-between}.swap-pair small{color:var(--muted)}.main .stack>.form.card{box-shadow:none;margin:0;padding:.9rem}
.chat-log{max-height:360px;overflow-y:auto}details.card>summary{font-weight:700}details.card .form{margin-top:1rem}
.photo-strip{display:flex;gap:.5rem;flex-wrap:wrap}.photo-strip>div{position:relative}.photo-strip img{width:68px;height:68px;object-fit:cover;border-radius:10px}.photo-strip button{position:absolute;right:0;top:0;border:0;background:#fff;font-weight:800;border-radius:50%;min-height:24px;width:24px}
footer{max-width:var(--content-width);margin:0 auto;padding:1rem 3rem 2rem;font-size:.85rem}.nav-link>span{font-size:1.25rem;line-height:1}
@media(max-width:700px){.welcome{grid-template-columns:minmax(0,1.2fr) minmax(0,.7fr);min-height:220px;gap:0;padding:1.2rem}.welcome-art{height:145px}.welcome-art img{width:84%;height:72%;border-width:3px}.welcome-art img:first-child{right:10%}.welcome-art img:last-child{right:-10%}.welcome h1{font-size:clamp(2rem,8.2vw,3rem)}.welcome .eyebrow{font-size:.58rem}.site-head .row{gap:.1rem}.head-inner .btn{padding:.5rem;min-height:40px}.tiles{grid-template-columns:1fr!important}footer{padding:0 1rem calc(5rem + env(safe-area-inset-bottom))}.form .two{grid-template-columns:1fr}.gallery .item-photo{max-height:355px}.photo-strip button{min-height:28px;width:28px}}

/* Discover stays centred, with the item and both swipe choices visible together. */
.main:has(.discover-panel){overflow-x:clip}
.discover-panel{display:grid;justify-items:center;gap:1rem}
.discover-heading{width:min(100%,540px);display:flex;justify-content:space-between;align-items:center;gap:.75rem}
.discover-heading h1{font-size:clamp(1.55rem,2.4vw,2rem);letter-spacing:-.045em;margin-top:.35rem}
.discover-heading .btn{font-size:.8rem;padding:.5rem;flex:none}
.discover-filters{justify-content:center}
.discover-filters .btn{border-radius:999px;min-height:38px;font-size:.83rem}
.swipe-area{width:min(100%,500px);margin-inline:auto}
.swipe-hint{display:flex;justify-content:space-between;gap:.75rem;padding:.15rem .25rem .6rem;font-size:.8rem;font-weight:650;color:var(--muted)}
.swipe-hint span:last-child{color:var(--orange-dark);text-align:right}
.swipe-stage{position:relative;isolation:isolate;padding:5px 0 0}
.swipe-stage::before{content:"";position:absolute;inset:1px 10px 8px;border:1px solid #e8d8cb;border-radius:var(--radius);background:#f4e9df;transform:rotate(-2deg);z-index:-1}
.swipe-area .item-card{position:relative;width:100%;max-width:none;margin:0;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;cursor:grab;transform:translateX(var(--swipe-x,0)) rotate(var(--swipe-angle,0deg));transition:transform .18s ease-out,opacity .18s;box-shadow:0 6px 22px #3c24150a;transform-origin:50% 85%}
.item-card.dragging{transition:none;cursor:grabbing;will-change:transform}
.item-card.leaving{opacity:.2;pointer-events:none}
.swipe-area .gallery,.swipe-area .gallery .item-photo{aspect-ratio:1.4;max-height:360px;height:auto}
.swipe-area .gallery .item-photo{object-fit:contain;background:#f3eeea;-webkit-user-drag:none}
.swipe-area .item-card .item-copy{padding:.95rem 1.15rem;gap:.4rem}
.swipe-area .item-copy>*+*{margin-top:0}
.swipe-area h2{font-size:1.45rem;letter-spacing:-.035em}
.swipe-area .item-copy p{font-size:.87rem}
.swipe-area .item-owner{color:var(--muted);font-size:.8rem}
.swipe-stamp{position:absolute;top:1.4rem;opacity:0;border:3px solid currentColor;border-radius:8px;padding:.35rem .65rem;font-size:1.5rem;font-weight:850;background:#fffdf5;pointer-events:none}
.pass-stamp{right:1rem;color:#733e31;transform:rotate(10deg)}
.like-stamp{left:1rem;color:var(--orange-dark);transform:rotate(-10deg)}
[data-swipe="like"] .like-stamp,[data-swipe="pass"] .pass-stamp{opacity:var(--swipe-feedback,0)}
.swipe-actions{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1rem auto 0;width:min(100%,360px)}
.swipe-actions .btn{min-height:50px;border-radius:999px;font-size:1rem}
.swipe-keyboard{margin-top:.6rem;text-align:center;font-size:.75rem;color:var(--muted)}
.listing-report{text-align:center;margin-top:.25rem}.listing-report .btn{font-size:.75rem;min-height:36px}
.photo-strip>div{padding:.15rem}.photo-strip button{min-width:34px;min-height:34px;border:1px solid var(--line);box-shadow:0 1px 4px #0002}
.photo-strip img{width:80px;height:80px}
@media(max-width:720px){
  .discover-panel{gap:.8rem}.discover-heading{align-items:flex-start}.discover-heading .btn{font-size:.72rem;max-width:88px;line-height:1.35}
  .swipe-hint{font-size:.75rem}.swipe-area .gallery,.swipe-area .gallery .item-photo{aspect-ratio:1.15;max-height:min(38svh,330px)}
  .swipe-area .item-card .item-copy{padding:.8rem 1rem}.swipe-area h2{font-size:1.3rem}
  .swipe-actions{gap:.8rem;margin-top:.9rem}.swipe-actions .btn{min-height:48px}
}
@media(pointer:coarse){.swipe-keyboard{display:none}.photo-strip button{min-width:44px;min-height:44px}}
@media(max-width:380px){
  #head-actions>.ghost{display:none}
  #head-actions>.secondary{max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
  .discover-heading h1{font-size:1.3rem}.discover-heading .eyebrow{font-size:.6rem}
  .discover-heading .btn{max-width:65px;padding-inline:0;font-size:.68rem}
}
