/**
 * char.html — лише локальні правки перса (прозорий .l2-char-mobi, сумка, кнопки).
 * Тло колонки — у l2-app-chrome-skin.css для всіх сторінок з l2-app-l2-chrome.
 * Підключати після l2-app-chrome-skin.css.
 */
body.l2-app-l2-chrome.l2-page-char .l2-char-mobi {
  margin: 10px 0 0;
  padding: 14px 4px 16px;
  border-radius: 0 !important;
  border: none !important;
  border-image: none !important;
  background: transparent !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-mobi::before {
  opacity: 0;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-title-row {
  margin-bottom: 12px;
  padding-bottom: 8px;
  min-height: 22px;
  border-bottom: 1px solid rgba(180, 140, 80, 0.4);
}

body.l2-app-l2-chrome.l2-page-char .l2-char-title-empty {
  color: #a89880;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-title-empty.l2-char-achievement-rank {
  color: #969696;
  font-weight: 600;
  text-shadow: 0 0 3px rgba(205, 205, 205, 0.16);
  animation: l2-char-achievement-rank-pulse 1.8s ease-in-out infinite;
}

@keyframes l2-char-achievement-rank-pulse {
  0%,
  100% {
    opacity: 0.52;
    text-shadow: 0 0 2px rgba(205, 205, 205, 0.08);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 5px rgba(205, 205, 205, 0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.l2-app-l2-chrome.l2-page-char .l2-char-title-empty.l2-char-achievement-rank {
    animation: none;
    opacity: 0.9;
  }
}

body.l2-app-l2-chrome.l2-page-char .l2-char-name-bracket {
  color: var(--l2-nick-color);
  text-shadow: var(--l2-nick-shadow);
}

body.l2-app-l2-chrome.l2-page-char .l2-char-equip-frame {
  border-radius: 8px !important;
  border: 1px solid rgba(200, 160, 70, 0.28) !important;
  border-image: none !important;
  background: transparent !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-equip-frame::before {
  opacity: 0;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-equip-bg {
  background: transparent;
  min-height: 194px;
}

/* Портрет героя: стартова 1-а профа vs усі наступні (−15% від старту) */
body.l2-app-l2-chrome.l2-page-char {
  --l2-hero-starter-h: 76.7%;
  --l2-hero-starter-w: 80.9%;
  --l2-hero-starter-scale: 0.88;
  --l2-hero-prof-h: 65.2%;
  --l2-hero-prof-w: 68.8%;
  --l2-hero-prof-scale: 0.748;
}

/* Усі професії: той самий розмір, що на старті */
body.l2-app-l2-chrome.l2-page-char .l2-char-equip-bg--hero-on-stairs .l2-char-equip-hero-overlay {
  position: relative;
  z-index: 1;
  width: auto;
  height: var(--l2-hero-starter-h);
  max-width: var(--l2-hero-starter-w);
  object-fit: contain;
  object-position: center bottom;
  transform: scale(var(--l2-hero-starter-scale)) translateY(var(--l2-hero-feet-nudge-y));
  transform-origin: center bottom;
  filter: none;
}

/* JPG з чорним фоном (L2 render) — «вирізаємо» чорне на сцені */
body.l2-app-l2-chrome.l2-page-char .l2-char-equip-hero-overlay--black-key {
  mix-blend-mode: lighten;
}

/* Стартова 1-а профа (human_fighter, human_mage, базові раси) */
body.l2-app-l2-chrome.l2-page-char .l2-char-equip-bg--hero-human-fighter-m .l2-char-equip-hero-overlay,
body.l2-app-l2-chrome.l2-page-char .l2-char-equip-bg--hero-human-fighter-f .l2-char-equip-hero-overlay,
body.l2-app-l2-chrome.l2-page-char .l2-char-equip-bg--hero-human-mage-m .l2-char-equip-hero-overlay,
body.l2-app-l2-chrome.l2-page-char .l2-char-equip-bg--hero-human-mage-f .l2-char-equip-hero-overlay,
body.l2-app-l2-chrome.l2-page-char .l2-char-equip-bg--hero-dwarf-fighter-m .l2-char-equip-hero-overlay,
body.l2-app-l2-chrome.l2-page-char .l2-char-equip-bg--hero-dwarf-fighter-f .l2-char-equip-hero-overlay,
body.l2-app-l2-chrome.l2-page-char .l2-char-equip-bg--hero-orc-fighter-m .l2-char-equip-hero-overlay,
body.l2-app-l2-chrome.l2-page-char .l2-char-equip-bg--hero-orc-fighter-f .l2-char-equip-hero-overlay,
body.l2-app-l2-chrome.l2-page-char .l2-char-equip-bg--hero-elf-fighter-m .l2-char-equip-hero-overlay,
body.l2-app-l2-chrome.l2-page-char .l2-char-equip-bg--hero-elf-mystic-m .l2-char-equip-hero-overlay,
body.l2-app-l2-chrome.l2-page-char .l2-char-equip-bg--hero-dark-elf-fighter-m .l2-char-equip-hero-overlay,
body.l2-app-l2-chrome.l2-page-char .l2-char-equip-bg--hero-dark-elf-mystic-m .l2-char-equip-hero-overlay,
body.l2-app-l2-chrome.l2-page-char .l2-char-equip-bg--hero-dark-elf-mystic-f .l2-char-equip-hero-overlay {
  height: var(--l2-hero-starter-h);
  max-width: var(--l2-hero-starter-w);
  filter: none;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-slot-icon {
  border: 1px solid rgba(200, 160, 95, 0.5);
  background: rgba(8, 6, 5, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.45);
}

body.l2-app-l2-chrome.l2-page-char .l2-char-currency {
  margin-top: calc(-26px + 3mm);
  padding: 5px 10px 6px;
  border: none !important;
  border-image: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #d8d0c0;
}

/* Адена/EXP/SP — риски зверху і знизу: товщі по центру, тонші до країв */
body.l2-app-l2-chrome.l2-page-char .l2-char-currency::before,
body.l2-app-l2-chrome.l2-page-char .l2-char-currency::after {
  content: '';
  display: block;
  flex: 0 0 100%;
  width: min(94%, 320px);
  height: 3px;
  margin-left: auto;
  margin-right: auto;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(199, 173, 128, 0.35) 16%,
      rgba(199, 173, 128, 0.92) 50%,
      rgba(199, 173, 128, 0.35) 84%,
      transparent 100%
    )
    center / 68% 2px no-repeat,
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(199, 173, 128, 0.22) 8%,
      rgba(199, 173, 128, 0.55) 50%,
      rgba(199, 173, 128, 0.22) 92%,
      transparent 100%
    )
    center / 100% 1px no-repeat;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-currency::before {
  margin-bottom: 5px;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-currency::after {
  margin-top: 3px;
  margin-bottom: 0;
  order: 99;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-adena-label {
  color: #c8b888;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-block {
  margin-top: 0;
  margin-bottom: 12px;
  padding: 2px 0 10px;
  border-radius: 0 !important;
  border: none !important;
  border-image: none !important;
  background: transparent !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

body.l2-app-l2-chrome.l2-page-char {
  --l2-char-bag-tab-outset-x: calc(4px + 0.4mm);
  --l2s-char-inv888-bd-x: 12;
  --l2-char-inv-tab-text: #b8b0a4;
  --l2-char-inv-tab-text-hover: #d4c8b8;
  --l2-char-inv-tab-text-active: #f2ead8;
  --l2-char-inv-tab-sep: rgba(255, 186, 0, 0.42);
  --l2-char-inv-tab-font: 10px;
  --l2-char-inv-tab-gap: 5px;
  --l2-char-page-price-gold: #ffdc5c;
  --l2-char-page-action-wear: #d8d0c0;
  --l2-char-page-action-warehouse: #e8a878;
  --l2-char-page-action-warehouse-hover: #ffc898;
  --l2-char-page-pager: #c8b898;
  --l2-char-page-stats-muted: #9a9488;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-title {
  box-sizing: border-box;
  color: rgba(232, 200, 120, 0.9) !important;
  text-shadow: none;
  text-transform: none;
  letter-spacing: 0.04em;
  margin-left: calc(-1 * var(--l2-char-bag-tab-outset-x));
  padding-left: calc(1px * var(--l2s-char-inv888-bd-x));
  margin-bottom: 0;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-transfer-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
  padding: 2px 6px;
  border: none;
  border-radius: 6px;
  background: #ffffff;
  color: #000000;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-transfer-btn__icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-transfer-btn:hover,
body.l2-app-l2-chrome.l2-page-char .l2-char-bag-transfer-btn:focus,
body.l2-app-l2-chrome.l2-page-char .l2-char-bag-transfer-btn:focus-visible {
  color: #000000;
  background: #ffffff;
  text-decoration: none;
  filter: brightness(0.96);
  outline: none;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-notice {
  margin: 6px 0 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  color: #8fd4a8;
  text-align: center;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-filters {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: var(--l2-char-inv-tab-gap) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  border: none !important;
  border-image: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 0 !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--l2-char-inv-tab-gap) !important;
  padding-top: 0;
  width: 100% !important;
  max-width: none !important;
}

/* Таби всередині суцільнішої рамки: категорії та грейди — сітка, без горизонтального скролу */
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: none !important;
  width: 100% !important;
  max-width: none !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist:last-of-type {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--cats,
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--grades,
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--weapon-kind,
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--consumable-sub,
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--armor-piece,
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--jewelry-sub {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--cats {
  flex-wrap: nowrap !important;
}

/* Категорії сумки — два ряди */
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-cats-wrap {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: visible !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-cats-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-cats-row--top {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-cats-row--bottom {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-cats-wrap .l2-drops-shop-tablist--cats {
  width: auto !important;
  justify-content: center !important;
  margin-bottom: 0 !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-all-host {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-all-host::after {
  content: '|' !important;
  display: inline-block !important;
  margin: 0 6px !important;
  color: var(--l2-char-inv-tab-sep) !important;
  font-weight: 400 !important;
  pointer-events: none !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-all-items-btn {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 2px 0 !important;
  border: none !important;
  border-radius: 0 !important;
  border-image: none !important;
  border-image-source: none !important;
  border-width: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--l2-char-inv-tab-text) !important;
  font-size: var(--l2-char-inv-tab-font) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  text-shadow: none !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transform: none !important;
  filter: none !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-all-items-btn:hover,
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-all-items-btn:focus {
  background: transparent !important;
  color: var(--l2-char-inv-tab-text-hover) !important;
  filter: none !important;
  outline: none !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-all-items-btn--active {
  background: transparent !important;
  color: var(--l2-char-inv-tab-text-active) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  filter: none !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row--equipped {
  opacity: 0.92;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--cats .l2-drops-shop-tab,
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--grades .l2-drops-shop-tab {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  padding: 2px 0 !important;
  font-size: var(--l2-char-inv-tab-font) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Зброя: підкатегорії в один ряд з рисками */
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--weapon-kind .l2-drops-shop-tab {
  flex: 0 1 auto !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 2px 0 !important;
  font-size: var(--l2-char-inv-tab-font) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--consumable-sub .l2-drops-shop-tab {
  flex: 0 1 auto !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 2px 0 !important;
  font-size: var(--l2-char-inv-tab-font) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--armor-piece .l2-drops-shop-tab,
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--jewelry-sub .l2-drops-shop-tab {
  flex: 0 1 auto !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 2px 0 !important;
  font-size: var(--l2-char-inv-tab-font) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Вертикальна риска між сусідніми фільтрами в одному ряді */
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tab + .l2-drops-shop-tab::before {
  content: '|' !important;
  display: inline-block !important;
  margin: 0 6px !important;
  color: var(--l2-char-inv-tab-sep) !important;
  font-weight: 400 !important;
  pointer-events: none !important;
}

/* Фільтри сумки — лише текст на фоні сторінки (без ref/541.png і без «кнопок») */
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tab {
  border: none !important;
  border-width: 0 !important;
  border-radius: 0 !important;
  border-image: none !important;
  border-image-source: none !important;
  border-image-width: 0 !important;
  border-image-slice: none !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  color: var(--l2-char-inv-tab-text) !important;
  text-shadow: none !important;
  text-decoration: none !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tab:hover,
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tab:focus {
  background: transparent !important;
  color: var(--l2-char-inv-tab-text-hover) !important;
  filter: none !important;
  outline: none !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tab--active {
  background: transparent !important;
  color: var(--l2-char-inv-tab-text-active) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  filter: none !important;
}

/* Обраний грейд — колір грейду + підкреслення */
body.l2-app-l2-chrome.l2-page-char #char-bag-tab-grades .l2-drops-shop-tab--active {
  background: transparent !important;
  filter: none !important;
  text-shadow: none !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  z-index: 1;
  position: relative;
}

/* Грейди сумки — палітра як у gm-shop */
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--grades .l2-drops-shop-tab[data-grade='NG'] {
  color: var(--l2-item-grade-ng) !important;
}
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--grades .l2-drops-shop-tab[data-grade='D'] {
  color: var(--l2-item-grade-d) !important;
}
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--grades .l2-drops-shop-tab[data-grade='C'] {
  color: var(--l2-item-grade-c) !important;
}
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--grades .l2-drops-shop-tab[data-grade='B'] {
  color: var(--l2-item-grade-b) !important;
}
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--grades .l2-drops-shop-tab[data-grade='A'] {
  color: var(--l2-item-grade-a) !important;
}
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--grades .l2-drops-shop-tab[data-grade='S'] {
  color: var(--l2-item-grade-s) !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-list {
  margin-top: 6px !important;
  min-height: 196px;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1cm;
  margin: 10px 0 0;
  padding: 0;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-pager[hidden] {
  display: none !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-pager__btn {
  min-width: 0;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--l2-char-page-pager);
  text-decoration: none;
  cursor: pointer;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-pager__btn:hover:not(:disabled),
body.l2-app-l2-chrome.l2-page-char .l2-char-bag-pager__btn:focus:not(:disabled),
body.l2-app-l2-chrome.l2-page-char .l2-char-bag-pager__btn:focus-visible:not(:disabled) {
  color: #e8d4b0;
  text-decoration: underline;
  outline: none;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-pager__btn:disabled {
  opacity: 0.35;
  cursor: default;
  text-decoration: none;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row--skeleton {
  pointer-events: none;
  opacity: 0.7;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-icon--skeleton {
  display: inline-block;
  background: rgba(140, 120, 90, 0.24);
  border-color: rgba(140, 120, 90, 0.32);
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-name--skeleton,
body.l2-app-l2-chrome.l2-page-char .l2-char-bag-stats--skeleton {
  color: rgba(196, 176, 144, 0.75);
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-row--grades {
  border-top-color: rgba(140, 110, 60, 0.4);
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row--click:hover,
body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row--click:focus {
  background: rgba(40, 28, 12, 0.42);
}

/* Модалка предмета: без рамки 541 — фон #1d1c1a, легка обводка */
body.l2-app-l2-chrome.l2-page-char #char-bag-modal-overlay .l2-gm-modal,
body.l2-app-l2-chrome.l2-page-char #char-enchant-modal-overlay .l2-gm-modal,
body.l2-app-l2-chrome.l2-page-char #char-crystallize-modal-overlay .l2-gm-modal,
body.l2-app-l2-chrome #l2-item-stats-modal-overlay .l2-gm-modal {
  border: 1px solid rgba(120, 100, 72, 0.42) !important;
  border-width: 1px !important;
  border-image: none !important;
  border-image-source: none !important;
  border-radius: 4px;
  background: #1d1c1a !important;
  filter: none !important;
  -webkit-filter: none !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

body.l2-app-l2-chrome.l2-page-char #char-bag-modal-overlay .l2-item-modal-heading,
body.l2-app-l2-chrome #l2-item-stats-modal-overlay .l2-item-modal-heading {
  border-bottom-color: rgba(120, 100, 72, 0.35);
}

body.l2-app-l2-chrome.l2-page-char #char-bag-modal-use-row[hidden],
body.l2-app-l2-chrome.l2-page-char #char-bag-modal-equip[hidden],
body.l2-app-l2-chrome.l2-page-char #char-bag-modal-use[hidden],
body.l2-app-l2-chrome.l2-page-char button.l2-char-bag-modal-action[hidden] {
  display: none !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-modal-use-row:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-modal-use-label {
  font-size: 11px;
  color: #c8c0b0;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-modal-use-qty {
  box-sizing: border-box;
  width: 64px;
  padding: 4px 6px;
  font-size: 12px;
  color: #f0e6b8;
  border: 1px solid rgba(199, 173, 128, 0.45);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.35);
}

body.l2-app-l2-chrome.l2-page-char button.l2-char-bag-equip,
body.l2-app-l2-chrome.l2-page-char button.l2-char-bag-modal-action:not([hidden]),
body.l2-app-l2-chrome.l2-page-char #char-bag-modal-equip:not([hidden]),
body.l2-app-l2-chrome.l2-page-char #char-bag-modal-use:not([hidden]) {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 58px;
  min-height: 26px;
  padding: 5px 12px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-image: none !important;
  border-image-source: none !important;
  border-image-slice: none !important;
  border-image-width: 0 !important;
  background-color: transparent !important;
  background-image: url('/assets/1512125-removebg-preview-removebg-preview.png?v=20260707charBagBtn1512') !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  color: #f0e6b8 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
  cursor: pointer;
  filter: none !important;
  -webkit-filter: none !important;
  transform: none !important;
}

body.l2-app-l2-chrome.l2-page-char #char-bag-modal-equip,
body.l2-app-l2-chrome.l2-page-char #char-bag-modal-use {
  min-width: 72px;
  min-height: 30px;
  padding: 6px 14px !important;
  font-size: 11px !important;
  margin-top: 4px;
}

body.l2-app-l2-chrome.l2-page-char #char-bag-modal-use-row #char-bag-modal-use {
  margin-top: 0;
}

body.l2-app-l2-chrome.l2-page-char #char-bag-modal-cut-row[hidden] {
  display: none !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-modal-cut-row:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-modal-cut-label {
  font-size: 11px;
  color: #c8c0b0;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-modal-cut-qty {
  box-sizing: border-box;
  width: 68px;
  padding: 4px 6px;
  font-size: 12px;
  color: #111111;
  border: 1px solid #888888;
  border-radius: 2px;
  background: #ffffff;
}

body.l2-app-l2-chrome.l2-page-char #char-bag-modal-cut-row #char-bag-modal-cut:not([hidden]) {
  margin-top: 0;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-cut-result {
  margin: 8px 0.5cm;
  padding: 6px 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
  word-break: break-word;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-cut-result__plain {
  color: #ffffff;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-cut-result__fish {
  color: #4f9ee8;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-cut-result__got-label {
  color: #7fd67f;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-cut-result__reward {
  color: #ffffff;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-fishing-reward-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-oldbox-open-result__item.l2-char-fishing-reward-line {
  display: flex;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-fishing-reward-line__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

body.l2-app-l2-chrome.l2-page-char #char-bag-modal-oldbox-row[hidden] {
  display: none !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-modal-oldbox-row:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-modal-oldbox-owned {
  margin: 0;
  font-size: 11px;
  color: #c8c0b0;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-modal-oldbox-open-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-modal-oldbox-open-label {
  font-size: 11px;
  color: #c8c0b0;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-modal-oldbox-qty {
  box-sizing: border-box;
  width: 68px;
  padding: 4px 6px;
  font-size: 12px;
  color: #111111;
  border: 1px solid #888888;
  border-radius: 2px;
  background: #ffffff;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-modal-oldbox-max {
  padding: 4px 8px;
  font-size: 11px;
  color: #111111;
  border: 1px solid #888888;
  border-radius: 2px;
  background: #e8e0d0;
  cursor: pointer;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-modal-oldbox-max:disabled {
  opacity: 0.55;
  cursor: default;
}

body.l2-app-l2-chrome.l2-page-char #char-bag-modal-oldbox-row #char-bag-modal-open-oldbox:not([hidden]) {
  margin-top: 0;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-oldbox-open-result {
  margin: 8px 0.5cm;
  padding: 6px 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: transparent !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-oldbox-open-result__head,
body.l2-app-l2-chrome.l2-page-char .l2-char-oldbox-open-result__got-label {
  margin: 0 0 4px;
  font-size: 11px;
  color: #e8dcc8;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-oldbox-open-result__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-oldbox-open-result__item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
  font-size: 11px;
  color: #d8ccb8;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-oldbox-open-result__item--coin .l2-char-oldbox-open-result__text {
  color: #ffd86a;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-oldbox-open-result__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

body.l2-app-l2-chrome.l2-page-char .l2-fishing-oldbox-label {
  color: #d4af37;
}

body.l2-app-l2-chrome.l2-page-char .l2-fishing-oldbox-pct {
  color: #5ec8e8;
}

body.l2-app-l2-chrome.l2-page-char .l2-fishing-oldbox-hint {
  color: #b8a878;
  font-size: 0.92em;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-rod-enchant-scroll-qty {
  margin: 0 0 6px;
  font-size: 0.88em;
  color: #c8c0a8;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-rod-enchant-result {
  margin: 6px 0 0;
  font-size: 0.9em;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-rod-enchant-result__plain {
  color: #7fd67f;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-rod-enchant-result__bonus {
  color: #5ec8e8;
}

body.l2-app-l2-chrome.l2-page-char button.l2-char-bag-equip:hover,
body.l2-app-l2-chrome.l2-page-char button.l2-char-bag-equip:focus,
body.l2-app-l2-chrome.l2-page-char button.l2-char-bag-equip:focus-visible,
body.l2-app-l2-chrome.l2-page-char button.l2-char-bag-modal-action:hover,
body.l2-app-l2-chrome.l2-page-char button.l2-char-bag-modal-action:focus,
body.l2-app-l2-chrome.l2-page-char button.l2-char-bag-modal-action:focus-visible {
  outline: none !important;
  border: 0 !important;
  border-image: none !important;
  background-image: url('/assets/1512125-removebg-preview-removebg-preview.png?v=20260707charBagBtn1512') !important;
  filter: brightness(1.06) !important;
  -webkit-filter: brightness(1.06) !important;
  color: #fff4d6 !important;
  transform: none !important;
}

/* «Одіти» / «[На склад]» у списку сумки — лише текст, без рамки 1512125 */
body.l2-app-l2-chrome.l2-page-char .l2-char-bag-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row button.l2-char-bag-equip {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-image: none !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--l2-char-inv-tab-text) !important;
  text-shadow: none !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row button.l2-char-bag-equip--wear {
  font-size: 12px !important;
  color: var(--l2-char-page-action-wear) !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row button.l2-char-bag-equip--warehouse {
  color: var(--l2-char-page-action-warehouse) !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row button.l2-char-bag-equip:hover,
body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row button.l2-char-bag-equip:focus,
body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row button.l2-char-bag-equip:focus-visible {
  outline: none !important;
  border: none !important;
  border-image: none !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--l2-char-inv-tab-text-hover) !important;
  text-decoration: underline !important;
  filter: none !important;
  -webkit-filter: none !important;
  transform: none !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row button.l2-char-bag-equip--wear:hover,
body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row button.l2-char-bag-equip--wear:focus,
body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row button.l2-char-bag-equip--wear:focus-visible {
  color: #f0ece0 !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row button.l2-char-bag-equip--warehouse:hover,
body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row button.l2-char-bag-equip--warehouse:focus,
body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row button.l2-char-bag-equip--warehouse:focus-visible {
  color: var(--l2-char-page-action-warehouse-hover) !important;
}

/* ПК (+30% колонки): трохи читабельніші таби сумки, портрет пропорційно ширший */
@media (min-width: 520px) {
  body.l2-app-l2-chrome.l2-page-char {
    --l2-char-inv-tab-font: 11px;
  }

  body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--cats .l2-drops-shop-tab,
  body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--grades .l2-drops-shop-tab,
  body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--weapon-kind .l2-drops-shop-tab,
  body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--consumable-sub .l2-drops-shop-tab,
  body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--armor-piece .l2-drops-shop-tab,
  body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--jewelry-sub .l2-drops-shop-tab {
    font-size: var(--l2-char-inv-tab-font) !important;
  }

  body.l2-app-l2-chrome.l2-page-char .l2-char-equip-frame {
    width: min(100%, 390px);
  }
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-modal-actions,
body.l2-app-l2-chrome.l2-page-char .l2-char-enchant-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* item info modal: «Одіти» / «Заточити» — простий текст */
body.l2-app-l2-chrome.l2-page-char #char-bag-modal-overlay .l2-char-bag-modal-actions button.l2-char-bag-modal-action:not([hidden]),
body.l2-app-l2-chrome.l2-page-char #char-bag-modal-overlay #char-bag-modal-use:not([hidden]) {
  display: inline !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  transform: none !important;
  color: #bfa88a !important;
  text-shadow: none !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.4;
  cursor: pointer;
}

body.l2-app-l2-chrome.l2-page-char #char-bag-modal-overlay .l2-char-bag-modal-actions button.l2-char-bag-modal-action:not([hidden]):hover,
body.l2-app-l2-chrome.l2-page-char #char-bag-modal-overlay .l2-char-bag-modal-actions button.l2-char-bag-modal-action:not([hidden]):focus,
body.l2-app-l2-chrome.l2-page-char #char-bag-modal-overlay .l2-char-bag-modal-actions button.l2-char-bag-modal-action:not([hidden]):focus-visible,
body.l2-app-l2-chrome.l2-page-char #char-bag-modal-overlay #char-bag-modal-use:not([hidden]):hover,
body.l2-app-l2-chrome.l2-page-char #char-bag-modal-overlay #char-bag-modal-use:not([hidden]):focus,
body.l2-app-l2-chrome.l2-page-char #char-bag-modal-overlay #char-bag-modal-use:not([hidden]):focus-visible {
  outline: none !important;
  border: 0 !important;
  background: none !important;
  background-image: none !important;
  filter: none !important;
  color: #d8c4a8 !important;
  text-shadow: none !important;
}

body.l2-app-l2-chrome.l2-page-char #char-bag-modal-overlay .l2-char-bag-modal-actions button.l2-char-bag-modal-action:disabled {
  opacity: 0.55;
  cursor: default;
}

/* enchant modal: кнопки — простий текст */
body.l2-app-l2-chrome.l2-page-char #char-enchant-modal-overlay .l2-char-enchant-modal-actions button.l2-char-bag-modal-action:not([hidden]) {
  display: inline !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
  color: #bfa88a !important;
  text-shadow: none !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.4;
  cursor: pointer;
}

body.l2-app-l2-chrome.l2-page-char #char-enchant-modal-overlay .l2-char-enchant-modal-actions button.l2-char-bag-modal-action:not([hidden]):hover,
body.l2-app-l2-chrome.l2-page-char #char-enchant-modal-overlay .l2-char-enchant-modal-actions button.l2-char-bag-modal-action:not([hidden]):focus,
body.l2-app-l2-chrome.l2-page-char #char-enchant-modal-overlay .l2-char-enchant-modal-actions button.l2-char-bag-modal-action:not([hidden]):focus-visible {
  outline: none !important;
  border: 0 !important;
  background: none !important;
  background-image: none !important;
  filter: none !important;
  color: #d8c4a8 !important;
  text-shadow: none !important;
}

body.l2-app-l2-chrome.l2-page-char #char-enchant-modal-overlay .l2-char-enchant-modal-submit:disabled {
  opacity: 0.55;
  cursor: default;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-enchant-modal-section-title {
  margin: 10px 0 4px;
  font-size: 11px;
  color: #d8c89a;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-enchant-modal-meta {
  margin: 4px 0;
  font-size: 11px;
  color: #f0e6c8;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-enchant-modal-scrolls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 10px;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-enchant-scroll-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #f0e6c8;
  cursor: pointer;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-enchant-scroll-icon {
  flex: 0 0 auto;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-enchant-modal-empty,
body.l2-app-l2-chrome.l2-page-char .l2-char-enchant-modal-result {
  margin: 8px 0;
  font-size: 11px;
  color: #ffd27a;
}

body.l2-app-l2-chrome.l2-page-char #char-enchant-modal-overlay .l2-gm-modal {
  max-width: min(100vw - 24px, 420px);
}

body.l2-app-l2-chrome.l2-page-char #char-enchant-modal-overlay .l2-char-enchant-modal-submit {
  min-width: 120px;
}

body.l2-app-l2-chrome.l2-page-char #char-enchant-modal-overlay .l2-char-enchant-modal-submit:disabled {
  opacity: 0.65;
}

body.l2-app-l2-chrome.l2-page-char #char-crystallize-modal-overlay .l2-gm-modal {
  max-width: min(100vw - 24px, 420px);
}

body.l2-app-l2-chrome.l2-page-char .l2-char-crystallize-modal-warning,
body.l2-app-l2-chrome.l2-page-char .l2-char-crystallize-modal-irreversible {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: #c8b090;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-crystallize-modal-divider {
  margin: 10px 0 6px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #8a7355;
  text-align: center;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-crystallize-modal-reward-label {
  margin: 6px 0 4px;
  font-size: 13px;
  color: #d4c4a0;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-crystallize-modal-reward {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  color: #f0e6cc;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-crystallize-modal-crystal-icon {
  object-fit: contain;
  flex: 0 0 auto;
}

body.l2-app-l2-chrome.l2-page-char #char-crystallize-modal-overlay .l2-char-crystallize-modal-submit {
  min-width: 120px;
  color: #ffe8a8;
}

body.l2-app-l2-chrome.l2-page-char #char-bag-modal-crystallize:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* === char.html: іконки + кольори категорій сумки === */
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-all-items-btn,
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-cats-wrap .l2-drops-shop-tab[data-inv-cat],
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-cats-wrap .l2-drops-shop-tab[data-fishing-inventory-tab] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 12px !important;
  padding: 3px 2px !important;
  line-height: 1.25 !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-cat-tab__ico {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--cats .l2-drops-shop-tab[data-inv-cat='weapon'] {
  color: #ffba00 !important;
}
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--cats .l2-drops-shop-tab[data-inv-cat='shield'] {
  color: #8eb8e8 !important;
}
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--cats .l2-drops-shop-tab[data-inv-cat='armor'] {
  color: #d4b878 !important;
}
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--cats .l2-drops-shop-tab[data-inv-cat='accessor'] {
  color: #d8a8ff !important;
}
body.l2-app-l2-chrome.l2-page-char .l2-char-inv-shop-tabs-host.l2-gm-shop .l2-drops-shop-tablist--cats .l2-drops-shop-tab[data-inv-cat='consumable'] {
  color: #8fd4a0 !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-inv-all-items-btn--active {
  color: #f2ead8 !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-row {
  color: #f2ead8;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-stats,
body.l2-app-l2-chrome.l2-page-char .l2-char-bag-hint {
  color: var(--l2-char-page-stats-muted) !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-name.l2-item-name--seal-green {
  color: #7ec8a0 !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-name.l2-item-name--res-herb {
  color: #8fd4a8 !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-name.l2-item-name--res-ore {
  color: #b8c0cc !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-bag-name.l2-item-name--res-consumable {
  color: #c8b898 !important;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-weight {
  color: #9a9488;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-currency strong,
body.l2-app-l2-chrome.l2-page-char .l2-char-currency .l2-char-adena-val {
  color: var(--l2-char-page-price-gold);
  text-shadow: 0 0 6px rgba(255, 210, 80, 0.22);
}


/* Inventory capacity expansion — reuse the established L2WAP character/inventory visual language. */
body.l2-app-l2-chrome.l2-page-char .l2-char-capacity-expand-btn {
  box-sizing: border-box;
  width: 27px;
  height: 23px;
  margin-left: 4px;
  padding: 0 0 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url('/assets/1512125-removebg-preview-removebg-preview.png?v=20260707charBagBtn1512');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  color: #f2d48a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px #000;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.l2-app-l2-chrome.l2-page-char .l2-char-capacity-expand-btn:hover,
body.l2-app-l2-chrome.l2-page-char .l2-char-capacity-expand-btn:focus-visible {
  color: #fff0bd;
  filter: brightness(1.08);
  outline: none;
}

.l2-char-capacity-modal-overlay[hidden] {
  display: none !important;
}

.l2-char-capacity-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 14px;
  background: rgba(0, 0, 0, 0.78);
}

.l2-char-capacity-modal {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 332px);
  padding: 12px 13px 13px;
  border: 1px solid rgba(120, 100, 72, 0.48);
  border-radius: 4px;
  background: #1d1c1a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.58);
  color: #d5ccbd;
}

.l2-char-capacity-modal__close {
  position: absolute;
  top: 5px;
  right: 7px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9f9485;
  font-size: 23px;
  line-height: 26px;
  cursor: pointer;
}

.l2-char-capacity-modal__close:hover,
.l2-char-capacity-modal__close:focus-visible {
  color: #ead3a5;
  outline: none;
}

.l2-char-capacity-modal__header {
  margin: 0 30px 10px 0;
  padding: 0 0 7px;
  border-bottom: 1px solid rgba(120, 100, 72, 0.35);
}

.l2-char-capacity-modal__header h2 {
  margin: 0;
  color: #d9c394;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 2px #000;
}

.l2-char-capacity-modal__quantity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
}

.l2-char-capacity-modal__quantity label {
  color: #bcae98;
  font-size: 11px;
  line-height: 1.25;
}

.l2-char-capacity-modal__quantity input {
  box-sizing: border-box;
  width: 100%;
  height: 32px;
  padding: 5px 8px;
  border: 1px solid #b7a77f;
  border-radius: 2px;
  background: #ffffff;
  color: #141414;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.16);
}

.l2-char-capacity-modal__quantity input::placeholder {
  color: #77736d;
  font-weight: 400;
  opacity: 1;
}

.l2-char-capacity-modal__quantity input:focus {
  border-color: #d3b86f;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(211, 184, 111, 0.2);
}

.l2-char-capacity-modal__slot-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  margin: 0 0 9px;
  border-top: 1px solid rgba(120, 100, 72, 0.18);
  border-bottom: 1px solid rgba(120, 100, 72, 0.18);
  background: rgba(0, 0, 0, 0.13);
}

.l2-char-capacity-modal__slot-mark {
  color: #caa651;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
}

.l2-char-capacity-modal__slot-preview strong {
  color: #f0d28a;
  font-size: 12px;
  font-weight: 700;
}

.l2-char-capacity-modal__stats {
  border-top: 1px solid rgba(120, 100, 72, 0.28);
  border-bottom: 1px solid rgba(120, 100, 72, 0.28);
}

.l2-char-capacity-modal__stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 5px;
  color: #a99f90;
  font-size: 11px;
}

.l2-char-capacity-modal__stat-row + .l2-char-capacity-modal__stat-row {
  border-top: 1px solid rgba(120, 100, 72, 0.16);
}

.l2-char-capacity-modal__stat-row strong {
  color: #ddd2be;
  font-size: 12px;
}

.l2-char-capacity-modal__stat-row--after > span {
  color: #c4aa73;
}

.l2-char-capacity-modal__stat-row--after strong {
  color: #f2d48a;
}

.l2-char-capacity-modal__price {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 8px;
  margin-top: 9px;
  padding: 7px 4px 0;
  border-top: 1px solid rgba(120, 100, 72, 0.18);
}

.l2-char-capacity-modal__price img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1px solid rgba(160, 132, 85, 0.5);
  border-radius: 2px;
}

.l2-char-capacity-modal__price-label {
  display: block;
  margin-bottom: 1px;
  color: #9f9586;
  font-size: 9px;
}

.l2-char-capacity-modal__price-main strong {
  display: block;
  color: #d6b560;
  font-size: 12px;
  white-space: nowrap;
}

.l2-char-capacity-modal__balance {
  color: #aaa091;
  font-size: 10px;
  white-space: nowrap;
}

.l2-char-capacity-modal__balance b {
  color: #eee2ca;
}

.l2-char-capacity-modal__total {
  grid-column: 2 / 4;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(120, 100, 72, 0.14);
  color: #9f9586;
  font-size: 10px;
}

.l2-char-capacity-modal__total strong {
  color: #e0c374;
  font-size: 11px;
  white-space: nowrap;
}

.l2-char-capacity-modal__result {
  margin: 8px 2px 0;
  min-height: 15px;
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}

.l2-char-capacity-modal__result--ok {
  color: #8fc083;
}

.l2-char-capacity-modal__result--error {
  color: #d98f7b;
}

.l2-char-capacity-modal__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.l2-char-capacity-modal__actions button {
  min-height: 27px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-shadow: 0 1px 2px #000;
}

.l2-char-capacity-modal__buy {
  min-width: 116px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url('/assets/1512125-removebg-preview-removebg-preview.png?v=20260707charBagBtn1512');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  color: #f2d89a;
}

.l2-char-capacity-modal__buy:hover:not(:disabled),
.l2-char-capacity-modal__buy:focus-visible:not(:disabled) {
  color: #fff1c1;
  filter: brightness(1.06);
  outline: none;
}

.l2-char-capacity-modal__cancel {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b7aa96;
}

.l2-char-capacity-modal__cancel:hover,
.l2-char-capacity-modal__cancel:focus-visible {
  color: #d9c6a6;
  text-decoration: underline;
  outline: none;
}

.l2-char-capacity-modal__actions button:disabled {
  cursor: default;
  opacity: 0.42;
  filter: grayscale(0.35);
}

@media (max-width: 380px) {
  .l2-char-capacity-modal {
    width: 100%;
    padding-left: 11px;
    padding-right: 11px;
  }

  .l2-char-capacity-modal__quantity {
    grid-template-columns: minmax(0, 1fr) 128px;
  }

  .l2-char-capacity-modal__price {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .l2-char-capacity-modal__balance,
  .l2-char-capacity-modal__total {
    grid-column: 2;
  }

  .l2-char-capacity-modal__total {
    display: block;
  }

  .l2-char-capacity-modal__total strong {
    display: block;
    margin-top: 1px;
  }
}
