/* Shared mobile presentation for every current marketplace and seller feature. */
.mobile-hero-actions,.mobile-local-badge{display:none}
@media(max-width:640px){
  html,body{max-width:100%;overflow-x:clip}
  body>header{height:auto;min-height:74px;padding:10px max(12px,env(safe-area-inset-left));gap:8px}
  body>header #connector-brand{min-width:0;gap:7px}
  body>header #connector-brand img{width:40px;height:40px}
  body>header #connector-brand span{font-size:14px;overflow-wrap:anywhere}
  body>header .actions{flex:none;gap:1px}
  body>header .actions #post{display:none}
  #connector-mobile-actions{padding:8px max(8px,env(safe-area-inset-left));gap:6px}
  #connector-mobile-actions button{min-height:46px!important;white-space:normal;overflow-wrap:break-word;touch-action:manipulation}
  #connector-mobile-actions button:nth-child(3){background:#2462d6!important;border-color:#2462d6!important;color:#fff!important}
  .wrap{padding-right:12px;padding-left:12px}
  .hero{grid-template-columns:minmax(0,1fr)}
  .hero-copy,.hero-art{min-width:0;max-width:100%}
  .hero-copy p{overflow-wrap:break-word}
  .hero-art svg{width:100%;max-width:100%}
  body>.wrap .hero{background:radial-gradient(ellipse at 100% 100%,#fce3e7 0%,transparent 48%),linear-gradient(145deg,#f7faff,#eaf2ff);border:1px solid #dbe6f8;border-radius:22px;box-shadow:0 10px 30px #23549b09}
  body>.wrap .hero-copy{padding:23px 18px 0}
  .hero-copy>.eyebrow{display:none}
  .mobile-local-badge{display:inline-flex;align-items:center;gap:6px;background:#fffafc;border:1px solid #ebd5de;color:#9b4056;border-radius:30px;padding:6px 11px;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
  body>.wrap .hero-copy h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(32px,9vw,39px);font-weight:400;line-height:1.14;letter-spacing:-.9px;margin:18px 0 13px;color:#203f70}
  body>.wrap .hero-copy h1 em{color:#bf465d;font-style:italic}
  body>.wrap .hero-copy>p{font-family:Arial,sans-serif;font-size:14px;line-height:1.65;margin:0;color:#536783;max-width:38ch}
  .mobile-hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:19px}
  .mobile-hero-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;text-decoration:none;min-height:46px;border-radius:10px;font-size:12px;padding:11px 12px;flex:1;white-space:normal;text-align:center;line-height:1.35}
  .mobile-hero-actions>.btn:first-child{background:#245fd0;color:#fff;box-shadow:0 5px 12px #245fd022}
  .mobile-hero-actions>.btn.light{background:#ffffffc9;border:1px solid #c7d8f2;color:#244d86}
  .hero-copy>.hero-note{display:none}
  body>.wrap .hero-art{height:184px;min-height:184px;padding:0 14px;background:radial-gradient(ellipse at 50% 55%,#e1eaff 0%,transparent 70%)}
  body>.wrap .hero-art>svg{height:202px;width:280px;max-width:100%;transform:translateY(2px)}
  body>.wrap .hero-art .float-card{bottom:12px;right:13px;max-width:225px;border-radius:12px;box-shadow:0 7px 20px #234b8420;transform:rotate(-2deg);padding:9px 12px;font-size:10px}
  body>.wrap .hero-art .float-card strong{font-family:Georgia,'Times New Roman',serif;font-size:14px;font-weight:400;line-height:1.25;margin-bottom:3px;color:#244b85}
  body>.wrap .searchbar{margin-top:18px;border-color:#dbe5f3;border-radius:15px;box-shadow:0 7px 20px #2853900a}
  body>.wrap h2{font-family:Georgia,'Times New Roman',serif;font-size:27px;font-weight:400;letter-spacing:-.5px;line-height:1.2}
  body>.wrap .banner{background:linear-gradient(130deg,#e6efff,#fff2f3);border-radius:20px;padding:24px;border:1px solid #d5e2f6;position:relative;overflow:hidden}
  body>.wrap .banner:before{content:'';position:absolute;top:0;left:0;height:4px;width:100%;background:linear-gradient(90deg,#427ee4 65%,#e16b7f 65%)}
  body>.wrap .banner p{font-size:14px;line-height:1.65}
  body>.wrap .banner .btn{min-height:46px;border-radius:10px}
  .float-card{max-width:calc(100% - 24px);right:12px}
  .searchbar{min-width:0}
  .searchbar input{min-width:0;width:calc(100% - 36px)}
  .searchbar select{min-width:0;max-width:100%;flex-basis:50%}
  .chips{gap:6px}
  .chip,.tabs button{min-height:42px}
  .card,.card-body,.card-bottom,.workspace-row{min-width:0}
  .card h3,.workspace-row h3,.workspace-row p{overflow-wrap:anywhere}
  .card-bottom{flex-wrap:wrap;row-gap:5px}
  .card-bottom .price{margin-left:auto}
  dialog{width:calc(100vw - 20px)!important;max-width:520px!important;max-height:calc(100dvh - 20px)!important;margin:auto!important;padding:18px 14px max(20px,env(safe-area-inset-bottom))!important;overflow-y:auto!important;overscroll-behavior:contain;border-radius:14px!important;box-sizing:border-box}
  dialog .account-title{padding-top:12px;font-size:26px;padding-right:25px;overflow-wrap:break-word}
  dialog .close{min-width:40px;min-height:40px;touch-action:manipulation}
  dialog p,dialog h2,dialog h3{overflow-wrap:anywhere}
  dialog .form{min-width:0;gap:14px}
  dialog .form label{min-width:0;font-size:13px}
  dialog .form :is(input,select,textarea){min-width:0;max-width:100%;font-size:16px!important;box-sizing:border-box}
  dialog .form :is(input:not([type=checkbox]):not([type=file]),select){min-height:46px}
  dialog .form textarea{min-height:96px;resize:vertical}
  dialog .form input[type=checkbox]{flex:none;min-width:20px;min-height:20px}
  dialog .form input[type=file]{font-size:11px!important;padding:5px;min-height:44px;overflow:hidden}
  dialog .two{grid-template-columns:minmax(0,1fr)}
  dialog .btn,dialog .workspace-actions .btn{min-height:46px;padding:11px 12px;font-size:14px;line-height:1.3;white-space:normal;touch-action:manipulation}
  dialog .form>button[type=submit]{width:100%;min-height:50px}
  dialog .form .error:not(:empty){padding:10px;border-radius:8px;background:#fff1f1;color:#9e2424}
  dialog .workspace-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  dialog .workspace-actions>*{min-width:0;margin:0}
  dialog .workspace-row{padding:14px!important}
  dialog .workspace-row .workspace-actions{margin-bottom:0}
  dialog #newListing{grid-column:1/-1}
  dialog #deleteListingForm .workspace-actions{grid-template-columns:1fr}
  dialog .photo-slots{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  dialog .photo-slot{padding:6px!important;font-size:12px!important}
  dialog .photo-slot .btn{min-height:44px;font-size:11px!important;padding:8px 2px!important;overflow-wrap:anywhere}
  #connector-account-page{padding:0 max(12px,env(safe-area-inset-left)) max(32px,env(safe-area-inset-bottom))!important;overscroll-behavior:contain}
  #connector-account-page header{height:auto;min-height:76px;gap:8px!important;padding:16px 0!important}
  #connector-account-page header>.workspace-actions{width:100%;margin:4px 0}
  #connector-account-page .workspace-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #connector-account-page .workspace-actions>*{min-width:0;min-height:46px;white-space:normal;font-size:13px;padding:10px 8px;line-height:1.35;touch-action:manipulation}
  #connector-account-page h1{letter-spacing:-.7px;line-height:1.16}
  #connector-account-page .account-cards{grid-template-columns:minmax(0,1fr)!important}
  #connector-account-page .account-cards>section{min-width:0;padding:20px!important;overflow-wrap:anywhere}
  .toast{width:calc(100% - 24px);max-width:420px;bottom:max(12px,env(safe-area-inset-bottom));font-size:14px;overflow-wrap:anywhere}
}
@media(max-width:360px){
  body>header #connector-brand span{font-size:12px}
  body>header #connector-brand img{width:34px;height:34px}
  #connector-mobile-actions button{font-size:11px!important}
  .card-bottom .price{font-size:14px}
  .workspace-row .workspace-actions{grid-template-columns:1fr!important}
}
