/* Forest Frontier v0.9.29 — compact two-hand inventory comparison. */
body.theme-ashen .inventory-equip-comparison {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(151,117,59,.22);
}
body.theme-ashen .inventory-compare-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 1px;
}
body.theme-ashen .inventory-compare-heading span {
  color: #8ea59a;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.theme-ashen .inventory-compare-heading strong {
  color: #75df91;
  font-size: 11px;
  text-align: right;
}
body.theme-ashen .inventory-compare-heading.neutral strong { color: #b7b09e; }
body.theme-ashen .inventory-compare-options { display: grid; gap: 6px; }
body.theme-ashen .inventory-compare-option {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(133,141,129,.28);
  border-radius: 8px;
  background: rgba(2,9,7,.58);
}
body.theme-ashen .inventory-compare-option.better { border-color: rgba(83,171,103,.42); }
body.theme-ashen .inventory-compare-option.worse { border-color: rgba(180,91,79,.34); }
body.theme-ashen .inventory-compare-option.mixed { border-color: rgba(188,153,86,.34); }
body.theme-ashen .inventory-compare-option.recommended {
  border-color: rgba(82,205,112,.72);
  background: linear-gradient(90deg,rgba(27,89,42,.19),rgba(2,9,7,.72));
  box-shadow: inset 3px 0 0 rgba(82,205,112,.72);
}
body.theme-ashen .inventory-compare-option > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  margin-bottom: 1px;
}
body.theme-ashen .inventory-compare-option > header > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}
body.theme-ashen .inventory-compare-option > header strong { color: #e2d6b8; font-size: 10px; }
body.theme-ashen .inventory-compare-option > header small {
  overflow: hidden;
  color: #817f75;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.theme-ashen .inventory-compare-option > header em {
  flex: none;
  padding: 2px 5px;
  border: 1px solid rgba(82,205,112,.44);
  border-radius: 999px;
  color: #79e393;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body.theme-ashen .inventory-compare-metric {
  display: grid;
  grid-template-columns: minmax(78px,1fr) auto 38px;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  padding-top: 3px;
  border-top: 1px solid rgba(151,117,59,.12);
  font-size: 8.5px;
}
body.theme-ashen .inventory-compare-metric > span:first-child { color: #9c9b90; }
body.theme-ashen .inventory-compare-values { color: #c5beac; white-space: nowrap; }
body.theme-ashen .inventory-compare-values b { color: #6d766f; font-weight: 700; }
body.theme-ashen .inventory-compare-metric > strong { text-align: right; white-space: nowrap; }
body.theme-ashen .inventory-compare-style {
  color: #858f89;
  font-size: 7.5px;
  line-height: 1.25;
}
body.theme-ashen .inventory-compare-style strong { color: #c9bea4; }
body.theme-ashen .inventory-compare-no-change { color: #858f89; font-size: 8px; }

body.theme-ashen .inventory-detail-copy .inventory-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
body.theme-ashen .inventory-detail-copy .inventory-detail-stat {
  gap: 4px;
  padding: 2px 0;
  border: 0;
}
body.theme-ashen .inventory-detail-copy .inventory-detail-stat span { font-size: 8px; }
body.theme-ashen .inventory-detail-copy .inventory-detail-stat strong { font-size: 13px; }
body.theme-ashen .inventory-detail-runes { gap: 4px; padding-top: 7px; }
body.theme-ashen .inventory-detail-no-runes {
  padding: 3px 0;
  color: #748078;
  font-size: 8px;
}
body.theme-ashen .inventory-detail-footer {
  display: block;
  padding: 8px 10px 10px;
}
body.theme-ashen .inventory-detail-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 6px;
}
body.theme-ashen .inventory-detail-actions button {
  min-height: 42px;
  padding: 6px 8px;
}
body.theme-ashen .inventory-detail-actions .inventory-equip-action {
  display: grid;
  place-content: center;
  gap: 1px;
  line-height: 1.1;
}
body.theme-ashen .inventory-detail-actions .inventory-equip-action span { font-weight: 900; }
body.theme-ashen .inventory-detail-actions .inventory-equip-action small {
  color: #a6a597;
  font-size: 8px;
  font-weight: 800;
}
body.theme-ashen .inventory-detail-actions .inventory-equip-action small.positive { color: #78df91; }
body.theme-ashen .inventory-detail-actions .inventory-equip-action small.negative { color: #d58a78; }
body.theme-ashen .inventory-detail-actions .sell-button:last-child { grid-column: 1 / -1; }

@media (max-width: 759px) {
  body.theme-ashen .inventory-inline-detail { max-height: min(82dvh,680px); }
  body.theme-ashen .inventory-detail-main {
    grid-template-columns: 70px minmax(0,1fr);
    gap: 8px;
    padding: 10px 9px 8px;
  }
  body.theme-ashen .inventory-detail-portrait { min-height: 91px; }
  body.theme-ashen .inventory-detail-portrait .item-icon { width: 56px; height: 70px; }
  body.theme-ashen .inventory-detail-copy h3 { margin-top: 2px; font-size: 18px; }
  body.theme-ashen .inventory-detail-copy > p { margin-bottom: 5px; font-size: 8.5px; }
  body.theme-ashen .inventory-compare-heading strong { font-size: 10px; }
  body.theme-ashen .inventory-compare-option { padding: 6px; }
  body.theme-ashen .inventory-compare-metric { grid-template-columns: minmax(73px,1fr) auto 35px; gap: 4px; }
  body.theme-ashen .inventory-detail-runes {
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    gap: 6px;
  }
  body.theme-ashen .inventory-detail-subtitle { grid-column: auto; }
  body.theme-ashen .inventory-detail-rune { grid-column: 1 / -1; }
}

@media (max-width: 374px) {
  body.theme-ashen .inventory-detail-main { grid-template-columns: 62px minmax(0,1fr); gap: 7px; }
  body.theme-ashen .inventory-detail-portrait { min-height: 82px; }
  body.theme-ashen .inventory-detail-portrait .item-icon { width: 50px; height: 64px; }
  body.theme-ashen .inventory-compare-metric { font-size: 8px; }
}
