.storage-card .price-tag{
  --m1-price-tag-red:#e53d50;
  --m1-price-tag-red-dark:#b81f32;
  --m1-price-tag-paper:#fffaf2;
  --m1-price-tag-ink:#101820;
  --m1-price-tag-shadow:0 2px 5px rgba(0,0,0,.32);
  position:absolute;
  top:4px;
  right:4px;
  z-index:6;
  width:69px;
  height:31px;
  display:block;
  overflow:hidden;
  border:1px solid var(--m1-price-tag-red);
  border-radius:4px;
  background:var(--m1-price-tag-paper);
  box-shadow:var(--m1-price-tag-shadow);
  box-sizing:border-box;
  color:var(--m1-price-tag-ink);
  text-shadow:none;
}
.storage-card .price-tag__label,
.storage-card .price-tag__value{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  white-space:nowrap;
}
.storage-card .price-tag__label{
  padding:0 4px;
  height:13px;
  background:linear-gradient(180deg,var(--m1-price-tag-red),var(--m1-price-tag-red-dark));
  color:#fff;
  font-family:Arial,"Open Sans",Tahoma,sans-serif;
  font-size:8px;
  font-weight:800;
  line-height:1;
  letter-spacing:.2px;
  transform:translateY(-1px);
}
.storage-card .price-tag__value{
  padding:0 5px;
  height:16px;
  background:linear-gradient(180deg,#fffefa,var(--m1-price-tag-paper));
  font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;
  font-size:13px;
  font-weight:700;
  line-height:16px;
  letter-spacing:-0.5px;
}

.storage-card .price-tag{
  padding:0;
  min-height:0;
  cursor:pointer;
  appearance:none;
}
.storage-card .price-edit-popover{
  position:fixed;
  top:0;
  left:0;
  z-index:101;
  width:max-content;
  max-width:calc(100vw - 20px);
  max-height:calc(100vh - 20px);
  padding:9px;
  border:1px solid var(--m1-translucent-border);
  border-radius:13px;
  background:var(--m1-translucent-surface);
  backdrop-filter:blur(var(--m1-translucent-blur));
  -webkit-backdrop-filter:blur(var(--m1-translucent-blur));
  box-shadow:var(--m1-translucent-shadow);
  overflow:auto;
}
.storage-card .price-edit-popover label{
  display:block;
  margin:2px 0 5px;
  color:var(--text);
  font-size:14px;
  font-weight:500;
  line-height:1.2;
}
.storage-card .price-edit-popover button{
  font-weight:inherit;
}
.storage-card .price-edit-body{
  display:flex;
  align-items:stretch;
  gap:9px;
}
.storage-card .price-edit-preview{
  width:122px;
  display:grid;
  justify-items:center;
  grid-template-rows:minmax(0,1fr) auto;
  gap:0;
  flex:0 0 122px;
  overflow:hidden;
  border-radius:10px;
  background:var(--panel2);
}
.storage-card .price-edit-preview-art{
  width:122px;
  height:100%;
  position:relative;
  display:grid;
  place-items:center;
  border:0;
  border-radius:0;
  background:transparent;
  overflow:hidden;
}
.storage-card .price-edit-preview-art img{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  margin:0;
  padding:8px;
  transform:none;
  object-fit:contain;
  object-position:center;
}
.storage-card .price-edit-preview-name{
  width:100%;
  min-height:26px;
  padding:4px 6px;
  border-radius:0;
  background:var(--rarity);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:500;
  line-height:1.05;
  text-align:center;
  overflow:hidden;
}
.storage-card .price-edit-controls{
  width:max-content;
}
.storage-card .price-edit-row{
  display:flex;
  align-items:center;
  gap:6px;
}
.storage-card .price-edit-input{
  flex:0 0 82px;
  width:82px;
  height:32px;
  min-height:32px;
  padding:0 9px;
  border-radius:9px;
  font-size:14px;
}
.storage-card .price-edit-ok{
  flex:1 1 0;
  height:32px;
  min-height:32px;
  padding:0 8px;
  border-radius:9px;
  font-size:13px;
  background:#8bc34a;
  border-color:#8bc34a;
  color:#fff;
}
.storage-card .price-edit-ok:disabled,
body[data-page="storage"] .bulk-sell-popover .price-edit-ok:disabled{
  background:color-mix(in srgb,#8bc34a 34%,var(--panel2) 66%)!important;
  border-color:color-mix(in srgb,#8bc34a 32%,var(--line) 68%)!important;
  color:color-mix(in srgb,#fff 48%,var(--muted) 52%)!important;
  cursor:not-allowed!important;
  filter:saturate(.55) brightness(.9)!important;
  opacity:.62!important;
}
.storage-card .price-edit-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
  margin-top:8px;
}
.storage-card .price-edit-cancel,
.storage-card .price-edit-unlist{
  width:100%;
  height:32px;
  min-height:32px;
  padding:0 8px;
  border-radius:9px;
  font-size:13px;
  box-shadow:none;
}
.storage-card .price-edit-unlist{
  padding-left:6px;
  padding-right:6px;
  background:#a94f5a;
  border-color:#a94f5a;
  color:#fff;
}
.storage-card .price-edit-cancel{
  background:#6f91b3;
  border-color:#6f91b3;
  color:#fff;
}
body[data-page="storage"] .price-edit-lock{
  position:fixed;
  inset:0;
  z-index:90;
  padding:0;
  border:0;
  border-radius:0;
  background:rgba(0,0,0,.18);
  cursor:default;
}
body[data-page="storage"] .storage-grid:has(.price-edit-popover){
  overflow:visible!important;
}
body[data-page="storage"] .storage-card:has(.price-edit-popover){
  z-index:100!important;
}
@media(max-width:760px){
  body[data-page="storage"] .storage-card .price-edit-popover{
    position:fixed;
    top:auto;
    left:10px;
    right:10px;
    bottom:calc(10px + env(safe-area-inset-bottom));
    z-index:101;
    width:auto;
    max-width:none;
    max-height:48vh;
    padding:12px;
    border-radius:13px;
    box-shadow:var(--m1-translucent-shadow);
    overflow:auto;
  }
  body[data-page="storage"] .storage-card .price-edit-body{
    justify-content:center;
    gap:10px;
  }
  body[data-page="storage"] .storage-card .price-edit-popover label{
    font-size:16px;
    margin:3px 0 5px;
  }
  body[data-page="storage"] .storage-card .price-edit-preview{
    width:138px;
    flex-basis:138px;
  }
  body[data-page="storage"] .storage-card .price-edit-preview-art{
    width:138px;
  }
  body[data-page="storage"] .storage-card .price-edit-preview-name{
    min-height:30px;
    padding:5px 7px;
    font-size:13px;
  }
  body[data-page="storage"] .storage-card .price-edit-row{
    gap:7px;
  }
  body[data-page="storage"] .storage-card .price-edit-input{
    flex-basis:93px;
    width:93px;
    height:36px;
    min-height:36px;
    padding:0 10px;
    font-size:16px;
  }
  body[data-page="storage"] .storage-card .price-edit-ok,
  body[data-page="storage"] .storage-card .price-edit-cancel,
  body[data-page="storage"] .storage-card .price-edit-unlist{
    height:36px;
    min-height:36px;
    padding:0 9px;
    font-size:14px;
  }
  body[data-page="storage"] .storage-card .price-edit-actions{
    gap:8px;
    margin-top:9px;
  }
}

body[data-page="storage"] .bulk-sell-popover{
  position:fixed;
  top:0;
  left:0;
  z-index:101;
  width:max-content;
  max-width:calc(100vw - 20px);
  max-height:calc(100vh - 20px);
  padding:9px;
  border:1px solid var(--m1-translucent-border);
  border-radius:13px;
  background:var(--m1-translucent-surface);
  backdrop-filter:blur(var(--m1-translucent-blur));
  -webkit-backdrop-filter:blur(var(--m1-translucent-blur));
  box-shadow:var(--m1-translucent-shadow);
  overflow:auto;
}
body[data-page="storage"] .bulk-sell-popover label{display:block;margin:2px 0 5px;color:var(--text);font-size:14px;font-weight:500;line-height:1.2}
body[data-page="storage"] .bulk-sell-popover button{font-weight:inherit}
body[data-page="storage"] .bulk-sell-popover .price-edit-body{display:flex;align-items:stretch;gap:9px}
body[data-page="storage"] .bulk-sell-popover .price-edit-preview{width:146px;display:grid;justify-items:center;grid-template-rows:minmax(0,1fr) auto;gap:0;flex:0 0 146px;overflow:hidden;border-radius:10px;background:linear-gradient(180deg,var(--item-bg-top),var(--item-bg-bottom))}
body[data-page="storage"] .bulk-sell-popover .price-edit-preview-art{width:146px;height:100%;position:relative;display:grid;place-items:center;border:0;border-radius:0;background:transparent;overflow:hidden}
body[data-page="storage"] .bulk-sell-popover .price-edit-preview-art img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:8px;transform:none;object-fit:contain;object-position:center}
body[data-page="storage"] .bulk-sell-popover .price-edit-preview-name{width:100%;min-height:31px;padding:4px 6px;border-radius:0;background:var(--rarity);color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:500;line-height:1.05;text-align:center;overflow:hidden}
body[data-page="storage"] .bulk-sell-popover .price-edit-controls{width:190px}
body[data-page="storage"] .bulk-sell-popover .bulk-sell-count{margin:0 0 6px;color:var(--muted);font-size:12px;font-weight:700;line-height:1.1}
body[data-page="storage"] .bulk-sell-popover .bulk-sell-market{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 8px}
body[data-page="storage"] .bulk-sell-popover .bulk-sell-market-item{min-width:0;padding:0}
body[data-page="storage"] .bulk-sell-popover .bulk-sell-market-item span{display:block;margin:0 0 3px;color:var(--muted);font-size:10px;font-weight:700;line-height:1;text-transform:none;letter-spacing:0}
body[data-page="storage"] .bulk-sell-popover .bulk-sell-market-item b{display:block;min-width:0;color:var(--text);font-size:13px;font-weight:800;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-page="storage"] .bulk-sell-popover .price-edit-row{display:flex;align-items:center;gap:6px}
body[data-page="storage"] .bulk-sell-popover .bulk-sell-receive{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0 0;color:var(--muted);font-size:12px;font-weight:700;line-height:1.1}
body[data-page="storage"] .bulk-sell-popover .bulk-sell-receive b{color:var(--text);font-size:13px;font-weight:800}
body[data-page="storage"] .bulk-sell-popover .price-edit-input{flex:0 0 82px;width:82px;height:32px;min-height:32px;padding:0 9px;border-radius:9px;font-size:14px}
body[data-page="storage"] .bulk-sell-popover .price-edit-ok{flex:1 1 0;height:32px;min-height:32px;padding:0 8px;border-radius:9px;font-size:13px;background:#8bc34a;border-color:#8bc34a;color:#fff}
body[data-page="storage"] .bulk-sell-popover .price-edit-actions{display:grid;grid-template-columns:1fr;gap:7px;margin-top:8px}
body[data-page="storage"] .bulk-sell-popover .price-edit-cancel{width:100%;height:32px;min-height:32px;padding:0 8px;border-radius:9px;font-size:13px;box-shadow:none;background:#6f91b3;border-color:#6f91b3;color:#fff}
@media(max-width:760px){
  body[data-page="storage"] .bulk-sell-popover{position:fixed;top:auto;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:101;width:auto;max-width:none;max-height:48vh;padding:12px;border-radius:13px;box-shadow:var(--m1-translucent-shadow);overflow:auto}
  body[data-page="storage"] .bulk-sell-popover .price-edit-body{justify-content:center;gap:10px}
  body[data-page="storage"] .bulk-sell-popover label{font-size:16px;margin:3px 0 5px}
  body[data-page="storage"] .bulk-sell-popover .price-edit-preview{width:166px;flex-basis:166px}
  body[data-page="storage"] .bulk-sell-popover .price-edit-preview-art{width:166px}
  body[data-page="storage"] .bulk-sell-popover .price-edit-preview-name{min-height:36px;padding:5px 7px;font-size:13px}
  body[data-page="storage"] .bulk-sell-popover .bulk-sell-market{grid-template-columns:1fr 1fr;gap:7px;margin-bottom:9px}
  body[data-page="storage"] .bulk-sell-popover .price-edit-controls{width:205px}
  body[data-page="storage"] .bulk-sell-popover .price-edit-input{flex-basis:93px;width:93px;height:36px;min-height:36px;padding:0 10px;font-size:16px}
  body[data-page="storage"] .bulk-sell-popover .price-edit-ok,body[data-page="storage"] .bulk-sell-popover .price-edit-cancel{height:36px;min-height:36px;padding:0 9px;font-size:14px}
}

body[data-page="storage"] .price-edit-lock.bulk-sell-lock{background:rgba(0,0,0,.72)!important}
