/* Final UI acceptance pass: restrained shapes, consistent alignment, no decorative bubbles. */
.mode-badge,.pill{border-radius:10px}
.icon-btn,.profile-btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;line-height:1}
.icon-btn{width:40px;padding:0}
.profile-btn{padding:0 13px}
.top-actions{min-width:max-content}

.hero-copy::before,.hero-art::after,.flow>div::after{display:none}
.shoe-card{transform:none}

.search-row{grid-template-columns:minmax(0,1fr) 112px 170px;align-items:stretch}
.search-box,.filter-btn,.sort-select{min-height:46px;border-radius:12px}
.filter-btn,.sort-select{width:100%}
.sort-select{text-align:center;text-align-last:center}
.search-box{min-width:0}
.search-box input{min-width:0}
.filters[hidden]{display:none}
.section-head{align-items:center}
.result-count{align-self:center}

.listing-image::after,.product-art::after{border-radius:8px}
.section-head::after{border-radius:2px}
.modal-close{border-radius:10px}
.toast{border-radius:12px}

.hero-art,.listing-image,.product-art{place-items:center}
.hero-shoe-info{min-height:48px}
.offers-card,.order-card,.auth-card,.seller-card,.flow>div{border-radius:16px}

/* Account dropdown */
.top-actions{position:relative}
.profile-btn{border:1px solid var(--line,#d9d9d9);background:#fff;color:inherit;font:inherit;cursor:pointer;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-panel{position:absolute;z-index:80;top:calc(100% + 12px);right:0;width:min(430px,calc(100vw - 28px));max-height:min(720px,calc(100vh - 100px));overflow:auto;padding:20px;background:#fff;border:1px solid var(--line,#dedede);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.18)}
.account-panel[hidden]{display:none}
.account-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.account-panel-head strong{display:block;margin-top:4px;font-size:1.15rem}
.account-close{width:36px;height:36px;border:1px solid var(--line,#dedede);border-radius:10px;background:#fff;font-size:24px;line-height:1;cursor:pointer}
.account-choice-intro{margin:0 0 14px;color:#666;font-size:.85rem;line-height:1.5}
.account-choice-list{display:grid;gap:10px}
.account-choice{display:grid;gap:5px;width:100%;padding:16px;text-align:left;border:1px solid var(--line,#dedede);border-radius:12px;background:#fff;color:inherit;font:inherit;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.account-choice:hover{border-color:#111;box-shadow:0 10px 24px rgba(0,0,0,.07);transform:translateY(-1px)}
.account-choice strong{font-size:.95rem}
.account-choice span{color:#6b6b6b;font-size:.78rem;line-height:1.4}
.account-form{display:grid;gap:12px}
.account-form label{display:grid;gap:6px;font-size:.78rem;font-weight:700;letter-spacing:.02em}
.account-form input,.account-form select{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line,#d9d9d9);border-radius:10px;background:#fff;color:inherit;font:inherit}
.account-form input:focus,.account-form select:focus{outline:2px solid #111;outline-offset:1px}
.account-form small{font-size:.72rem;font-weight:500;color:#717171}
.account-grid{display:grid;gap:12px}
.account-grid.two-col{grid-template-columns:1fr 1fr}
.account-more{border:1px solid var(--line,#e0e0e0);border-radius:12px;padding:0 12px}
.account-more summary{padding:12px 0;cursor:pointer;font-size:.82rem;font-weight:800}
.account-more[open]{padding-bottom:12px}
.account-more[open] summary{margin-bottom:10px;border-bottom:1px solid var(--line,#e7e7e7)}
.account-more>label,.account-more>.account-grid{margin-top:10px}
.account-submit{width:100%;margin-top:2px}
.account-back{width:100%;margin-top:12px;padding:10px 12px;border:0;background:transparent;color:#555;font:inherit;font-size:.8rem;font-weight:800;cursor:pointer}
.account-back:hover{color:#111}
.account-message{min-height:20px;margin:12px 0 0;font-size:.8rem;color:#555}
.account-message.error{color:#a21414}
.account-member-summary{display:flex;align-items:center;gap:12px;padding:12px;margin-bottom:16px;background:#f6f6f3;border-radius:14px}
.account-member-summary>div:last-child{display:grid;gap:2px;min-width:0}
.account-member-summary span{font-size:.78rem;color:#666;overflow:hidden;text-overflow:ellipsis}
.account-avatar{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:50%;background:#111;color:#fff;font-weight:900}
.account-signout{width:100%;margin-top:12px;padding:10px 12px;border:1px solid var(--line,#d9d9d9);border-radius:10px;background:#fff;font:inherit;font-weight:700;cursor:pointer}

/* Visual milestone 5: richer marketplace depth without visual clutter */
:root{--surface:#fff;--surface-soft:#f1ede5;--accent-wash:rgba(255,59,48,.07);--deep-shadow:0 20px 55px rgba(17,17,17,.085)}
body{background:
  radial-gradient(900px 520px at 88% 8%,rgba(255,59,48,.055),transparent 62%),
  radial-gradient(760px 460px at 4% 40%,rgba(17,17,17,.035),transparent 66%),
  var(--paper)}
.topbar{padding:13px 0;border-bottom-color:rgba(17,17,17,.1);background:rgba(246,243,237,.88);box-shadow:0 8px 28px rgba(17,17,17,.035)}
.brand{font-size:18px;letter-spacing:-.045em}
.brand-mark{border-radius:7px;padding:3px 6px;box-shadow:none}
.nav{gap:20px}
.nav a{font-size:12px;letter-spacing:.015em}
.mode-badge{padding:6px 8px;font-size:9px;box-shadow:none}
.icon-btn{width:34px;min-height:34px;height:34px;border-radius:10px;padding:0;font-size:14px;font-weight:700}
.profile-btn{min-height:34px;height:34px;border-radius:10px;padding:0 11px;font-size:12px;font-weight:800}
.search-box>span{display:inline-grid;place-items:center;width:18px;height:18px;font-size:13px;line-height:1;color:#555}
.hero{gap:48px;padding:74px 0 82px}
.hero-copy>.eyebrow{color:var(--accent)}
.hero h1 span{background:linear-gradient(90deg,#777,#b7aaa0);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-text{color:#585858}
.hero-art{min-height:430px;position:relative}
.hero-art::before{content:"";position:absolute;width:min(430px,92%);aspect-ratio:1;border-radius:32px;background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(231,224,213,.66));border:1px solid rgba(17,17,17,.055);box-shadow:inset 0 1px 0 rgba(255,255,255,.9);transform:rotate(-3deg);z-index:-1}
.shoe-card{border-color:rgba(17,17,17,.085);box-shadow:0 28px 75px rgba(17,17,17,.12),0 2px 0 rgba(255,255,255,.9) inset;background:rgba(255,255,255,.92);backdrop-filter:blur(10px)}
.btn{border-radius:11px;font-size:13px;padding:12px 16px}
.btn-dark{box-shadow:0 8px 20px rgba(17,17,17,.12)}
.market,.offers-panel,.orders-panel,.auth-panel,.seller-panel,.trust{border-top-color:rgba(17,17,17,.09)}
.section-head h2{font-size:clamp(34px,4vw,46px)}
.section-head::after{width:46px;height:2px;background:linear-gradient(90deg,var(--accent),rgba(255,59,48,.18))}
.result-count,.portfolio-count{padding:7px 10px;border:1px solid rgba(17,17,17,.08);border-radius:9px;background:rgba(255,255,255,.58);backdrop-filter:blur(8px)}
.search-row{gap:8px}
.search-box,.filter-btn,.sort-select{border-color:rgba(17,17,17,.09);box-shadow:0 5px 14px rgba(17,17,17,.025)}
.search-box{background:rgba(255,255,255,.88)}
.filter-btn,.sort-select{font-size:12px;font-weight:750}
.listing-grid{gap:18px}
.listing{border-color:rgba(17,17,17,.075);border-radius:17px;box-shadow:0 10px 30px rgba(17,17,17,.045);background:rgba(255,255,255,.94)}
.listing:hover{transform:translateY(-5px);border-color:rgba(17,17,17,.14);box-shadow:var(--deep-shadow)}
.listing-image{min-height:225px;background:
  radial-gradient(circle at 50% 42%,#fff 0 16%,rgba(255,255,255,.7) 30%,transparent 54%),
  linear-gradient(145deg,#f5f2eb,#e9e3d9)}
.listing-image::before{content:"";position:absolute;left:13px;top:13px;width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px rgba(255,59,48,.08)}
.listing-image::after{right:10px;bottom:10px;padding:5px 7px;font-size:8px;letter-spacing:.07em;border-radius:7px}
.listing-info{padding:15px 15px 14px}
.listing-info h3{font-size:16px;letter-spacing:-.018em}
.listing-info p{font-size:11px}
.price-row{padding-top:10px;margin-top:10px}
.price{font-size:19px;letter-spacing:-.025em}
.price-row>span:last-child{font-size:10px}
.offers-card,.order-card,.auth-card,.seller-card,.seller-listing-card,.portfolio-add-card,.portfolio-collection{border-color:rgba(17,17,17,.075);box-shadow:0 12px 32px rgba(17,17,17,.045)}
.offer-empty-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#111;color:#fff;font-size:15px;line-height:1;box-shadow:0 7px 18px rgba(17,17,17,.11)}
.flow{gap:8px}
.flow>div{border-color:rgba(17,17,17,.075);box-shadow:0 8px 22px rgba(17,17,17,.035)}
.flow>i{font-size:13px}
.modal-close{width:32px;height:32px;font-size:19px;right:12px;top:12px}
.account-close{width:32px;height:32px;font-size:19px}
.product-art{box-shadow:inset 0 0 0 1px rgba(17,17,17,.035)}
.toast{font-size:12px;box-shadow:0 16px 40px rgba(17,17,17,.2)}

/* Visual milestone 6: compact marketplace density */
.listing-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.listing{border-radius:14px}
.listing-image{min-height:168px}
.listing-info{padding:11px 12px 12px}
.listing-info h3{font-size:14px;line-height:1.2;margin-bottom:4px}
.listing-info p{font-size:10px;line-height:1.35}
.price-row{padding-top:8px;margin-top:8px}
.price{font-size:17px}
.listing-image::before{left:10px;top:10px;width:6px;height:6px;box-shadow:0 0 0 4px rgba(255,59,48,.07)}
.listing-image::after{right:8px;bottom:8px;padding:4px 6px;font-size:7px}
.listing .sku-product-image{max-height:150px;max-width:92%;object-fit:contain}

/* Visual milestone 7: compact listing detail modal */
.modal{padding:12px;align-items:center}
.product-modal{width:min(680px,calc(100vw - 24px));grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:18px;padding:18px;border-radius:18px;max-height:calc(100vh - 24px);overflow:auto}
.product-art{min-height:220px;border-radius:14px}
.product-art .sneaker{transform:rotate(-10deg) scale(.78)}
.product-art .sku-product-image{max-width:90%;max-height:200px;object-fit:contain}
.product-copy{min-width:0;padding:2px 4px 2px 0}
.product-copy .eyebrow{font-size:8px;line-height:1.35;letter-spacing:.11em}
.product-copy h2{margin:7px 0 5px;font-size:clamp(22px,3vw,30px);line-height:1.02;letter-spacing:-.045em}
.product-copy>p{font-size:11px;line-height:1.4}
.product-price{font-size:23px;margin:10px 0}
.product-specs{gap:7px;margin:10px 0}
.product-specs span{padding:8px 9px;border-radius:10px}
.product-specs b{font-size:8px}
.product-specs em{font-size:11px}
.size-picker{font-size:10px;gap:5px}
.size-picker select{min-height:36px;padding:7px 9px;border-radius:9px}
.product-modal .muted{font-size:10px;line-height:1.35;margin:10px 0}
.product-modal .modal-actions{gap:8px}
.product-modal .modal-actions .btn{padding:10px 12px;font-size:11px}

@media(max-width:1050px){
  .listing-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:900px){
  .search-row{grid-template-columns:minmax(0,1fr) 108px 160px}
  .hero{gap:24px}
  .listing-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
  .listing-image{min-height:158px}
}

@media(max-width:620px){
  .topbar{grid-template-columns:minmax(0,1fr) auto;padding:11px 0}
  .top-actions{justify-self:end;gap:6px}
  .brand{font-size:14px}
  .icon-btn{width:31px;min-height:31px;height:31px;font-size:12px;border-radius:9px}
  .profile-btn{min-height:31px;height:31px;padding:0 9px;max-width:100px;font-size:11px}
  .search-row{grid-template-columns:1fr}
  .search-box,.filter-btn,.sort-select{min-height:44px}
  .section-head{align-items:flex-start}
  .result-count{align-self:auto}
  .hero{padding:42px 0 52px}
  .hero-art{min-height:290px}
  .hero-art::before{width:min(330px,90%);border-radius:24px}
  .hero-shoe-info{min-height:0}
  .listing-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .listing{border-radius:12px}
  .listing-image{min-height:132px}
  .listing-info{padding:9px 9px 10px}
  .listing-info h3{font-size:12.5px}
  .listing-info p{font-size:9px}
  .price{font-size:15px}
  .price-row>span:last-child{font-size:8px}
  .listing .sku-product-image{max-height:118px}
  .offer-empty-icon{width:30px;height:30px;font-size:13px}
  .account-panel{position:fixed;top:max(12px,env(safe-area-inset-top));right:12px;bottom:max(12px,env(safe-area-inset-bottom));left:12px;width:auto;max-height:none;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:18px;border-radius:18px}
  .account-grid.two-col{grid-template-columns:1fr}
  .product-modal{width:min(420px,calc(100vw - 16px));grid-template-columns:1fr;gap:12px;padding:14px;max-height:calc(100vh - 16px);border-radius:16px}
  .product-art{min-height:150px}
  .product-art .sku-product-image{max-height:138px}
  .product-copy h2{font-size:21px}
  .product-price{font-size:21px;margin:8px 0}
  .product-specs{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .product-specs span{padding:7px}
  .product-modal .modal-actions .btn{flex:1;padding:9px 10px}
}


/* 456KICKFLIP listing fallback: show the approved artwork at a legible,
   restrained size without stretching or cropping its proportions.
   Real SKU product photos replace this image when available. */
.listing-image > img.kickflip-listing-fallback {
  display: block;
  box-sizing: border-box;
  width: min(78%, 188px);
  height: 112px;
  max-width: calc(100% - 24px);
  max-height: 112px;
  margin: auto;
  padding: 0;
  object-fit: contain;
  object-position: center;
  flex: 0 1 auto;
  border-radius: 10px;
}
@media (max-width: 620px) {
  .listing-image > img.kickflip-listing-fallback {
    width: min(76%, 144px);
    height: 92px;
    max-height: 92px;
  }
}
