
:root{--blue:#0b5ee8;--blue2:#0953ca;--navy:#0b1f42;--ink:#172033;--muted:#657086;--line:#e2e7ef;--soft:#f5f7fa;--soft2:#f9fafc;--green:#14804a;--red:#c63532;--amber:#a8620a;--shadow:0 10px 30px rgba(18,34,64,.08);--radius:12px;--max:1240px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:white;color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;line-height:1.5}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.container{width:min(var(--max),calc(100% - 40px));margin:0 auto}.site-header{height:72px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.98);position:sticky;top:0;z-index:40}.header-inner{height:100%;display:flex;align-items:center;gap:22px}.brand-mark{display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;flex:0 0 44px}.brand-mark img{width:44px;height:44px;object-fit:contain}.main-nav{display:flex;align-items:center;gap:22px;color:#27324a;font-weight:600;font-size:13px}.main-nav a:hover{color:var(--blue)}.header-search{margin-left:auto;width:min(340px,30vw);position:relative}.header-search input{width:100%;height:40px;border:1px solid var(--line);border-radius:9px;padding:0 42px 0 14px;outline:none;background:#fff}.header-search button{position:absolute;right:2px;top:2px;height:36px;width:38px;border:0;background:transparent;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:6px}.icon-btn{width:40px;height:40px;border:0;background:transparent;border-radius:9px;display:flex;align-items:center;justify-content:center;color:var(--ink);position:relative}.icon-btn:hover{background:var(--soft)}.ico{display:inline-flex;width:20px;height:20px}.ico svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.primary-btn,.secondary-btn,.ghost-btn,.danger-btn{height:42px;border-radius:9px;padding:0 16px;border:1px solid transparent;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.15s}.primary-btn{background:var(--blue);color:#fff}.primary-btn:hover{background:var(--blue2)}.secondary-btn{background:#fff;border-color:#cfd7e5;color:var(--navy)}.secondary-btn:hover{border-color:#aebad0;background:var(--soft2)}.ghost-btn{background:transparent;color:var(--blue)}.danger-btn{background:#fff3f2;color:var(--red);border-color:#ffd7d3}.sell-btn{white-space:nowrap}.mobile-menu{display:none}.mobile-nav{display:none}.page{padding:32px 0 64px}.page-title{font-size:28px;letter-spacing:-.02em;margin:0 0 8px;color:#111a2d}.page-subtitle{margin:0;color:var(--muted);font-size:15px}.section{padding:28px 0}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:16px}.section-title{margin:0;font-size:20px;letter-spacing:-.01em}.muted{color:var(--muted)}.small{font-size:12px}.hero{padding:48px 0 26px;border-bottom:1px solid #edf0f5}.hero-inner{text-align:center;max-width:930px;margin:0 auto}.hero h1{font-size:38px;letter-spacing:-.035em;margin:0 0 10px;color:#11192b}.hero p{font-size:16px;color:var(--muted);margin:0 0 24px}.hero-search{display:grid;grid-template-columns:1fr 150px 150px 140px 56px;gap:8px;padding:10px;background:#fff;border:1px solid #dce2eb;border-radius:14px;box-shadow:var(--shadow)}.hero-search input,.hero-search select{height:46px;border:1px solid var(--line);border-radius:9px;padding:0 12px;background:white;outline:none}.hero-search input{border-color:transparent;font-size:15px}.hero-search .search-go{border:0;border-radius:9px;background:var(--blue);color:white;display:flex;align-items:center;justify-content:center}.category-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;margin-top:24px}.cat-card{border:1px solid var(--line);border-radius:11px;min-height:104px;padding:14px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;background:white;color:#29364e;font-weight:700;font-size:12px}.cat-card:hover{border-color:#a8c6f7;background:#fbfdff;color:var(--blue)}.cat-symbol{width:40px;height:40px;border-radius:10px;background:#eff5ff;color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800}.quick-links{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 0}.quick-pill{height:40px;padding:0 14px;border:1px solid var(--line);border-radius:9px;background:#fff;display:inline-flex;align-items:center;gap:7px;font-weight:650;color:#364257}.quick-pill:hover{border-color:#aac5ee;color:var(--blue)}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.product-card{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden;position:relative;transition:.16s}.product-card:hover{border-color:#cad3e1;box-shadow:0 12px 26px rgba(20,37,70,.07);transform:translateY(-1px)}.product-img{aspect-ratio:4/3;background:var(--soft);display:block;width:100%;object-fit:cover;border-bottom:1px solid #edf0f4}.card-body{padding:14px}.product-title{font-weight:750;font-size:14px;margin:0 0 4px;color:#111a2d}.product-specs{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-meta{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.price{font-size:20px;font-weight:800;letter-spacing:-.02em;color:#10192d}.location{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:4px}.badge{height:24px;padding:0 8px;border-radius:6px;display:inline-flex;align-items:center;font-size:10px;font-weight:800;letter-spacing:.04em}.badge-vip{background:#0b1f42;color:#fff}.badge-top{background:#eaf2ff;color:#0b5ee8;border:1px solid #cfe1ff}.badge-verified{background:#edf8f2;color:#137249}.promo-badge{position:absolute;left:10px;top:10px;z-index:2}.fav-float{position:absolute;right:10px;top:10px;width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.94);display:flex;align-items:center;justify-content:center;color:#546077}.fav-float.active{color:#e23d4f}.fav-float.active svg{fill:#e23d4f;stroke:#e23d4f}.seller-line{margin-top:11px;padding-top:11px;border-top:1px solid #eef1f5;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#5c6679}.seller-name{display:flex;align-items:center;gap:5px;font-weight:650}.content-layout{display:grid;grid-template-columns:248px 1fr;gap:24px}.filter-panel{border:1px solid var(--line);border-radius:12px;background:white;padding:16px;height:max-content;position:sticky;top:92px}.filter-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-weight:800}.filter-group{padding:14px 0;border-top:1px solid #edf0f4}.filter-group:first-of-type{border-top:0}.filter-label{font-size:12px;font-weight:800;margin-bottom:8px;color:#354055}.filter-panel select,.filter-panel input{width:100%;height:38px;border:1px solid var(--line);border-radius:8px;padding:0 10px;background:white;outline:none}.check-list{display:grid;gap:8px}.check{display:flex;gap:8px;align-items:center;color:#4d586d;font-size:13px}.check input{width:15px;height:15px}.price-pair{display:grid;grid-template-columns:1fr 1fr;gap:7px}.results-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.results-head h1{font-size:23px;margin:0}.sort-select{height:38px;border:1px solid var(--line);border-radius:8px;padding:0 10px;background:#fff}.listing-list{display:grid;gap:12px}.listing-row{display:grid;grid-template-columns:220px 1fr 160px;gap:18px;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff;position:relative;min-height:182px}.listing-row.vip{border-color:#b8c9e3;box-shadow:0 8px 20px rgba(18,44,86,.06)}.listing-row img{width:220px;height:156px;object-fit:cover;border-radius:9px;background:var(--soft)}.listing-info{padding:4px 0}.listing-title{font-size:17px;font-weight:800;margin:0 0 4px}.listing-features{color:#536078;font-size:13px;margin-top:12px;display:grid;gap:4px}.listing-right{text-align:right;padding:5px 0 0;display:flex;flex-direction:column;align-items:flex-end}.listing-right .price{font-size:22px}.listing-location{margin-top:auto;color:var(--muted);font-size:12px}.mobile-filter-button{display:none}.breadcrumb{display:flex;gap:7px;align-items:center;color:#657086;font-size:12px;margin-bottom:20px}.breadcrumb a:hover{color:var(--blue)}.detail-grid{display:grid;grid-template-columns:minmax(0,1.55fr) 360px;gap:28px}.gallery-main{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--soft);aspect-ratio:4/3}.gallery-main img{width:100%;height:100%;object-fit:cover}.thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:8px}.thumb{border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--soft);aspect-ratio:4/3}.thumb img{width:100%;height:100%;object-fit:cover}.detail-side{position:sticky;top:96px;height:max-content}.detail-card{border:1px solid var(--line);border-radius:13px;padding:20px;background:#fff}.detail-card h1{font-size:23px;line-height:1.25;margin:0 0 8px}.detail-price{font-size:30px;font-weight:850;margin:8px 0 16px;color:#0d1730}.detail-actions{display:grid;gap:9px}.seller-card{border:1px solid var(--line);border-radius:12px;padding:16px;margin-top:12px}.seller-head{display:flex;align-items:center;gap:11px}.avatar{width:44px;height:44px;border-radius:50%;background:#e8eef8;display:flex;align-items:center;justify-content:center;font-weight:800;color:#244166}.seller-head strong{display:block}.seller-head span{font-size:12px;color:var(--muted)}.spec-card{margin-top:22px;border:1px solid var(--line);border-radius:12px;overflow:hidden}.spec-head{padding:15px 18px;border-bottom:1px solid var(--line);font-weight:800}.spec-grid{display:grid;grid-template-columns:1fr 1fr}.spec-row{display:grid;grid-template-columns:42% 58%;padding:11px 16px;border-bottom:1px solid #edf0f4;font-size:13px}.spec-row:nth-child(odd){border-right:1px solid #edf0f4}.spec-key{color:var(--muted)}.description-card{margin-top:18px;border:1px solid var(--line);border-radius:12px;padding:18px}.description-card h2{font-size:17px;margin:0 0 10px}.profile-cover{border:1px solid var(--line);border-radius:13px;padding:20px;display:flex;align-items:center;gap:16px}.profile-cover .avatar{width:64px;height:64px;font-size:20px}.profile-actions{margin-left:auto;display:flex;gap:8px}.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin-top:20px}.tab{padding:12px 14px;font-weight:700;color:#657086;border-bottom:2px solid transparent}.tab.active{color:var(--blue);border-color:var(--blue)}.dashboard-grid{display:grid;grid-template-columns:220px 1fr;gap:24px}.account-nav{border:1px solid var(--line);border-radius:12px;padding:8px;height:max-content}.account-nav a{display:flex;align-items:center;gap:9px;padding:10px 11px;border-radius:8px;color:#4a556a;font-weight:650}.account-nav a:hover,.account-nav a.active{background:#eef5ff;color:var(--blue)}.panel{border:1px solid var(--line);border-radius:12px;background:#fff}.panel-head{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.panel-head h2{font-size:17px;margin:0}.panel-body{padding:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:800;color:#39455b}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 11px;outline:none}.field input,.field select{height:42px}.field textarea{min-height:110px;padding:10px 11px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#8ab3f5;box-shadow:0 0 0 3px rgba(11,94,232,.08)}.hint{font-size:11px;color:#657086}.switch{display:flex;align-items:center;gap:10px}.switch input{appearance:none;width:38px;height:22px;border-radius:999px;background:#cfd6e2;position:relative;transition:.15s}.switch input:before{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:white;left:3px;top:3px;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.15s}.switch input:checked{background:var(--blue)}.switch input:checked:before{left:19px}.stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat-box{border:1px solid var(--line);border-radius:11px;padding:15px;background:#fff}.stat-value{font-size:24px;font-weight:850}.stat-label{font-size:12px;color:var(--muted);margin-top:2px}.ad-manage{display:grid;grid-template-columns:120px 1fr auto;gap:14px;padding:13px;border-bottom:1px solid #edf0f4;align-items:center}.ad-manage:last-child{border-bottom:0}.ad-manage img{width:120px;height:90px;border-radius:9px;object-fit:cover;background:var(--soft)}.ad-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.mini-btn{height:34px;border:1px solid var(--line);border-radius:8px;background:white;padding:0 10px;font-size:12px;font-weight:700;color:#3f4a60}.mini-btn:hover{border-color:#b8c4d6}.chat-shell{height:650px;border:1px solid var(--line);border-radius:13px;overflow:hidden;display:grid;grid-template-columns:330px 1fr;background:#fff}.conversation-list{border-right:1px solid var(--line);overflow:auto}.chat-title{padding:17px;border-bottom:1px solid var(--line);font-weight:850;font-size:17px}.conversation{padding:13px 14px;border-bottom:1px solid #edf0f4;display:flex;gap:10px;cursor:pointer}.conversation.active{background:#f1f6ff}.conversation:hover{background:#f8fafc}.conversation-main{min-width:0}.conversation-name{font-weight:750;font-size:13px}.conversation-preview{font-size:12px;color:#657086;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:215px}.chat-pane{display:flex;flex-direction:column;min-width:0}.chat-product{height:72px;border-bottom:1px solid var(--line);padding:10px 14px;display:flex;align-items:center;gap:10px}.chat-product img{width:62px;height:48px;border-radius:7px;object-fit:cover}.chat-messages{flex:1;padding:20px;overflow:auto;background:#fbfcfe}.bubble-row{display:flex;margin-bottom:10px}.bubble-row.me{justify-content:flex-end}.bubble{max-width:72%;padding:10px 12px;border-radius:13px;background:#fff;border:1px solid var(--line);font-size:13px}.bubble-row.me .bubble{background:#eaf2ff;border-color:#d3e4ff}.bubble-time{font-size:10px;color:#657086;margin-top:4px;text-align:right}.chat-input{border-top:1px solid var(--line);padding:11px;display:flex;gap:8px}.chat-input input{flex:1;height:42px;border:1px solid var(--line);border-radius:9px;padding:0 12px;outline:none}.compare-table{width:100%;border-collapse:collapse;border:1px solid var(--line);border-radius:12px;overflow:hidden}.compare-table th,.compare-table td{padding:12px 14px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);text-align:left}.compare-table th:first-child,.compare-table td:first-child{background:#fafbfc;color:var(--muted);width:180px}.compare-table th{vertical-align:top}.compare-product img{width:150px;height:110px;object-fit:cover;border-radius:9px;background:var(--soft)}.notice-list{display:grid}.notice{padding:14px 16px;border-bottom:1px solid #edf0f4;display:flex;gap:12px}.notice.unread{background:#f5f9ff}.notice-dot{width:9px;height:9px;border-radius:50%;background:var(--blue);margin-top:7px}.notice-text strong{display:block;font-size:13px}.notice-text span{font-size:12px;color:var(--muted)}.auth-wrap{min-height:calc(100vh - 72px);display:grid;place-items:center;background:#f7f9fc;padding:40px}.auth-card{width:min(460px,100%);background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px;box-shadow:var(--shadow)}.auth-logo{display:flex;justify-content:center;margin-bottom:20px}.auth-logo img{width:66px;height:66px;object-fit:contain}.auth-card h1{font-size:24px;text-align:center;margin:0 0 6px}.auth-card>p{text-align:center;color:var(--muted);margin:0 0 22px}.auth-form{display:grid;gap:13px}.auth-row{display:flex;justify-content:space-between;align-items:center;font-size:12px}.divider{height:1px;background:var(--line);margin:18px 0}.post-layout{display:grid;grid-template-columns:1fr 280px;gap:24px}.steps{display:flex;gap:4px;margin:0 0 18px}.step{flex:1;height:7px;border-radius:4px;background:#e7ebf1}.step.active{background:var(--blue)}.form-section{display:none}.form-section.active{display:block}.photo-upload{border:1.5px dashed #c8d2e1;border-radius:11px;padding:26px;text-align:center;background:#fbfcfe}.photo-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}.photo-slot{aspect-ratio:4/3;border:1px dashed #cfd7e3;border-radius:9px;display:grid;place-items:center;color:#657086;font-size:11px}.tips-card{border:1px solid var(--line);border-radius:12px;padding:16px;height:max-content;background:#fbfcfe}.tips-card h3{font-size:14px;margin:0 0 10px}.tip{display:flex;gap:8px;font-size:12px;color:#5c6679;margin:9px 0}.promotion-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.promo-card{border:1px solid var(--line);border-radius:12px;padding:18px;background:#fff;position:relative}.promo-card.featured{border-color:#9db9e8;box-shadow:0 10px 24px rgba(12,57,132,.08)}.promo-card h3{font-size:17px;margin:0 0 6px}.promo-price{font-size:26px;font-weight:850;margin:12px 0}.promo-list{display:grid;gap:8px;margin:14px 0 18px;color:#536078;font-size:12px}.legal{max-width:860px}.legal h1{font-size:30px}.legal h2{font-size:19px;margin-top:28px}.legal p,.legal li{color:#49556b}.footer{border-top:1px solid var(--line);background:#fbfcfe;padding:32px 0 18px}.footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:30px}.footer-logo img{width:54px;height:54px;object-fit:contain}.footer h4{font-size:12px;margin:0 0 10px;color:#303c52;text-transform:uppercase;letter-spacing:.04em}.footer a{display:block;color:#657086;margin:7px 0;font-size:12px}.footer a:hover{color:var(--blue)}.footer-bottom{border-top:1px solid var(--line);padding-top:16px;margin-top:24px;color:#657086;font-size:11px;display:flex;justify-content:space-between}.cookie-bar{position:fixed;left:20px;right:20px;bottom:20px;max-width:780px;margin:auto;background:#101c32;color:white;border-radius:12px;padding:14px 16px;box-shadow:0 18px 45px rgba(0,0,0,.22);display:none;align-items:center;gap:14px;z-index:100}.cookie-bar.show{display:flex}.cookie-bar p{margin:0;font-size:12px;flex:1;color:#d6deea}.empty-state{text-align:center;padding:56px 20px;border:1px dashed #ccd5e3;border-radius:12px;background:#fbfcfe}.empty-state h2{font-size:18px}.not-found{min-height:62vh;display:grid;place-items:center;text-align:center}.not-found .code{font-size:90px;font-weight:900;color:#0b1f42;line-height:1}.tag{display:inline-flex;height:28px;align-items:center;padding:0 9px;border-radius:7px;background:#f1f4f8;color:#4f5b71;font-size:11px;font-weight:700}.success-callout{border:1px solid #cdebd9;background:#f2fbf6;color:#17663e;border-radius:10px;padding:12px 14px}.warning-callout{border:1px solid #ffe1b5;background:#fff8ec;color:#7b4a08;border-radius:10px;padding:12px 14px}.mobile-bottom{display:none}
@media(max-width:1050px){.main-nav{display:none}.header-search{width:auto;flex:1}.category-grid{grid-template-columns:repeat(4,1fr)}.product-grid{grid-template-columns:repeat(3,1fr)}.listing-row{grid-template-columns:190px 1fr 140px}.listing-row img{width:190px}.detail-grid{grid-template-columns:1fr 320px}}
@media(max-width:760px){body{padding-bottom:66px}.container{width:min(100% - 24px,var(--max))}.site-header{height:60px}.header-inner{gap:10px}.brand-mark,.brand-mark img{width:38px;height:38px}.header-search{display:none}.header-actions .icon-btn{display:none}.sell-btn{display:none}.mobile-menu{display:flex;margin-left:auto}.hero{padding:28px 0 18px}.hero h1{font-size:28px}.hero p{font-size:14px}.hero-search{grid-template-columns:1fr 48px;padding:7px}.hero-search select{display:none}.category-grid{grid-template-columns:repeat(3,1fr);gap:8px}.cat-card{min-height:88px;padding:10px 5px}.product-grid{grid-template-columns:repeat(2,1fr);gap:10px}.card-body{padding:11px}.product-title{font-size:13px}.price{font-size:18px}.content-layout{display:block}.filter-panel{display:none;position:fixed;left:0;right:0;bottom:0;top:60px;z-index:80;border-radius:0;overflow:auto}.filter-panel.open{display:block}.mobile-filter-button{display:inline-flex}.results-head{align-items:center}.listing-row{grid-template-columns:120px 1fr;min-height:124px;padding:8px;gap:10px}.listing-row img{width:120px;height:106px}.listing-right{grid-column:2;text-align:left;align-items:flex-start;padding:0}.listing-right .price{position:absolute;right:12px;top:12px;font-size:18px}.listing-features{margin-top:7px}.detail-grid{grid-template-columns:1fr}.detail-side{position:static}.thumbs{grid-template-columns:repeat(4,1fr)}.spec-grid{grid-template-columns:1fr}.spec-row:nth-child(odd){border-right:0}.dashboard-grid{grid-template-columns:1fr}.account-nav{display:flex;overflow:auto;gap:3px}.account-nav a{white-space:nowrap}.stat-row{grid-template-columns:repeat(2,1fr)}.chat-shell{grid-template-columns:1fr;height:calc(100vh - 150px)}.conversation-list{display:none}.chat-shell.show-list .conversation-list{display:block}.chat-shell.show-list .chat-pane{display:none}.post-layout{grid-template-columns:1fr}.tips-card{display:none}.promotion-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div:first-child{grid-column:1/-1}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.profile-cover{align-items:flex-start;flex-wrap:wrap}.profile-actions{margin-left:0;width:100%}.compare-wrap{overflow:auto}.compare-table{min-width:760px}.auth-wrap{padding:22px 12px}.ad-manage{grid-template-columns:86px 1fr}.ad-manage img{width:86px;height:70px}.ad-actions{grid-column:1/-1;justify-content:flex-start}.mobile-bottom{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;height:62px;background:white;border-top:1px solid var(--line);z-index:70}.mobile-bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;color:#5f6b80}.mobile-bottom a.primary-mobile{color:var(--blue);font-weight:800}.footer-bottom{display:block}.footer-bottom span{display:block;margin-top:5px}}
@media(max-width:460px){.category-grid{grid-template-columns:repeat(2,1fr)}.product-grid{grid-template-columns:1fr 1fr}.product-specs{font-size:11px}.product-meta{align-items:flex-end}.seller-line{display:none}.page{padding-top:22px}.page-title{font-size:24px}.hero h1{font-size:25px}.listing-title{font-size:14px;padding-right:70px}.listing-row img{width:104px;height:96px}.listing-row{grid-template-columns:104px 1fr}.chat-product{height:66px}.bubble{max-width:86%}}


/* ===== v2 visual refinements ===== */
:root{
  --blue:#1f5fcf;
  --blue2:#1b4eab;
  --navy:#11243f;
  --ink:#1a2233;
  --muted:#667084;
  --line:#dfe5ed;
  --soft:#f3f5f7;
  --soft2:#fbfaf7;
  --shadow:0 16px 38px rgba(15,31,58,.08);
}
body{background:#f5f6f8;color:var(--ink)}
.site-header{background:rgba(255,255,255,.94);backdrop-filter:saturate(160%) blur(10px);box-shadow:0 4px 18px rgba(16,29,53,.04)}
.main-nav a{position:relative}
.main-nav a::after{content:"";position:absolute;left:0;right:0;bottom:-8px;height:2px;border-radius:2px;background:var(--blue);opacity:0;transform:scaleX(.4);transition:.16s}
.main-nav a:hover::after{opacity:1;transform:scaleX(1)}
.primary-btn{background:var(--navy);border-color:var(--navy);box-shadow:0 10px 18px rgba(17,36,63,.12)}
.primary-btn:hover{background:var(--blue2);border-color:var(--blue2)}
.ghost-btn{color:var(--navy)}
.hero{padding:52px 0 30px;border-bottom:1px solid #e9edf3;background:linear-gradient(180deg,#eef2f7 0%,#f6f7f9 42%,#ffffff 100%)}
.hero h1{color:#101a2f}
.hero-search{background:rgba(255,255,255,.92);border-color:#d7dee8;box-shadow:0 18px 45px rgba(15,31,58,.09)}
.hero-search .search-go{background:var(--navy)}
.hero-search .search-go:hover{background:var(--blue2)}
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:780px;margin:26px auto 0}
.cat-card{min-height:124px;padding:16px 12px;gap:10px;border-radius:14px;background:rgba(255,255,255,.9);border:1px solid #dbe2eb;box-shadow:0 10px 22px rgba(16,29,53,.04);font-size:13px}
.cat-card:hover{transform:translateY(-1px);border-color:#bdd0ef;background:#fff;color:var(--navy);box-shadow:0 14px 28px rgba(16,29,53,.08)}
.cat-icon{width:54px;height:54px;border-radius:14px;background:#f2f5f9;border:1px solid #e3e8f0;display:flex;align-items:center;justify-content:center;padding:9px}
.cat-icon img{width:100%;height:100%;object-fit:contain}
.cat-symbol{display:none}
.cat-card.stove-center{grid-column:2}
.quick-links{justify-content:center;margin-top:22px}
.quick-pill{background:rgba(255,255,255,.85);border-color:#d6dde8}
.product-card,.listing-row,.panel,.detail-card,.seller-card,.spec-card,.filter-panel,.auth-card,.promo-card,.chat-shell,.compare-table{box-shadow:0 10px 24px rgba(16,29,53,.05)}
.panel{border-color:#e1e6ee}
.cta-band{background:linear-gradient(135deg,#0f203a 0%,#19375f 100%);border:0;box-shadow:0 22px 50px rgba(12,26,48,.18)}
.cta-band .panel-body{padding:28px 30px;color:#fff}
.cta-band h2{color:#fff}
.cta-band .muted{color:#d6dfeb !important}
.cta-band .primary-btn{background:#fff;color:var(--navy);border-color:#fff;box-shadow:none}
.cta-band .primary-btn:hover{background:#f2f5fa}
.footer{background:#f0f2f5}
.cookie-bar .primary-btn{background:#fff;color:var(--navy);border-color:#fff;box-shadow:none}
.mobile-bottom{overflow:visible;background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}
.mobile-bottom a.primary-mobile{color:var(--navy)!important;background:#fff;border:1px solid #d9e0ea;border-radius:14px;width:56px;height:56px;margin:-18px auto 0;box-shadow:0 12px 24px rgba(16,29,53,.10)}
.mobile-bottom a.primary-mobile span:last-child{font-weight:800}
.mobile-bottom a.primary-mobile .ico{color:var(--blue)}
@media(max-width:760px){
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}
  .cat-card.stove-center{grid-column:auto}
  .cta-band .panel-body{padding:22px 18px;align-items:flex-start !important}
}
@media(max-width:460px){
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mobile-bottom a.primary-mobile{width:52px;height:52px;margin:-16px auto 0}
}

/* ===== v1.3 category alignment + mobile bottom nav fix ===== */
@media (min-width:761px){
  .category-grid{
    grid-template-columns:repeat(6,minmax(0,1fr));
    max-width:780px;
  }
  .category-grid .cat-card:nth-child(1){grid-column:1 / span 2;grid-row:1}
  .category-grid .cat-card:nth-child(2){grid-column:3 / span 2;grid-row:1}
  .category-grid .cat-card:nth-child(3){grid-column:5 / span 2;grid-row:1}
  .category-grid .cat-card:nth-child(4){grid-column:3 / span 2;grid-row:2}
  .category-grid .cat-card:nth-child(5){grid-column:1 / span 2;grid-row:3}
  .category-grid .cat-card:nth-child(6){grid-column:3 / span 2;grid-row:3}
  .category-grid .cat-card:nth-child(7){grid-column:5 / span 2;grid-row:3}
}
@media (max-width:760px){
  .category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-width:none;
  }
  .category-grid .cat-card.stove-center{grid-column:auto}
  .category-grid .cat-card:last-child{
    grid-column:1 / -1;
    width:calc(50% - 4px);
    justify-self:center;
  }
  .mobile-bottom{
    height:64px;
    align-items:stretch;
    overflow:hidden;
  }
  .mobile-bottom a.primary-mobile{
    width:auto;
    height:auto;
    margin:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    color:#5f6b80 !important;
    position:static;
  }
  .mobile-bottom a.primary-mobile .ico{
    width:28px;
    height:28px;
    padding:4px;
    border:1.5px solid var(--blue);
    border-radius:50%;
    background:#fff;
    color:var(--blue);
  }
  .mobile-bottom a.primary-mobile span:last-child{
    font-weight:700;
    color:#5f6b80;
  }
}
@media (max-width:460px){
  .category-grid .cat-card:last-child{width:calc(50% - 4px)}
  .mobile-bottom a.primary-mobile{width:auto;height:auto;margin:0}
}


/* ===== v1.4 mobile alignment + CTA/nav cleanup ===== */
@media (max-width:760px){
  /* The seventh category must sit geometrically centered on its own row. */
  .category-grid .cat-card-last{
    grid-column:1 / -1 !important;
    width:calc((100% - 12px) / 2) !important;
    max-width:none !important;
    justify-self:center !important;
  }

  /* Keep the middle navigation action inside the bar, exactly like the other items. */
  .mobile-bottom{
    height:64px !important;
    overflow:hidden !important;
    align-items:stretch !important;
  }
  .mobile-bottom a.primary-mobile{
    width:100% !important;
    height:64px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    position:relative !important;
    inset:auto !important;
    transform:none !important;
    color:#5f6b80 !important;
  }
  .mobile-bottom a.primary-mobile .ico{
    width:22px !important;
    height:22px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:var(--blue) !important;
  }
  .mobile-bottom a.primary-mobile span:last-child{
    font-weight:700 !important;
    color:#5f6b80 !important;
  }

  /* Home CTA must remain one-line and compact on phones. */
  .cta-band .primary-btn{
    white-space:nowrap !important;
    flex:0 0 auto !important;
    min-width:132px !important;
    padding:0 14px !important;
    font-size:13px !important;
  }
}
@media (min-width:761px){
  .category-grid .cat-card-last{
    grid-column:5 / span 2 !important;
    grid-row:3 !important;
    width:auto !important;
    justify-self:stretch !important;
  }
}


/* ===== v1.5 mobile header search + favorites ===== */
.mobile-header-search,.mobile-favorite{display:none}

@media(max-width:760px){
  .header-inner{gap:8px}
  .header-actions{margin-left:auto;gap:4px}
  .mobile-header-search{
    display:flex;
    flex:1;
    min-width:0;
    height:38px;
    position:relative;
    margin-left:2px;
  }
  .mobile-header-search input{
    width:100%;
    height:38px;
    border:1px solid #d9e0e9;
    border-radius:9px;
    background:#f7f8fa;
    color:var(--ink);
    padding:0 38px 0 12px;
    outline:none;
    font-size:13px;
  }
  .mobile-header-search input:focus{
    background:#fff;
    border-color:#aebbd0;
    box-shadow:0 0 0 3px rgba(17,36,63,.06);
  }
  .mobile-header-search button{
    position:absolute;
    right:1px;
    top:1px;
    width:36px;
    height:36px;
    border:0;
    background:transparent;
    color:#5d687b;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .mobile-favorite{
    display:flex !important;
    flex:0 0 38px;
    width:38px;
    height:38px;
    border:1px solid #d9e0e9;
    background:#fff;
    border-radius:9px;
  }
  .mobile-favorite:hover{background:#f7f8fa}
  .mobile-menu{display:none !important}
  .brand-mark{flex:0 0 38px}
}

@media(min-width:761px){
  .header-actions a[href="favorites.html"]{
    border:1px solid transparent;
  }
  .header-actions a[href="favorites.html"]:hover{
    border-color:#dce3ec;
    background:#f7f9fb;
  }
}


/* ===== v1.6 remove duplicate mobile search ===== */
@media(max-width:760px){
  .hero-search{display:none !important}
  .hero p{margin-bottom:16px}
}


/* ===== v1.9 site-wide mobile-first pass ===== */
html,body{max-width:100%;overflow-x:hidden}
img,svg{max-width:100%}
.mobile-compare-cards,.mobile-chat-back,.filter-close{display:none}

@media(max-width:760px){
  :root{--mobile-nav-h:64px}
  html{scroll-padding-top:68px}
  body{
    font-size:14px;
    padding-bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
    background:#f6f7f9;
    -webkit-text-size-adjust:100%;
  }
  .container{width:calc(100% - 20px);max-width:100%;min-width:0}
  .site-header{
    height:auto;
    min-height:60px;
    padding-top:env(safe-area-inset-top);
    background:rgba(255,255,255,.97);
  }
  .header-inner{min-height:60px;height:auto;gap:8px}
  .brand-mark,.brand-mark img{width:38px;height:38px}
  .brand-mark{flex:0 0 38px}
  .main-nav,.header-search,.sell-btn,.mobile-menu{display:none!important}
  .header-actions{
    margin-left:0;
    flex:1;
    min-width:0;
    display:flex;
    align-items:center;
    gap:7px;
  }
  .header-actions>.icon-btn:not(.mobile-favorite){display:none!important}
  .mobile-header-search{
    display:flex!important;
    flex:1 1 auto;
    min-width:0;
    height:40px;
    position:relative;
    margin:0;
    order:-1;
  }
  .mobile-header-search input{
    width:100%;
    height:40px;
    border:1px solid #d8dee8;
    border-radius:10px;
    background:#f4f6f8;
    color:var(--ink);
    padding:0 39px 0 12px;
    outline:none;
    font-size:16px;
  }
  .mobile-header-search button{
    position:absolute;right:1px;top:1px;width:38px;height:38px;
    border:0;background:transparent;color:#5d687b;
    display:flex;align-items:center;justify-content:center;
  }
  .mobile-favorite{
    display:flex!important;
    flex:0 0 40px;width:40px;height:40px;
    border:1px solid #d8dee8!important;
    background:#fff!important;border-radius:10px!important;
  }

  .page{padding:18px 0 30px}
  .page-title{font-size:23px;line-height:1.18;margin-bottom:6px}
  .page-subtitle{font-size:13px;line-height:1.45}
  .section{padding:20px 0}
  .section-head{
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:12px;
  }
  .section-title{font-size:18px}
  .section-head .ghost-btn{margin-left:auto;min-height:38px;height:38px;padding:0 8px}
  .breadcrumb{margin-bottom:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

  .primary-btn,.secondary-btn,.ghost-btn,.danger-btn,.mini-btn{
    min-height:44px;
    height:auto;
    line-height:1.2;
  }
  input,select,textarea{font-size:16px!important}
  .panel{border-radius:11px;box-shadow:none}
  .panel-head{padding:13px 14px;gap:10px;flex-wrap:wrap}
  .panel-head h2{font-size:15px}
  .panel-body{padding:14px}
  .form-grid{grid-template-columns:1fr;gap:12px}
  .field.full{grid-column:auto}
  .field input,.field select{height:46px}
  .field textarea{min-height:120px}
  .switch{align-items:flex-start}

  /* Home */
  .hero{padding:24px 0 18px}
  .hero h1{font-size:25px;line-height:1.13;margin-bottom:8px}
  .hero p{font-size:13px;margin-bottom:14px}
  .hero-search{display:none!important}
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:18px}
  .cat-card{min-height:100px;padding:10px 6px;border-radius:12px}
  .cat-icon{width:48px;height:48px;padding:8px}
  .category-grid .cat-card-last{grid-column:1/-1!important;width:calc(50% - 5px)!important;justify-self:center!important}
  .quick-links{gap:7px;justify-content:flex-start}
  .quick-pill{height:38px;padding:0 10px;font-size:12px;flex:1 1 auto;justify-content:center}
  .cta-band .panel-body{display:grid!important;grid-template-columns:1fr;gap:14px!important}
  .cta-band .primary-btn{width:100%!important;min-width:0!important;white-space:nowrap}

  /* Cards */
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .product-card{min-width:0;border-radius:10px;box-shadow:none}
  .product-img{aspect-ratio:1.18/1}
  .card-body{padding:10px}
  .product-title{font-size:13px;line-height:1.25;min-height:32px}
  .product-specs{font-size:11px}
  .product-meta{display:block;margin-top:8px}
  .product-meta .price{font-size:18px}
  .location{margin-top:3px;font-size:11px}
  .seller-line{display:none}
  .fav-float{width:32px;height:32px;right:7px;top:7px}
  .promo-badge{left:7px;top:7px}

  /* Listing results */
  .content-layout{display:block}
  .results-head{align-items:flex-start;gap:10px;flex-wrap:wrap}
  .results-head>div:first-child{min-width:120px;flex:1}
  .results-head>div[style*="display:flex"]{width:100%;display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
  .mobile-filter-button,.sort-select{width:100%;min-width:0;height:42px}
  .filter-panel{
    display:none;
    position:fixed;
    z-index:95;
    left:0;right:0;
    top:calc(60px + env(safe-area-inset-top));
    bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
    border:0;border-radius:16px 16px 0 0;
    padding:16px 14px 22px;
    overflow:auto;
    box-shadow:0 -8px 30px rgba(10,24,46,.14);
  }
  .filter-panel.open{display:block}
  body.filter-open{overflow:hidden}
  .filter-title{position:sticky;top:-16px;background:#fff;z-index:2;padding:12px 0 10px;margin:0}
  .filter-close{
    display:flex;
    width:38px;height:38px;border:1px solid var(--line);
    border-radius:9px;background:#fff;align-items:center;justify-content:center;
    margin-left:8px;font-size:20px;
  }
  .filter-panel input,.filter-panel select{height:44px}
  .price-pair{grid-template-columns:1fr 1fr}
  .listing-list{gap:9px}
  .listing-row{
    grid-template-columns:106px minmax(0,1fr);
    gap:10px;
    min-height:0;
    padding:9px;
    border-radius:10px;
    box-shadow:none;
  }
  .listing-row img{width:106px;height:106px;border-radius:8px}
  .listing-info{padding:0;min-width:0}
  .listing-title{font-size:15px;line-height:1.2;padding-right:0;margin:4px 0}
  .listing-features{font-size:11px;margin-top:7px;gap:2px}
  .listing-right{
    grid-column:1/-1;
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:10px;
    width:100%;
    padding:8px 0 0;
    border-top:1px solid #edf0f4;
    text-align:left;
  }
  .listing-right .price{position:static!important;font-size:19px}
  .listing-right .fav-float{position:static!important;margin:0 0 0 auto!important}
  .listing-location{margin:0;font-size:11px;order:2}

  /* Listing detail */
  .detail-grid{grid-template-columns:1fr;gap:14px}
  .detail-side{position:static}
  .gallery-main{border-radius:10px}
  .thumbs{grid-template-columns:repeat(4,1fr);gap:6px}
  .detail-card{padding:16px;border-radius:11px}
  .detail-card h1{font-size:21px}
  .detail-price{font-size:27px;margin:6px 0 13px}
  .detail-actions{gap:8px}
  .detail-actions>*{width:100%}
  .seller-card{padding:14px}
  .spec-card,.description-card{border-radius:10px}
  .spec-grid{grid-template-columns:1fr}
  .spec-row{grid-template-columns:44% 56%;padding:10px 12px}
  .spec-row:nth-child(odd){border-right:0}

  /* Account/profile */
  .dashboard-grid{grid-template-columns:1fr;gap:12px}
  .account-nav{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    overflow:visible!important;
    padding:7px;
    border-radius:10px;
  }
  .account-nav a{
    min-width:0;
    white-space:normal!important;
    min-height:58px;
    padding:7px 5px;
    border:1px solid #edf0f4;
    text-align:center;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    font-size:10px;
    line-height:1.15;
  }
  .account-nav a .ico{width:18px;height:18px}
  .profile-cover{
    display:grid;
    grid-template-columns:58px minmax(0,1fr);
    gap:12px;
    padding:14px;
    align-items:start;
  }
  .profile-cover .avatar{width:58px;height:58px;font-size:18px}
  .profile-cover>div:nth-child(2){min-width:0}
  .profile-cover h1{font-size:20px!important;overflow-wrap:anywhere}
  .profile-cover .badge{margin-top:4px}
  .profile-actions{
    grid-column:1/-1;
    margin-left:0;
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .profile-actions>*{width:100%}
  .tabs{
    display:flex;
    flex-wrap:wrap;
    gap:4px;
    border-bottom:0;
    margin-top:14px;
  }
  .tab{
    flex:1 1 30%;
    min-height:42px;
    padding:9px 10px;
    border:1px solid var(--line);
    border-radius:8px;
    text-align:center;
    font-size:12px;
    background:#fff;
  }
  .tab.active{border-color:#b9ccef;background:#f2f6fd}
  .stat-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .stat-box{padding:12px}
  .stat-value{font-size:21px}
  .ad-manage{
    grid-template-columns:88px minmax(0,1fr);
    gap:10px;padding:11px;
  }
  .ad-manage img{width:88px;height:76px}
  .ad-actions{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
    gap:7px;
    justify-content:stretch;
  }
  .ad-actions .mini-btn{width:100%;display:flex;align-items:center;justify-content:center;text-align:center}
  .dashboard-grid .panel-body>div[style*="display:flex"]{flex-wrap:wrap!important;align-items:flex-start!important}
  .dashboard-grid .panel-body>div[style*="display:flex"]>.switch{margin-left:auto}
  .dashboard-grid>div>div[style*="display:flex"][style*="justify-content:space-between"]{flex-wrap:wrap!important;gap:10px}
  .dashboard-grid>div>div[style*="display:flex"][style*="justify-content:space-between"]>.primary-btn{width:100%}

  /* Posting/editing */
  .post-layout{grid-template-columns:1fr;gap:14px}
  .steps{gap:5px;margin-bottom:14px}
  .step{height:6px}
  .tips-card{display:none}
  .photo-upload{padding:20px 12px}
  .photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .form-section .panel{margin-top:14px!important}
  .form-section>div[style*="display:flex"][style*="justify-content:space-between"]{
    position:sticky;bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
    z-index:20;background:#f6f7f9;padding:9px 0 2px;margin-top:12px!important;
  }
  .form-section>div[style*="display:flex"][style*="justify-content:space-between"]>*{min-width:112px}

  /* Chat */
  .chat-shell{
    grid-template-columns:1fr;
    height:calc(100dvh - 60px - var(--mobile-nav-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 36px);
    min-height:500px;
    border-radius:10px;
  }
  .conversation-list{display:block;border-right:0;width:100%}
  .chat-pane{display:none}
  .chat-shell.chat-open .conversation-list{display:none}
  .chat-shell.chat-open .chat-pane{display:flex}
  .conversation{min-height:68px;padding:12px}
  .conversation-preview{max-width:calc(100vw - 100px)}
  .chat-product{height:auto;min-height:66px;padding:9px 10px;gap:8px}
  .chat-product img{width:54px;height:44px}
  .chat-product .ghost-btn{min-height:36px;height:36px;padding:0 8px;font-size:11px}
  .mobile-chat-back{
    display:flex;
    width:36px;height:36px;border:1px solid var(--line);
    border-radius:9px;background:#fff;align-items:center;justify-content:center;
    flex:0 0 36px;
  }
  .chat-messages{padding:12px}
  .bubble{max-width:86%;font-size:13px}
  .chat-pane>div[style*="padding:8px 12px"]{
    display:grid!important;
    grid-template-columns:1fr;
    gap:6px!important;
    padding:8px!important;
  }
  .chat-pane>div[style*="padding:8px 12px"] .mini-btn{width:100%}
  .chat-input{padding:8px;gap:6px}
  .chat-input .icon-btn{display:none}
  .chat-input input{min-width:0;height:44px}
  .chat-input .primary-btn{min-width:82px;padding:0 12px}

  /* Comparison – no horizontal dragging */
  .compare-wrap.has-mobile-compare{overflow:visible!important}
  .compare-wrap.has-mobile-compare .compare-table{display:none}
  .mobile-compare-cards{display:grid;gap:10px}
  .mobile-compare-card{
    background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden;
  }
  .mobile-compare-head{display:grid;grid-template-columns:96px 1fr;gap:12px;align-items:center;padding:12px;border-bottom:1px solid var(--line)}
  .mobile-compare-head img{width:96px;height:78px;object-fit:cover;border-radius:8px;background:var(--soft)}
  .mobile-compare-head strong{display:block;font-size:15px;line-height:1.25}
  .mobile-compare-head .price{font-size:20px;margin-top:4px}
  .mobile-compare-spec{display:grid;grid-template-columns:42% 58%;padding:9px 12px;border-bottom:1px solid #edf0f4;font-size:12px}
  .mobile-compare-spec:last-child{border-bottom:0}
  .mobile-compare-spec span:first-child{color:var(--muted)}

  /* Promotion / checkout / auth / legal */
  .promotion-grid{grid-template-columns:1fr;gap:10px}
  .promo-card{padding:16px;box-shadow:none}
  .promo-price{font-size:24px}
  .auth-wrap{min-height:calc(100dvh - 60px - env(safe-area-inset-top));padding:16px 10px;background:#f6f7f9}
  .auth-card{padding:20px 16px;border-radius:11px;box-shadow:none}
  .auth-card h1{font-size:22px}
  .auth-row{gap:10px;flex-wrap:wrap}
  .legal{max-width:100%}
  .legal h1{font-size:24px;line-height:1.2}
  .legal h2{font-size:17px;margin-top:22px}
  .legal p,.legal li{font-size:13px;overflow-wrap:anywhere}
  .empty-state{padding:34px 14px}
  .not-found .code{font-size:62px}

  /* Footer / cookies / bottom navigation */
  .footer{padding:24px 0 calc(16px + env(safe-area-inset-bottom));}
  .footer-grid{grid-template-columns:1fr 1fr;gap:20px 14px}
  .footer-grid>div:first-child{grid-column:1/-1}
  .footer-bottom{display:block}
  .cookie-bar{
    left:10px;right:10px;
    bottom:calc(var(--mobile-nav-h) + 10px + env(safe-area-inset-bottom));
    max-width:none;
    padding:12px;
    border-radius:10px;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }
  .cookie-bar p{font-size:11px}
  .cookie-bar button{width:100%}
  .mobile-bottom{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    position:fixed;
    left:0;right:0;bottom:0;
    height:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
    padding-bottom:env(safe-area-inset-bottom);
    background:rgba(255,255,255,.98);
    border-top:1px solid var(--line);
    z-index:80;
    box-shadow:0 -5px 18px rgba(15,31,58,.06);
  }
  .mobile-bottom a{
    min-width:0;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:3px;font-size:10px;color:#667084;
  }
  .mobile-bottom a.primary-mobile{
    width:100%!important;height:64px!important;margin:0!important;
    border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  }
  .mobile-bottom a.is-active{color:var(--blue);font-weight:800}
  .mobile-bottom a.is-active .ico{color:var(--blue)}
}

@media(max-width:390px){
  .container{width:calc(100% - 16px)}
  .product-grid{gap:7px}
  .card-body{padding:9px 8px}
  .product-title{font-size:12px}
  .product-meta .price{font-size:17px}
  .account-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-actions{grid-template-columns:1fr}
  .ad-actions{grid-template-columns:1fr}
  .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-grid{grid-template-columns:1fr}
  .footer-grid>div:first-child{grid-column:auto}
}

@media(max-width:340px){
  .product-grid{grid-template-columns:1fr}
  .category-grid{grid-template-columns:1fr 1fr}
  .listing-row{grid-template-columns:92px minmax(0,1fr)}
  .listing-row img{width:92px;height:92px}
}


/* ===== v2.0 polished mobile-first visual system ===== */
:root{
  --blue:#1767d9;
  --blue2:#0f54bb;
  --navy:#13243d;
  --ink:#142033;
  --muted:#667286;
  --line:#d9e1eb;
  --soft:#edf2f6;
  --soft2:#f6f8fa;
  --warm:#f7f3ec;
  --pale-blue:#eaf2fb;
  --pale-green:#edf7f3;
  --pale-amber:#fff3cf;
}
html,body{background:#edf1f5}
body{color:var(--ink)}
main{background:#f4f6f8}
.site-header{background:rgba(250,251,252,.98);border-bottom-color:#d8e0e9}
.header-search input,.mobile-header-search input{background:#f2f5f8}
.product-card,.listing-row,.panel,.detail-card,.seller-card,.spec-card,.filter-panel,.auth-card,.promo-card,.chat-shell{background:#fff}
.footer{background:#e9eef3}

/* Continuous safety ticker: two identical groups make a seamless loop. */
.safety-ticker{
  width:100%;
  overflow:hidden;
  background:var(--pale-amber);
  border-bottom:1px solid #efdca4;
  color:#5e4716;
  position:relative;
  z-index:25;
}
.safety-ticker-track{
  display:flex;
  width:max-content;
  min-width:200%;
  align-items:center;
  animation:safetyTicker 28s linear infinite;
  will-change:transform;
}
.safety-ticker-group{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  white-space:nowrap;
}
.safety-ticker-item{
  display:inline-flex;
  align-items:center;
  gap:9px;
  height:38px;
  padding-right:56px;
  font-size:12px;
  font-weight:750;
}
.safety-ticker-item .ico{width:17px;height:17px;color:#9b6d00}
.safety-ticker-sep{opacity:.45;padding-right:56px}
@keyframes safetyTicker{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}

/* Mobile history back control on inner pages. */
.mobile-history-back{display:none}

/* Homepage */
.home-hero{
  padding:22px 0 20px;
  background:#edf3fa;
  border-bottom:1px solid #dce5ef;
}
.home-hero .container{max-width:1180px}
.home-hero-card{
  min-height:310px;
  background:#dfeafb;
  border:1px solid #ccdaed;
  border-radius:20px;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  align-items:stretch;
  overflow:hidden;
  box-shadow:0 14px 38px rgba(29,53,88,.08);
}
.home-hero-copy{padding:44px 42px;align-self:center}
.home-kicker{
  display:inline-flex;
  min-height:29px;
  align-items:center;
  padding:0 10px;
  border-radius:7px;
  background:#fff;
  color:#335272;
  font-size:11px;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
  margin-bottom:15px;
}
.home-hero h1{font-size:38px;line-height:1.1;margin:0 0 12px;color:#11223b;letter-spacing:-.035em}
.home-hero p{font-size:15px;max-width:560px;margin:0;color:#53667f}
.home-hero-actions{display:flex;gap:10px;margin-top:24px}
.home-hero-visual{background:#cbdcf2;min-height:310px}
.home-hero-visual img{width:100%;height:100%;object-fit:cover;display:block}
.category-heading{
  margin:24px 2px 12px;
  display:flex;align-items:end;justify-content:space-between;gap:14px;
}
.category-heading h2{margin:0;font-size:20px}
.category-heading p{margin:2px 0 0;color:var(--muted);font-size:12px}
.category-heading>a{color:var(--blue);font-size:12px;font-weight:800;white-space:nowrap}
.home-category-grid{
  max-width:none;
  margin:0;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:10px;
}
.home-category-grid .cat-card{
  min-height:128px;
  padding:10px 6px 11px;
  background:#fbfcfd;
  border-color:#dce4ed;
  box-shadow:0 7px 20px rgba(24,43,71,.045);
}
.home-category-grid .cat-card:hover{background:#fff}
.home-category-grid .cat-icon{
  width:76px;height:76px;padding:0;
  border:0;border-radius:14px;overflow:hidden;background:#f5f7f9;
}
.home-category-grid .cat-icon img{width:100%;height:100%;object-fit:cover}
.home-quick-links{margin:14px 0 0;justify-content:flex-start}
.section-featured{background:#f7f3ec;border-top:1px solid #ece3d7;border-bottom:1px solid #ece3d7}
.section-latest{background:#eaf2f8;border-top:1px solid #d7e4ef;border-bottom:1px solid #d7e4ef}
.section-trust{background:#edf7f3;padding:18px 0}
.trust-strip{
  display:grid;grid-template-columns:46px 1fr auto;gap:13px;align-items:center;
  padding:15px 18px;border:1px solid #cfe8dd;border-radius:13px;background:#f8fcfa;
}
.trust-icon{
  width:42px;height:42px;border-radius:11px;background:#dff2e9;color:#167553;
  display:flex;align-items:center;justify-content:center;
}
.trust-strip strong{display:block;font-size:14px}
.trust-strip span{display:block;color:#5b746b;font-size:12px;margin-top:2px}
.trust-strip>a{font-weight:800;color:#126c50;font-size:12px}
.section-sell{background:#f4f6f8}
.cta-band{background:#172f52}
.cta-band .panel-body{color:#fff}
.cta-band .muted{color:#cbd7e6!important}

/* Public page section rhythm / less white-on-white. */
.page{background:#f4f6f8}
.content-layout>.filter-panel{background:#fbfcfd}
.description-card{background:#fff}
.auth-wrap{background:#eaf0f5}
.empty-state{background:#f7f9fb}
.chat-messages{background:#edf2f6}
.conversation.active{background:#eaf2fb}
.bubble-row.me .bubble{background:#dfeafb}

/* Product cards feel more like a marketplace app. */
.product-card{border-color:#d8e0e8}
.product-img{background:#edf1f4}
.product-card:hover{box-shadow:0 12px 24px rgba(23,42,69,.08)}
.badge-vip{background:#ef8b20}
.badge-top{background:#1767d9;color:#fff;border:0}

/* Bottom navigation - compact, app-like, never floating out of the bar. */
@media(max-width:760px){
  main{min-height:calc(100dvh - 124px)}
  .site-header{background:#f9fafb}
  .safety-ticker-item{height:34px;font-size:11px;padding-right:44px}
  .safety-ticker-sep{padding-right:44px}
  .mobile-history-back{
    flex:0 0 38px;width:38px;height:38px;
    display:flex;align-items:center;justify-content:center;
    border:0;background:transparent;color:#263951;
    border-radius:9px;padding:0;
  }
  .mobile-history-back .ico{width:22px;height:22px}
  body.has-mobile-back .brand-mark{display:none}
  body.has-mobile-back .header-actions{min-width:0}
  .mobile-header-search input{background:#f0f3f6;border-color:#d6dee8}

  .home-hero{padding:12px 0 16px;background:#eaf1f8}
  .home-hero-card{
    min-height:218px;
    grid-template-columns:1.2fr .8fr;
    border-radius:15px;
    box-shadow:none;
  }
  .home-hero-copy{padding:20px 8px 18px 18px}
  .home-kicker{display:none}
  .home-hero h1{font-size:24px;line-height:1.08;margin-bottom:8px}
  .home-hero p{font-size:12px;line-height:1.45;max-width:210px}
  .home-hero-actions{margin-top:16px;display:block}
  .home-hero-actions .primary-btn{height:42px;min-height:42px;font-size:12px;padding:0 12px}
  .home-hero-actions .secondary-btn{display:none}
  .home-hero-visual{min-height:218px}
  .home-hero-visual img{object-position:55% 50%}
  .category-heading{margin:18px 2px 9px;align-items:center}
  .category-heading h2{font-size:18px}
  .category-heading p{display:none}
  .category-heading>a{font-size:11px}
  .home-category-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px;
  }
  .home-category-grid .cat-card{
    min-height:100px;
    padding:7px 3px 8px;
    gap:4px;
    border-radius:11px;
    font-size:10.5px;
    box-shadow:none;
  }
  .home-category-grid .cat-icon{width:66px;height:66px;border-radius:10px}
  .home-quick-links{gap:6px;margin-top:10px}
  .home-quick-links .quick-pill{font-size:11px;min-width:0;height:36px;padding:0 9px;flex:1}
  .section-featured,.section-latest{padding:18px 0}
  .section-featured .product-grid,.section-latest .product-grid{
    display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:9px;
    margin-right:-10px;padding-right:10px;padding-bottom:5px;
    scrollbar-width:none;
  }
  .section-featured .product-grid::-webkit-scrollbar,.section-latest .product-grid::-webkit-scrollbar{display:none}
  .section-featured .product-card,.section-latest .product-card{
    min-width:72%;max-width:72%;scroll-snap-align:start;
  }
  .section-featured .product-img,.section-latest .product-img{aspect-ratio:1.35/1}
  .section-head .muted.small{display:none}
  .section-trust{padding:12px 0}
  .trust-strip{grid-template-columns:38px 1fr;padding:12px;gap:10px}
  .trust-icon{width:38px;height:38px}
  .trust-strip strong{font-size:13px}
  .trust-strip span{font-size:10.5px;line-height:1.35}
  .trust-strip>a{grid-column:2;font-size:11px;margin-top:-4px}
  .section-sell{padding:14px 0 20px}
  .cta-band .panel-body{padding:18px 15px}

  .mobile-bottom{
    background:#f9fafb;
    border-top-color:#d6dee7;
    box-shadow:0 -5px 18px rgba(26,43,67,.06);
  }
  .mobile-bottom a{font-size:10px;color:#647084}
  .mobile-bottom a .ico{width:21px;height:21px}
  .mobile-bottom a.primary-mobile{font-weight:800}
  .mobile-bottom a.primary-mobile .ico{
    width:28px;height:28px;border-radius:50%;
    background:#1767d9;color:#fff;padding:5px;
  }
  .mobile-bottom a.is-active{color:#1767d9}
  .footer{background:#e6ebf0}
}

@media(max-width:390px){
  .home-hero-card{grid-template-columns:1.28fr .72fr}
  .home-hero-copy{padding-left:14px}
  .home-hero h1{font-size:22px}
  .home-hero p{font-size:11px}
  .home-category-grid .cat-icon{width:60px;height:60px}
  .home-category-grid .cat-card{min-height:94px}
}
@media(max-width:350px){
  .home-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-hero-visual{display:none}
  .home-hero-card{grid-template-columns:1fr}
}


/* ===== v2.1 category + ticker corrections ===== */

/* Category photos fill the visual area directly; no small inset box. */
.home-category-grid .cat-card{
  overflow:hidden;
  padding:0 0 11px;
  gap:7px;
  background:#fff;
}
.home-category-grid .cat-icon{
  width:100%;
  height:88px;
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  background:#fff;
  overflow:hidden;
}
.home-category-grid .cat-icon img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
  background:#fff;
}
.home-category-grid .cat-card>span:last-child{
  padding:0 4px;
}

/* Nothing may force the last category onto its own row. */
.home-category-grid .cat-card,
.home-category-grid .cat-card-last,
.home-category-grid .stove-center{
  grid-column:auto!important;
  width:auto!important;
  max-width:none!important;
  justify-self:stretch!important;
}
.home-category-grid{
  grid-auto-flow:row;
}

/* The moving safety message is immediately below the header. */
.safety-ticker{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%;
  overflow:hidden;
  background:#17365d;
  border-bottom:1px solid #244a76;
  color:#fff;
}
.safety-ticker-track{
  display:flex;
  align-items:center;
  width:max-content;
  min-width:0;
  animation:safetyTickerV21 26s linear infinite;
  will-change:transform;
}
.safety-ticker-group{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  white-space:nowrap;
}
.safety-ticker-item{
  color:#fff;
}
.safety-ticker-item .ico{
  color:#b9dbff;
}
@keyframes safetyTickerV21{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(-50%,0,0)}
}

@media(max-width:760px){
  .home-category-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
  }
  .home-category-grid .cat-card,
  .home-category-grid .cat-card-last,
  .home-category-grid .stove-center{
    grid-column:auto!important;
    width:auto!important;
    justify-self:stretch!important;
  }
  .home-category-grid .cat-icon{
    width:100%!important;
    height:68px!important;
    border-radius:0!important;
  }
  .home-category-grid .cat-card{
    min-height:99px;
    padding:0 0 8px;
    gap:5px;
  }
}
@media(max-width:350px){
  .home-category-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  .home-category-grid .cat-icon{height:60px!important}
  .home-category-grid .cat-card{font-size:9.5px;min-height:90px}
}

/* ===== v2.2 FREE BETA + trust / moderation ===== */
.verified-line{display:inline-flex;align-items:center;gap:5px;margin-top:5px;color:#137249;font-size:11px;font-weight:800}
.beta-note{margin-top:9px;padding:10px 12px;border-radius:9px;background:#eef4fb;color:#35506f;font-size:12px;border:1px solid #d5e2f1}
.moderation-feedback{margin-top:14px;border-radius:10px;padding:12px 14px;font-size:12px}
.moderation-feedback.error{display:block!important;background:#fff2f1;color:#982c27;border:1px solid #f4cbc8}
.moderation-feedback.warn{display:block!important;background:#fff8e9;color:#805712;border:1px solid #eedda9}
.moderation-feedback.ok{display:block!important;background:#edf8f2;color:#176b46;border:1px solid #cfe8da}
.photo-status{font-weight:650}
.ad-expiry{display:inline-flex;margin-top:7px;padding:4px 7px;border-radius:6px;background:#eef4fb;color:#315777;font-size:10px;font-weight:800}
.expired-ad{background:#fafafa}
.feature-disabled{max-width:720px;margin:40px auto;padding:34px;border-radius:16px;background:#fff;border:1px solid var(--line);text-align:center}
.feature-disabled h1{font-size:28px;margin:10px 0}
.feature-disabled p{color:var(--muted);font-size:14px}
.feature-disabled .warning-callout{margin:18px 0}
.beta-chip{display:inline-flex;height:28px;padding:0 9px;align-items:center;border-radius:7px;background:#eaf2fb;color:#175dac;font-size:11px;font-weight:900;letter-spacing:.04em}
.beta-legal{margin:14px 0 22px;padding:12px 14px;border:1px solid #d6e2ef;border-radius:10px;background:#eef4fa;color:#405875;font-size:12px}
.trust-email{margin-left:8px}
@media(max-width:760px){
  .feature-disabled{margin:10px auto;padding:22px 16px;border-radius:12px}
  .feature-disabled h1{font-size:22px}
  .moderation-feedback{margin-top:10px}
}

/* ===== v2.3 accepted features ===== */
.compact-switch{min-height:52px;display:flex!important;align-items:center;gap:12px;width:100%;padding:10px 12px;border:1px solid #dce3eb;border-radius:12px;background:#f8fafc}
.compact-switch>span{order:1;flex:1;font-size:12px;font-weight:700;color:#314257}
.compact-switch>input{order:2;flex:0 0 46px!important;width:46px!important;height:27px!important;margin:0!important;border:0!important;border-radius:999px!important;background:#c7ced8!important;appearance:none!important;-webkit-appearance:none!important;position:relative;cursor:pointer;transition:.18s ease}
.compact-switch>input:before{content:"";position:absolute;width:23px;height:23px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.22);transition:.18s ease}
.compact-switch>input:checked{background:#1767d9!important}.compact-switch>input:checked:before{transform:translateX(19px)}
.profile-trust-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0 0}.profile-trust-row>div{padding:11px 12px;border:1px solid #dbe4ed;border-radius:11px;background:#eef3f8}.profile-trust-row strong{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#657086}.profile-trust-row span{display:block;margin-top:3px;font-size:12px;font-weight:800;color:#283c54}
.report-card{max-width:680px;margin:28px auto;padding:24px;border:1px solid var(--line);border-radius:16px;background:#fff}.report-kicker{font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#657086}.report-card h1{margin:6px 0 4px}.report-options{display:grid;gap:8px;margin-top:17px}.report-options label{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid #dce3eb;border-radius:11px;background:#fafbfc;cursor:pointer}.report-options input{margin-top:3px}.report-options span{display:grid;gap:3px}.report-options strong{font-size:12px}.report-options small{font-size:10.5px;color:#657086;line-height:1.35}.report-actions{display:flex;gap:8px;margin-top:16px}.report-link{display:block;text-align:center;margin-top:5px;font-size:11px;font-weight:750;color:#a3423d}
.price-history-card{margin-top:16px;padding:17px;border:1px solid #dbe3ec;border-radius:13px;background:#fff}.price-history-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.price-history-head h2{font-size:17px;margin:0}.price-history-head span{font-size:10.5px;color:#657086}.price-down{color:#19734f}.price-history-timeline{display:grid;margin-top:12px}.price-history-timeline>div{display:grid;grid-template-columns:1fr auto 90px;gap:10px;align-items:center;padding:9px 0;border-top:1px solid #edf0f4}.price-history-timeline span{font-size:11px;color:#657086}.price-history-timeline strong{font-size:13px}.price-history-timeline em{font-size:10.5px;color:#647286;font-style:normal;text-align:right}
.follow-seller-btn{width:100%;margin-top:9px}.seller-profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.is-following{background:#eaf3fb!important;color:#175dac!important}
.section-recent{background:#f1f4f7;border-top:1px solid #dfe5eb;border-bottom:1px solid #dfe5eb}
.photo-counter{display:inline-flex;margin-top:8px;padding:4px 7px;border-radius:6px;background:#edf3fa;color:#315979;font-size:10px;font-weight:900}.photo-grid[data-photo-preview]{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:12px}.photo-preview-empty{grid-column:1/-1;padding:20px 12px;border:1px dashed #cbd5e1;border-radius:10px;text-align:center;color:#657086;font-size:11px;background:#f8fafc}.photo-preview-card{position:relative;border:1px solid #d9e1ea;border-radius:10px;overflow:hidden;background:#fff}.photo-preview-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:#eef2f5}.photo-preview-card .photo-label{position:absolute;left:5px;top:5px;padding:3px 5px;border-radius:5px;background:rgba(20,38,62,.88);color:#fff;font-size:9px;font-weight:800}.photo-move{display:flex;gap:3px;padding:5px}.photo-move button{flex:1;border:1px solid #dbe2ea;border-radius:6px;background:#f7f9fb;height:25px;font-size:11px}
.ad-preview-modal{position:fixed;inset:0;z-index:1000;display:none}.ad-preview-modal.open{display:block}.ad-preview-backdrop{position:absolute;inset:0;background:rgba(11,21,35,.52)}.ad-preview-sheet{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,calc(100% - 24px));max-height:86vh;overflow:auto;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.24)}.ad-preview-head{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;border-bottom:1px solid #e8edf2}.ad-preview-body{padding:15px}.preview-photo{height:240px;border-radius:12px;background:#eef2f6;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#657086}.preview-photo img{width:100%;height:100%;object-fit:contain}.preview-price{font-size:24px;font-weight:900;margin:7px 0}
.conversation{position:relative}.conversation-unread{position:absolute;right:9px;bottom:11px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#1767d9;color:#fff;font-size:9px;font-weight:900;display:flex;align-items:center;justify-content:center}.conversation-time{position:absolute;right:9px;top:9px;font-size:9px;color:#657086}.bubble-seen{font-size:8.5px;color:#657086;text-align:right;margin-top:3px}.chat-safety-actions{display:flex;gap:5px;margin-left:auto}.danger-text{color:#a33f3a!important}.notice-dot{width:8px;height:8px;border-radius:50%;background:#1767d9;flex:0 0 auto}.price-drop-notice{background:#eef7f2}.empty-state-template{margin-top:16px}.empty-icon{width:46px;height:46px;border-radius:50%;background:#edf2f7;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;color:#657086}
@media(max-width:760px){.profile-trust-row{grid-template-columns:repeat(2,1fr)}.compact-switch{min-height:50px;padding:9px 10px}.report-card{margin:10px auto;padding:16px}.report-actions{flex-direction:column}.price-history-timeline>div{grid-template-columns:1fr auto}.price-history-timeline em{grid-column:2;text-align:right}.seller-profile-actions{display:grid;grid-template-columns:1fr}.photo-grid[data-photo-preview]{grid-template-columns:repeat(3,1fr)}.ad-preview-sheet{top:auto;bottom:0;transform:translateX(-50%);width:100%;border-radius:18px 18px 0 0;max-height:88vh}.chat-safety-actions{width:100%;margin-left:0}.chat-product{flex-wrap:wrap}}


/* ===== v2.4 profile / share / label photo / owner stats ===== */

/* Profile toggles: clean row, text left, small switch right. */
.profile-toggle-row{
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:44px;
  padding:9px 0;
  border:0!important;
  border-bottom:1px solid #e8edf2!important;
  border-radius:0!important;
  background:transparent!important;
}
.profile-toggle-row:last-child{border-bottom:0!important}
.profile-toggle-text{
  flex:1;
  min-width:0;
  font-size:13px;
  line-height:1.35;
  font-weight:700;
  color:#26384e;
}
.profile-toggle-input{
  flex:0 0 42px!important;
  width:42px!important;
  height:24px!important;
  margin:0!important;
  border:0!important;
  border-radius:999px!important;
  background:#c7ced8!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  position:relative;
  cursor:pointer;
  transition:background .18s ease;
}
.profile-toggle-input:before{
  content:"";
  position:absolute;
  width:20px;height:20px;
  left:2px;top:2px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.20);
  transition:transform .18s ease;
}
.profile-toggle-input:checked{background:#1767d9!important}
.profile-toggle-input:checked:before{transform:translateX(18px)}

/* Trust cards: real spacing on mobile and desktop. */
.profile-trust-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  margin:18px 0 24px!important;
}
.profile-trust-grid>div{
  min-width:0;
  padding:13px 14px!important;
  border:1px solid #dbe4ed!important;
  border-radius:12px!important;
  background:#f3f6f9!important;
}
.profile-trust-grid strong{
  display:block!important;
  margin-bottom:5px!important;
  font-size:10px!important;
}
.profile-trust-grid span{
  display:block!important;
  font-size:12px!important;
  line-height:1.35!important;
}

/* Listing share */
.listing-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.listing-title-row h1{flex:1;margin-right:6px}
.listing-share-inline{
  flex:0 0 38px;
  width:38px;height:38px;
  border-radius:10px;
  border:1px solid #dbe3ec;
  background:#f8fafc;
  color:#1e5da8;
  font-size:18px;
}
.share-listing-btn{
  width:100%;
  margin-top:8px;
}

/* Optional product label photo */
.label-photo-block{
  margin-top:14px;
  padding:14px;
  border:1px solid #dbe4ed;
  border-radius:12px;
  background:#f7f9fb;
}
.label-photo-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.label-photo-head>div{display:grid;gap:3px}
.label-photo-head strong{font-size:13px}
.label-photo-head span{font-size:11px;line-height:1.4;color:#657086}
.optional-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  height:24px;
  padding:0 8px;
  border-radius:999px;
  background:#eaf2fb;
  color:#175dac!important;
  font-size:9px!important;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.label-photo-button{
  margin-top:11px;
  width:auto;
}
.label-photo-preview{
  margin-top:10px;
  width:132px;
  border:1px solid #d8e0e8;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}
.label-photo-preview img{
  display:block;
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}
.label-photo-hint{
  margin-top:8px;
  color:#657086;
  font-size:10px;
}

/* Owner listing stats */
.owner-stats{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:9px;
}
.owner-stats span{
  display:grid;
  gap:1px;
  min-width:78px;
  padding:6px 8px;
  border-radius:8px;
  background:#f0f4f8;
  border:1px solid #e0e7ee;
}
.owner-stats strong{
  font-size:12px;
  color:#263b53;
}
.owner-stats small{
  font-size:9px;
  color:#657086;
}

/* Admin activity stats */
.listing-activity-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  padding:14px;
}
.listing-activity-grid>div{
  padding:12px;
  border:1px solid #dde5ed;
  border-radius:10px;
  background:#f8fafc;
}
.listing-activity-grid strong{
  display:block;
  font-size:20px;
  margin-bottom:3px;
}
.listing-activity-grid span{
  font-size:10px;
  color:#657086;
}

@media(max-width:760px){
  .profile-trust-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
    margin:16px 0 22px!important;
  }
  .profile-trust-grid>div{padding:12px!important}
  .profile-toggle-row{min-height:46px;padding:10px 0}
  .profile-toggle-text{font-size:12.5px}
  .listing-title-row{align-items:center}
  .listing-share-inline{width:36px;height:36px;flex-basis:36px}
  .label-photo-head{display:grid}
  .optional-badge{justify-self:start}
  .label-photo-button{width:100%}
  .owner-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
  .owner-stats span{min-width:0}
  .listing-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* ===== v2.5 gallery / PWA / push / presence / price trend / search suggestions ===== */

/* Light, unobtrusive search suggestion submenu */
.search-suggest{
  position:absolute;
  top:calc(100% + 6px);
  left:0;right:0;
  z-index:120;
  display:none;
  padding:5px;
  border:1px solid #dbe3eb;
  border-radius:10px;
  background:rgba(255,255,255,.98);
  box-shadow:0 10px 26px rgba(25,43,66,.10);
}
.search-suggest.open{display:block}
.search-suggest a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 9px;
  border-radius:7px;
  color:#283b50;
  font-size:11px;
  font-weight:700;
}
.search-suggest a:hover,.search-suggest a:active{background:#f1f5f8}
.search-suggest small{color:#657086;font-size:9px;font-weight:600}
.header-search,.mobile-header-search{position:relative}

/* Gallery */
.gallery-main{position:relative;touch-action:pan-y}
.gallery-counter{
  position:absolute;right:10px;bottom:10px;
  min-width:42px;height:27px;padding:0 8px;
  display:flex;align-items:center;justify-content:center;
  border-radius:999px;background:rgba(16,29,47,.76);color:#fff;
  font-size:10px;font-weight:900;backdrop-filter:blur(5px)
}
.gallery-open-btn{
  position:absolute;right:10px;top:10px;
  width:36px;height:36px;border:0;border-radius:10px;
  background:rgba(255,255,255,.88);color:#253b55;
  font-size:18px;font-weight:800;box-shadow:0 3px 12px rgba(0,0,0,.10)
}
.gallery-modal{
  position:fixed;inset:0;z-index:1600;display:none;
  background:rgba(5,10,17,.96);color:#fff
}
.gallery-modal.open{display:block}
.gallery-modal-top{
  position:absolute;left:0;right:0;top:0;height:58px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 15px;z-index:4
}
.gallery-modal-top button{
  width:40px;height:40px;border:0;border-radius:50%;
  background:rgba(255,255,255,.12);color:#fff;font-size:26px
}
.gallery-modal-top span{font-size:12px;font-weight:850}
.gallery-stage{
  position:absolute;inset:58px 46px 46px;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;touch-action:none
}
.gallery-stage img{
  max-width:100%;max-height:100%;object-fit:contain;
  transform:translate3d(0,0,0) scale(1);
  transform-origin:center;user-select:none;-webkit-user-drag:none
}
.gallery-nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:4;
  width:42px;height:58px;border:0;border-radius:9px;
  background:rgba(255,255,255,.10);color:#fff;font-size:34px
}
.gallery-prev{left:7px}.gallery-next{right:7px}
.gallery-zoom-hint{
  position:absolute;left:0;right:0;bottom:14px;text-align:center;
  color:#aeb9c6;font-size:9.5px
}

/* Presence */
.seller-presence,.chat-presence{
  display:flex;align-items:center;gap:5px;flex-wrap:wrap;
  margin-top:7px;color:#607083;font-size:10.5px
}
.seller-presence strong,.chat-presence strong{color:#24724f;font-size:10.5px}
.online-dot,.conversation-online-dot{
  display:inline-block;width:8px;height:8px;border-radius:50%;
  background:#22a36a;box-shadow:0 0 0 3px rgba(34,163,106,.12)
}
.conversation-online-dot{position:absolute;left:35px;top:34px;width:7px;height:7px;border:2px solid #fff}

/* Price direction indicator */
.price-trend{
  display:inline-flex;align-items:center;justify-content:center;
  margin-top:4px;padding:3px 6px;
  border:0;border-radius:6px;background:transparent;
  font-size:10px;font-weight:900;cursor:pointer
}
.price-trend-down{color:#16834f;border-left:3px solid #21a565;background:#edf8f2}
.price-trend-up{color:#b43a35;border-left:3px solid #d74c45;background:#fff1ef}
.detail-price-trend{margin-left:8px;margin-top:0;vertical-align:middle}

/* Price-history popup */
.price-history-popover{
  position:fixed;inset:0;z-index:1500;display:none;
  align-items:center;justify-content:center;padding:16px;
  background:rgba(12,22,35,.42)
}
.price-history-popover.open{display:flex}
.price-history-popover-card{
  width:min(390px,100%);padding:16px;border-radius:14px;
  background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.22)
}
.price-history-popover-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.price-history-popover-head h3{margin:0;font-size:16px}
.price-history-popover-head button{border:0;background:#eef2f6;width:32px;height:32px;border-radius:8px;font-size:18px}
.price-history-popover-list{display:grid;margin-top:10px}
.price-history-popover-list>div{
  display:grid;grid-template-columns:1fr auto;gap:12px;
  padding:9px 0;border-top:1px solid #edf0f3
}
.price-history-popover-list span{color:#657086;font-size:10.5px}
.price-history-popover-list strong{font-size:12px}

/* PWA and push controls */
.app-tools-panel{margin-bottom:14px}
.app-tool-row{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:12px 0;border-bottom:1px solid #e9edf2
}
.app-tool-row:last-child{border-bottom:0}
.app-tool-row>div{display:grid;gap:3px}
.app-tool-row strong{font-size:12.5px}
.app-tool-row span{font-size:10.5px;color:#657086}

/* iOS install instructions */
.install-help{
  position:fixed;inset:0;z-index:1550;display:none;
  align-items:flex-end;justify-content:center;background:rgba(13,23,36,.42)
}
.install-help.open{display:flex}
.install-help-card{
  width:min(520px,100%);padding:18px 16px 22px;
  border-radius:18px 18px 0 0;background:#fff
}
.install-help-card h3{margin:0 0 8px;font-size:17px}
.install-help-card p{margin:5px 0;color:#647286;font-size:12px;line-height:1.5}
.install-help-card button{width:100%;margin-top:12px}

/* Mobile */
@media(max-width:760px){
  .search-suggest{top:calc(100% + 4px);border-radius:9px}
  .search-suggest a{padding:8px;font-size:10.5px}
  .gallery-stage{inset:54px 0 52px}
  .gallery-nav{display:none}
  .gallery-zoom-hint{font-size:9px}
  .price-trend{font-size:9.5px;padding:3px 5px}
  .app-tool-row{align-items:flex-start}
  .app-tool-row .mini-btn{flex:0 0 auto}
}


/* ===== v2.6 tiny price history / guest favorites / category-brand landing ===== */

/* Price movement is intentionally almost invisible:
   green = last change down, red = last change up.
   No amount is shown until the user taps it. */
.price-trend{
  position:relative!important;
  display:inline-block!important;
  width:9px!important;
  min-width:9px!important;
  height:18px!important;
  margin:0 0 0 6px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  vertical-align:middle!important;
  cursor:pointer;
  opacity:.78;
}
.price-trend:before{
  content:"";
  position:absolute;
  left:3px;
  width:2px;
  height:12px;
  border-radius:2px;
}
.price-trend:after{
  content:"";
  position:absolute;
  left:1px;
  width:0;height:0;
  border-left:3px solid transparent;
  border-right:3px solid transparent;
}
.price-trend-down:before{top:2px;background:#2b9a68}
.price-trend-down:after{
  bottom:0;
  border-top:4px solid #2b9a68;
}
.price-trend-up:before{bottom:2px;background:#ce514b}
.price-trend-up:after{
  top:0;
  border-bottom:4px solid #ce514b;
}
.price-trend:hover,.price-trend:active{opacity:1}
.detail-price-trend{margin-left:7px!important}

/* The large permanent history block is no longer used. */
.price-history-card{display:none!important}

/* Subtle publishing/update information */
.listing-updated-meta{
  margin:7px 0 2px;
  color:#657086;
  font-size:9.5px;
  font-weight:500;
  line-height:1.3;
}

/* Popup is the only place where the price history becomes explicit. */
.price-history-popover-list>div{
  grid-template-columns:1fr auto auto!important;
  align-items:center;
}
.price-history-change{
  min-width:22px;
  text-align:right;
  font-size:10px;
  font-weight:900;
}
.price-history-change.down{color:#20865b}
.price-history-change.up{color:#bb443f}
.price-history-change.same{color:#657086}

/* Phone stays concealed until deliberately revealed */
[data-phone-reveal]{font-weight:800}

/* Guest favorites */
.favorite-guest-note{
  margin:10px 0 0;
  color:#657086;
  font-size:10.5px;
}
[data-favorite-card][hidden]{display:none!important}

/* Category / brand pages */
.landing-mini-menu{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:10px 0 17px;
  color:#657086;
  font-size:10px;
}
.landing-mini-menu [data-landing-links]{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
}
.landing-mini-menu a{
  display:inline-flex;
  align-items:center;
  height:26px;
  padding:0 8px;
  border:1px solid #dfe5eb;
  border-radius:999px;
  background:#f8fafb;
  color:#53677d;
  font-size:9.5px;
  font-weight:750;
}
.landing-mini-menu a.active{
  background:#eaf2fb;
  border-color:#d3e0ef;
  color:#175dac;
}
.spec-link{
  color:inherit;
  text-decoration:underline;
  text-decoration-color:#c8d2dd;
  text-underline-offset:2px;
}

@media(max-width:760px){
  .listing-updated-meta{font-size:9px;margin-top:6px}
  .price-trend{width:8px!important;min-width:8px!important;height:16px!important;margin-left:5px!important}
  .price-trend:before{height:10px;left:3px}
  .landing-mini-menu{margin:8px 0 13px;gap:6px}
  .landing-mini-menu a{height:24px;padding:0 7px;font-size:9px}
}


/* ===== v2.7 price placement / listing actions / mobile contact / seller filter ===== */

/* Price + trend must read as one visual unit everywhere. */
.price-with-trend{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:5px;
  line-height:1;
}
.product-meta .price-with-trend{margin-right:auto}
.listing-price-with-trend{
  align-self:flex-end;
  justify-content:flex-end;
}
.detail-price-with-trend{
  display:flex;
  align-items:center;
  gap:7px;
  margin:8px 0 16px;
}
.detail-price-with-trend .detail-price{margin:0}

/* More visible than v2.6, but still only a clean direction mark – no amount. */
.price-trend{
  flex:0 0 14px!important;
  width:14px!important;
  min-width:14px!important;
  height:22px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:5px!important;
  background:transparent!important;
  opacity:.95!important;
}
.price-trend:before{
  left:5px!important;
  width:3px!important;
  height:14px!important;
  border-radius:4px!important;
}
.price-trend:after{
  left:2px!important;
  border-left-width:4px!important;
  border-right-width:4px!important;
}
.price-trend-down:before{top:2px!important;background:#15905a!important}
.price-trend-down:after{
  bottom:0!important;
  border-top:5px solid #15905a!important;
}
.price-trend-up:before{bottom:2px!important;background:#ca413b!important}
.price-trend-up:after{
  top:0!important;
  border-bottom:5px solid #ca413b!important;
}

/* Whole action tab immediately under Characteristics. */
.listing-action-panel{
  margin-top:12px;
  padding:14px;
  border:1px solid #d8e1e9;
  border-radius:12px;
  background:#f8fafc;
}
.listing-action-panel-head{
  margin-bottom:10px;
  color:#66758a;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.listing-action-panel .detail-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.listing-action-panel .detail-actions .report-link{
  grid-column:1/-1;
  margin-top:2px;
}

/* Main right-side detail summary is cleaner now that actions live below specs. */
.detail-card>.detail-actions{display:none}

/* Easy phone lower in seller panel. */
.seller-phone-bottom{
  width:100%;
  margin-top:10px;
}

/* Upper contact block for mobile only. */
.listing-mobile-top-contact{display:none}

/* Sticky mobile action bar – sits above the existing 5-item bottom navigation. */
.listing-sticky-actions{display:none}

/* Seller filter is a normal filter, no special visual weight. */
#sellerTypeFilter{font-weight:600}

@media(max-width:760px){
  body:has(.listing-sticky-actions){padding-bottom:126px!important}

  /* Listing row price stays top-right as before, but indicator is now glued to it. */
  .listing-price-with-trend{
    position:absolute;
    right:12px;
    top:12px;
    align-items:center;
  }
  .listing-price-with-trend .price{
    position:static!important;
    right:auto!important;
    top:auto!important;
    font-size:18px;
  }

  .product-meta .price-with-trend{gap:4px}
  .price-trend{
    width:13px!important;
    min-width:13px!important;
    flex-basis:13px!important;
    height:20px!important;
  }
  .price-trend:before{height:12px!important}

  .listing-mobile-top-contact{
    display:block;
    margin-top:10px;
    padding:12px;
    border:1px solid #d9e2eb;
    border-radius:11px;
    background:#f8fafc;
  }
  .mobile-top-price{
    display:flex;
    align-items:center;
    gap:6px;
    margin-bottom:9px;
  }
  .mobile-top-price>span{
    font-size:22px;
    font-weight:900;
    letter-spacing:-.02em;
    color:#10192d;
  }
  .mobile-top-contact-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
  }
  .mobile-top-contact-buttons>*{
    width:100%;
    min-width:0;
    height:40px;
    padding:0 9px;
    font-size:11px;
  }

  .listing-action-panel{
    margin-top:10px;
    padding:11px;
    border-radius:11px;
  }
  .listing-action-panel-head{margin-bottom:8px}
  .listing-action-panel .detail-actions{
    grid-template-columns:1fr 1fr;
    gap:7px;
  }
  .listing-action-panel .detail-actions>*{
    width:100%;
    min-width:0;
    height:40px;
    padding:0 8px;
    font-size:10.5px;
  }
  .listing-action-panel .detail-actions .report-link{
    height:auto;
    min-height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .listing-sticky-actions{
    position:fixed;
    left:0;right:0;
    bottom:62px;
    z-index:69;
    height:58px;
    display:grid;
    grid-template-columns:auto 1fr 1fr;
    align-items:center;
    gap:7px;
    padding:7px 10px;
    border-top:1px solid #d8e0e8;
    background:rgba(250,251,252,.97);
    box-shadow:0 -6px 20px rgba(21,39,62,.08);
    backdrop-filter:blur(10px);
  }
  .sticky-price{
    display:flex;
    align-items:center;
    gap:5px;
    padding-right:3px;
  }
  .sticky-price strong{
    font-size:17px;
    white-space:nowrap;
    color:#111c2d;
  }
  .sticky-phone,.sticky-message{
    height:42px;
    border-radius:9px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 9px;
    font-size:10.5px;
    font-weight:850;
    text-align:center;
  }
  .sticky-phone{
    border:1px solid #cdd8e4;
    background:#fff;
    color:#1f354e;
  }
  .sticky-message{
    border:1px solid #1767d9;
    background:#1767d9;
    color:#fff;
  }
}


/* ===== v2.8 direct call + icon actions ===== */
.icon-action-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  text-decoration:none!important;
}
.action-icon{
  display:inline-flex;
  width:20px;
  height:20px;
  flex:0 0 20px;
}
.action-icon svg{
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.icon-action-label{
  font-size:inherit;
  font-weight:inherit;
}
.phone-action-button{
  color:#175dac!important;
}
.message-action-button{
  color:#fff!important;
}
.listing-action-panel .message-action-button{
  background:#1767d9!important;
  border-color:#1767d9!important;
}
.listing-action-panel .phone-action-button,
.mobile-top-contact-buttons .phone-action-button,
.seller-phone-bottom.phone-action-button{
  background:#fff!important;
  color:#175dac!important;
  border:1px solid #cdd8e4!important;
}
.mobile-contact-icon-grid>*{
  min-height:42px;
}
.listing-sticky-actions .sticky-icon-only{
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  padding:0!important;
  border-radius:12px!important;
}
.listing-sticky-actions .sticky-phone{
  border:1px solid #cfd9e3!important;
  background:#fff!important;
  color:#175dac!important;
}
.listing-sticky-actions .sticky-message{
  border:1px solid #1767d9!important;
  background:#1767d9!important;
  color:#fff!important;
}
.listing-sticky-actions .sticky-icon-only .action-icon{
  width:22px;
  height:22px;
  flex-basis:22px;
}
@media(max-width:760px){
  .listing-sticky-actions{
    grid-template-columns:1fr 44px 44px!important;
  }
  .mobile-top-contact-buttons .icon-action-button{
    font-size:11px!important;
  }
  .mobile-top-contact-buttons .action-icon{
    width:19px;height:19px;flex-basis:19px;
  }
}


/* ===== v2.9 sharing / photo pipeline / phone click stats ===== */

.photo-pipeline-note{
  margin-top:7px;
  color:#657086;
  font-size:10px;
  line-height:1.4;
}

.photo-preview-card{
  position:relative;
  overflow:hidden;
}
.photo-preview-card.photo-processing{
  border-color:#b9c9db;
}
.photo-preview-card.photo-error,
.photo-preview-card.photo-duplicate{
  border-color:#e2b1ae;
  background:#fff8f7;
}
.photo-preview-card.dragging{
  opacity:.55;
  transform:scale(.98);
}
.photo-preview-image-wrap{
  position:relative;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:8px;
  background:#eef2f6;
}
.photo-preview-image-wrap img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.photo-card-top-actions{
  position:absolute;
  top:5px;
  right:5px;
  z-index:3;
  display:flex;
  gap:4px;
}
.photo-remove,
.photo-drag-handle{
  width:29px;
  height:29px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid rgba(203,214,225,.95);
  border-radius:8px;
  background:rgba(255,255,255,.94);
  color:#42546a;
  font-size:15px;
  font-weight:800;
}
.photo-drag-handle{
  cursor:grab;
  touch-action:none;
  font-size:17px;
  line-height:1;
}
.photo-drag-handle:active{cursor:grabbing}
.photo-remove{font-size:16px}
.photo-progress{
  position:absolute;
  left:7px;
  right:7px;
  bottom:7px;
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.76);
  box-shadow:0 0 0 1px rgba(215,224,232,.8);
}
.photo-progress>span{
  display:block;
  height:100%;
  width:0;
  border-radius:999px;
  background:#3478c8;
  transition:width .16s linear;
}
.photo-processing-label{
  position:absolute;
  left:7px;
  bottom:18px;
  z-index:2;
  padding:3px 6px;
  border-radius:6px;
  background:rgba(15,30,49,.80);
  color:#fff;
  font-size:8.5px;
  font-weight:750;
}
.photo-file-meta{
  display:grid;
  gap:1px;
  min-width:0;
  padding:6px 2px 1px;
  color:#657086;
  font-size:8.5px;
  line-height:1.25;
}
.photo-file-meta strong{
  overflow:hidden;
  color:#3e4d61;
  font-size:9px;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.photo-status-error{
  color:#b64640;
  font-weight:700;
}
.photo-retry{
  margin-top:5px;
  height:27px;
  padding:0 8px;
  border:1px solid #d5dde6;
  border-radius:7px;
  background:#fff;
  color:#345a82;
  font-size:9px;
  font-weight:800;
}
.photo-preview-card .photo-move{
  display:flex;
  justify-content:center;
  gap:4px;
  margin-top:5px;
}
.photo-preview-card .photo-move button{
  width:29px;
  height:27px;
}
body.photo-touch-sorting{
  user-select:none;
  -webkit-user-select:none;
}
.stat-row-five{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.owner-stats{
  align-items:stretch;
}

@media(max-width:760px){
  .photo-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .photo-drag-handle,
  .photo-remove{
    width:28px;
    height:28px;
  }
  .stat-row-five{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .owner-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}


/* ===== v2.10 marketplace resilience + filter UX + security ===== */

/* Active filters */
.active-filter-wrap{
  display:flex;
  align-items:center;
  gap:8px;
  margin:-2px 0 12px;
}
.active-filter-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  flex:1;
}
.filter-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  padding:4px 8px;
  border:1px solid #d8e2ec;
  border-radius:999px;
  background:#f7f9fb;
  color:#43566d;
  font-size:9.5px;
  font-weight:750;
}
.filter-chip button{
  border:0;
  padding:0;
  background:transparent;
  color:#657086;
  font:inherit;
  cursor:pointer;
}
.active-filter-clear,
.filter-clear-all{
  border:0;
  background:transparent;
  color:#2868ad;
  font-size:9.5px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}

/* Load more / zero state */
.load-more-btn{
  display:flex;
  width:min(320px,100%);
  margin:16px auto 0;
}
.zero-results{
  padding:34px 18px;
  border:1px dashed #d3dde7;
  border-radius:14px;
  background:#fafbfd;
  text-align:center;
}
.zero-results-icon{
  margin-bottom:5px;
  color:#657086;
  font-size:28px;
}
.zero-results h3{margin:0 0 6px;font-size:17px}
.zero-results p{margin:0 auto 14px;max-width:460px;color:#657086;font-size:11px}
.zero-results-actions{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}

/* Skeleton loading */
.results-skeleton{display:grid;gap:8px;margin-bottom:8px}
.results-skeleton.is-hidden{display:none}
.skeleton-row{
  display:grid;
  grid-template-columns:116px minmax(0,1fr) 90px;
  gap:12px;
  align-items:center;
  min-height:116px;
  padding:10px;
  border:1px solid #edf1f5;
  border-radius:11px;
  background:#fff;
}
.skeleton{
  position:relative;
  overflow:hidden;
  background:#edf1f5;
}
.skeleton::after{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.65),transparent);
  animation:skeletonSweep 1.15s infinite;
}
@keyframes skeletonSweep{100%{transform:translateX(100%)}}
.skeleton-img{height:92px;border-radius:8px}
.skeleton-copy{display:grid;gap:9px}
.skeleton-line{height:10px;border-radius:999px}
.skeleton-line.short{width:28%}.skeleton-line.medium{width:58%}.skeleton-line.wide{width:82%;height:15px}
.skeleton-price{justify-self:end;width:70px;height:20px;border-radius:7px}

/* Lazy image / blur placeholder */
img[data-blur-load]{
  background:#e9eef3;
  filter:blur(4px);
  opacity:.72;
  transition:filter .22s ease, opacity .22s ease;
}
img[data-blur-load].is-loaded{
  filter:blur(0);
  opacity:1;
}

/* Network status */
.network-banner{
  position:fixed;
  left:50%;
  top:10px;
  z-index:1000;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:9px;
  max-width:calc(100vw - 24px);
  min-height:36px;
  padding:7px 10px 7px 12px;
  border:1px solid #dfc38d;
  border-radius:10px;
  background:#fff8e9;
  color:#715322;
  box-shadow:0 7px 24px rgba(24,40,61,.14);
  font-size:10px;
  font-weight:750;
}
.network-banner.offline{
  border-color:#e4b4b0;
  background:#fff3f2;
  color:#8b3f3a;
}
.network-banner button{
  border:0;
  border-radius:7px;
  padding:5px 7px;
  background:#fff;
  color:inherit;
  font-size:9px;
  font-weight:850;
}

/* Toast */
.market-toast-host{
  position:fixed;
  left:50%;
  bottom:84px;
  z-index:1100;
  transform:translateX(-50%);
  display:grid;
  gap:7px;
  width:min(420px,calc(100vw - 24px));
  pointer-events:none;
}
.market-toast{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:9px 11px;
  border:1px solid #dce4ec;
  border-radius:10px;
  background:#172538;
  color:#fff;
  box-shadow:0 8px 28px rgba(20,34,52,.20);
  font-size:10.5px;
  font-weight:700;
  pointer-events:auto;
}
.market-toast span{flex:1}
.market-toast button{
  border:0;
  background:transparent;
  color:#9fd0ff;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}

/* Smart form validation */
.field.field-error input,
.field.field-error select,
.field.field-error textarea{
  border-color:#d45850!important;
  box-shadow:0 0 0 2px rgba(212,88,80,.08);
}
.field-error-message{
  display:block;
  margin-top:4px;
  color:#b54842;
  font-size:9px;
  font-weight:700;
}
[data-publish-guard].is-publishing{
  opacity:.75;
  cursor:wait;
}

/* Seller block */
.seller-secondary-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:10px;
}
.blocked-seller-banner,
.chat-blocked-banner{
  margin-bottom:12px;
  padding:10px 12px;
  border:1px solid #e2c8a0;
  border-radius:10px;
  background:#fff9ed;
  color:#6a5631;
  font-size:10px;
  line-height:1.4;
}
.blocked-seller-banner button,
.chat-blocked-banner button{
  margin-left:6px;
  border:0;
  background:transparent;
  color:#276ab2;
  font-size:inherit;
  font-weight:850;
}
.is-blocked-contact{
  opacity:.45!important;
  pointer-events:none!important;
}

/* Account security */
.account-security-panel{margin-top:16px}
.security-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}
.security-item{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
  padding:12px;
  border:1px solid #e1e7ed;
  border-radius:10px;
  background:#fbfcfd;
}
.security-item>strong{font-size:12px}
.security-item>span{min-height:30px;color:#657086;font-size:9.5px;line-height:1.45}
.security-inline{display:grid;gap:6px}
.security-inline input{width:100%;height:38px;border:1px solid #d6dfe7;border-radius:8px;padding:0 9px}
.danger-outline{border-color:#e1bbb8!important;color:#a34640!important}
.security-history{
  margin-top:12px;
  overflow:hidden;
  border:1px solid #e1e7ed;
  border-radius:10px;
}
.security-history-title{padding:10px 12px;background:#f7f9fb;font-size:10px;font-weight:850}
.security-history-row{display:flex;justify-content:space-between;gap:12px;padding:9px 12px;border-top:1px solid #edf0f3;font-size:10px}
.security-history-row small{color:#657086;text-align:right}

/* Inactive listing */
.inactive-listing-card{
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:16px;
  margin:18px 0 26px;
  padding:22px;
  border:1px solid #dfe5eb;
  border-radius:14px;
  background:#fafbfd;
}
.inactive-listing-icon{
  display:grid;
  place-items:center;
  width:54px;height:54px;
  border-radius:50%;
  background:#eaf2ee;
  color:#2d7a56;
  font-size:24px;
  font-weight:900;
}
.inactive-status{color:#657086;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.inactive-listing-card h1{margin:4px 0 7px;font-size:24px}
.inactive-listing-card p{max-width:700px;margin:0 0 14px;color:#657086;font-size:11px;line-height:1.55}

/* Action busy */
[data-action-busy="1"]{pointer-events:none!important;opacity:.68!important}

@media(max-width:760px){
  .active-filter-wrap{align-items:flex-start}
  .active-filter-clear{display:none}
  .filter-chip{font-size:9px}
  .skeleton-row{grid-template-columns:86px minmax(0,1fr) 58px;min-height:94px}
  .skeleton-img{height:74px}
  .security-grid{grid-template-columns:1fr}
  .security-item>span{min-height:0}
  .security-history-row{align-items:flex-start}
  .inactive-listing-card{grid-template-columns:42px minmax(0,1fr);padding:15px;gap:11px}
  .inactive-listing-icon{width:42px;height:42px;font-size:19px}
  .inactive-listing-card h1{font-size:19px}
  .seller-secondary-actions{grid-template-columns:1fr}
}


/* ===== v2.11 password flow / moderation appeal / safety / GDPR / trader data ===== */
.security-password-form{display:grid;gap:6px}
.security-password-form input{
  width:100%;height:38px;padding:0 9px;border:1px solid #d6dfe7;border-radius:8px;background:#fff
}
.security-forgot-link{color:#2868ad;font-size:9.5px;font-weight:800;text-align:left}
.auth-inline-status{
  margin:10px 0;padding:9px 10px;border:1px solid #cfe2d6;border-radius:8px;
  background:#f1faf4;color:#326348;font-size:10px;font-weight:700
}
.data-rights-panel{margin-top:16px}
.data-rights-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.data-right-card{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:12px;border:1px solid #e1e7ed;border-radius:10px;background:#fbfcfd
}
.data-right-card>div{display:grid;gap:4px}
.data-right-card strong{font-size:11px}
.data-right-card span{color:#657086;font-size:9.5px;line-height:1.4}
.data-right-card.danger{border-color:#ead1cf;background:#fffafa}
.account-delete-confirm{margin-top:10px;padding:12px;border:1px solid #e2bcb9;border-radius:10px;background:#fff8f7}
.account-delete-confirm p{margin:5px 0 9px;color:#76504d;font-size:10px}

.chat-risk-warning{
  margin:0 12px 8px;padding:9px 10px;border:1px solid #e4c283;border-radius:9px;
  background:#fff8e8;color:#735321;font-size:10px;line-height:1.45
}
.chat-risk-warning strong{display:block;margin-bottom:2px}
.chat-risk-warning.high-risk{border-color:#e0a7a2;background:#fff2f1;color:#8c3c37}

.moderation-removed-card{border-color:#e2c2bf!important;background:#fffafa!important}
.removed-status{display:inline-block;margin:4px 0;color:#a54d47;font-size:9.5px;font-weight:850}
.moderation-reason{margin:7px 0;padding:8px 9px;border-radius:8px;background:#fff1f0;color:#754946;font-size:10px;line-height:1.45}
.moderation-appeal-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}
.moderation-appeal-box{margin-top:9px;padding:10px;border:1px solid #dce4eb;border-radius:9px;background:#fff}
.moderation-appeal-box label{display:block;margin-bottom:5px;font-size:9.5px;font-weight:800}
.moderation-appeal-box textarea{width:100%;padding:8px;border:1px solid #d5dee7;border-radius:8px;resize:vertical}
.moderation-appeal-box .primary-btn{margin-top:7px}

.trader-legal-panel{margin:12px 0}
.trader-legal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.trader-legal-grid>div{display:grid;gap:3px;padding:9px;border:1px solid #e5eaf0;border-radius:8px;background:#fafbfd}
.trader-legal-grid span{color:#657086;font-size:8.5px}
.trader-legal-grid strong{font-size:10px}

.maintenance-public-banner{
  position:sticky;top:0;z-index:88;padding:8px 12px;text-align:center;
  border-bottom:1px solid #e5c887;background:#fff7e3;color:#725423;font-size:10px;font-weight:800
}

@media(max-width:760px){
  .data-rights-grid{grid-template-columns:1fr}
  .data-right-card{align-items:flex-start;flex-direction:column}
  .trader-legal-grid{grid-template-columns:1fr 1fr}
}


/* ===== v2.12 clean profile hub ===== */
.profile-hub-page,
.profile-subpage{
  background:#f6f8fa;
}
.profile-hub-container{
  width:min(860px,calc(100% - 40px));
}
.profile-summary-card{
  overflow:hidden;
  border:1px solid #dce4ec;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 28px rgba(21,37,58,.05);
}
.profile-summary-top{
  display:grid;
  grid-template-columns:66px minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  padding:20px;
}
.profile-avatar-large{
  display:grid;
  place-items:center;
  width:66px;height:66px;
  border-radius:50%;
  background:#e9f2fb;
  color:#175dac;
  font-size:20px;
  font-weight:900;
}
.profile-summary-copy{min-width:0}
.profile-eyebrow{
  display:block;
  margin-bottom:3px;
  color:#657086;
  font-size:9.5px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.profile-summary-copy h1,
.profile-subpage-head h1{
  margin:0;
  color:#111c2d;
  letter-spacing:-.025em;
}
.profile-summary-copy h1{font-size:24px}
.profile-summary-status{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-top:4px;
  color:#657086;
  font-size:10.5px;
}
.profile-verified-dot{
  width:7px;height:7px;
  border-radius:50%;
  background:#2b9b68;
}
.profile-status-sep{color:#b1bac4}
.profile-edit-quick{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  border:1px solid #d1dce6;
  border-radius:9px;
  background:#fff;
  color:#315271;
  font-size:10.5px;
  font-weight:800;
}
.profile-quick-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid #e8edf2;
  background:#fbfcfd;
}
.profile-quick-stats a{
  display:grid;
  justify-items:center;
  gap:1px;
  padding:12px 8px;
  border-right:1px solid #e8edf2;
}
.profile-quick-stats a:last-child{border-right:0}
.profile-quick-stats strong{font-size:16px;color:#18283b}
.profile-quick-stats span{color:#657086;font-size:9.5px}

.profile-menu-section{margin-top:22px}
.profile-menu-section>h2{
  margin:0 0 8px 3px;
  color:#27364a;
  font-size:13px;
  letter-spacing:-.01em;
}
.profile-menu-card{
  overflow:hidden;
  border:1px solid #dce4ec;
  border-radius:14px;
  background:#fff;
}
.profile-menu-row{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto 18px;
  align-items:center;
  gap:10px;
  min-height:64px;
  padding:10px 13px;
  border-bottom:1px solid #edf1f4;
  transition:.14s;
}
.profile-menu-row:last-child{border-bottom:0}
.profile-menu-row:hover{background:#fafcfe}
.profile-menu-icon{
  display:grid;
  place-items:center;
  width:34px;height:34px;
  border-radius:9px;
  background:#eef4fa;
  color:#355f88;
}
.profile-menu-icon svg,
.profile-menu-chevron svg,
.profile-back svg{
  width:20px;height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.profile-menu-copy{display:grid;gap:2px;min-width:0}
.profile-menu-copy strong{font-size:11.5px;color:#1e2d40}
.profile-menu-sub{
  overflow:hidden;
  color:#657086;
  font-size:9.5px;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.profile-menu-meta{
  display:grid;
  place-items:center;
  min-width:24px;height:24px;
  padding:0 6px;
  border-radius:999px;
  background:#f0f4f7;
  color:#56677a;
  font-size:9px;
  font-weight:850;
}
.profile-menu-chevron{
  display:flex;
  color:#9aa6b3;
}
.profile-menu-chevron svg{width:18px;height:18px}
.profile-logout-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:180px;
  height:44px;
  margin:24px auto 0;
  border:1px solid #d8e0e7;
  border-radius:11px;
  background:#fff;
  color:#44566b;
  font-weight:800;
}
.profile-logout-btn .profile-menu-icon{
  width:28px;height:28px;
  background:transparent;
  color:#607184;
}
.profile-logout-btn .profile-menu-icon svg{width:19px;height:19px}

/* Subpages */
.profile-subpage-container{
  width:min(760px,calc(100% - 40px));
}
.profile-back{
  display:inline-flex;
  align-items:center;
  gap:3px;
  margin-bottom:16px;
  color:#5d7187;
  font-size:10.5px;
  font-weight:800;
}
.profile-back svg{width:18px;height:18px}
.profile-subpage-head{margin-bottom:14px}
.profile-subpage-head h1{font-size:24px}
.profile-subpage-head p{
  margin:5px 0 0;
  color:#657086;
  font-size:11px;
}
.profile-settings-card{
  overflow:hidden;
  margin-top:12px;
  border:1px solid #dce4ec;
  border-radius:14px;
  background:#fff;
}
.profile-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  padding:16px;
}
.profile-form-grid .field{min-width:0}
.profile-form-grid input,
.profile-form-grid select{
  width:100%;
}
.profile-setting-line,
.profile-setting-action-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:62px;
  padding:11px 16px;
  border-top:1px solid #edf1f4;
}
.profile-setting-line>div,
.profile-setting-action-row>div{
  display:grid;
  gap:2px;
  min-width:0;
}
.profile-setting-line strong,
.profile-setting-action-row strong{
  color:#24354a;
  font-size:11px;
}
.profile-setting-line span,
.profile-setting-action-row span{
  color:#657086;
  font-size:9.5px;
  line-height:1.4;
}
.profile-settings-actions{
  display:flex;
  justify-content:flex-end;
  padding:12px 16px 16px;
  border-top:1px solid #edf1f4;
}
.profile-card-title{
  padding:12px 16px;
  border-bottom:1px solid #edf1f4;
  background:#fbfcfd;
  color:#56677a;
  font-size:10px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.settings-block{
  padding:15px 16px;
  border-bottom:1px solid #edf1f4;
}
.settings-block:last-child{border-bottom:0}
.settings-block-title{
  display:grid;
  gap:3px;
  margin-bottom:10px;
}
.settings-block-title strong{font-size:11.5px;color:#25364a}
.settings-block-title span{color:#657086;font-size:9.5px}
.security-clean-card .security-inline{
  grid-template-columns:minmax(0,1fr) auto;
}
.security-clean-card .security-password-form{
  max-width:430px;
}
.security-history-clean .security-history-row:first-of-type{border-top:0}
.data-rights-list{display:grid}
.data-right-list-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:82px;
  padding:14px 16px;
  border-bottom:1px solid #edf1f4;
}
.data-right-list-row:last-child{border-bottom:0}
.data-right-list-row>div{display:grid;gap:3px}
.data-right-list-row strong{font-size:11px;color:#25364a}
.data-right-list-row span{max-width:520px;color:#657086;font-size:9.5px;line-height:1.4}
.data-right-list-row.danger{background:#fffafa}

@media(max-width:760px){
  .profile-hub-page,
  .profile-subpage{padding-top:16px!important}
  .profile-hub-container,
  .profile-subpage-container{
    width:calc(100% - 20px);
  }
  .profile-summary-card{
    border-radius:13px;
    box-shadow:none;
  }
  .profile-summary-top{
    grid-template-columns:54px minmax(0,1fr) auto;
    gap:10px;
    padding:14px;
  }
  .profile-avatar-large{
    width:54px;height:54px;
    font-size:17px;
  }
  .profile-summary-copy h1{font-size:20px}
  .profile-summary-status{font-size:9px}
  .profile-edit-quick{
    min-height:32px;
    padding:0 9px;
    font-size:9.5px;
  }
  .profile-quick-stats a{padding:10px 5px}
  .profile-quick-stats strong{font-size:14px}
  .profile-quick-stats span{font-size:8.5px}
  .profile-menu-section{margin-top:18px}
  .profile-menu-section>h2{
    margin-left:5px;
    font-size:12.5px;
  }
  .profile-menu-card{border-radius:12px}
  .profile-menu-row{
    grid-template-columns:36px minmax(0,1fr) auto 16px;
    min-height:61px;
    padding:9px 11px;
    gap:9px;
  }
  .profile-menu-icon{
    width:32px;height:32px;
  }
  .profile-menu-icon svg{width:18px;height:18px}
  .profile-menu-copy strong{font-size:11px}
  .profile-menu-sub{font-size:8.8px}
  .profile-menu-meta{min-width:22px;height:22px;font-size:8.5px}
  .profile-logout-btn{
    width:160px;
    height:42px;
    margin-top:20px;
  }

  .profile-subpage-head h1{font-size:21px}
  .profile-subpage-head p{font-size:10px}
  .profile-settings-card{border-radius:12px}
  .profile-form-grid{
    grid-template-columns:1fr;
    gap:10px;
    padding:13px;
  }
  .profile-setting-line,
  .profile-setting-action-row{
    min-height:58px;
    padding:10px 13px;
    gap:10px;
  }
  .profile-settings-actions{padding:11px 13px 13px}
  .profile-settings-actions .primary-btn{width:100%}
  .settings-block{padding:13px}
  .security-clean-card .security-inline{
    grid-template-columns:1fr;
  }
  .security-clean-card .security-inline .secondary-btn{
    width:100%;
  }
  .data-right-list-row{
    align-items:flex-start;
    flex-direction:column;
    gap:9px;
    min-height:0;
    padding:13px;
  }
  .data-right-list-row .secondary-btn{width:100%}
}


/* ===== v2.13 mobile navigation cleanup ===== */
.mobile-notifications{display:none}

@media(max-width:760px){
  /* Mobile header is intentionally only logo | search | notifications. */
  .header-actions>.icon-btn:not(.mobile-notifications){display:none!important}
  .mobile-notifications{
    display:flex!important;
    position:relative;
    flex:0 0 40px;
    width:40px;
    height:40px;
    border:1px solid #d8dee8!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#34465d!important;
  }
  .mobile-notifications:hover{background:#f7f9fb!important}
  .mobile-notifications .ico{width:20px;height:20px}

  .notification-badge{
    display:none;
    position:absolute;
    right:-3px;
    top:-4px;
    min-width:17px;
    height:17px;
    padding:0 4px;
    align-items:center;
    justify-content:center;
    border:2px solid #fff;
    border-radius:999px;
    background:#d6403a;
    color:#fff;
    font-size:8px;
    font-weight:900;
    line-height:1;
  }
  .notification-badge.has-unread{display:flex}

  /* Five distinct destinations; no duplicated "Обяви" tab. */
  .mobile-bottom a{
    position:relative;
    color:#687589;
    font-weight:650;
  }
  .mobile-bottom a .ico{
    width:21px;
    height:21px;
    transition:transform .12s ease,color .12s ease;
  }
  .mobile-bottom a.is-active{
    color:#1767d9!important;
    font-weight:850!important;
  }
  .mobile-bottom a.is-active .ico{
    color:#1767d9!important;
    transform:translateY(-1px);
  }
  .mobile-bottom a.is-active::after{
    content:"";
    position:absolute;
    top:4px;
    width:4px;
    height:4px;
    border-radius:50%;
    background:#1767d9;
  }
  .mobile-bottom a[data-nav="favorites"].is-active .ico svg{
    fill:currentColor;
  }
  .mobile-bottom a[data-nav="profile"].is-active .ico circle{
    fill:currentColor;
    stroke:currentColor;
  }

  /* Add stays integrated in the bar, but visually obvious. */
  .mobile-bottom a.primary-mobile{
    color:#50627a!important;
    font-weight:800!important;
  }
  .mobile-bottom a.primary-mobile .ico{
    width:27px!important;
    height:27px!important;
    padding:5px!important;
    border-radius:50%!important;
    background:#1767d9!important;
    color:#fff!important;
  }
  .mobile-bottom a.primary-mobile.is-active{
    color:#1767d9!important;
  }
  .mobile-bottom a.primary-mobile.is-active .ico{
    background:#1257b9!important;
  }
}


/* ===== v2.14 mobile bell visibility fix ===== */
@media(max-width:760px){
  .header-actions>.icon-btn.mobile-notifications{
    display:flex!important;
  }
}


/* ===== v2.15 notifications / recent search / overflow menus / accessibility ===== */

/* Accessibility */
.skip-link{
  position:fixed;
  left:12px;
  top:10px;
  z-index:2000;
  transform:translateY(-150%);
  padding:8px 11px;
  border-radius:8px;
  background:#10243a;
  color:#fff;
  font-size:11px;
  font-weight:850;
}
.skip-link:focus{transform:translateY(0)}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline:3px solid rgba(23,103,217,.35)!important;
  outline-offset:2px!important;
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto!important;
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
}

/* Chat unread badge */
.mobile-bottom a[data-nav="chat"]{position:relative}
.chat-nav-badge{
  display:none;
  position:absolute;
  top:3px;
  left:calc(50% + 5px);
  min-width:16px;
  height:16px;
  padding:0 4px;
  align-items:center;
  justify-content:center;
  border:2px solid #fff;
  border-radius:999px;
  background:#d6403a;
  color:#fff;
  font-size:7.5px;
  font-weight:900;
  line-height:1;
}
.chat-nav-badge.has-unread{display:flex}

/* Notifications */
.notification-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:16px 0 10px;
}
.notification-filter-tabs{
  display:flex;
  gap:6px;
  overflow-x:auto;
  scrollbar-width:none;
}
.notification-filter-tabs::-webkit-scrollbar{display:none}
.notification-filter{
  min-height:34px;
  padding:0 10px;
  border:1px solid #d9e1e9;
  border-radius:999px;
  background:#fff;
  color:#647489;
  font-size:9.5px;
  font-weight:800;
  white-space:nowrap;
}
.notification-filter.active{
  border-color:#c8d9ee;
  background:#edf4fc;
  color:#175dac;
}
.notification-read-all{
  flex:0 0 auto;
  border:0;
  background:transparent;
  color:#2468b1;
  font-size:9.5px;
  font-weight:850;
}
.notice[hidden]{display:none!important}
.notice{cursor:default}
.notice:focus-visible{border-radius:8px}

/* Recent searches */
.header-search,.mobile-header-search{position:relative}
.recent-searches-panel{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 6px);
  z-index:140;
  overflow:hidden;
  border:1px solid #dce4ec;
  border-radius:11px;
  background:#fff;
  box-shadow:0 12px 30px rgba(18,35,56,.13);
}
.recent-searches-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 10px;
  border-bottom:1px solid #edf1f4;
  color:#657086;
  font-size:9px;
  font-weight:850;
}
.recent-searches-head button{
  min-height:28px;
  border:0;
  background:transparent;
  color:#2868ad;
  font-size:9px;
  font-weight:850;
}
.recent-search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 36px;
  align-items:center;
  min-height:42px;
  border-bottom:1px solid #f0f3f6;
}
.recent-search-row:last-child{border-bottom:0}
.recent-search-row>a{
  display:flex;
  align-items:center;
  min-width:0;
  height:100%;
  padding:0 10px;
  color:#33485f;
  font-size:10px;
  font-weight:750;
}
.recent-search-row>button{
  width:36px;
  height:36px;
  border:0;
  background:transparent;
  color:#657086;
  font-size:15px;
}

/* Verified trader info */
.verified-inline-wrap{
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.verified-info-btn{
  display:inline-grid;
  place-items:center;
  width:20px;
  height:20px;
  padding:0;
  border:1px solid #cdd9e5;
  border-radius:50%;
  background:#fff;
  color:#4d6782;
  font-family:Georgia,serif;
  font-size:11px;
  font-weight:800;
}
.verified-info-dialog{
  position:fixed;
  inset:0;
  z-index:1800;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(13,26,42,.44);
}
.verified-info-card{
  width:min(430px,100%);
  padding:16px;
  border-radius:14px;
  background:#fff;
  box-shadow:0 20px 55px rgba(11,27,45,.22);
}
.verified-info-card h3{margin:0 0 7px;font-size:17px}
.verified-info-card p{margin:0 0 9px;color:#68788b;font-size:10.5px;line-height:1.5}
.verified-info-card ul{margin:0 0 13px;padding-left:18px;color:#53677c;font-size:10px;line-height:1.55}
.verified-info-card .secondary-btn{width:100%}

/* Overflow menus */
.overflow-actions,.chat-overflow{position:relative}
.overflow-trigger{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  padding:0;
  border:1px solid #d6dfe7;
  border-radius:9px;
  background:#fff;
  color:#506278;
  font-size:15px;
  font-weight:900;
  letter-spacing:1px;
}
.overflow-menu{
  position:absolute;
  right:0;
  top:calc(100% + 5px);
  z-index:220;
  width:190px;
  overflow:hidden;
  border:1px solid #dce4ec;
  border-radius:10px;
  background:#fff;
  box-shadow:0 12px 28px rgba(21,37,57,.14);
}
.overflow-menu[hidden]{display:none!important}
.overflow-menu-item{
  display:flex;
  align-items:center;
  width:100%;
  min-height:42px;
  padding:8px 11px;
  border:0;
  border-bottom:1px solid #eef1f4;
  background:#fff;
  color:#34495f;
  text-align:left;
  font-size:10px;
  font-weight:750;
}
.overflow-menu-item:last-child{border-bottom:0}
.overflow-menu-item:hover,.overflow-menu-item:focus-visible{background:#f7f9fb}
.overflow-menu-item.danger{color:#a54843}
.ad-actions.overflow-actions{
  align-self:start;
  justify-self:end;
}
.chat-overflow{margin-left:auto}
.chat-overflow-trigger{width:38px;height:38px}
.chat-overflow-menu{right:0}

/* Conversation archive */
.conversation-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  margin:0 10px 8px;
  padding:3px;
  border-radius:9px;
  background:#f0f3f6;
}
.conversation-tab{
  min-height:32px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#657086;
  font-size:9.5px;
  font-weight:800;
}
.conversation-tab.active{
  background:#fff;
  color:#244e78;
  box-shadow:0 1px 4px rgba(28,44,64,.08);
}

/* Cookie preferences */
.cookie-preferences-card{
  margin:18px 0 22px;
  overflow:hidden;
  border:1px solid #dce4ec;
  border-radius:14px;
  background:#fff;
}
.cookie-preferences-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:16px;
  background:#fbfcfd;
}
.cookie-preferences-head h2{margin:0 0 4px;font-size:18px}
.cookie-preferences-head p{margin:0;color:#657086;font-size:10px;line-height:1.5}
.cookie-choice-status{
  flex:0 0 auto;
  padding:5px 8px;
  border-radius:999px;
  background:#eef3f7;
  color:#66788b;
  font-size:8.5px;
  font-weight:850;
}
.cookie-pref-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:66px;
  padding:12px 16px;
  border-top:1px solid #edf1f4;
}
.cookie-pref-row>div{display:grid;gap:2px}
.cookie-pref-row strong{font-size:11px;color:#26384c}
.cookie-pref-row span{color:#657086;font-size:9.5px;line-height:1.4}
.cookie-pref-row input{
  width:20px;
  height:20px;
  accent-color:#1767d9;
}
.cookie-pref-row.locked{background:#fafbfd}
.cookie-pref-actions{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  padding:12px 16px;
  border-top:1px solid #edf1f4;
}

/* Larger touch targets without visually bloating desktop */
@media(max-width:760px){
  .mobile-bottom a{min-height:58px}
  .icon-btn,.mini-btn,.notification-filter,
  .verified-info-btn,.overflow-trigger,
  .conversation-tab,.recent-searches-head button{
    min-width:44px;
    min-height:44px;
  }
  .verified-info-btn{width:28px;height:28px;min-width:28px;min-height:28px}
  .notification-toolbar{align-items:flex-start;flex-direction:column}
  .notification-read-all{min-height:34px}
  .cookie-preferences-head{flex-direction:column;gap:8px}
  .cookie-pref-actions{display:grid;grid-template-columns:1fr}
  .cookie-pref-actions>*{width:100%}
}


/* ===== v2.16 notifications + chat composer polish ===== */

/* Notifications: row itself is the action */
.notice{
  position:relative;
  padding-right:42px!important;
  cursor:pointer;
}
.notice-chevron{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  color:#9aa6b3;
  font-size:28px;
  font-weight:300;
  line-height:1;
}
.notice:hover{background:#fafcfe}
.notice:active{background:#f4f8fc}

/* Conversation avatar status */
.avatar{
  position:relative;
}
.avatar-online-dot{
  position:absolute;
  right:1px;
  bottom:1px;
  width:10px;
  height:10px;
  border:2px solid #fff;
  border-radius:50%;
  background:#2bad72;
  box-shadow:0 0 0 1px rgba(32,145,92,.08);
}

/* Quick replies are only for a new / empty conversation */
[data-quick-replies][hidden]{
  display:none!important;
}

/* Better chat thread */
.chat-thread-demo{
  display:grid;
  gap:8px;
  padding:14px 14px 92px;
  background:#f7f9fb;
}
.chat-bubble{
  width:fit-content;
  max-width:min(78%,520px);
  padding:9px 11px 6px;
  border-radius:14px;
  font-size:10.5px;
  line-height:1.45;
}
.chat-bubble.incoming{
  justify-self:start;
  border:1px solid #e0e6ec;
  border-bottom-left-radius:5px;
  background:#fff;
  color:#25374a;
}
.chat-bubble.outgoing{
  justify-self:end;
  border:1px solid #c5d9f0;
  border-bottom-right-radius:5px;
  background:#eaf3ff;
  color:#1f3c5e;
}
.chat-bubble-time{
  display:block;
  margin-top:3px;
  color:#657086;
  font-size:8px;
  text-align:right;
}

/* Always-visible composer */
.chat-composer-wrap{
  position:sticky;
  bottom:62px;
  z-index:45;
  margin-top:auto;
  padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));
  border-top:1px solid #dfe6ec;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(10px);
}
.chat-composer{
  display:grid;
  grid-template-columns:40px minmax(0,1fr) 42px;
  align-items:end;
  gap:7px;
}
.chat-attach-btn,
.chat-send-btn{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  padding:0;
  border-radius:10px;
}
.chat-attach-btn{
  border:1px solid #d7e0e8;
  background:#fff;
  color:#51667d;
}
.chat-send-btn{
  border:1px solid #1767d9;
  background:#1767d9;
  color:#fff;
}
.chat-attach-btn svg,
.chat-send-btn svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.chat-composer-input{
  width:100%;
  min-height:40px;
  max-height:110px;
  resize:none;
  overflow-y:auto;
  padding:10px 11px;
  border:1px solid #d7e0e8;
  border-radius:12px;
  background:#f8fafc;
  color:#24364a;
  font:inherit;
  font-size:10.5px;
  line-height:1.35;
}
.chat-composer-input::placeholder{color:#657086}

@media(max-width:760px){
  .chat-pane{
    padding-bottom:0!important;
  }
  .chat-composer-wrap{
    position:fixed;
    left:0;
    right:0;
    bottom:62px;
    margin:0;
  }
  .chat-thread-demo{
    padding-bottom:112px;
  }
  .chat-bubble{
    max-width:84%;
    font-size:10px;
  }
}


/* ===== v2.17 chat internal scrolling fix ===== */
@media(max-width:760px){
  html:has(body.messages-page),
  body.messages-page{
    height:100%;
    overflow:hidden!important;
    overscroll-behavior:none;
  }

  body.messages-page{
    height:100dvh;
    padding-bottom:0!important;
    display:flex;
    flex-direction:column;
    background:#f4f6f8;
  }

  body.messages-page .site-header{
    position:relative!important;
    top:auto!important;
    flex:0 0 60px;
  }

  body.messages-page .safety-ticker{
    flex:0 0 34px;
  }

  body.messages-page main.page{
    flex:1 1 auto;
    min-height:0;
    height:auto!important;
    padding:10px 0 0!important;
    overflow:hidden!important;
  }

  body.messages-page main.page>.container{
    width:calc(100% - 20px);
    height:100%;
    min-height:0;
    overflow:hidden;
  }

  body.messages-page .chat-shell{
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }

  body.messages-page .conversation-list{
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
  }

  body.messages-page .chat-pane{
    min-height:0!important;
    height:100%!important;
    max-height:none!important;
    overflow:hidden!important;
    flex-direction:column!important;
  }

  body.messages-page .chat-product{
    flex:0 0 auto;
  }

  body.messages-page .chat-blocked-banner,
  body.messages-page .chat-risk-warning{
    flex:0 0 auto;
  }

  body.messages-page .chat-messages{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
    padding:14px!important;
    padding-bottom:18px!important;
  }

  body.messages-page .chat-composer-wrap{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    flex:0 0 auto;
    margin:0!important;
    padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px))!important;
  }

  body.messages-page .footer{
    display:none!important;
  }

  /* The bottom navigation remains fixed outside the chat workspace. */
  body.messages-page .mobile-bottom{
    flex:0 0 auto;
  }
}


/* ===== v2.18 chat refresh + single online status ===== */

/* Legacy online marker is retired permanently. */
.conversation-online-dot{
  display:none!important;
}

/* Exactly one simple status dot on the avatar. */
.avatar-online-dot{
  right:-1px!important;
  bottom:-1px!important;
  width:11px!important;
  height:11px!important;
  border:2px solid #fff!important;
  border-radius:50%!important;
  background:#2bad72!important;
  box-shadow:none!important;
}

/* The open-chat text can say "Онлайн сега", but should not show another green dot. */
.chat-presence>.online-dot{
  display:none!important;
}

/* Existing conversations never show preset quick messages. */
.chat-messages[data-has-history="1"] ~ [data-quick-replies],
.chat-pane:has(.chat-messages[data-has-history="1"]) [data-quick-message],
.chat-pane:has(.chat-messages[data-has-history="1"]) .quick-replies,
.chat-pane:has(.chat-messages[data-has-history="1"]) .chat-quick-replies,
.chat-pane:has(.chat-messages[data-has-history="1"]) .quick-messages{
  display:none!important;
}


/* ===== v2.19 keep chat composer above bottom navigation ===== */
@media(max-width:760px){
  body.messages-page main.page>.container{
    padding-bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom))!important;
  }

  body.messages-page .chat-shell{
    height:100%!important;
  }

  body.messages-page .chat-composer-wrap{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    position:relative!important;
    z-index:75!important;
    background:#fff!important;
  }

  body.messages-page .chat-composer{
    display:grid!important;
  }
}

/* ===== v2.20 working chat image picker + preview ===== */
.chat-image-input{
  position:absolute!important;width:1px!important;height:1px!important;
  opacity:0!important;pointer-events:none!important;
}
.chat-image-preview[hidden]{display:none!important}
.chat-image-preview{padding:0 0 8px}
.chat-image-preview-card{
  display:grid;grid-template-columns:58px minmax(0,1fr) 34px;align-items:center;gap:9px;
  padding:7px;border:1px solid #d9e2ea;border-radius:10px;background:#f8fafc;
}
.chat-image-preview-card img{width:58px;height:58px;object-fit:cover;border-radius:8px;background:#eef2f6}
.chat-image-preview-copy{display:grid;gap:2px;min-width:0}
.chat-image-preview-copy strong{overflow:hidden;color:#2b3d52;font-size:10px;white-space:nowrap;text-overflow:ellipsis}
.chat-image-preview-copy span{color:#657086;font-size:8.5px}
.chat-image-remove{
  display:grid;place-items:center;width:32px;height:32px;border:1px solid #d6dfe7;
  border-radius:8px;background:#fff;color:#68788a;font-size:17px;font-weight:700
}
.chat-bubble-image{
  display:block;width:min(240px,72vw);max-height:320px;object-fit:cover;
  margin-bottom:5px;border-radius:10px
}
@media(max-width:760px){
  .chat-image-preview-card{grid-template-columns:52px minmax(0,1fr) 34px}
  .chat-image-preview-card img{width:52px;height:52px}
}


/* ===== v2.21 chat delivery/drafts/security auth ===== */
.chat-new-divider{
  display:flex;align-items:center;gap:8px;margin:6px 0 10px;color:#657086;font-size:9px;font-weight:850
}
.chat-new-divider::before,.chat-new-divider::after{content:"";height:1px;background:#dfe6ed;flex:1}
.chat-jump-bottom{
  position:absolute;right:14px;bottom:82px;z-index:80;
  width:38px;height:38px;border:1px solid #d3dde7;border-radius:50%;
  background:#fff;color:#315a83;font-size:17px;font-weight:800;
  box-shadow:0 6px 18px rgba(23,42,64,.15)
}
.chat-jump-bottom[hidden]{display:none!important}

.chat-typing{
  display:flex;align-items:center;gap:6px;
  padding:5px 12px 6px;color:#657086;font-size:9px
}
.chat-typing[hidden]{display:none!important}
.typing-avatar{
  display:grid;place-items:center;width:22px;height:22px;border-radius:50%;
  background:#eef3f7;color:#47617d;font-size:8px;font-weight:800
}
.typing-dots{display:inline-flex;gap:2px}
.typing-dots i{width:3px;height:3px;border-radius:50%;background:#8a98a8;animation:typingDot 1s infinite}
.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}
@keyframes typingDot{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}

.bubble-delivery-status{
  display:flex;justify-content:flex-end;align-items:center;gap:5px;
  margin-top:3px;color:#657086;font-size:7.8px
}
.bubble-delivery-status.failed{color:#b84c46}
.bubble-retry{
  border:0;background:transparent;color:#246ab2;font-size:7.8px;font-weight:850;padding:0
}

.security-device-alert{
  display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;
  margin-bottom:12px;padding:12px;border:1px solid #e3b8b4;border-radius:11px;background:#fff6f5
}
.security-alert-icon{
  display:grid;place-items:center;width:32px;height:32px;border-radius:50%;
  background:#ffe6e3;color:#a44640;font-weight:900
}
.security-device-alert>div:nth-child(2){display:grid;gap:2px}
.security-device-alert strong{font-size:11px;color:#573735}
.security-device-alert span,.security-device-alert p{margin:0;color:#80625f;font-size:9px}
.session-list{display:grid;gap:6px;margin-bottom:10px}
.session-row{
  display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;
  padding:9px;border:1px solid #e3e8ee;border-radius:9px;background:#fbfcfd
}
.session-row.current{background:#f5faf7;border-color:#d9e9df}
.session-device-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#edf3f8}
.session-row>div:nth-child(2){display:grid;gap:1px}
.session-row strong{font-size:10px}.session-row span{color:#657086;font-size:8.5px}
.session-current{color:#278057!important;font-weight:850}
.signout-all-clean{margin-top:4px}
.passkey-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.passkey-row>div{display:grid;gap:2px}
.passkey-status{font-size:10px;font-weight:850;color:#445a70}
.passkey-row small{color:#657086;font-size:8.5px}

.suspicious-check{
  margin:8px 0;padding:10px;border:1px solid #dfc78f;border-radius:9px;background:#fff9ea
}
.suspicious-check[hidden]{display:none!important}
.suspicious-check-head{display:grid;gap:2px;margin-bottom:7px}
.suspicious-check-head strong{font-size:10.5px;color:#614c23}
.suspicious-check-head span,.suspicious-check small{color:#796945;font-size:8.7px;line-height:1.4}
.suspicious-human-check{margin:4px 0}

@media(max-width:760px){
  .security-device-alert{grid-template-columns:32px minmax(0,1fr)}
  .security-device-alert>.secondary-btn{grid-column:1/-1;width:100%}
  .session-row{grid-template-columns:32px minmax(0,1fr)}
  .session-row>.mini-btn,.session-row>.session-current{grid-column:2}
  .passkey-row{align-items:flex-start;flex-direction:column}
  .passkey-row .secondary-btn{width:100%}
}


/* ===== v2.22 chat direction / mobile keyboard / other brand / latest type ===== */

/* Message direction must be visually unambiguous. */
.chat-messages .bubble-row{
  display:flex!important;
  width:100%!important;
}
.chat-messages .bubble-row:not(.me),
.chat-messages .bubble-row[data-message-direction="incoming"]{
  justify-content:flex-start!important;
}
.chat-messages .bubble-row.me,
.chat-messages .bubble-row[data-message-direction="outgoing"]{
  justify-content:flex-end!important;
}
.chat-messages .bubble-row.me .bubble,
.chat-messages .bubble-row[data-message-direction="outgoing"] .bubble{
  margin-left:auto!important;
  margin-right:0!important;
  background:#e8f2ff!important;
  border-color:#c8ddf5!important;
  border-bottom-right-radius:5px!important;
}
.chat-messages .bubble-row:not(.me) .bubble,
.chat-messages .bubble-row[data-message-direction="incoming"] .bubble{
  margin-left:0!important;
  margin-right:auto!important;
  background:#fff!important;
  border-color:#dfe6ed!important;
  border-bottom-left-radius:5px!important;
}

/* "Друга марка" */
.other-brand-field[hidden]{display:none!important}
.other-brand-field{
  border-left:3px solid #d7e5f4;
  padding-left:10px;
}
.field-help{
  display:block;
  margin-top:4px;
  color:#657086;
  font-size:8.8px;
  line-height:1.35;
}

/* Type label in "Ново добавени" */
.product-category-label{
  margin-bottom:3px;
  color:#60758c;
  font-size:9px;
  font-weight:850;
  letter-spacing:.025em;
  text-transform:uppercase;
}

/* Mobile chat viewport follows the visible iPhone viewport while keyboard is open. */
@media(max-width:760px){
  body.messages-page{
    height:var(--chat-visible-height,100dvh)!important;
    max-height:var(--chat-visible-height,100dvh)!important;
  }

  body.messages-page.chat-keyboard-open{
    padding-bottom:0!important;
  }

  body.messages-page.chat-keyboard-open .site-header,
  body.messages-page.chat-keyboard-open .safety-ticker,
  body.messages-page.chat-keyboard-open .mobile-bottom{
    display:none!important;
  }

  body.messages-page.chat-keyboard-open main.page{
    padding-top:0!important;
  }

  body.messages-page.chat-keyboard-open main.page>.container{
    width:100%!important;
    padding-bottom:0!important;
  }

  body.messages-page.chat-keyboard-open .chat-shell{
    border-radius:0!important;
    border-left:0!important;
    border-right:0!important;
  }

  body.messages-page.chat-keyboard-open .chat-product{
    min-height:54px;
  }

  body.messages-page.chat-keyboard-open .chat-composer-wrap{
    position:relative!important;
    bottom:auto!important;
    padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
  }

  body.messages-page.chat-keyboard-open .chat-messages{
    padding-bottom:14px!important;
  }
}


/* ===== v2.23 compact consistent toggle controls ===== */

/* All public switch-style controls use one compact component.
   !important is intentional here: mobile .field input rules must
   never stretch a checkbox that is being used as a toggle. */
.switch{
  display:inline-flex!important;
  align-items:center!important;
  gap:10px!important;
  width:auto!important;
  max-width:100%;
  min-height:28px;
  cursor:pointer;
}

.switch input[type="checkbox"],
.profile-toggle-input{
  -webkit-appearance:none!important;
  appearance:none!important;
  box-sizing:border-box!important;
  flex:0 0 42px!important;
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  height:24px!important;
  min-height:24px!important;
  max-height:24px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:#c8d0da!important;
  box-shadow:inset 0 0 0 1px rgba(42,59,78,.08)!important;
  position:relative!important;
  vertical-align:middle!important;
  cursor:pointer!important;
  outline:none!important;
  transition:background .16s ease, box-shadow .16s ease!important;
}

.switch input[type="checkbox"]::before,
.profile-toggle-input::before{
  content:""!important;
  position:absolute!important;
  left:2px!important;
  top:2px!important;
  width:20px!important;
  height:20px!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 1px 4px rgba(0,0,0,.22)!important;
  transform:translateX(0)!important;
  transition:transform .16s ease!important;
}

.switch input[type="checkbox"]:checked,
.profile-toggle-input:checked{
  background:#1767d9!important;
}

.switch input[type="checkbox"]:checked::before,
.profile-toggle-input:checked::before{
  left:2px!important;
  transform:translateX(18px)!important;
}

.switch input[type="checkbox"]:focus-visible,
.profile-toggle-input:focus-visible{
  box-shadow:0 0 0 3px rgba(23,103,217,.18)!important;
}

.switch input[type="checkbox"]:disabled,
.profile-toggle-input:disabled{
  opacity:.55!important;
  cursor:not-allowed!important;
}

.switch>span{
  min-width:0;
  line-height:1.3;
}

/* Explicitly defeat the old mobile field height rule. */
@media(max-width:760px){
  .field .switch{
    align-items:center!important;
  }
  .field .switch input[type="checkbox"]{
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    height:24px!important;
    min-height:24px!important;
    max-height:24px!important;
  }
}


/* ===== v2.24 frontend audit: accessibility / consent readiness ===== */
.form-privacy-note{margin:10px 0 0;color:#657086;font-size:10px;line-height:1.45}
.form-privacy-note a{color:#0b5ee8;font-weight:750;text-decoration:underline;text-underline-offset:2px}
input::placeholder,textarea::placeholder{color:#657086;opacity:1}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline:3px solid rgba(11,94,232,.28)!important;
  outline-offset:2px!important
}
@media(max-width:760px){
  .icon-btn,.mobile-chat-back,.chat-attach-btn,.chat-send-btn,.chat-image-remove,.chat-jump-bottom{
    min-width:44px;min-height:44px
  }
}


/* ===== v2.25 category routing ===== */
.filter-chip.route-locked{
  padding-right:10px;
}
.filter-panel select[data-route-locked="1"]{
  background-color:#f4f7fa;
  color:#506176;
  cursor:not-allowed;
}


/* ===== v2.26 seller profile mobile layout fix ===== */

.seller-profile-info{
  min-width:0;
  display:grid;
  gap:7px;
}
.seller-profile-title-row{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.seller-profile-name{
  margin:0!important;
  min-width:0;
  font-size:24px!important;
  line-height:1.15;
}
.seller-profile-badges{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.seller-profile-badges .trust-email{
  margin-left:0!important;
}
.seller-profile-meta,
.seller-profile-status{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  color:#657086;
  font-size:12px;
  line-height:1.4;
}
.seller-profile-status{
  color:#33465b;
}
.seller-online-status{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#26754f;
  font-weight:800;
}
.seller-online-status .online-dot{
  position:static!important;
  display:inline-block!important;
  width:8px!important;
  height:8px!important;
  min-width:8px!important;
  min-height:8px!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#37a86c!important;
  box-shadow:none!important;
}
.seller-meta-separator{
  color:#9aa4b1;
}

.seller-primary-actions{
  flex:0 0 auto;
}
.seller-primary-actions .seller-contact-action{
  white-space:nowrap;
}

.seller-secondary-actions{
  width:100%;
}
.seller-follow-action{
  min-width:160px;
}
.seller-text-action{
  min-height:38px;
  padding:0 10px;
  border:0;
  background:transparent;
  color:#53667a;
  font-size:11px;
  font-weight:750;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.seller-text-action:hover{
  color:#1f5e9d;
  background:#f6f8fa;
  border-radius:8px;
}

@media(max-width:760px){
  .profile-cover{
    grid-template-columns:58px minmax(0,1fr)!important;
    gap:12px!important;
    padding:14px!important;
  }

  .seller-profile-info{
    grid-column:2;
    min-width:0;
    gap:6px;
  }

  .seller-profile-title-row{
    align-items:flex-start;
  }

  .seller-profile-name{
    font-size:20px!important;
    line-height:1.12!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }

  .seller-profile-title-row .verified-info-btn{
    flex:0 0 28px;
    margin-top:1px;
  }

  .seller-profile-badges{
    gap:5px;
  }

  .seller-profile-badges .badge{
    margin-top:0!important;
    height:22px;
    padding:0 7px;
    font-size:8.5px;
    letter-spacing:.02em;
  }

  .seller-profile-meta,
  .seller-profile-status{
    font-size:10.5px;
    line-height:1.35;
    gap:4px;
  }

  .seller-profile-status{
    display:flex;
    align-items:center;
  }

  .seller-primary-actions{
    grid-column:1/-1!important;
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)!important;
    gap:8px!important;
    margin:2px 0 0!important;
  }

  .seller-primary-actions .seller-contact-action{
    width:100%!important;
    min-width:0!important;
    height:46px!important;
    padding:0 10px!important;
    font-size:11.5px!important;
    line-height:1.15!important;
    white-space:normal!important;
    text-align:center!important;
  }

  .seller-primary-actions .seller-contact-action .ico{
    flex:0 0 18px;
    width:18px;
    height:18px;
  }

  .seller-secondary-actions{
    grid-column:1/-1!important;
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:6px!important;
    margin-top:2px!important;
  }

  .seller-secondary-actions .seller-follow-action{
    grid-column:1/-1;
    width:100%!important;
    height:42px!important;
    min-width:0!important;
    margin:0!important;
    font-size:11px!important;
  }

  .seller-secondary-actions .seller-text-action{
    width:100%;
    min-height:38px;
    font-size:10.5px;
    border:1px solid #dce3ea;
    border-radius:8px;
    background:#fff;
  }

  /* Retired duplicate status block; guard against stale cached markup. */
  .seller-presence-profile{
    display:none!important;
  }
}


/* ===== v2.27 archived conversations fix ===== */

/* The generic .conversation {display:flex} rule used to override the
   HTML hidden attribute. Hidden chat rows must always stay hidden. */
.conversation[hidden],
.conversation-list [data-conversation-state][hidden],
.conversation-empty[hidden]{
  display:none!important;
}

.conversation-empty{
  padding:34px 18px;
  text-align:center;
  color:#657086;
}
.conversation-empty strong{
  display:block;
  margin-bottom:5px;
  color:#2e4055;
  font-size:12px;
}
.conversation-empty span{
  display:block;
  font-size:10px;
  line-height:1.45;
}

.conversation-tab{
  cursor:pointer;
}


/* ===== v2.28 hard category scope ===== */
body[data-landing-kind="category"] .listing-row[data-category-scope-hidden="1"]{
  display:none!important;
}


/* ===== v2.29 archived chat semantics ===== */
.archived-chat-banner[hidden]{display:none!important}
.archived-chat-banner{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  padding:8px 12px;
  border-bottom:1px solid #dfe6ed;
  background:#f6f8fa;
  color:#52657a;
  font-size:9.5px;
  line-height:1.35;
}
.archived-chat-banner strong{
  color:#31465b;
  font-size:10px;
}


/* ===== v2.30 final frontend cleanup ===== */
.logo-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
}
.logo-link img{display:block}

/* Keep the page itself from creating accidental horizontal scroll.
   Components that intentionally scroll horizontally keep their own overflow. */
html,body{
  max-width:100%;
  overflow-x:clip;
}
img,video,canvas{
  max-width:100%;
}
svg{
  max-width:100%;
}
pre,code{
  max-width:100%;
  overflow-wrap:anywhere;
}


/* ===== v2.31 category image fit fix ===== */
.home-category-grid .cat-card{
  overflow:hidden;
}
.home-category-grid .cat-icon{
  width:100%!important;
  height:84px!important;
  padding:8px!important;
  margin:0!important;
  border:0!important;
  border-radius:12px!important;
  background:#f5f7fa!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.home-category-grid .cat-icon img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:transparent!important;
}
@media(max-width:760px){
  .home-category-grid .cat-icon{
    height:64px!important;
    padding:6px!important;
    border-radius:10px!important;
  }
}
@media(max-width:390px){
  .home-category-grid .cat-icon{
    height:58px!important;
    padding:5px!important;
  }
}


/* ===== v2.39 price history consistency ===== */
.price-history-popover-list>div{
  grid-template-columns:1fr auto 18px;
  align-items:center;
}
.price-history-popover-list>div.is-current{
  background:#f7fafc;
  margin:0 -8px;
  padding-left:8px;
  padding-right:8px;
  border-radius:7px;
}
.price-history-current{
  display:block;
  margin-top:2px;
  color:#657086;
  font-size:8.5px;
  font-weight:750;
}
.price-history-change{
  justify-self:end;
  font-style:normal;
  font-weight:900;
  font-size:12px;
}
.price-history-change.down{color:#16834f}
.price-history-change.up{color:#b43a35}
.price-history-change.same{color:#8792a1}


/* ===== v2.40 real-data-only cleanup ===== */
.badge-seller-type{
  background:#eef2f6;
  color:#4c5d70;
  border:1px solid #d9e0e8;
}
.seller-type-inline{
  display:inline-flex;
  align-items:center;
  color:#657086;
  font-size:12px;
}
.notifications-empty-state{margin:10px 0}


/* v2.41 monetization */
.market-promo-page{max-width:1050px;margin:0 auto}.market-promo-page>h2{font-size:20px;margin:26px 0 12px}.market-section-gap{margin-top:34px!important}
.market-wallet{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#0b1f42;color:#fff;border-radius:14px;padding:16px 18px;margin:18px 0 24px}.market-wallet-title strong{display:block;font-size:15px}.market-wallet-title span{color:#b7c4d8;font-size:11px}.market-wallet-values{display:flex;gap:16px;flex-wrap:wrap;justify-content:flex-end}.market-wallet-values>div{min-width:70px;text-align:center}.market-wallet-values strong{display:block;font-size:20px}.market-wallet-values span{display:block;color:#b7c4d8;font-size:10px;margin-top:2px}.market-promo-card{display:flex;flex-direction:column;min-height:250px}.market-promo-card>p{color:var(--muted);font-size:12px;min-height:44px}.market-promo-card .primary-btn,.market-promo-card .secondary-btn{margin-top:auto;justify-content:center}.market-promo-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.market-promo-head h1,.market-promo-head h3{margin:0}.market-promo-badge{display:inline-flex;align-items:center;height:24px;border-radius:999px;padding:0 8px;background:#e8f1ff;color:#1767d9;font-size:10px;font-weight:900}.market-promo-price{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}.promo-current-price{font-size:26px;font-weight:850;color:#101c32}.promo-old-price{text-decoration:line-through;color:#8b94a5;font-size:13px}.promo-validity{font-size:11px;color:var(--muted);margin-top:-4px;margin-bottom:10px}.promo-balance-line{font-size:11px;color:var(--muted);margin:0 0 12px}
.checkout-shell{max-width:620px;margin:30px auto}.checkout-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px;box-shadow:var(--shadow)}.checkout-card>p{color:var(--muted)}.checkout-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}.checkout-total strong{font-size:27px}.checkout-old{text-align:right;color:var(--muted);font-size:12px;text-decoration:line-through;margin-top:2px}.checkout-pay,.checkout-back{width:100%;justify-content:center;margin-top:14px}.checkout-pay:disabled{opacity:.5;cursor:not-allowed}.public-test-box{margin:18px 0 0}
.post-promotion-box{border:1px solid #ccd9ee;background:#f8fbff;border-radius:12px;padding:14px;margin:0 0 16px}.post-promo-title{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:10px}.post-promo-title span{font-size:11px;color:var(--muted)}.post-promo-option{display:flex;align-items:center;gap:10px;padding:11px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;margin-top:8px;cursor:pointer}.post-promo-option.is-selected{border-color:#8db4ef;background:#f1f6ff}.post-promo-option input{width:17px;height:17px}.post-promo-option>span{display:grid;gap:2px;flex:1}.post-promo-option small{color:var(--muted)}.post-promo-option em{font-style:normal;font-size:9px;font-weight:900;color:#1767d9;background:#e8f1ff;border-radius:999px;padding:4px 7px}.post-promo-packages{display:inline-block;margin-top:12px;font-size:12px;font-weight:750;color:var(--blue)}
@media(max-width:760px){.market-wallet{align-items:flex-start;flex-direction:column}.market-wallet-values{width:100%;justify-content:flex-start;display:grid;grid-template-columns:repeat(2,1fr)}.market-wallet-values>div{text-align:left}.checkout-card{padding:18px 15px}.post-promo-title{display:block}.post-promo-title span{display:block;margin-top:3px}}


/* ===== v2.42 featured promotion hierarchy ===== */
[data-featured-promo-section][hidden],
[data-featured-listing][hidden]{display:none!important}
.featured-vip-card{border-color:#efb165}
.featured-top-card{border-color:#9cc0ee}


/* ===== v2.43 simple promotional price display ===== */
.market-promo-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.promo-old-price{order:0;color:#9aa2b0;opacity:.78;font-size:14px;font-weight:600;text-decoration:line-through;text-decoration-thickness:1px}
.promo-current-price{order:1;color:#101c32;font-size:26px;font-weight:850}
.promo-validity{margin-top:-4px;margin-bottom:10px;color:var(--muted);font-size:10.5px}
.checkout-price-pair{display:flex;align-items:baseline;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.checkout-old-price{color:#9aa2b0;opacity:.78;font-size:13px;font-weight:600;text-decoration:line-through;text-decoration-thickness:1px}
.post-promo-buy-price{white-space:nowrap}
.post-promo-old-price{color:#98a1af;opacity:.8;text-decoration:line-through;text-decoration-thickness:1px}
.post-promo-buy-price strong{color:#17243a;font-weight:850}
.post-promo-validity{display:block;margin-top:2px;color:var(--muted);font-size:9.5px}


/* ===== v2.44 monetization business rules ===== */
.listing-row.top{border-color:#bfd4ef;box-shadow:0 6px 16px rgba(23,103,217,.045)}
.ad-promotion-status{display:flex;align-items:center;gap:7px;margin-top:5px;color:#526278;font-size:10.5px;font-weight:700}
.ad-bump-status{font-weight:650;color:#66758a}
.overflow-menu-item.is-disabled{color:#8a94a3;background:#f7f8fa;cursor:not-allowed;pointer-events:none}
.is-promo-blocked{opacity:.72}
.is-promo-blocked .primary-btn:disabled{cursor:not-allowed;opacity:.65}
.promo-active-lock{display:grid;gap:3px;margin:12px 0 16px}
.payment-failed-card h1{margin-top:0}
.detail-promo-badge{flex:0 0 auto}
.listing-title-row{flex-wrap:wrap}

/* ===== v2.45 FREE BETA bonus campaign ===== */
.beta-bonus-card .beta-chip{margin-left:auto}
.beta-bonus-remaining{font-size:13px;color:#44536a;margin:8px 0}
.beta-bonus-remaining strong{font-size:20px;color:#17243a}
.beta-choose-listing{margin-top:14px}
.post-promo-option em{font-style:normal;font-size:9px;font-weight:900;color:#1767d9}

/* ===== v2.47 promotions account and email change ===== */
.promotion-account-card{overflow:hidden}
.promotion-account-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:15px 0;
  border-bottom:1px solid var(--line);
  color:inherit;
  text-decoration:none;
}
.promotion-account-row:last-child{border-bottom:0}
.promotion-account-row>div{display:grid;gap:3px;min-width:0}
.promotion-account-row strong{font-size:14px;color:#17243a}
.promotion-account-row span{font-size:11px;color:var(--muted)}
.promotion-active-row:hover{background:#fafbfd}
.promotion-empty-state{display:grid;gap:5px;padding:18px 0}
.promotion-empty-state.compact{padding:12px 0}
.promotion-empty-state strong{font-size:13px;color:#26354c}
.promotion-empty-state span{font-size:11px;color:var(--muted)}
.promotion-account-footer-link{
  display:inline-block;
  margin-top:12px;
  font-size:12px;
  font-weight:750;
  text-decoration:none;
}
.text-vip{color:#6b3fd1}
.text-top{color:#1767d9}
.security-email-change-form{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:center}
.security-email-change-status{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f8fafc;
  color:#526278;
  font-size:11px;
  line-height:1.45;
}
@media(max-width:720px){
  .security-email-change-form{grid-template-columns:1fr}
  .security-email-change-form .secondary-btn{width:100%;justify-content:center}
}

/* ===== v2.48 promotion inventory hub ===== */
.promotion-buy-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px;
  margin:0 0 16px;
  border:1px solid #d7e1ef;
  border-radius:14px;
  background:#f8fbff;
}
.promotion-buy-strip[hidden]{display:none!important}
.promotion-buy-strip>div{display:grid;gap:3px}
.promotion-buy-strip strong{font-size:14px;color:#17243a}
.promotion-buy-strip span{font-size:11px;color:var(--muted)}
.promotion-account-note{font-size:11px;color:var(--muted);margin:-2px 0 8px}
.promotion-inventory-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:14px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.promotion-inventory-row:last-child{border-bottom:0}
.promotion-inventory-copy{display:grid;gap:3px;min-width:0}
.promotion-inventory-copy>strong{font-size:14px;color:#17243a}
.promotion-inventory-copy small{font-size:10.5px;color:var(--muted)}
.promotion-inventory-copy .beta-chip{width:max-content;margin-bottom:2px}
.promotion-inventory-stats{display:flex;align-items:center;gap:16px}
.promotion-inventory-stats>div{display:grid;justify-items:center;min-width:46px}
.promotion-inventory-stats strong{font-size:18px;line-height:1;color:#17243a}
.promotion-inventory-stats span{font-size:9.5px;color:var(--muted);margin-top:3px}
.promotion-history-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.promotion-history-row:last-child{border-bottom:0}
.promotion-history-row>div{display:grid;gap:3px}
.promotion-history-row strong{font-size:12px;color:#26354c}
.promotion-history-row span,.promotion-history-row small{font-size:10px;color:var(--muted)}
@media(max-width:720px){
  .promotion-buy-strip{align-items:stretch;flex-direction:column}
  .promotion-buy-strip .primary-btn{width:100%;justify-content:center}
  .promotion-inventory-row{grid-template-columns:minmax(0,1fr) auto}
  .promotion-inventory-row>.mini-btn{grid-column:1/-1;width:100%;justify-content:center}
  .promotion-inventory-stats{gap:10px}
}

/* ===== v2.49 promotions page cleanup ===== */
.promotion-overview-card{
  display:grid;
  grid-template-columns:1fr auto 1fr auto;
  align-items:center;
  gap:14px;
  margin:4px 0 16px;
  padding:14px 16px;
  border:1px solid #dce4ec;
  border-radius:14px;
  background:#fff;
}
.promotion-overview-stat{display:grid;gap:2px}
.promotion-overview-stat span{font-size:10px;color:var(--muted);font-weight:700}
.promotion-overview-stat strong{font-size:24px;line-height:1;color:#17243a}
.promotion-overview-divider{width:1px;height:34px;background:#e4e9ef}
.promotion-buy-cta{min-height:38px;padding:0 14px}
.promotion-buy-cta[hidden]{display:none!important}

.promotion-account-card{
  margin-top:14px;
  overflow:hidden;
}
.promotion-card-body{padding:4px 16px 14px}
.promotion-card-body .promotion-account-footer-link{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #edf1f4;
}
.promotion-empty-box{
  min-height:84px;
  align-content:center;
  padding:16px 0;
}
.promotion-empty-box.compact{min-height:72px}
.promotion-empty-box strong{font-size:13px}
.promotion-empty-box span{
  max-width:560px;
  line-height:1.45;
}
.promotion-account-row,
.promotion-inventory-row,
.promotion-history-row{
  padding-left:0;
  padding-right:0;
}
@media(max-width:720px){
  .promotion-overview-card{
    grid-template-columns:1fr auto 1fr;
    gap:12px;
    padding:13px 14px;
  }
  .promotion-overview-stat strong{font-size:22px}
  .promotion-buy-cta{
    grid-column:1/-1;
    width:100%;
    justify-content:center;
  }
  .promotion-card-body{padding:4px 14px 13px}
}


/* ===== v2.50 pre-backend completion pass ===== */

/* Public FREE BETA early-user bonus */
.beta-public-section{padding:12px 0 0}
.beta-public-banner{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border:1px solid #dce5f0;
  border-radius:14px;
  background:#f8fbff;
}
.beta-public-mark,
.beta-register-mark{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:30px;
  padding:0 8px;
  border-radius:8px;
  background:#1767d9;
  color:#fff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.04em;
}
.beta-public-copy,
.beta-register-banner>div:last-child{display:grid;gap:2px}
.beta-public-copy strong,
.beta-register-banner strong{font-size:12px;color:#203149}
.beta-public-copy span,
.beta-register-banner span{font-size:10px;line-height:1.4;color:#657086}
.beta-public-action{white-space:nowrap}

.beta-register-banner{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  margin:12px 0 16px;
  padding:11px 12px;
  border:1px solid #dce5f0;
  border-radius:12px;
  background:#f8fbff;
}
.beta-register-banner[hidden],
.beta-public-section[hidden]{display:none!important}

/* Registration: trader-specific fields only when needed */
.register-trader-fields{
  display:grid;
  gap:12px;
  padding:13px;
  border:1px solid #e2e8ef;
  border-radius:12px;
  background:#fafbfd;
}
.register-trader-fields[hidden]{display:none!important}
.register-trader-head{display:grid;gap:3px}
.register-trader-head strong{font-size:12px;color:#26364b}
.register-trader-head span{font-size:10px;line-height:1.4;color:#657086}
.auth-form .check a{font-weight:750}

/* Clean truthful security page */
.security-clean-card:empty{display:none}

/* Full ad preview */
.ad-preview-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-top:12px;
}
.ad-preview-title-row h2{
  margin:3px 0 0;
  font-size:18px;
  line-height:1.2;
  color:#17243a;
}
.ad-preview-category{
  font-size:10px;
  color:#657086;
  font-weight:700;
}
.ad-preview-title-row .preview-price{
  flex:0 0 auto;
  margin:0;
  font-size:22px;
}
.ad-preview-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:10px 0 14px;
}
.ad-preview-meta span{
  padding:5px 8px;
  border-radius:8px;
  background:#f1f4f7;
  color:#526278;
  font-size:9.5px;
  font-weight:700;
}
.ad-preview-section{
  padding:12px 0;
  border-top:1px solid #edf1f4;
}
.ad-preview-section strong{font-size:11px;color:#26354a}
.ad-preview-section p{
  margin:5px 0 0;
  color:#526278;
  font-size:11px;
  line-height:1.5;
  white-space:pre-wrap;
}
.ad-preview-contact{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:12px 0;
  border-top:1px solid #edf1f4;
}
.ad-preview-contact>div{display:grid;gap:2px}
.ad-preview-contact span{font-size:9px;color:#657086}
.ad-preview-contact strong{font-size:11px;color:#26354a}
.ad-preview-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding-top:12px;
  border-top:1px solid #edf1f4;
}
.ad-preview-actions .primary-btn,
.ad-preview-actions .secondary-btn{justify-content:center;width:100%}

@media(max-width:720px){
  .beta-public-banner{
    grid-template-columns:auto minmax(0,1fr);
  }
  .beta-public-action{
    grid-column:1/-1;
    width:100%;
    justify-content:center;
  }
  .ad-preview-contact{grid-template-columns:1fr}
  .ad-preview-actions{grid-template-columns:1fr}
}


/* ===== v2.52 registration polish ===== */
.register-password-requirements{
  display:block;
  margin-top:1px;
  color:#657086;
}
.register-password-status{
  display:block;
  margin-top:1px;
  font-size:10.5px;
  font-weight:700;
  line-height:1.35;
}
.register-password-status[hidden]{display:none!important}
.register-password-status.is-ok{color:#137249}
.register-password-status.is-error{color:#b3261e}

.register-legal-consent{
  display:grid;
  grid-template-columns:20px minmax(0,1fr);
  align-items:start;
  gap:10px;
  padding:12px 13px;
  border:1px solid #e0e6ee;
  border-radius:10px;
  background:#fafbfd;
  color:#465268;
  font-size:12.5px;
  line-height:1.5;
  cursor:pointer;
}
.register-legal-consent input{
  width:18px!important;
  height:18px!important;
  margin:1px 0 0;
  flex:0 0 18px;
  accent-color:var(--blue);
}
.register-legal-consent a{
  color:var(--blue);
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:2px;
}
.register-legal-consent a:hover{color:var(--blue2)}

@media(max-width:760px){
  .register-legal-consent{
    padding:11px 12px;
    font-size:12px;
    gap:9px;
  }
}


/* v2.53 — consistent required-field markers and accessible security form labels */
.required-label::after,
.required-prompt::after,
.required-consent>span::after{
  content:" *";
  color:#c93535;
  font-weight:900;
}
.required-label,.required-prompt{position:relative}
.required-prompt{display:inline-block}
.required-consent>span::after{white-space:pre}
.security-field-wrap{display:grid;gap:5px;min-width:0}
.security-input-label{font-size:11px;font-weight:800;color:#39455b;line-height:1.2}
.security-field-wrap>input{width:100%;min-width:0}
.security-inline .security-field-wrap{width:100%}
@media (max-width:720px){
  .security-input-label{font-size:11px}
}

.security-field-hint{font-size:10px;color:#657086;line-height:1.35}
/* Future-proof: native required fields inside standard .field blocks also get a marker. */
.field:has(>input[required])>label:not(.required-label)::after,
.field:has(>select[required])>label:not(.required-label)::after,
.field:has(>textarea[required])>label:not(.required-label)::after{
  content:" *";
  color:#c93535;
  font-weight:900;
}


/* v2.54: reviews, reserved status, distance search, SEO landing pages and security UI */
.distance-filter-box{margin-top:10px}.distance-filter-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.distance-locate-btn{white-space:nowrap}.distance-filter-hint{font-size:12px;line-height:1.35;color:var(--muted);margin-top:7px}.listing-distance{font-size:12px;color:var(--muted);font-weight:700;margin-left:6px}.listing-row.is-reserved{position:relative}.listing-row.is-reserved::after{content:"ЗАПАЗЕН";position:absolute;top:14px;right:14px;background:#fff3cd;color:#8a5b00;border:1px solid #f2d27a;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;letter-spacing:.03em}.listing-status-banner{grid-column:1/-1;border:1px solid #f2d27a;background:#fff8df;color:#6b4c00;border-radius:14px;padding:13px 16px;font-weight:800;margin-bottom:2px}.listing-status-banner[hidden]{display:none}.reserved-contact-disabled{opacity:.48;pointer-events:none}.reserved-status-chip{display:inline-flex;align-items:center;gap:5px;background:#fff3cd;color:#7b5500;border:1px solid #f1d47c;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:900;margin-left:6px}
.seller-rating-inline{display:inline-flex;align-items:center;gap:4px;color:#7a5700;font-weight:850;text-decoration:none}.listing-seller-rating{margin-top:5px;font-size:13px}.seller-reviews-panel{margin-top:18px}.seller-reviews-head{align-items:flex-start;gap:14px}.seller-reviews-head p{margin:4px 0 0}.seller-rating-summary{display:grid;grid-template-columns:160px minmax(220px,420px);gap:26px;padding:18px 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.seller-rating-score{display:flex;flex-direction:column;align-items:center;justify-content:center}.seller-rating-score>strong{font-size:42px;line-height:1}.seller-rating-stars{color:#d29b00;letter-spacing:2px;margin:7px 0 4px}.seller-rating-score small{color:var(--muted)}.rating-bars{display:grid;gap:7px}.rating-bars>div{display:grid;grid-template-columns:18px 1fr 26px;gap:8px;align-items:center;font-size:12px}.rating-bars i{height:7px;background:#edf0f3;border-radius:999px;overflow:hidden}.rating-bars b{display:block;height:100%;background:#d29b00;border-radius:999px}.seller-review-list{display:grid;padding:4px 20px 16px}.seller-review{padding:16px 0;border-bottom:1px solid var(--line)}.seller-review:last-child{border-bottom:0}.seller-review-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.seller-review-name{font-weight:850}.seller-review-stars{color:#d29b00;letter-spacing:1px}.seller-review-meta{font-size:12px;color:var(--muted);margin-top:2px}.seller-review p{margin:9px 0 0;line-height:1.5}.review-modal{position:fixed;inset:0;z-index:220;display:grid;place-items:center;padding:18px;background:rgba(10,22,40,.52)}.review-modal[hidden]{display:none}.review-modal-card{width:min(520px,100%);background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.24);padding:20px}.review-modal-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.review-modal-head h2{margin:0}.review-close{border:0;background:none;font-size:28px;line-height:1;cursor:pointer}.review-stars-input{display:flex;gap:8px;margin:18px 0 12px}.review-stars-input button{border:0;background:transparent;color:#c4c8ce;font-size:34px;cursor:pointer;padding:0}.review-stars-input button.active{color:#d29b00}.review-modal textarea{width:100%;min-height:100px;resize:vertical}.review-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.deal-complete-chip{display:inline-flex;align-items:center;border-radius:999px;background:#e7f7ee;color:#146c3b;padding:5px 9px;font-size:12px;font-weight:800;margin-left:8px}
.notice-list .notification-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:start;padding:16px 18px;border-bottom:1px solid var(--line)}.notice-list .notification-item:last-child{border-bottom:0}.notification-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#eef4ff;font-size:18px}.notification-copy strong{display:block}.notification-copy p{margin:4px 0;color:var(--muted);line-height:1.4}.notification-copy small{color:var(--muted)}.notification-item.is-unread{background:#f8fbff}.notification-price-drop .notification-icon{background:#eaf8ef;color:#13723c}.notification-item[hidden]{display:none}
.seo-home-links{padding:34px 0;background:#edf2f7;border-top:1px solid var(--line)}.seo-home-links h2,.seo-crosslinks h2{margin:0 0 14px}.seo-link-grid{display:flex;flex-wrap:wrap;gap:9px}.seo-link-grid a,.seo-query-chips a{display:inline-flex;padding:9px 13px;border:1px solid var(--line);border-radius:999px;background:#fff;font-weight:800;color:var(--ink);text-decoration:none}.seo-landing{padding-top:26px}.seo-hero-card{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:30px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(135deg,#f7f9fc,#eef4fa);margin-top:14px}.seo-hero-card h1{font-size:clamp(28px,5vw,46px);line-height:1.05;margin:7px 0 12px}.seo-hero-card p{max-width:760px;color:var(--muted);font-size:17px;line-height:1.55;margin:0}.seo-eyebrow{font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--blue)}.seo-category-copy,.seo-crosslinks{padding:30px 0}.seo-category-copy h2{margin:0 0 10px}.seo-category-copy p{max-width:900px;line-height:1.6;color:var(--muted)}.seo-query-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.security-status-pill,.security-current-pill{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:850;background:#eef1f5;color:#566170}.security-status-pill.is-on{background:#e8f7ee;color:#17673b}.security-backup-codes{margin-top:14px;padding:14px;border:1px dashed var(--line);border-radius:12px;background:#fafbfc}.security-backup-codes strong{display:block;margin-bottom:8px}.security-code-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.security-session-list{display:grid}.security-session-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:14px 0;border-top:1px solid var(--line)}.security-session-row div{display:grid;gap:3px}.security-session-row span{color:var(--muted);font-size:13px}
@media(max-width:720px){.seller-rating-summary{grid-template-columns:1fr;gap:16px}.seller-reviews-head{display:grid}.seller-reviews-head .secondary-btn{width:100%}.seo-hero-card{display:grid;padding:22px}.seo-hero-card .primary-btn{width:100%;justify-content:center}.distance-filter-row{grid-template-columns:1fr}.distance-locate-btn{width:100%}.notice-list .notification-item{grid-template-columns:38px minmax(0,1fr)}.notification-item>a{grid-column:2}.security-session-row{align-items:flex-start}.security-code-grid{grid-template-columns:1fr}}


/* ===== v2.55 seller-only completed-sale modal + robust chat attachment ===== */
.chat-attach-btn{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}
.chat-attach-btn:focus-visible{outline:3px solid rgba(23,103,217,.22);outline-offset:2px}
.deal-modal{position:fixed;inset:0;z-index:260;display:grid;place-items:center;padding:18px;background:rgba(10,22,40,.56)}
.deal-modal[hidden]{display:none!important}
.deal-modal-card{width:min(560px,100%);max-height:min(760px,90vh);overflow:auto;background:#fff;border-radius:18px;box-shadow:0 26px 80px rgba(0,0,0,.28);padding:20px}
.deal-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);padding-bottom:14px}
.deal-modal-head h2{margin:0 0 4px;font-size:20px}
.deal-modal-head p{margin:0}
.deal-modal-close{display:grid;place-items:center;width:36px;height:36px;border:1px solid #dbe2ea;border-radius:10px;background:#fff;color:#526177;font-size:24px;line-height:1;cursor:pointer}
.deal-modal-note{margin:14px 0;padding:11px 12px;border:1px solid #d9e7f8;border-radius:10px;background:#f5f9ff;color:#35516f;font-size:12px;line-height:1.45}
.deal-buyer-list{display:grid;gap:8px;margin:0;padding:0;border:0}
.deal-buyer-list legend{font-size:12px;font-weight:850;color:#34445a;margin-bottom:8px}
.deal-buyer-option{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) 22px;align-items:center;gap:10px;padding:10px 11px;border:1px solid #dfe5ec;border-radius:12px;background:#fff;cursor:pointer}
.deal-buyer-option:hover{border-color:#b9c9dc;background:#fbfdff}
.deal-buyer-option:has(input:checked){border-color:#1767d9;background:#f4f8ff;box-shadow:0 0 0 1px rgba(23,103,217,.08)}
.deal-buyer-option>input{position:absolute;opacity:0;pointer-events:none}
.deal-buyer-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#eaf1f8;color:#2d5378;font-size:11px;font-weight:900}
.deal-buyer-copy{display:grid;gap:2px;min-width:0}
.deal-buyer-copy strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#24354a;font-size:13px}
.deal-buyer-copy small{color:#738096;font-size:10px}
.deal-buyer-radio{width:19px;height:19px;border:2px solid #aab5c2;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 4px #fff}
.deal-buyer-option:has(input:checked) .deal-buyer-radio{border-color:#1767d9;background:#1767d9}
.deal-confirm-check{display:flex;align-items:flex-start;gap:9px;margin-top:15px;padding:11px 12px;border-radius:10px;background:#f7f9fb;color:#46566b;font-size:12px;line-height:1.4;cursor:pointer}
.deal-confirm-check input{margin-top:2px;accent-color:#1767d9}
.deal-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}
.deal-modal-actions button:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:640px){
  .deal-modal{align-items:end;padding:0}
  .deal-modal-card{width:100%;max-height:88vh;border-radius:18px 18px 0 0;padding:17px}
  .deal-modal-actions{display:grid;grid-template-columns:1fr 1fr}
  .deal-modal-actions button{width:100%;justify-content:center}
}

/* v2.56 — real Jump authentication and MFA */
.uredi-mfa-overlay{position:fixed;inset:0;z-index:10000;background:rgba(9,20,38,.58);display:grid;place-items:center;padding:18px}
.uredi-mfa-dialog{width:min(440px,100%);background:#fff;border-radius:18px;padding:24px;box-shadow:0 24px 70px rgba(0,0,0,.25);position:relative}
.uredi-mfa-dialog h2{margin:0 34px 8px 0;font-size:1.35rem}.uredi-mfa-dialog p{margin:0 0 18px;color:var(--muted,#667085)}
.uredi-mfa-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:30px;line-height:1;cursor:pointer;color:#475467}
.uredi-mfa-code{font-size:1.3rem;letter-spacing:.18em;text-align:center}.uredi-mfa-error{min-height:22px;margin-top:10px;color:#b42318;font-size:.92rem}
.uredi-mfa-enroll{display:grid;grid-template-columns:160px 1fr;gap:18px;align-items:center;margin:14px 0 18px}.uredi-mfa-qr{width:160px;height:160px;max-width:100%;background:#fff;border:1px solid #e4e7ec;border-radius:12px;padding:6px}.uredi-mfa-secret{display:block;margin-top:8px;padding:10px;background:#f2f4f7;border-radius:8px;overflow-wrap:anywhere;font-size:.86rem}.uredi-mfa-enroll-actions{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}
@media(max-width:520px){.uredi-mfa-enroll{grid-template-columns:1fr}.uredi-mfa-qr{margin:auto}.uredi-mfa-dialog{padding:20px}}

/* ===== v2.57 desktop density + readable profile ===== */
@media (min-width: 1024px){
  :root{--max:1360px}
  .container{width:min(var(--max),calc(100% - 56px))}
  .page{padding:26px 0 48px}
  .section{padding:24px 0}
  .header-inner{gap:18px}
  .header-search{width:min(430px,34vw)}

  /* Profile hub: use the desktop canvas instead of a narrow mobile-like column. */
  .profile-hub-container{
    width:min(1160px,calc(100% - 56px));
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:20px 22px;
    align-items:start;
  }
  .profile-hub-container>.profile-summary-card,
  .profile-hub-container>.profile-menu-section:last-of-type,
  .profile-hub-container>.profile-logout-btn{
    grid-column:1 / -1;
  }
  .profile-menu-section{margin-top:0}
  .profile-menu-section>h2{
    margin:0 0 10px 2px;
    font-size:15px;
  }
  .profile-summary-top{
    grid-template-columns:78px minmax(0,1fr) auto;
    gap:18px;
    padding:24px 26px;
  }
  .profile-avatar-large{width:78px;height:78px;font-size:23px}
  .profile-eyebrow{font-size:11px;margin-bottom:4px}
  .profile-summary-copy h1{font-size:30px}
  .profile-summary-status{font-size:12px}
  .profile-edit-quick{min-height:40px;padding:0 16px;font-size:12.5px}
  .profile-menu-row{
    grid-template-columns:44px minmax(0,1fr) auto 20px;
    min-height:76px;
    gap:13px;
    padding:13px 16px;
  }
  .profile-menu-icon{width:40px;height:40px;border-radius:10px}
  .profile-menu-icon svg{width:21px;height:21px}
  .profile-menu-copy{gap:3px}
  .profile-menu-copy strong{font-size:14px;line-height:1.25}
  .profile-menu-sub{font-size:11.5px;line-height:1.35}
  .profile-menu-meta{min-width:28px;height:28px;font-size:10.5px}
  .profile-logout-btn{font-size:13px;margin-top:2px}

  /* Profile subpages should feel like desktop pages, not a 760px phone column. */
  .profile-subpage-container{width:min(1040px,calc(100% - 56px))}
  .profile-back{font-size:12.5px;margin-bottom:18px}
  .profile-subpage-head{margin-bottom:18px}
  .profile-subpage-head h1{font-size:30px}
  .profile-subpage-head p{font-size:13px;margin-top:6px}
  .profile-settings-card{margin-top:16px;border-radius:15px}
  .profile-card-title{padding:14px 18px;font-size:11.5px}
  .profile-form-grid{gap:15px;padding:20px}
  .profile-setting-line,.profile-setting-action-row{min-height:72px;padding:14px 18px}
  .profile-setting-line strong,.profile-setting-action-row strong{font-size:13.5px}
  .profile-setting-line span,.profile-setting-action-row span{font-size:11.5px}
  .settings-block{padding:18px}
  .settings-block-title strong{font-size:13.5px}
  .settings-block-title span{font-size:11.5px}
  .data-right-list-row{min-height:92px;padding:17px 18px}
  .data-right-list-row strong{font-size:13.5px}
  .data-right-list-row span{font-size:11.5px;max-width:690px}

  /* Promotions: compact two-column desktop layout with real readable inventory. */
  .profile-subpage-container[data-promotions-profile-root]{
    width:min(1100px,calc(100% - 56px));
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    column-gap:18px;
    align-items:start;
  }
  .profile-subpage-container[data-promotions-profile-root]>.profile-back,
  .profile-subpage-container[data-promotions-profile-root]>.profile-subpage-head,
  .profile-subpage-container[data-promotions-profile-root]>.promotion-overview-card,
  .profile-subpage-container[data-promotions-profile-root]>section.promotion-account-card:nth-of-type(4){
    grid-column:1 / -1;
  }
  .profile-subpage-container[data-promotions-profile-root]>section.promotion-account-card:nth-of-type(2){grid-column:1}
  .profile-subpage-container[data-promotions-profile-root]>section.promotion-account-card:nth-of-type(3){grid-column:2}
  .promotion-overview-card{margin:2px 0 2px;padding:18px 20px;border-radius:15px}
  .promotion-overview-stat span{font-size:11.5px}
  .promotion-overview-stat strong{font-size:30px}
  .promotion-account-card{margin-top:16px}
  .promotion-card-body{padding:6px 18px 16px}
  .promotion-inventory-row{gap:16px;padding:16px 0}
  .promotion-inventory-copy>strong{font-size:14.5px}
  .promotion-inventory-copy small{font-size:11.5px}
  .promotion-inventory-stats strong{font-size:20px}
  .promotion-inventory-stats span{font-size:10.5px}
  .promotion-account-row strong{font-size:14.5px}
  .promotion-account-row span{font-size:11.5px}
  .promotion-history-row strong{font-size:13px}
  .promotion-history-row span,.promotion-history-row small{font-size:11px}
  .promotion-empty-box{min-height:104px}
  .promotion-empty-box strong{font-size:14px}
  .promotion-empty-box span{font-size:11.5px}
}

@media (min-width: 1440px){
  :root{--max:1440px}
  .container{width:min(var(--max),calc(100% - 72px))}
  .profile-hub-container{width:min(1220px,calc(100% - 72px))}
  .profile-subpage-container{width:min(1100px,calc(100% - 72px))}
  .profile-subpage-container[data-promotions-profile-root]{width:min(1160px,calc(100% - 72px))}
}

/* ===== v2.58 real My Ads promotion flow + correctly anchored overflow menus ===== */
.ad-manage{position:relative;overflow:visible;padding-right:66px}
.ad-actions.overflow-actions{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  width:40px!important;
  height:40px!important;
  display:block!important;
  grid-column:auto!important;
  justify-self:auto!important;
  align-self:auto!important;
  z-index:30;
}
.ad-actions.overflow-actions .overflow-trigger{position:relative;z-index:2}
.ad-actions.overflow-actions .overflow-menu{
  top:calc(100% + 6px)!important;
  right:0!important;
  left:auto!important;
  transform:none!important;
  z-index:500!important;
}
.jump-myads-loading{margin:14px 0}
.myads-promo-select-banner{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin:16px 0 4px;padding:14px 16px;border:1px solid #bfd3f5;border-radius:13px;
  background:#f3f7ff;color:#243c61
}
.myads-promo-select-banner strong{display:block;font-size:14px;margin-bottom:2px}
.myads-promo-select-banner span{display:block;font-size:12px;color:#60708a}
.myads-promo-select-banner a{white-space:nowrap}
.ad-manage-main{min-width:0;padding-right:4px}
.ad-manage-main>strong{display:block;font-size:14px;line-height:1.3;padding-right:6px}
.real-ad-meta{margin-top:4px}
.real-ad-promo-status{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:7px;font-size:11px;color:#596b80}
.ad-promo-direct{margin-top:10px;display:inline-flex;min-height:36px}
.ad-promo-direct:disabled{opacity:.55;cursor:not-allowed}
.overflow-menu-item.promo-action{color:#0b5ee8;font-weight:850}
.overflow-menu-item.promo-action::before{content:'★';margin-right:7px;font-size:11px}
.myads-empty-real{margin-top:14px}
.myads-empty-real .primary-btn{margin-top:12px}
@media(max-width:760px){
  .ad-manage{padding-right:58px}
  .ad-actions.overflow-actions{top:10px!important;right:10px!important}
  .ad-actions.overflow-actions .overflow-menu{width:min(220px,calc(100vw - 36px))}
  .myads-promo-select-banner{display:grid;gap:10px}
  .myads-promo-select-banner a{width:100%;justify-content:center}
}

/* ===== v2.59 compact promotion "Използвай" action ===== */
.promotion-inventory-row>.mini-btn{
  width:auto;
  min-width:94px;
  max-width:max-content;
  height:36px;
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  justify-self:end;
  align-self:center;
  white-space:nowrap;
  border-radius:9px;
}
@media(max-width:720px){
  .promotion-inventory-row>.mini-btn{
    grid-column:2;
    grid-row:2;
    width:auto;
    min-width:94px;
    max-width:max-content;
    justify-self:end;
    margin-top:2px;
  }
  .promotion-inventory-copy{grid-row:1 / span 2}
  .promotion-inventory-stats{grid-column:2;grid-row:1;justify-self:end}
}

/* v2.60 — real Jump listings / publish flow */
.jump-post-promotion{margin-top:16px}
.jump-post-promotion .post-promo-option{min-height:58px}
.jump-post-promotion .post-promo-none{margin-top:10px;padding:10px 12px;border:1px dashed var(--line);border-radius:9px;background:#fff;color:var(--muted);font-size:12px}
.jump-post-promotion .post-promo-option>span b{font-size:13px;color:#17243a}
.real-listings-error,.real-detail-loading{border:1px solid var(--line);border-radius:12px;background:#fff;padding:24px;display:grid;gap:5px;color:#334158}
.real-listings-error span{color:var(--muted);font-size:13px}
.real-listing-kicker{display:flex;align-items:center;gap:8px;margin-bottom:4px;min-height:24px}
.real-listing-row .listing-info>a{display:block}
.real-listing-row .listing-right .fav-float{flex:0 0 auto}
.real-listing-detail{max-width:1280px}
.real-gallery-main{position:relative}
.real-gallery-main .gallery-counter{position:absolute;right:10px;bottom:10px;background:rgba(16,28,50,.78);color:#fff;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800}
.real-gallery-thumbs .thumb{padding:0;cursor:pointer;width:100%;appearance:none}
.real-gallery-thumbs .thumb.active{border-color:#1767d9;box-shadow:0 0 0 1px #1767d9 inset}
.real-detail-tags{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.real-detail-location{margin-top:2px;color:var(--muted);font-size:13px;font-weight:650}
.real-listing-detail .description-card p{white-space:pre-line}
.real-listing-detail .seller-phone-bottom{width:100%;margin-top:14px}
.real-chat-only-note{margin-top:8px;color:var(--muted);font-size:11px;line-height:1.35}
.real-ad-title-link{display:inline-block;color:#17243a}
.real-ad-title-link:hover{color:var(--blue)}
.real-ad-promo-status{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:7px;color:var(--muted);font-size:11px}
.ad-promo-direct{margin-top:9px;max-width:max-content}
@media(min-width:1100px){
  .real-listing-detail .detail-grid{grid-template-columns:minmax(0,1.7fr) 380px;gap:32px}
  .real-listing-detail .gallery-main{max-height:680px}
}
@media(max-width:760px){
  .jump-post-promotion .post-promo-option{align-items:flex-start}
  .real-listing-kicker{margin-bottom:2px}
  .real-listing-detail .detail-grid{gap:14px}
  .real-listing-detail .detail-card{padding:16px}
  .real-gallery-thumbs{grid-template-columns:repeat(4,1fr)}
}

/* ===== v2.61 publishing fixes: locked preview + clearer promotion selector ===== */
html.ad-preview-open{overflow:hidden;overscroll-behavior:none}
.ad-preview-modal.open{overscroll-behavior:none;touch-action:none}
.ad-preview-backdrop{touch-action:none}
.ad-preview-sheet{
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
}
.ad-preview-promotion{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:6px 12px;
  align-items:center;
  padding:12px 0;
  border-top:1px solid #edf1f4;
}
.ad-preview-promotion span{font-size:9px;color:#657086}
.ad-preview-promotion strong{font-size:11px;color:#26354a;text-align:right}
.jump-post-promotion{
  border:1px solid #dce5f0;
  border-radius:14px;
  background:#f8fbff;
  padding:14px;
}
.jump-post-promotion .post-promo-title{margin-bottom:10px}
.jump-post-promotion .post-promo-title strong{font-size:14px}
.jump-post-promotion .post-promo-title span{font-size:11px;line-height:1.45}
.jump-post-promotion .post-promo-option{
  border-radius:11px;
  background:#fff;
}
.jump-post-promotion .post-promo-option.is-selected{
  border-color:#1767d9;
  box-shadow:0 0 0 1px rgba(23,103,217,.16) inset;
}
@media(max-width:760px){
  .ad-preview-sheet{max-height:min(88dvh,88vh)}
  .jump-post-promotion{padding:12px}
}


/* ===== v2.62 iOS preview lock ===== */
html.ad-preview-open,
body.ad-preview-open{
  overflow:hidden !important;
  overscroll-behavior:none !important;
  height:100% !important;
}
.ad-preview-modal.open{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100dvh !important;
  overflow:hidden !important;
  overscroll-behavior:none !important;
}
.ad-preview-modal.open .ad-preview-backdrop{
  position:fixed !important;
  inset:0 !important;
}
.ad-preview-modal.open .ad-preview-sheet{
  overscroll-behavior:contain !important;
  -webkit-overflow-scrolling:touch;
}

/* ===== v2.63 desktop density, category alignment and location UX ===== */
.geo-location-active{
  border-color:#9cc5ff !important;
  background:#eef6ff !important;
  color:#174f9f !important;
}
.geo-location-active::before{content:"✓ ";font-weight:900}
.geo-location-busy{opacity:.72;cursor:progress}
.geo-filter-hidden{display:none !important}

/* The old category centering rules used nth-child grid placement. Homepage now
   has its own proper 8-column desktop grid, so every card flows naturally. */
@media (min-width: 761px){
  .home-category-grid{
    grid-template-columns:repeat(8,minmax(0,1fr)) !important;
    max-width:none !important;
    width:100% !important;
    gap:12px !important;
  }
  .home-category-grid .cat-card,
  .home-category-grid .cat-card:nth-child(1),
  .home-category-grid .cat-card:nth-child(2),
  .home-category-grid .cat-card:nth-child(3),
  .home-category-grid .cat-card:nth-child(4),
  .home-category-grid .cat-card:nth-child(5),
  .home-category-grid .cat-card:nth-child(6),
  .home-category-grid .cat-card:nth-child(7),
  .home-category-grid .cat-card:nth-child(8){
    grid-column:auto !important;
    grid-row:auto !important;
    width:auto !important;
    max-width:none !important;
    justify-self:stretch !important;
  }
}

/* Desktop should use the monitor instead of looking like a stretched mobile page. */
@media (min-width: 1024px){
  :root{--max:1520px}
  body{font-size:15.5px;line-height:1.52}
  .container{width:min(var(--max),calc(100% - 48px))}
  .home-hero .container{max-width:var(--max);width:min(var(--max),calc(100% - 48px))}

  .site-header{height:76px}
  .header-inner{gap:20px}
  .brand-mark,.brand-mark img{width:48px;height:48px}
  .brand-mark{flex-basis:48px}
  .main-nav{font-size:15px;gap:26px}
  .header-search{width:min(520px,38vw)}
  .header-search input{height:44px;font-size:15px;padding-left:15px}
  .header-search button{height:40px;width:42px}
  .primary-btn,.secondary-btn,.ghost-btn,.danger-btn{height:44px;font-size:14px;padding:0 18px}
  .icon-btn{width:42px;height:42px}

  .page{padding:22px 0 42px}
  .section{padding:22px 0}
  .page-title{font-size:32px}
  .page-subtitle{font-size:16px}
  .section-title{font-size:24px}
  .section-head{margin-bottom:14px}
  .small{font-size:13px}

  .home-hero{padding:18px 0 18px}
  .home-hero-card{min-height:285px;grid-template-columns:1.22fr .78fr}
  .home-hero-copy{padding:34px 38px}
  .home-hero h1{font-size:40px;max-width:760px}
  .home-hero p{font-size:16px;max-width:680px}
  .home-hero-visual{min-height:285px}
  .category-heading{margin:20px 2px 12px}
  .category-heading h2{font-size:24px}
  .category-heading p{font-size:14px}
  .category-heading>a{font-size:13px}
  .home-category-grid .cat-card{min-height:138px;font-size:14px}
  .home-category-grid .cat-icon{height:94px}
  .home-quick-links{margin-top:12px}
  .quick-pill{height:42px;font-size:14px}

  .product-grid{gap:18px}
  .card-body{padding:16px}
  .product-title{font-size:16px}
  .product-specs{font-size:13px}
  .price{font-size:22px}
  .location{font-size:13px}
  .seller-line{font-size:12.5px}

  .content-layout{grid-template-columns:290px minmax(0,1fr);gap:28px}
  .filter-panel{padding:19px;top:96px;border-radius:14px}
  .filter-title{font-size:16px;margin-bottom:8px}
  .filter-group{padding:15px 0}
  .filter-label{font-size:14px;margin-bottom:9px}
  .filter-panel select,.filter-panel input{height:42px;font-size:15px;padding:0 11px}
  .check{font-size:14px}
  .mini-btn{height:36px;font-size:13px;padding:0 11px}
  .distance-filter-row{gap:8px}
  .distance-locate-btn{min-width:112px}
  [data-distance-hint]{font-size:12.5px;line-height:1.4;margin-top:8px}

  .results-head h1{font-size:28px}
  .sort-select{height:42px;font-size:14px}
  .listing-list{gap:14px}
  .listing-row{grid-template-columns:240px minmax(0,1fr) 175px;gap:20px;min-height:190px;padding:14px}
  .listing-row img{width:240px;height:162px}
  .listing-title{font-size:19px}
  .listing-features{font-size:14px;gap:5px}
  .listing-right .price{font-size:24px}
  .listing-location{font-size:13px}
  .breadcrumb{font-size:13px;margin-bottom:16px}

  .detail-grid{grid-template-columns:minmax(0,1.7fr) 390px;gap:32px}
  .detail-card h1{font-size:26px}
  .detail-price{font-size:34px}
  .spec-row{font-size:14px}
  .description-card{font-size:15px}

  .panel-body{font-size:15px}
  .form-grid{gap:16px}
  .field label{font-size:14px}
  .field input,.field select,.field textarea{font-size:15px}
  .tips-card{font-size:14px}
  .tips-card h3{font-size:16px}
  .tip{font-size:13px}

  .footer{padding:28px 0 18px}
  .footer-grid{gap:40px}
  .footer h4{font-size:13px}
  .footer a{font-size:13.5px;margin:8px 0}
  .footer .muted.small{font-size:13px;line-height:1.55}
  .footer-bottom{font-size:12.5px;margin-top:20px}
}

@media (min-width: 1440px){
  :root{--max:1600px}
  .container,.home-hero .container{width:min(var(--max),calc(100% - 64px))}
  .home-category-grid .cat-card{min-height:146px}
  .home-category-grid .cat-icon{height:100px}
}


/* ===== v2.64 publishing polish ===== */
body.ad-preview-open{touch-action:none !important;position:fixed !important;width:100% !important;}
.ad-preview-modal.open{contain:layout paint size;touch-action:none !important;}
.ad-preview-modal.open .ad-preview-sheet{touch-action:pan-y !important;overflow-y:auto !important;overscroll-behavior-y:contain !important;}
[data-ad-phone]{font-variant-numeric:tabular-nums;}

/* ===== v2.65 location permission + crisp desktop hero ===== */
.geo-modal-open,
.geo-modal-open body{overflow:hidden !important;}
.geo-consent-backdrop{
  position:fixed;
  inset:0;
  z-index:1200;
  display:none;
  place-items:center;
  padding:20px;
  background:rgba(10,22,42,.42);
  backdrop-filter:blur(2px);
}
.geo-consent-backdrop.is-open{display:grid;}
.geo-consent-card{
  position:relative;
  width:min(440px,calc(100vw - 32px));
  padding:28px;
  border:1px solid #d9e2ee;
  border-radius:18px;
  background:#fff;
  box-shadow:0 24px 70px rgba(10,28,56,.22);
  text-align:left;
}
.geo-consent-close{
  position:absolute;
  top:12px;
  right:12px;
  width:38px;
  height:38px;
  border:0;
  border-radius:10px;
  background:#f3f6fa;
  color:#4d5d73;
  font-size:24px;
  line-height:1;
}
.geo-consent-icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  margin-bottom:16px;
  border-radius:13px;
  background:#edf4ff;
  color:var(--blue);
  font-size:28px;
  font-weight:900;
}
.geo-consent-card h2{
  margin:0 44px 8px 0;
  color:#101a2f;
  font-size:22px;
  line-height:1.2;
}
.geo-consent-card p{
  margin:0;
  color:#5c687b;
  font-size:15px;
  line-height:1.55;
}
.geo-consent-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:22px;
}

/* Replace the old 420px hero bitmap with three native 640px appliance assets. */
.home-hero-visual{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 70% 18%,rgba(255,255,255,.95),rgba(255,255,255,0) 32%),
    linear-gradient(145deg,#d5e5f7 0%,#bfd4ed 100%);
}
.home-appliance-showcase{
  position:absolute;
  inset:0;
}
.home-appliance-card{
  position:absolute;
  overflow:hidden;
  border:1px solid rgba(186,203,224,.95);
  border-radius:16px;
  background:#fff;
  box-shadow:0 16px 34px rgba(20,45,80,.14);
}
.home-appliance-card img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.home-appliance-card-main{
  left:7%;
  top:12%;
  width:55%;
  aspect-ratio:1/1;
  transform:rotate(-2deg);
}
.home-appliance-card-top{
  right:5%;
  top:8%;
  width:36%;
  aspect-ratio:1/1;
  transform:rotate(3deg);
}
.home-appliance-card-bottom{
  right:7%;
  bottom:7%;
  width:35%;
  aspect-ratio:1/1;
  transform:rotate(-3deg);
}

@media (min-width:1024px){
  .home-hero-card{grid-template-columns:minmax(0,1.15fr) minmax(430px,.85fr);}
  .home-hero-visual{min-height:320px;}
  .home-appliance-card-main{width:52%;left:5%;top:15%;}
  .home-appliance-card-top{width:35%;right:6%;top:8%;}
  .home-appliance-card-bottom{width:34%;right:8%;bottom:6%;}
}

@media (max-width:760px){
  .geo-consent-backdrop{padding:14px;align-items:end;}
  .geo-consent-card{width:100%;padding:22px 18px calc(20px + env(safe-area-inset-bottom));border-radius:18px 18px 14px 14px;}
  .geo-consent-card h2{font-size:20px;}
  .geo-consent-card p{font-size:14px;}
  .geo-consent-actions{display:grid;grid-template-columns:1fr 1fr;}
  .geo-consent-actions .primary-btn,.geo-consent-actions .secondary-btn{width:100%;}
}

/* ===== v2.67 restore clean desktop hero =====
   Keep one coherent appliance visual instead of oversized overlapping category cards. */
.home-hero-visual{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 55% 38%,rgba(255,255,255,.98) 0 27%,rgba(255,255,255,0) 62%),
    linear-gradient(145deg,#dbe8f7 0%,#c9dcef 100%);
  padding:18px 24px;
}
.home-hero-image{
  display:block;
  width:min(100%,390px) !important;
  height:auto !important;
  max-height:300px;
  object-fit:contain !important;
  object-position:center !important;
  filter:none;
}
@media (min-width:1024px){
  .home-hero-card{grid-template-columns:minmax(0,1.35fr) minmax(350px,.65fr) !important;min-height:300px !important;}
  .home-hero-visual{min-height:300px !important;padding:18px 30px;}
  .home-hero-image{width:min(100%,370px) !important;max-height:276px;}
}
@media (min-width:1440px){
  .home-hero-card{grid-template-columns:minmax(0,1.4fr) minmax(380px,.6fr) !important;}
  .home-hero-image{width:min(100%,390px) !important;max-height:286px;}
}
@media (max-width:760px){
  .home-hero-visual{display:none !important;}
}


/* ===== v2.68 publish/category/mobile hero corrections ===== */
.other-brand-field{
  grid-column:1/-1;
  margin-top:2px;
  padding:14px;
  border:1px solid #d8e2ef;
  border-radius:12px;
  background:#f8fbff;
}
.other-brand-field[hidden]{display:none !important;}
.other-brand-field:not([hidden]){display:block !important;}
.other-brand-field .field-help{display:block;margin-top:7px;color:#65738a;font-size:13px;line-height:1.4;}

@media (max-width:760px){
  /* v2.67 hid the appliance artwork completely on phones. Keep it compact instead. */
  .home-hero-card{
    grid-template-columns:1fr !important;
    min-height:0 !important;
  }
  .home-hero-visual{
    display:flex !important;
    min-height:150px !important;
    max-height:176px;
    padding:8px 16px 14px !important;
    border-top:1px solid #d7e2ee;
  }
  .home-hero-image{
    display:block !important;
    width:min(100%,280px) !important;
    max-height:154px !important;
    height:auto !important;
    object-fit:contain !important;
  }
  .other-brand-field{padding:12px;}
}
@media (max-width:350px){
  .home-hero-visual{display:flex !important;min-height:132px !important;max-height:150px;}
  .home-hero-image{max-height:130px !important;}
}

/* ===== v2.69 chat action fixes ===== */
.chat-attach-btn.is-chat-disabled{opacity:.42;pointer-events:none;cursor:not-allowed}
.chat-composer.is-chat-blocked .chat-send-btn{opacity:.42;cursor:not-allowed}
.chat-composer.is-chat-blocked .chat-composer-input{background:#f3f5f7;color:#667085}
html.chat-modal-open,html.chat-modal-open body{overflow:hidden!important;overscroll-behavior:none}


/* ===== v2.70 professional character counters ===== */
.char-counter{
  width:100%;
  margin-top:6px;
  text-align:right;
  color:#7b8798;
  font-size:12px;
  font-weight:650;
  line-height:1.2;
  letter-spacing:.01em;
  font-variant-numeric:tabular-nums;
  user-select:none;
}
.char-counter.is-near-limit{color:#9a6a16}
.char-counter.is-at-limit{color:#a94432}
.char-counter.is-over-limit{color:#b42318;font-weight:800}
.char-limit-exceeded{border-color:#c63b2d!important;box-shadow:0 0 0 3px rgba(198,59,45,.08)!important}
.field .char-counter + .hint,
.field .char-counter + .field-help{margin-top:3px}
.chat-composer .chat-char-counter{
  grid-column:2;
  grid-row:2;
  justify-self:end;
  width:auto;
  margin:-3px 4px 0 0;
  font-size:10px;
  color:#7b8798;
}
.chat-composer .chat-char-counter.is-near-limit{color:#9a6a16}
.chat-composer .chat-char-counter.is-at-limit,
.chat-composer .chat-char-counter.is-over-limit{color:#b42318}
@media(max-width:760px){
  .char-counter{font-size:11px;margin-top:5px}
  .chat-composer .chat-char-counter{font-size:9.5px;margin-top:-4px}
}

/* ===== v2.71 resilient form UX ===== */
.char-counter{min-height:15px;color:#68758a}
@media(max-width:760px){
  .char-counter{font-size:12px;font-weight:700;margin-top:6px;padding-right:2px}
  .other-brand-field:not([hidden]){display:block!important;animation:urediFieldReveal .16s ease-out}
}
@keyframes urediFieldReveal{from{opacity:.35;transform:translateY(-3px)}to{opacity:1;transform:none}}


/* v2.72 — category-specific listing characteristics */
.category-spec-empty{grid-column:1/-1;display:flex;flex-direction:column;gap:6px;padding:18px 20px;border:1px dashed #c8d2df;border-radius:14px;background:#f7f9fc;color:#46536a}
.category-spec-empty strong{font-size:16px;color:#18253d}
.category-spec-empty span{font-size:14px;line-height:1.45}
.category-spec-field{min-width:0}
.spec-input-with-unit{display:flex;align-items:stretch;position:relative}
.spec-input-with-unit input{width:100%;padding-right:72px}
.spec-input-with-unit>span{position:absolute;right:15px;top:50%;transform:translateY(-50%);font-weight:700;color:#647188;pointer-events:none}
@media (max-width:760px){
  .category-spec-empty{padding:15px 16px}
  .category-spec-empty strong{font-size:15px}
  .category-spec-empty span{font-size:13px}
  .category-spec-field{grid-column:1/-1}
}

/* ===== v2.76 real listings polish: uncropped photos, full-screen gallery, clean actions ===== */
.real-listing-row>a{display:flex;align-items:center;justify-content:center;background:#fff;border-radius:9px;overflow:hidden}
.real-listing-row>a>img,
.ad-manage>img,
.real-home-card .product-img{
  object-fit:contain!important;
  object-position:center!important;
  background:#fff!important;
}
.real-listing-detail .real-gallery-main{
  background:#fff!important;
  cursor:zoom-in;
  display:flex;
  align-items:center;
  justify-content:center;
}
.real-listing-detail .real-gallery-main>img{
  object-fit:contain!important;
  object-position:center!important;
  background:#fff!important;
}
.real-gallery-thumbs .thumb{background:#fff!important}
.real-gallery-thumbs .thumb img{object-fit:contain!important;object-position:center!important;background:#fff!important}
.gallery-zoom-hint{
  position:absolute;left:10px;bottom:10px;width:34px;height:34px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;background:rgba(15,28,50,.72);color:#fff;
  font-size:18px;font-weight:800;pointer-events:none
}
html.real-gallery-open,body.real-gallery-open{overflow:hidden!important;overscroll-behavior:none!important}
.real-gallery-modal[hidden]{display:none!important}
.real-gallery-modal{position:fixed;inset:0;z-index:5000;display:grid;place-items:center}
.real-gallery-modal-backdrop{position:absolute;inset:0;background:rgba(6,13,25,.94);backdrop-filter:blur(3px)}
.real-gallery-modal-shell{position:relative;z-index:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:64px 70px 58px}
.real-gallery-modal-shell>img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none;-webkit-user-drag:none}
.real-gallery-modal-close{position:absolute;right:18px;top:max(18px,env(safe-area-inset-top));width:46px;height:46px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:32px;line-height:1;display:flex;align-items:center;justify-content:center;z-index:3}
.real-gallery-modal-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:64px;border:0;border-radius:12px;background:rgba(255,255,255,.12);color:#fff;font-size:42px;line-height:1;z-index:3}
.real-gallery-modal-nav.prev{left:16px}.real-gallery-modal-nav.next{right:16px}
.real-gallery-modal-counter{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-size:12px;font-weight:800}

.real-chat-only-primary{grid-column:1/-1}
.real-chat-only-note{
  margin-top:9px!important;padding:9px 11px;border:1px solid #d9e4f2;border-radius:9px;background:#f5f8fc;
  color:#5f6d82!important;font-size:11.5px!important;line-height:1.35!important;display:flex;align-items:center;gap:8px
}
.real-chat-only-icon{width:8px;height:8px;border-radius:50%;background:#1767d9;color:transparent;flex:0 0 8px}
.listing-report-button{
  width:100%;margin-top:10px!important;background:#fff7f6!important;border-color:#eccbc7!important;color:#963a34!important;
  min-height:42px;font-weight:800!important
}
.listing-report-button::before{content:'!';width:20px;height:20px;border:1.5px solid currentColor;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:900}

.ad-promo-direct{
  width:auto!important;max-width:max-content!important;min-width:0!important;height:36px!important;padding:0 14px!important;
  border:1px solid #1767d9!important;border-radius:9px!important;background:#1767d9!important;color:#fff!important;
  font-size:12px!important;font-weight:850!important;box-shadow:0 4px 10px rgba(23,103,217,.14)
}
.ad-promo-direct:hover{background:#0f58c4!important;border-color:#0f58c4!important}

.real-home-card .product-img{padding:8px}
.real-home-card{border-color:#dbe4ef}

@media(max-width:760px){
  .real-gallery-modal-shell{padding:58px 12px 70px}
  .real-gallery-modal-close{right:12px;width:42px;height:42px;font-size:28px}
  .real-gallery-modal-nav{width:38px;height:54px;font-size:34px;background:rgba(255,255,255,.1)}
  .real-gallery-modal-nav.prev{left:6px}.real-gallery-modal-nav.next{right:6px}
  .real-listing-detail .real-gallery-main{aspect-ratio:1/1;max-height:70vh}
  .real-listing-row>a>img{padding:3px}
  .ad-manage>img{padding:3px}
  .ad-promo-direct{justify-self:start!important;align-self:start!important;margin-top:8px!important}
  .listing-report-button{font-size:12px!important}
}

/* ===== v2.77 My Ads + real edit polish ===== */
.real-ad-image-link{
  width:120px;height:90px;border-radius:10px;border:1px solid #e3e8f0;background:#fff;
  display:flex;align-items:center;justify-content:center;overflow:hidden;transition:.16s;
}
.real-ad-image-link:hover{border-color:#b9c9e3;box-shadow:0 8px 18px rgba(22,45,80,.08)}
.real-ad-image-link img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;background:#fff!important}
.dashboard-grid section>.tabs{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px!important;
  margin-top:22px!important;padding:6px!important;border:1px solid #dbe3ef!important;border-radius:14px!important;
  background:#f4f7fb!important;
}
.dashboard-grid section>.tabs .tab{
  min-height:44px!important;padding:0 16px!important;border:1px solid transparent!important;border-radius:9px!important;
  background:transparent!important;color:#526078!important;font-size:13px!important;font-weight:800!important;
  display:flex;align-items:center;justify-content:center;transition:.15s;
}
.dashboard-grid section>.tabs .tab:hover{background:#fff!important;color:#18365f!important;border-color:#dbe3ef!important}
.dashboard-grid section>.tabs .tab.active{
  background:#10213d!important;color:#fff!important;border-color:#10213d!important;
  box-shadow:0 5px 12px rgba(16,33,61,.14)!important;
}
.dashboard-grid [data-tab-panel]{margin-top:14px!important;overflow:visible}
.dashboard-grid [data-tab-panel="removed"]{border:1px solid var(--line);border-radius:12px;background:#fff}
.overflow-menu-item.danger{color:#a43d37!important;font-weight:800}
.overflow-menu-item.danger:hover{background:#fff3f1!important}
.real-ad-title-link{display:inline-block;max-width:100%}
.real-ad-title-link strong{display:block;font-size:15px;line-height:1.3;color:#14213a}

.edit-listing-summary{
  display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin-bottom:16px;
  border:1px solid #dfe6f0;border-radius:12px;background:#f8faff;
}
.edit-listing-summary strong{display:block;font-size:16px;color:#14213a}
.edit-listing-summary span{display:block;margin-top:3px;font-size:12px;color:#69768c}
.compact-action{height:38px;padding:0 13px;white-space:nowrap}
.edit-image-strip{display:flex;gap:8px;overflow:auto;padding:0 0 14px;margin-bottom:4px}
.edit-image-strip a{width:82px;height:66px;flex:0 0 82px;border:1px solid #dfe6f0;border-radius:9px;background:#fff;overflow:hidden;display:flex;align-items:center;justify-content:center}
.edit-image-strip img{width:100%;height:100%;object-fit:contain;background:#fff}
.real-edit-grid{align-items:start}
.edit-section-label{font-size:13px;font-weight:850;color:#334158;margin-bottom:8px}
.edit-category-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.edit-category-fields:empty{display:none}
.edit-form-actions{display:flex;gap:9px;align-items:center;margin-top:18px;padding-top:16px;border-top:1px solid #edf0f5}
.edit-form-actions .primary-btn{min-width:180px}

@media(max-width:760px){
  .real-ad-image-link{width:86px;height:70px}
  .dashboard-grid section>.tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important;padding:5px!important}
  .dashboard-grid section>.tabs .tab{min-height:42px!important;font-size:12px!important;padding:0 8px!important}
  .edit-listing-summary{display:grid;gap:10px;padding:13px}
  .edit-listing-summary .compact-action{width:100%}
  .edit-category-fields{grid-template-columns:1fr}
  .edit-form-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .edit-form-actions>*{width:100%}
}


/* ===== v2.78 Edit preservation + readable My Ads overflow menu ===== */
.overflow-menu{
  width:240px;
  border-radius:12px;
  box-shadow:0 14px 34px rgba(20,36,58,.16);
}
.overflow-menu-item{
  min-height:48px;
  padding:11px 14px;
  font-size:15px;
  line-height:1.25;
  font-weight:750;
  letter-spacing:0;
}
.overflow-menu-item.promo-action::before{font-size:14px}
.ad-actions.overflow-actions .overflow-menu{min-width:240px}

@media(max-width:760px){
  .overflow-menu{width:min(250px,calc(100vw - 38px))}
  .overflow-menu-item{min-height:46px;padding:10px 13px;font-size:14px}
}

/* ===== v2.80 real Jump chat ===== */
.header-chat-badge{
  position:absolute;right:2px;top:2px;display:none;min-width:18px;height:18px;padding:0 5px;
  border-radius:999px;background:#d92d20;color:#fff;font-size:10px;font-weight:800;line-height:18px;
  text-align:center;box-shadow:0 0 0 2px #fff;
}
.header-chat-badge.has-unread{display:block}
.chat-title-row{display:flex;align-items:center;justify-content:space-between;padding-right:8px}
.real-chat-refresh{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#44506a;font-size:19px;line-height:1;display:grid;place-items:center}
.real-chat-refresh:hover{background:#f5f8fc;border-color:#c6d1e0;color:var(--blue)}
.real-conversation{width:100%;border:0;border-bottom:1px solid #edf0f4;background:#fff;text-align:left;color:inherit;display:flex;align-items:center;gap:10px;position:relative}
.real-conversation:hover{background:#f7faff}
.real-conversation.active{background:#eef5ff}
.real-conversation-avatar{flex:0 0 38px;width:38px;height:38px;font-size:12px}
.real-conversation-side{margin-left:auto;align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:7px;min-width:44px}
.real-chat-unread{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--blue);color:#fff;font-size:10px;font-weight:800}
.real-conversation-empty{display:grid;gap:5px;text-align:center;padding:38px 18px;color:#667085}
.real-conversation-empty strong{color:#25324a;font-size:14px}
.real-chat-welcome{height:100%;display:grid;place-content:center;text-align:center;padding:30px;color:#667085}
.real-chat-welcome-icon{font-size:34px;margin-bottom:10px}
.real-chat-welcome h2{margin:0 0 6px;color:#152038;font-size:20px}
.real-chat-welcome p{margin:0;max-width:360px}
.real-chat-product{gap:10px}
.real-chat-product-placeholder{width:62px;height:50px;flex:0 0 62px;border-radius:8px;background:#eef2f7;color:#708099;display:grid;place-items:center;font-size:22px}
.real-chat-product-copy{flex:1;min-width:0}
.real-chat-product-copy>strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.real-chat-with{font-size:11px;color:#64748b;margin-top:2px}
.real-chat-overflow{position:relative}
.real-chat-menu{right:0;left:auto;min-width:245px}
.overflow-menu-note{padding:10px 12px;font-size:12px;color:#667085;border-bottom:1px solid #edf0f4;background:#f8fafc}
.real-chat-block-banner{display:flex!important;align-items:center;gap:9px;padding:10px 12px;background:#fff7ed;border-top:1px solid #fed7aa;border-bottom:1px solid #fed7aa;color:#9a3412}
.real-chat-block-banner strong{font-size:12px}
.real-chat-block-banner span{font-size:11px;flex:1}
.real-deal-banner{display:flex;align-items:center;gap:10px;padding:9px 12px;background:#f0fdf4;border-bottom:1px solid #bbf7d0;color:#166534}
.real-deal-banner strong{font-size:12px}.real-deal-banner span{font-size:11px}.compact-action{height:34px;padding:0 11px;font-size:11px}
.real-chat-loading,.real-chat-empty-thread{min-height:100%;display:grid;place-content:center;text-align:center;color:#667085;gap:4px}
.real-chat-empty-thread strong{color:#25324a}
.real-chat-message-text{white-space:normal;overflow-wrap:anywhere}
.real-chat-image-button{display:block;border:0;padding:0;margin:2px 0 7px;background:transparent;max-width:310px;width:100%;border-radius:10px;overflow:hidden}
.real-chat-image-button img{display:block;width:100%;max-height:300px;object-fit:contain;background:#eef2f6;border-radius:10px}
.real-chat-file{display:flex;align-items:center;gap:9px;margin:3px 0 7px;padding:9px 10px;border:1px solid rgba(16,35,65,.14);border-radius:9px;background:rgba(255,255,255,.7);color:#20314d;max-width:300px}
.real-chat-file:hover{border-color:#98b8e7;background:#fff}
.real-chat-file-icon{width:32px;height:32px;border-radius:8px;background:#e8f1ff;color:var(--blue);display:grid;place-items:center;font-weight:900;font-size:18px;flex:0 0 32px}
.real-chat-file strong,.real-chat-file small{display:block;max-width:215px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.real-chat-file small{font-size:10px;color:#667085;margin-top:2px}
.real-chat-file.is-unavailable{font-size:11px;color:#667085}
.real-chat-composer-wrap{border-top:1px solid var(--line);background:#fff}
.real-chat-composer{align-items:flex-end}
.real-chat-input-wrap{position:relative;flex:1;min-width:0}
.real-chat-input-wrap .chat-composer-input{width:100%;padding-right:64px;padding-bottom:18px}
.real-chat-counter{position:absolute;right:11px;bottom:7px;font-size:9.5px;color:#98a2b3;pointer-events:none}
.real-chat-counter.is-near-limit{color:#b54708}
.real-chat-preview-icon{width:38px;height:38px;border-radius:9px;background:#eef4ff;display:grid;place-items:center;flex:0 0 38px}
.real-chat-image-modal{position:fixed;inset:0;z-index:380;background:rgba(6,14,26,.88);display:grid;place-items:center;padding:24px}
.real-chat-image-modal img{max-width:min(1100px,96vw);max-height:90vh;object-fit:contain}
.real-chat-image-modal button{position:fixed;right:18px;top:18px;width:42px;height:42px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(0,0,0,.35);color:#fff;font-size:28px;line-height:1}
.real-review-card .field{margin-top:16px}.real-rating{display:flex;gap:5px;justify-content:center;padding:22px 0 8px}.real-rating label{cursor:pointer}.real-rating input{position:absolute;opacity:0;pointer-events:none}.real-rating span[aria-hidden="true"]{display:block;font-size:34px;color:#d0d5dd;transition:.12s}.real-rating label:has(input:checked) span[aria-hidden="true"],.real-rating label:has(input:checked)~label span[aria-hidden="true"]{color:#d0d5dd}.real-rating:has(input[value="1"]:checked) label:nth-child(1) span,.real-rating:has(input[value="2"]:checked) label:nth-child(-n+2) span,.real-rating:has(input[value="3"]:checked) label:nth-child(-n+3) span,.real-rating:has(input[value="4"]:checked) label:nth-child(-n+4) span,.real-rating:has(input[value="5"]:checked) label:nth-child(-n+5) span{color:#f59e0b}.real-review-counter{display:block;text-align:right;color:#98a2b3;font-size:10px;margin-top:3px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

@media(min-width:761px){
  body.messages-page .real-conversation{min-height:70px;padding:11px 12px}
  body.messages-page .conversation-list{width:330px}
  body.messages-page .chat-shell{grid-template-columns:330px minmax(0,1fr)}
  .mobile-chat-back{display:none!important}
}
@media(max-width:760px){
  .real-chat-product .ghost-btn{display:none}
  .real-chat-menu{position:fixed!important;left:12px!important;right:12px!important;top:auto!important;bottom:calc(72px + env(safe-area-inset-bottom));min-width:0;z-index:180}
  .real-chat-block-banner,.real-deal-banner{align-items:flex-start;flex-wrap:wrap}
  .real-chat-block-banner .compact-action,.real-deal-banner .compact-action{width:100%}
  .real-chat-image-button{max-width:250px}
  .real-chat-file{max-width:245px}
  .real-chat-file strong,.real-chat-file small{max-width:165px}
  .real-chat-image-modal{padding:10px}
}
.real-chat-bootstrap{height:100%;display:grid;place-items:center;color:#667085;font-weight:650;background:#fff}


/* ===== v2.81 chat reliability + desktop scrolling ===== */
@media(min-width:761px){
  body.messages-page .chat-shell{
    height:calc(100dvh - 170px);
    min-height:520px;
    max-height:720px;
  }
  body.messages-page .conversation-list{
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
  }
  body.messages-page .chat-pane{
    min-height:0;
    overflow:hidden;
  }
  body.messages-page .chat-messages{
    flex:1 1 auto;
    min-height:0;
    height:0;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
}


/* ===== v2.82 chat polish: no send redraw, clean desktop bottom + list spacing ===== */
.real-conversation .conversation-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.real-conversation .conversation-name{
  display:block;
  line-height:1.25;
}
.real-conversation .conversation-preview{
  display:block;
  line-height:1.35;
  margin-top:1px;
}
@media(min-width:761px){
  body.messages-page .chat-composer-wrap{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    flex:0 0 auto!important;
    margin:0!important;
    z-index:2!important;
  }
  body.messages-page .chat-messages{
    padding:20px 20px 34px!important;
    scroll-padding-bottom:34px;
  }
  body.messages-page .chat-messages .bubble-row:last-child{
    margin-bottom:14px!important;
  }
}

/* ===== v2.84 real Favorites + marketplace notifications ===== */
.favorites-sync-note{margin-top:16px;padding:12px 14px;border:1px solid #dbe5f4;border-radius:10px;background:#f7faff;color:#4b5d78;font-size:13px}
.real-favorite-card .product-img{object-fit:contain;background:#f6f8fb}
.favorite-card-unavailable{opacity:.88}
.favorite-card-unavailable .product-img{filter:saturate(.72)}
.favorite-status-pill{position:absolute;left:10px;top:10px;z-index:4;display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:7px;background:#eef2f7;border:1px solid #d6deea;color:#536078;font-size:10px;font-weight:850;letter-spacing:.02em}
.favorite-status-pill.sold{background:#eef1f5;color:#435069}
.favorite-status-pill.reserved{background:#fff7e8;border-color:#f2d7a7;color:#8a5a0a}
.favorite-status-pill.expired,.favorite-status-pill.inactive{background:#fff4f2;border-color:#f1d2cd;color:#a43f37}
.real-favorite-card .promo-badge+.favorite-status-pill{top:42px}

.header-notification-badge{display:none;position:absolute;right:0;top:0;min-width:17px;height:17px;padding:0 4px;align-items:center;justify-content:center;border:2px solid #fff;border-radius:999px;background:#d6403a;color:#fff;font-size:8px;font-weight:900;line-height:1;z-index:3}
.header-notification-badge.has-unread{display:flex}
.notification-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.notification-read-all{height:36px;padding:0 12px;font-size:12px}
.real-notification-item{cursor:pointer;outline:none}
.real-notification-item:hover{background:#f8fbff}
.real-notification-item:focus-visible{box-shadow:inset 0 0 0 2px #7aa8ed}
.real-notification-item.is-unread{position:relative;background:#f6f9ff}
.real-notification-item.is-unread:before{content:"";position:absolute;left:5px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:var(--blue)}
.notification-open-hint{display:inline-flex;align-items:center;justify-content:center;pointer-events:none}

@media(max-width:760px){
  .notification-toolbar{align-items:stretch}
  .notification-read-all{width:100%;height:40px}
  .favorite-status-pill{left:8px;top:8px}
  .real-favorite-card .promo-badge+.favorite-status-pill{top:40px}
}


/* ===== v2.86 desktop Favorites visibility ===== */
@media (min-width:761px){
  /* app-v280 marks the header heart as mobile-favorite; keep the same link visible on desktop too. */
  .header-actions a[href="favorites.html"].mobile-favorite{
    display:flex !important;
  }
}


/* v3.02: retain document position while overlays scroll independently. */
html.overlay-scroll-locked-v302{overflow:hidden!important;overscroll-behavior:none}
body.overlay-scroll-locked-v302{position:fixed!important;top:var(--overlay-scroll-top)!important;left:0;right:0;width:100%;overflow:hidden!important}
.filter-panel,[role="dialog"][aria-modal="true"],.price-history-popover-card{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.price-history-popover-card{max-height:85dvh;overflow-y:auto}
.detail-actions [data-compare-real][aria-pressed="true"]{background:#e8f0ff;border-color:#3063be}

.uredi-mfa-dialog{max-height:85dvh;overflow-y:auto}

/* v3.03: override desktop max-content height so the mobile sheet can scroll. */
@media(max-width:760px){
  .filter-panel{
    height:auto;
    min-height:0;
    max-height:calc(100vh - 60px - var(--mobile-nav-h,64px) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
    max-height:calc(100dvh - 60px - var(--mobile-nav-h,64px) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch;
  }
}


/* ===== Jump migration v6: iPhone chat overflow anchored to trigger ===== */
@media(max-width:760px){
  body.messages-page .chat-product{
    position:relative;
    overflow:visible!important;
    z-index:160;
  }

  body.messages-page .real-chat-overflow{
    position:relative!important;
    z-index:170;
  }

  body.messages-page .real-chat-menu{
    position:absolute!important;
    top:calc(100% + 6px)!important;
    right:0!important;
    bottom:auto!important;
    left:auto!important;
    width:min(250px,calc(100vw - 24px))!important;
    min-width:220px!important;
    max-height:min(55dvh,360px);
    overflow-y:auto;
    transform:none!important;
    margin:0!important;
    z-index:190!important;
    -webkit-overflow-scrolling:touch;
  }
}

/* ===== v10.3 My Ads live menus ===== */
.ad-manage{z-index:0}
.ad-manage.menu-open-row{z-index:900!important}
.ad-actions.overflow-actions.menu-open{z-index:910!important}
.ad-manage.menu-open-row .overflow-menu{z-index:920!important}


/* ===== v12.3 product-label photo visibility ===== */
.real-ad-image-link{position:relative}
.real-ad-label-preview{
  position:absolute;
  right:5px;
  bottom:5px;
  width:44px;
  height:44px;
  border:2px solid #fff;
  border-radius:9px;
  background:#fff;
  box-shadow:0 2px 8px rgba(15,35,65,.22);
  overflow:hidden;
  display:block;
}
.real-ad-label-preview img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block;
}
.real-ad-label-preview span{
  position:absolute;
  left:0;right:0;bottom:0;
  padding:2px 1px;
  background:rgba(8,30,67,.82);
  color:#fff;
  font-size:8px;
  line-height:1.1;
  text-align:center;
  font-weight:700;
}
.real-gallery-thumbs .thumb{position:relative}
.thumb-label-badge{
  position:absolute;
  left:3px;
  right:3px;
  bottom:3px;
  padding:2px 3px;
  border-radius:5px;
  background:rgba(8,30,67,.84);
  color:#fff;
  font-size:9px;
  line-height:1.1;
  font-weight:700;
  text-align:center;
  pointer-events:none;
}


/* ===== v18.3.36 — compact, two-row horizontally swipable homepage categories =====
   Only on phones/tablets up to 760px; desktop category grid is unchanged.
   Grid auto-flow column keeps both rows synchronized during a horizontal swipe. */
.category-swipe-hint{display:none}
@media (max-width:760px){
  .home-category-grid{
    display:grid!important;
    width:100%;
    max-width:100%!important;
    margin:0!important;
    padding:1px 1px 6px;
    grid-template-columns:none!important;
    grid-template-rows:repeat(2, 126px)!important;
    grid-auto-flow:column!important;
    grid-auto-columns:clamp(132px,38vw,170px)!important;
    column-gap:10px!important;
    row-gap:10px!important;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x proximity;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .home-category-grid::-webkit-scrollbar{display:none}
  .home-category-grid .cat-card,
  .home-category-grid .cat-card-last,
  .home-category-grid .cat-card.stove-center{
    grid-column:auto!important;
    grid-row:auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:126px!important;
    min-height:126px!important;
    margin:0!important;
    padding:0 0 8px!important;
    gap:6px;
    justify-self:stretch!important;
    align-self:stretch!important;
    border-radius:12px;
    scroll-snap-align:start;
    font-size:12px!important;
    line-height:1.2;
    text-align:center;
  }
  .home-category-grid .cat-icon{
    width:100%!important;
    height:91px!important;
    flex:0 0 91px;
    border-radius:11px 11px 0 0!important;
  }
  .home-category-grid .cat-card>span:last-child{
    display:block;
    padding:0 4px;
    white-space:normal;
    overflow-wrap:break-word;
  }
  .home-category-grid:focus-visible{
    outline:2px solid var(--blue);
    outline-offset:3px;
    border-radius:12px;
  }
  .category-swipe-hint{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:6px;
    margin:5px 3px 0;
    color:#65758c;
    font-size:11px;
    font-weight:650;
  }
  .category-swipe-icon{font-size:17px;line-height:1}
  .home-quick-links{margin-top:10px}
}
@media (max-width:350px){
  .home-category-grid{
    grid-auto-columns:132px!important;
  }
}
