.buyback-page{box-sizing:border-box;margin:0;min-height:100vh;background:#fafbf8;color:#101114;font:16px/1.5 "Golos Text",system-ui,sans-serif;padding:clamp(12px,4vw,36px);color-scheme:light}
.buyback-card,.buyback-thread{--buyback-gold:#ffd23f;--buyback-border:#ffffff32;--buyback-control:#171820;color:#fff;overflow-wrap:anywhere}
.buyback-card{max-width:620px;margin:auto;padding:clamp(18px,5vw,36px);background:#fff;border:1px solid var(--buyback-border);border-radius:24px;box-shadow:0 24px 50px -30px rgba(0,0,0,.35)}
.buyback-card a,.buyback-thread a{color:var(--buyback-gold)}
.buyback-brand{display:flex;justify-content:space-between;align-items:center;gap:12px}
.buyback-logo{display:flex;align-items:center;gap:8px;font-weight:900;text-decoration:none}
.buyback-logo img{flex:none;border-radius:50%}
.buyback-brand #last-offer{margin-inline-start:auto}
.buyback-brand .buyback-close{box-sizing:border-box;margin-inline-start:auto;display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid var(--buyback-border);border-radius:13px;background:#fff;color:#101114;text-decoration:none}
.buyback-close svg{display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.buyback-brand #last-offer:not([hidden])+.buyback-close{margin-inline-start:0}
.buyback-brand .buyback-close:hover{background:#eff1ec}
#offer textarea{resize:vertical;block-size:clamp(54px,11dvh,100px)}
#offer-status:empty{display:none}
.buyback-page #offer .buyback-slot{max-block-size:clamp(46px,12dvh,108px)}
@media(max-height:820px){
  .buyback-page{padding:10px}
  .buyback-card{padding:clamp(12px,3vw,24px)}
  .buyback-card #offer-form h1{font-size:clamp(27px,6vw,38px);margin:8px 0 5px}
  .buyback-card #offer-form>p{margin:0 0 8px;line-height:1.35}
  .buyback-card #offer{gap:7px}
  .buyback-card #offer label{gap:3px}
}
@media(max-height:620px){
  .buyback-page{padding-block:5px}
  .buyback-card{padding-block:10px}
  #offer textarea{block-size:48px}
  .buyback-page #offer .buyback-slot{max-block-size:46px}
  .buyback-card #offer{gap:4px}
  .buyback-card #offer-form>p{margin-bottom:5px}
  .buyback-card #offer label{font-size:14px;line-height:1.2}
  .buyback-card #offer input:not([type=file]){min-height:44px}
  .buyback-card #offer legend{margin-bottom:4px}
}
.buyback-card h1{font-size:clamp(30px,7vw,48px);line-height:1.04;margin:24px 0 12px;letter-spacing:-.04em}
.buyback-card p{color:#e0e0e4}
.buyback-card label,.buyback-thread label{display:grid;gap:6px;font-weight:650}
.buyback-card form,.buyback-thread form{display:grid;gap:14px}
.buyback-card :is(input:not([type=file]),textarea),.buyback-thread textarea{box-sizing:border-box;width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--buyback-border);border-radius:11px;background:var(--buyback-control);color:#fff;font:inherit}
.buyback-card fieldset{min-width:0;margin:0;padding:0;border:0}
.buyback-card legend{padding:0;margin-bottom:8px;font-weight:650}
.buyback-card legend small{margin-left:4px;color:#c7c7cf;font-weight:400}
.buyback-preview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:8px}
.buyback-slot{position:relative;display:grid;place-items:center;aspect-ratio:1.25;margin:0;border:1px solid var(--buyback-border);border-radius:11px;overflow:hidden;background:var(--buyback-control)}
.buyback-slot.empty{border-style:dashed;cursor:pointer}
.buyback-source input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.buyback-slot:focus-within{outline:2px solid #7b5c00;outline-offset:2px}
.buyback-slot-hint{display:grid;justify-items:center;gap:2px;color:#ffffff52;font:600 11px/1.1 system-ui,sans-serif}
.buyback-slot-hint::before{content:"";width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M4 7h3l2-3h6l2 3h3a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2Z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center/contain no-repeat}
.buyback-slot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.buyback-remove{position:absolute;top:0;right:0;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:0 0 0 12px;background:#14151bdd;color:#fff;font:700 23px/1 system-ui;cursor:pointer}
.buyback-remove:focus-visible{outline:2px solid var(--buyback-gold);outline-offset:-3px}
.buyback-primary,.buyback-secondary{min-height:44px;padding:8px 14px;border:0;border-radius:12px;font:inherit;font-weight:800;cursor:pointer}
.buyback-primary{background:var(--buyback-gold);color:#15110a}
.buyback-secondary{background:#ffffff16;color:#fff;border:1px solid var(--buyback-border)}
.buyback-primary:disabled{opacity:.55;cursor:wait}
.buyback-photos{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.buyback-photos figure{margin:0;display:grid}
.buyback-photos img{display:block;width:105px;height:90px;object-fit:cover;border-radius:10px}
.buyback-thread{box-sizing:border-box;padding:16px;min-width:0;width:100%;overflow:auto}
.buyback-thread h2{margin:0 0 6px}
.buyback-thread p{white-space:pre-wrap;margin:8px 0}
.buyback-messages{display:grid;gap:8px;margin:12px 0}
.buyback-msg{max-width:86%;padding:8px 12px;border-radius:13px;background:#ffffff16}
.buyback-msg.mine{justify-self:end;background:#ffd23f24}
.buyback-msg small{color:#e0e0e4}
.buyback-msg p{margin:3px 0}
.buyback-offer-row{display:block;text-align:left;width:100%;margin-bottom:6px;overflow-wrap:anywhere}
.buyback-offer-row strong,.buyback-offer-row small{display:block}
.buyback-page :is(.buyback-card,.buyback-thread){--buyback-border:#d6dacf;--buyback-control:#fff;color:#101114}
.buyback-page h1{font-weight:900;letter-spacing:-.045em}
.buyback-page :is(.buyback-card a,.buyback-thread a){color:#101114}
.buyback-page :is(.buyback-card p,.buyback-card legend small,.buyback-card form>label,.buyback-thread label,.buyback-msg small){color:#585d66}
.buyback-page :is(input:not([type=file]),textarea){background:#f6f7f5;color:#101114}
.buyback-page :is(input:not([type=file]),textarea)::placeholder{color:#70757d}
.buyback-page :is(.buyback-secondary,.buyback-msg){background:#eff1ec;color:#101114}
.buyback-page .buyback-slot{background:#f6f7f5}
.buyback-page .buyback-msg.mine{background:#fff2ba}
.buyback-page .buyback-slot-hint{color:#80857f}
@media(hover:hover){.buyback-page .buyback-slot.empty:hover{background:#edf0e9;border-color:#80857f}}
.buyback-page :is(a,button,input,textarea):focus-visible{outline:2px solid #7b5c00;outline-offset:2px}
.buyback-optional{font-size:.8em;font-weight:400}
.buyback-source{box-sizing:border-box;width:min(320px,calc(100% - 32px));padding:16px;border:1px solid #d6dacf;border-radius:20px;background:#fff;color:#101114;box-shadow:0 12px 40px #0003}
.buyback-source::backdrop{background:#10111466}
.buyback-source h2{margin:0 0 10px;font-size:18px}
.buyback-source label{position:relative;display:grid;place-items:center;min-height:44px;margin-bottom:8px;border:1px solid #d6dacf;border-radius:11px;background:#f6f7f5;font-weight:700;overflow:hidden}
.buyback-source label:focus-within{outline:2px solid #7b5c00;outline-offset:1px}
.buyback-source form button{width:100%}
.stc .stc-tabs #stc-tab-s{white-space:nowrap;min-width:0;padding-inline:5px!important}
@media(max-width:800px){.stc.buyback-open .stc-l{display:none!important}.stc.buyback-open .stc-r{display:flex!important}.stc .stc-seg2 .tab{font-size:12px!important;padding-inline:4px!important}}
.top .top-sell{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border:1px solid #fff4a8;border-radius:999px;background:linear-gradient(135deg,#fff373,#ffb91e);color:#171009!important;box-shadow:0 5px 15px #ffbb2740;font:900 15px/1.1 system-ui,sans-serif;text-decoration:none;white-space:nowrap}
.top .top-sell:hover{filter:brightness(1.09)}
.top .top-sell:focus-visible{outline:2px solid #fff;outline-offset:3px}
.top-sell svg{display:none;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){
  .top .top-sell{box-sizing:border-box;flex:0 0 44px;width:44px;height:44px;padding:0;border-radius:14px}
  .top-sell span{display:none}
  .top-sell svg{display:block}
}
