/* RF-AVALON Market V61.0.113 FIX21 — favourites, tracking and sold-price history. */

.item-lot-flags[data-market-item-watched="1"]::after{
  content:"★ В избранном";
  color:#f7c56f;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:8px;
  font-weight:800;
}

.market-item-insights-v121{
  border-top:1px solid #394258;
  border-bottom:1px solid #394258;
  background:
    radial-gradient(circle at 92% 0,#f0a33012,transparent 30%),
    linear-gradient(145deg,#21293a,#1c2332);
  color:#eef1f6;
}

.market-insights-head-v121{
  min-height:66px;
  padding:11px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid #333d52;
}

.market-insights-head-v121>div{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}

.market-insights-head-v121>div>span{
  width:35px;
  height:35px;
  flex:0 0 35px;
  display:grid;
  place-items:center;
  border:1px solid #f0a3305c;
  border-radius:50%;
  color:#ffc56a;
  background:#f0a33012;
  font-size:18px;
  box-shadow:0 0 18px #f0a33012;
}

.market-insights-head-v121>div>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.market-insights-head-v121 small,
.market-watch-card-v121>header small,
.market-price-history-v121>header small{
  color:#d28f30;
  letter-spacing:.1em;
  font-size:8px;
  font-weight:800;
}

.market-insights-head-v121 strong{
  color:#f5f6f8;
  font-size:14px;
  font-weight:680;
}

.market-insights-head-v121>button{
  min-width:142px;
  min-height:39px;
  padding:5px 11px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid #46516a;
  border-radius:5px;
  color:#e2e6ed;
  background:#252e40;
  cursor:pointer;
}

.market-insights-head-v121>button:hover:not(:disabled){
  border-color:#e9a23f77;
  background:#2a3448;
}

.market-insights-head-v121>button:disabled{
  cursor:not-allowed;
  opacity:.55;
}

.market-insights-head-v121>button b{
  font-size:10px;
}

.market-insights-head-v121>button span{
  color:#e8ac52;
  font-size:9px;
}

.market-insights-placeholder-v121{
  min-height:72px;
  padding:14px 15px;
  display:flex;
  align-items:flex-start;
  flex-direction:column;
  justify-content:center;
  gap:3px;
}

.market-insights-placeholder-v121 strong{
  color:#d9dee8;
  font-size:11px;
}

.market-insights-placeholder-v121 span{
  color:#7f8ba0;
  font-size:9px;
  line-height:1.5;
}

.market-insights-feedback-v121{
  margin:10px 14px 0;
  padding:9px 11px;
  border:1px solid #55b97a48;
  border-left:3px solid #55bd7b;
  border-radius:4px;
  color:#bde8cd;
  background:#24402f52;
  font-size:9px;
}

.market-insights-feedback-v121.is-error{
  border-color:#d9687554;
  border-left-color:#d96875;
  color:#ffd3d8;
  background:#4a263052;
}

.market-insights-selected-v121{
  padding:13px 14px 15px;
}

.market-selected-title-v121{
  margin-bottom:10px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.market-selected-title-v121>div{
  min-width:0;
}

.market-selected-title-v121 small{
  display:block;
  margin-bottom:2px;
  color:#758198;
  font-size:8px;
}

.market-selected-title-v121 h3{
  margin:0;
  color:#f3f5f8;
  overflow-wrap:anywhere;
  font-size:14px;
  font-weight:680;
}

.market-selected-title-v121>span{
  flex:0 0 auto;
  padding:5px 8px;
  border:1px solid #4a556d;
  border-radius:4px;
  color:#8d98ab;
  background:#1b2230;
  font-size:8px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.market-selected-title-v121>span.is-watched{
  border-color:#dca04466;
  color:#f5c978;
  background:#d8942712;
}

.market-insights-grid-v121{
  display:grid;
  grid-template-columns:minmax(285px,.72fr) minmax(390px,1.28fr);
  gap:10px;
  align-items:stretch;
}

.market-watch-card-v121,
.market-price-history-v121{
  min-width:0;
  border:1px solid #374156;
  border-radius:6px;
  background:#1a212f9e;
  overflow:hidden;
}

.market-watch-card-v121>header,
.market-price-history-v121>header{
  min-height:51px;
  padding:10px 11px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
  border-bottom:1px solid #333d50;
  background:linear-gradient(90deg,#293246,#232b3c);
}

.market-watch-card-v121>header strong,
.market-price-history-v121>header strong{
  color:#e9ecf2;
  font-size:10px;
}

.market-watch-controls-v121{
  padding:10px;
  display:grid;
  gap:8px;
}

.market-watch-check-v121{
  min-height:52px;
  padding:8px 9px;
  display:grid;
  grid-template-columns:17px minmax(0,1fr);
  align-items:start;
  gap:8px;
  border:1px solid #313b50;
  border-radius:5px;
  background:#20283a;
  cursor:pointer;
}

.market-watch-check-v121:hover{
  border-color:#46536b;
}

.market-watch-check-v121 input{
  width:15px;
  height:15px;
  margin-top:2px;
  accent-color:#e99a28;
}

.market-watch-check-v121>span{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.market-watch-check-v121 strong{
  color:#dce1ea;
  font-size:9px;
}

.market-watch-check-v121 small{
  color:#758198;
  font-size:8px;
  line-height:1.4;
}

.market-watch-check-v121.is-variant{
  background:#1d2534;
}

.market-watch-price-v121{
  display:grid;
  gap:4px;
}

.market-watch-price-v121>span{
  color:#9ba5b7;
  font-size:8px;
}

.market-watch-price-v121>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) 36px;
}

.market-watch-price-v121 input,
.market-watch-modal-row-v121 input[type="number"]{
  width:100%;
  height:36px;
  padding:0 9px;
  border:1px solid #3b465d;
  border-radius:4px 0 0 4px;
  outline:0;
  color:#f1f3f7;
  background:#151c29;
  font-size:10px;
}

.market-watch-price-v121 input:focus,
.market-watch-modal-row-v121 input[type="number"]:focus{
  border-color:#e9a13f90;
  box-shadow:0 0 0 2px #e9a13f12;
}

.market-watch-price-v121 b,
.market-watch-modal-row-v121 .is-price b{
  display:grid;
  place-items:center;
  border:1px solid #3b465d;
  border-left:0;
  border-radius:0 4px 4px 0;
  color:#dda64f;
  background:#252e40;
  font-size:8px;
}

.market-watch-price-v121.is-disabled{
  opacity:.48;
}

.market-watch-actions-v121{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px;
}

.market-watch-actions-v121 button,
.market-watch-modal-actions-v121 button{
  min-height:34px;
  padding:0 10px;
  border:1px solid #4b5870;
  border-radius:4px;
  color:#dfe4ec;
  background:#2a3448;
  cursor:pointer;
  font-size:9px;
  font-weight:700;
}

.market-watch-save-v121{
  border-color:#e69a2d!important;
  color:#fff!important;
  background:linear-gradient(135deg,#e3a029,#dc6816)!important;
}

.market-watch-delete-v121,
.market-watch-modal-actions-v121 .danger{
  border-color:#a956625c!important;
  color:#e6aab2!important;
  background:#442731!important;
}

.market-watch-actions-v121 button:hover,
.market-watch-modal-actions-v121 button:hover{
  filter:brightness(1.1);
}

.market-watch-login-v121{
  min-height:130px;
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
}

.market-watch-login-v121 strong{
  color:#dfe3eb;
  font-size:11px;
}

.market-watch-login-v121 span{
  color:#7e899e;
  font-size:9px;
  line-height:1.5;
}

.market-price-history-v121>header{
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.market-price-history-v121>header>div:first-child{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.market-history-period-v121,
.market-history-scope-v121{
  display:flex;
  gap:3px;
}

.market-history-period-v121 button,
.market-history-scope-v121 button{
  min-height:28px;
  padding:0 8px;
  border:1px solid #414c62;
  border-radius:4px;
  color:#8995a9;
  background:#1c2432;
  cursor:pointer;
  font-size:8px;
}

.market-history-period-v121 button.active,
.market-history-scope-v121 button.active{
  border-color:#d6902e75;
  color:#ffc66e;
  background:#d98f2416;
}

.market-history-scope-v121{
  padding:8px 10px 0;
}

.market-history-stats-v121{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-bottom:1px solid #313a4d;
}

.market-history-stats-v121>div{
  min-height:62px;
  padding:9px 10px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  border-right:1px solid #313a4d;
}

.market-history-stats-v121>div:last-child{
  border-right:0;
}

.market-history-stats-v121 small{
  color:#707c92;
  font-size:7px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.market-history-stats-v121 strong{
  color:#dce1e9;
  font-size:12px;
}

.market-history-stats-v121 strong i{
  color:#b77e2e;
  font-size:7px;
  font-style:normal;
}

.market-history-stats-v121>div.is-primary strong{
  color:#f5c46e;
}

.market-history-list-v121{
  max-height:210px;
  margin:0;
  padding:0;
  list-style:none;
  overflow:auto;
  scrollbar-color:#46516a #1a212f;
  scrollbar-width:thin;
}

.market-history-list-v121 li{
  min-height:48px;
  padding:7px 10px;
  display:grid;
  grid-template-columns:minmax(110px,1fr) minmax(105px,.8fr) 95px;
  align-items:center;
  gap:10px;
  border-bottom:1px solid #2e3749;
}

.market-history-list-v121 li:last-child{
  border-bottom:0;
}

.market-history-list-v121 li>span{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.market-history-list-v121 strong{
  color:#f1bf67;
  font-size:10px;
}

.market-history-list-v121 b{
  color:#cbd1dc;
  font-size:9px;
}

.market-history-list-v121 small,
.market-history-list-v121 time{
  color:#68758b;
  font-size:7px;
  font-style:normal;
}

.market-history-list-v121 time{
  text-align:right;
}

.market-price-history-v121>p{
  margin:0;
  padding:8px 10px;
  border-top:1px solid #30394b;
  color:#667289;
  font-size:7px;
  line-height:1.45;
}

.market-history-loading-v121,
.market-history-empty-v121{
  min-height:130px;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
  text-align:center;
}

.market-history-loading-v121{
  flex-direction:row;
}

.market-history-loading-v121 span{
  width:17px;
  height:17px;
  border:2px solid #46516a;
  border-top-color:#e49a2f;
  border-radius:50%;
  animation:market-history-spin-v121 .8s linear infinite;
}

@keyframes market-history-spin-v121{to{transform:rotate(360deg)}}

.market-history-loading-v121 b,
.market-history-empty-v121 strong{
  color:#cbd1dc;
  font-size:9px;
}

.market-history-empty-v121 span{
  color:#707c91;
  font-size:8px;
}

.market-history-empty-v121.is-error strong{
  color:#e3a4ad;
}

html.market-watch-modal-open-v121{
  overflow:hidden;
}

.market-watch-modal-backdrop-v121{
  position:fixed;
  inset:0;
  z-index:180;
  display:grid;
  place-items:center;
  padding:16px;
  background:#070a10c7;
}

.market-watch-modal-backdrop-v121[hidden]{
  display:none!important;
}

.market-watch-modal-v121{
  position:relative;
  width:min(900px,100%);
  max-height:min(760px,calc(100vh - 32px));
  border:1px solid #49546b;
  border-top:2px solid #e8a039;
  border-radius:8px;
  background:
    radial-gradient(circle at 90% 0,#ef9c2b12,transparent 32%),
    #202738;
  overflow:auto;
  box-shadow:0 30px 90px #05070bbd;
}

.market-watch-modal-v121>header{
  padding:22px 54px 17px 22px;
  border-bottom:1px solid #394358;
}

.market-watch-modal-v121>header small{
  color:#dc9530;
  letter-spacing:.12em;
  font-size:8px;
  font-weight:800;
}

.market-watch-modal-v121>header h2{
  margin:4px 0 3px;
  color:#f4f5f7;
  font-size:20px;
  font-weight:520;
}

.market-watch-modal-v121>header p{
  margin:0;
  color:#8390a5;
  font-size:9px;
}

.market-watch-modal-close-v121{
  position:absolute;
  top:15px;
  right:15px;
  width:32px;
  height:32px;
  border:1px solid #465269;
  border-radius:50%;
  color:#aeb7c6;
  background:#252e40;
  cursor:pointer;
  font-size:20px;
}

.market-watch-modal-list-v121{
  padding:12px;
  display:grid;
  gap:8px;
}

.market-watch-modal-row-v121{
  min-height:92px;
  padding:10px;
  display:grid;
  grid-template-columns:minmax(240px,1fr) 105px 145px auto;
  align-items:center;
  gap:10px;
  border:1px solid #374156;
  border-radius:6px;
  background:#1a212f;
}

.market-watch-modal-name-v121{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.market-watch-modal-name-v121 small{
  color:#717d92;
  font-size:7px;
}

.market-watch-modal-name-v121 strong{
  color:#e7eaf0;
  overflow-wrap:anywhere;
  font-size:10px;
}

.market-watch-modal-name-v121 span{
  color:#8e9aaf;
  font-size:8px;
  line-height:1.4;
}

.market-watch-modal-row-v121>label{
  display:flex;
  flex-direction:column;
  gap:5px;
  color:#7f8ba1;
  font-size:8px;
}

.market-watch-modal-row-v121>label>input[type="checkbox"]{
  width:16px;
  height:16px;
  accent-color:#e99a28;
}

.market-watch-modal-row-v121 .is-price>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) 34px;
}

.market-watch-modal-actions-v121{
  display:grid;
  grid-template-columns:repeat(2,auto);
  gap:5px;
}

.market-watch-modal-actions-v121 .danger{
  grid-column:1/-1;
}

.market-watch-modal-empty-v121{
  min-height:240px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
  text-align:center;
}

.market-watch-modal-empty-v121 strong{
  color:#dce1e9;
  font-size:12px;
}

.market-watch-modal-empty-v121 span{
  max-width:360px;
  color:#778399;
  font-size:9px;
  line-height:1.5;
}

@media (max-width:1050px){
  .market-insights-grid-v121{grid-template-columns:1fr}
  .market-watch-controls-v121{grid-template-columns:repeat(2,minmax(0,1fr))}
  .market-watch-actions-v121{grid-column:1/-1}
  .market-watch-modal-row-v121{grid-template-columns:minmax(220px,1fr) 95px 135px}
  .market-watch-modal-actions-v121{grid-column:1/-1;grid-template-columns:repeat(3,1fr)}
  .market-watch-modal-actions-v121 .danger{grid-column:auto}
}

@media (max-width:680px){
  .market-insights-head-v121{align-items:stretch;flex-direction:column}
  .market-insights-head-v121>button{width:100%}
  .market-insights-selected-v121{padding:11px 10px 13px}
  .market-selected-title-v121{align-items:stretch;flex-direction:column}
  .market-selected-title-v121>span{align-self:flex-start}
  .market-insights-grid-v121{grid-template-columns:minmax(0,1fr)}
  .market-watch-controls-v121{grid-template-columns:1fr}
  .market-watch-actions-v121{grid-column:auto;grid-template-columns:1fr}
  .market-price-history-v121>header{align-items:stretch;flex-direction:column}
  .market-history-period-v121 button{flex:1}
  .market-history-stats-v121{grid-template-columns:repeat(2,minmax(0,1fr))}
  .market-history-stats-v121>div:nth-child(2){border-right:0}
  .market-history-stats-v121>div:nth-child(-n+2){border-bottom:1px solid #313a4d}
  .market-history-list-v121 li{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .market-history-list-v121 time{grid-column:1/-1;text-align:left}
  .market-watch-modal-backdrop-v121{place-items:stretch;padding:0}
  .market-watch-modal-v121{width:100%;max-height:100vh;border-radius:0}
  .market-watch-modal-v121>header{padding:18px 48px 14px 14px}
  .market-watch-modal-list-v121{padding:8px}
  .market-watch-modal-row-v121{grid-template-columns:1fr 1fr}
  .market-watch-modal-name-v121{grid-column:1/-1}
  .market-watch-modal-actions-v121{grid-column:1/-1;grid-template-columns:1fr}
  .market-watch-modal-actions-v121 .danger{grid-column:auto}
}

@media (prefers-reduced-motion:reduce){
  .market-history-loading-v121 span{animation:none}
}
