/* Small production UI polish.
   Intentionally narrow scope: weapon mastery special block + armory external link. */

.armory-external-fitting-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

/* Weapon mastery: the component is generated and not directly editable
   as an ordinary article table, so its typography is normalized here. */
.weapon-mastery {
  gap: 10px;
  padding: clamp(11px, 1.35vw, 16px);
  border-color: rgba(92, 71, 45, 0.30);
  background:
    linear-gradient(rgba(255, 250, 232, 0.84), rgba(232, 217, 181, 0.66)),
    radial-gradient(circle at 50% 0, rgba(163, 58, 47, 0.075), transparent 38%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 219, 0.52),
    0 7px 18px rgba(61, 43, 24, 0.055);
}

.weapon-mastery-head {
  gap: 10px;
  padding-bottom: 7px;
}

.weapon-mastery h3 {
  font-size: clamp(1.14rem, 1.55vw, 1.42rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.weapon-mastery-status {
  font-size: 0.66rem;
  letter-spacing: 0.035em;
}

.weapon-mastery-table {
  min-width: 820px;
  font-size: 15px;
  line-height: 1.16;
}

.weapon-mastery-table th,
.weapon-mastery-table td {
  padding: 6px 8px;
}

.weapon-mastery-table thead th {
  font-size: 0.67rem;
  line-height: 1.12;
  letter-spacing: 0.025em;
}

.weapon-mastery-table tbody th {
  font-size: 0.94rem;
}

.weapon-mastery-elite-level,
.weapon-mastery-elite-gain {
  margin-left: 3px;
  font-size: 0.72em;
}

.weapon-mastery-group {
  box-shadow: inset 0 0 0 1px rgba(255, 247, 219, 0.38);
}

.weapon-mastery-group summary {
  min-height: 36px;
  padding-block: 6px;
}

.weapon-mastery-group summary em {
  font-size: 0.84rem;
}

@media (max-width: 760px) {
  .weapon-mastery {
    padding: 9px;
  }

  .weapon-mastery h3 {
    font-size: 1.08rem;
  }

  .weapon-mastery-status {
    font-size: 0.61rem;
  }

  .weapon-mastery-table {
    min-width: 720px;
    font-size: 14px;
  }

  .weapon-mastery-table th,
  .weapon-mastery-table td {
    padding: 5px 7px;
  }
}


/* ------------------------------------------------------------
   Article cleanup
   ------------------------------------------------------------ */

/* The type/date row duplicated context already visible in navigation/title.
   Keep list-card metadata intact; hide only the top row inside a full article. */
.article-full > .article-meta {
  display: none !important;
}

/* ------------------------------------------------------------
   "Исчадия Хаоса" article
   ------------------------------------------------------------ */

/* Regular Bestiary intentionally uses its global responsive column count.
   "Исчадия Хаоса" has exactly three variants, so override the later global
   !important Bestiary rule and keep a stable 3 → 2 → 1 layout. */
.article-full .chaos-article-masonry {
  gap: 14px !important;
}

@media (min-width: 1321px) {
  .article-full .chaos-article-masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 721px) and (max-width: 1320px) {
  .article-full .chaos-article-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .article-full .chaos-article-masonry {
    grid-template-columns: 1fr !important;
  }
}

.article-full .chaos-article-masonry .bestiary-masonry-item,
.article-full .chaos-article-masonry .database-card {
  min-width: 0;
  width: 100%;
}

/* ------------------------------------------------------------
   Sets — common filter system
   ------------------------------------------------------------ */

.set-composition {
  display: grid;
  gap: 9px;
}

.set-composition-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(92, 71, 45, 0.16);
}

.set-composition-head b {
  color: #6f2a23;
  font-size: 1.02rem;
}

.set-composition-head span {
  color: #756653;
  font-size: 0.72rem;
  font-weight: 700;
}

.set-filters.set-filters-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(92, 71, 45, 0.18);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.62), rgba(235, 218, 181, 0.34));
}

.set-filter-primary {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(155px, 0.58fr) minmax(185px, 0.7fr) auto;
  gap: 7px;
  align-items: end;
  min-width: 0;
}

.set-filter-primary > label {
  min-width: 0;
  margin: 0;
}

.set-filter-primary input,
.set-filter-primary select,
.set-compare-profile select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 32px;
  height: 32px;
  padding: 5px 7px;
  border: 1px solid rgba(92, 71, 45, 0.24);
  border-radius: 5px;
  background: rgba(255, 253, 244, 0.88);
  color: #34261b;
  font-size: 0.76rem;
}

.set-filter-primary > label,
.set-compare-profile > label {
  gap: 3px;
  color: #754139;
  font-size: 0.67rem;
  line-height: 1;
}

.set-filter-actions {
  grid-column: auto;
  display: flex;
  align-items: end;
  gap: 5px;
  flex-wrap: nowrap;
  min-width: 0;
}

.set-filter-actions button {
  min-height: 32px;
  height: 32px;
  padding: 5px 8px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 0.68rem;
}

.set-filter-secondary {
  display: grid;
  grid-template-columns: minmax(180px, 0.78fr) minmax(180px, 0.78fr) minmax(300px, 1.44fr);
  gap: 7px;
  min-width: 0;
}

.set-quality-filter,
.set-tier-filter,
.set-slot-filter {
  grid-column: auto;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(92, 71, 45, 0.12);
  border-radius: 6px;
  background: rgba(255, 253, 244, 0.44);
}

.set-quality-filter strong,
.set-tier-filter strong,
.set-slot-filter strong {
  color: #754139;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.set-quality-filter div,
.set-tier-filter div,
.set-slot-filter div {
  gap: 4px;
}

.set-quality-filter label,
.set-tier-filter label,
.set-slot-filter label {
  gap: 4px;
  min-height: 25px;
  padding: 3px 6px;
  border: 1px solid rgba(92, 71, 45, 0.12);
  border-radius: 999px;
  background: rgba(255, 251, 239, 0.64);
  color: #4d3a2b;
  font-size: 0.69rem;
  line-height: 1;
}

.set-quality-filter input,
.set-tier-filter input,
.set-slot-filter input {
  margin: 0;
}

/* Set groups: clearer separation between controls and actual items. */
.set-list {
  display: grid;
  gap: 7px;
}

.set-tier {
  overflow: hidden;
  border: 1px solid rgba(92, 71, 45, 0.17);
  border-radius: 7px;
  background: rgba(255, 251, 239, 0.52);
}

.set-tier > summary {
  min-height: 36px;
  padding: 7px 9px;
}

.set-quality-group {
  padding: 8px;
}

.set-quality-title {
  margin-bottom: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

/* ------------------------------------------------------------
   Set comparison
   ------------------------------------------------------------ */

.set-compare-page {
  display: grid;
  gap: 10px;
}

.set-compare-filters.set-filters-v2 {
  gap: 9px;
}

.set-compare-profile-picker {
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(92, 71, 45, 0.13);
  border-radius: 6px;
  background: rgba(255, 253, 244, 0.44);
}

.set-compare-profile-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.set-compare-profile-head > div {
  min-width: 0;
}

.set-compare-profile-head strong,
.set-compare-profile-head span {
  display: block;
}

.set-compare-profile-head strong {
  color: #6f2a23;
  font-size: 0.84rem;
}

.set-compare-profile-head span {
  max-width: 760px;
  margin-top: 2px;
  color: #756653;
  font-size: 0.66rem;
  line-height: 1.15;
}

.set-compare-profile-head button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 5px;
  white-space: nowrap;
}

[data-compare-profiles] {
  gap: 5px;
}

.set-compare-profile {
  grid-template-columns: minmax(210px, 1.35fr) repeat(3, minmax(125px, 0.7fr)) 32px;
  gap: 5px;
  align-items: end;
  padding: 6px;
  border-radius: 5px;
  background: rgba(255, 251, 239, 0.58);
}

.set-compare-profile > button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 5px;
}

.set-compare-primary {
  grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.65fr) auto;
}

.set-compare-secondary {
  grid-template-columns: 1fr;
}

.set-compare-secondary .set-slot-filter {
  min-width: 0;
}

.set-compare-results {
  gap: 9px;
}

.set-compare-column {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(92, 71, 45, 0.18);
  border-radius: 7px;
  background: rgba(255, 251, 239, 0.58);
  box-shadow: 0 3px 10px rgba(61, 43, 24, 0.04);
}

.set-compare-column:first-child {
  border-top: 3px solid rgba(111, 42, 35, 0.64);
}

.set-compare-column > header {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(92, 71, 45, 0.12);
  background: rgba(237, 220, 184, 0.34);
}

.set-compare-column > header h3 {
  margin: 0;
  font-size: 0.98rem;
}

.set-compare-column > header span {
  color: #756653;
  font-size: 0.68rem;
}

.set-compare-summary {
  gap: 4px;
  padding: 7px 8px;
}

.set-compare-summary > span {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
}

.set-compare-items {
  padding: 7px;
}

/* Never allow search/select controls to push into each other. */
.set-filters input[type="search"] {
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 1380px) {
  .set-filter-primary {
    grid-template-columns: minmax(230px, 1.2fr) minmax(160px, 0.7fr) minmax(185px, 0.8fr);
  }

  .set-filter-primary .set-filter-actions {
    grid-column: 1 / -1;
  }

  .set-compare-primary {
    grid-template-columns: minmax(240px, 1.2fr) minmax(180px, 0.7fr);
  }

  .set-compare-primary .set-filter-actions {
    grid-column: 1 / -1;
  }

  .set-filter-secondary {
    grid-template-columns: 1fr 1fr;
  }

  .set-filter-secondary .set-slot-filter {
    grid-column: 1 / -1;
  }

  .set-compare-profile {
    grid-template-columns: minmax(190px, 1.3fr) repeat(2, minmax(125px, 0.8fr));
  }

  .set-compare-profile > label:nth-of-type(4) {
    grid-column: 1 / 2;
  }

  .set-compare-profile > button {
    grid-column: -2 / -1;
    justify-self: end;
  }
}

@media (max-width: 820px) {
  .set-filter-primary,
  .set-compare-primary,
  .set-filter-secondary,
  .set-compare-profile {
    grid-template-columns: 1fr;
  }

  .set-filter-primary .set-filter-actions,
  .set-compare-primary .set-filter-actions,
  .set-filter-secondary .set-slot-filter,
  .set-compare-profile > label:nth-of-type(4),
  .set-compare-profile > button {
    grid-column: auto;
  }

  .set-filter-actions {
    flex-wrap: wrap;
  }

  .set-filter-actions button {
    flex: 1 1 auto;
  }

  .set-compare-profile > button {
    width: 100%;
  }

  .set-compare-profile-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .set-compare-profile-head button {
    width: 100%;
  }
}


/* ------------------------------------------------------------
   Sets / set comparison · v2 visual hierarchy
   ------------------------------------------------------------ */

/* Controls should look like the site's square UI, not pills. */
.set-filters.set-filters-v2,
.set-compare-profile-picker,
.set-quality-filter,
.set-tier-filter,
.set-slot-filter,
.set-tier,
.set-compare-column,
.set-compare-profile,
.set-mini-item,
.set-mini-details,
.set-filter-primary input,
.set-filter-primary select,
.set-compare-profile select,
.set-filter-actions button,
.set-compare-profile-head button,
.set-compare-profile > button,
.set-quality-filter label,
.set-tier-filter label,
.set-slot-filter label,
.set-compare-summary > span {
  border-radius: 2px !important;
}

.set-filters.set-filters-v2 {
  gap: 10px;
  padding: 11px;
  border-color: rgba(88, 63, 38, 0.26);
  background:
    linear-gradient(180deg, rgba(245, 230, 195, 0.54), rgba(229, 207, 164, 0.28));
  box-shadow: inset 0 0 0 1px rgba(255, 250, 232, 0.42);
}

/* Primary controls are their own surface instead of floating into the frame. */
.set-filter-primary {
  padding: 9px;
  border: 1px solid rgba(88, 63, 38, 0.15);
  background: rgba(255, 251, 238, 0.62);
}

.set-filter-primary > label {
  color: #6f322b;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.set-filter-primary input,
.set-filter-primary select,
.set-compare-profile select {
  border-color: rgba(88, 63, 38, 0.26);
  background: rgba(255, 254, 246, 0.96);
}

.set-filter-actions {
  align-self: end;
}

.set-filter-actions button,
.set-compare-profile-head button,
.set-compare-profile > button {
  border: 1px solid rgba(105, 62, 43, 0.34);
  background: linear-gradient(180deg, rgba(255, 249, 229, 0.94), rgba(232, 212, 172, 0.70));
  color: #6d3029;
  box-shadow: inset 0 -1px 0 rgba(91, 57, 31, 0.10);
}

.set-filter-actions button:hover,
.set-compare-profile-head button:hover,
.set-compare-profile > button:hover {
  border-color: rgba(123, 45, 40, 0.54);
  background: rgba(255, 245, 216, 0.98);
  color: #7b2d28;
}

/* Secondary filter groups are three clean rectangular modules. */
.set-filter-secondary {
  gap: 9px;
}

.set-quality-filter,
.set-tier-filter,
.set-slot-filter {
  padding: 9px;
  border-color: rgba(88, 63, 38, 0.18);
  background: rgba(255, 251, 238, 0.54);
}

.set-quality-filter strong,
.set-tier-filter strong,
.set-slot-filter strong {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(88, 63, 38, 0.11);
}

.set-quality-filter div,
.set-tier-filter div,
.set-slot-filter div {
  gap: 5px;
}

.set-quality-filter label,
.set-tier-filter label,
.set-slot-filter label {
  min-height: 27px;
  padding: 4px 7px;
  border-color: rgba(88, 63, 38, 0.18);
  background: rgba(249, 238, 211, 0.70);
  box-shadow: none;
}

.set-quality-filter label:has(input:checked),
.set-tier-filter label:has(input:checked),
.set-slot-filter label:has(input:checked) {
  border-color: rgba(123, 45, 40, 0.48);
  background: rgba(123, 45, 40, 0.09);
  color: #6f2a23;
}

/* Set result hierarchy:
   tier frame -> quality panel -> slot panel -> actual item cards. */
.set-list {
  gap: 10px;
}

.set-tier {
  border-color: rgba(88, 63, 38, 0.23);
  background: rgba(236, 216, 174, 0.24);
  box-shadow: 0 3px 10px rgba(60, 42, 25, 0.035);
}

.set-tier > summary {
  min-height: 39px;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(88, 63, 38, 0.15);
  background: rgba(224, 199, 150, 0.30);
}

.set-tier > summary b {
  color: #632821;
}

.set-quality-group {
  margin: 9px;
  padding: 10px;
  border: 1px solid rgba(88, 63, 38, 0.15);
  border-left: 3px solid rgba(151, 112, 58, 0.58);
  background: rgba(255, 252, 242, 0.64);
}

.set-quality-title {
  margin: 0 0 8px;
  padding: 0 0 6px;
  border-bottom: 1px solid rgba(88, 63, 38, 0.12);
  color: #6f322b;
}

.set-slot-group {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(88, 63, 38, 0.12);
  background: rgba(243, 230, 199, 0.28);
}

.set-slot-group + .set-slot-group {
  margin-top: 10px;
}

.set-slot-group > h4 {
  margin: -8px -8px 8px;
  padding: 6px 9px;
  border-bottom: 1px solid rgba(88, 63, 38, 0.12);
  background: rgba(230, 208, 164, 0.30);
  color: #51372a;
  font-size: 0.78rem;
}

.set-items-grid {
  gap: 8px;
}

.set-mini-item {
  border: 1px solid rgba(88, 63, 38, 0.20);
  background:
    linear-gradient(180deg, rgba(255, 254, 247, 0.92), rgba(246, 235, 207, 0.72));
  box-shadow: 0 2px 7px rgba(61, 43, 24, 0.045);
}

.set-mini-body {
  min-width: 0;
  padding-right: 2px;
}

.set-mini-body > strong {
  color: #402c20;
}

.set-mini-body > span {
  color: #756653;
}

.set-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 6px;
  margin-top: 6px;
}

.set-mini-stats span {
  padding: 4px 6px;
  border: 0;
  border-left: 2px solid rgba(151, 112, 58, 0.48);
  background: rgba(239, 223, 186, 0.26);
}

.set-mini-details {
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid rgba(88, 63, 38, 0.13);
  background: rgba(255, 252, 242, 0.50);
}

.set-mini-details > summary {
  padding: 6px 8px;
  background: rgba(227, 204, 160, 0.25);
  color: #6a4432;
}

.set-mini-details > dl {
  margin: 0;
  padding: 7px;
}

.set-detail-chip-row {
  padding: 5px 0;
  border-top: 1px solid rgba(88, 63, 38, 0.09);
}

.set-detail-chip-row:first-child {
  border-top: 0;
}

.set-detail-chip-row dt {
  color: #6f322b;
}

.set-detail-chip-row dd span {
  border-radius: 2px !important;
  border-color: rgba(88, 63, 38, 0.14);
  background: rgba(242, 228, 196, 0.34);
}

/* Compare: profile picker, filters and results should read as three levels. */
.set-compare-profile-picker {
  padding: 10px;
  border-color: rgba(88, 63, 38, 0.20);
  background: rgba(255, 252, 241, 0.68);
}

.set-compare-profile-head {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(88, 63, 38, 0.12);
}

[data-compare-profiles] {
  margin-top: 8px;
}

.set-compare-profile {
  padding: 8px;
  border: 1px solid rgba(88, 63, 38, 0.14);
  background: rgba(244, 231, 201, 0.34);
}

.set-compare-results {
  gap: 12px;
}

.set-compare-column {
  border-color: rgba(88, 63, 38, 0.24);
  background: rgba(248, 239, 216, 0.44);
  box-shadow: 0 4px 12px rgba(61, 43, 24, 0.045);
}

.set-compare-column > header {
  padding: 10px 11px;
  border-bottom-color: rgba(88, 63, 38, 0.17);
  background: rgba(222, 197, 150, 0.34);
}

.set-compare-summary {
  margin: 8px;
  padding: 8px;
  border: 1px solid rgba(88, 63, 38, 0.12);
  background: rgba(255, 252, 242, 0.58);
}

.set-compare-summary > span {
  padding: 5px 7px;
  border: 1px solid rgba(88, 63, 38, 0.11);
  background: rgba(238, 220, 184, 0.32);
}

.set-compare-items {
  margin: 0 8px 8px;
  padding: 9px;
  border: 1px solid rgba(88, 63, 38, 0.12);
  background: rgba(255, 252, 242, 0.50);
}

@media (max-width: 760px) {
  .set-mini-stats {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   Armory focus mode — readable headline stats
   (cumulative from the previous requested delta)
   ------------------------------------------------------------ */
@media (min-width: 1440px) {
  #armoryView .armory-workbench.focus-mode:not(.armory-shared-results) .armory-result-glance {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    align-items: stretch;
  }

  #armoryView .armory-workbench.focus-mode:not(.armory-shared-results) .armory-result-glance > .armory-glance-card {
    width: auto;
    min-width: 0;
    min-height: 86px;
    padding: 10px 34px 10px 12px;
  }

  #armoryView .armory-workbench.focus-mode:not(.armory-shared-results) .armory-glance-card .armory-stat-name {
    padding-right: 2px;
    font-size: 0.72rem;
    line-height: 1.08;
  }

  #armoryView .armory-workbench.focus-mode:not(.armory-shared-results) .armory-glance-card > strong {
    font-size: 1.22rem;
  }

  #armoryView .armory-workbench.focus-mode:not(.armory-shared-results) .armory-glance-card.armory-glance-damage > strong {
    font-size: 1.28rem;
  }

  #armoryView .armory-workbench.focus-mode:not(.armory-shared-results) .armory-glance-card .armory-info-button {
    top: 9px;
    right: 9px;
  }
}

@media (min-width: 981px) and (max-width: 1439px) {
  #armoryView .armory-workbench.focus-mode:not(.armory-shared-results) .armory-result-glance {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  #armoryView .armory-workbench.focus-mode:not(.armory-shared-results) .armory-result-glance > .armory-glance-card {
    width: auto;
    min-width: 0;
    padding-right: 32px;
  }

  #armoryView .armory-workbench.focus-mode:not(.armory-shared-results) .armory-glance-card .armory-stat-name {
    font-size: 0.68rem;
  }
}


/* ------------------------------------------------------------
   Sets / comparison · card surface cleanup v2.1
   ------------------------------------------------------------ */

/* The hierarchy is now carried by spacing and thin separators.
   Avoid beige-on-beige nested panels. */
.set-tier {
  background: rgba(236, 216, 174, 0.13) !important;
  box-shadow: none !important;
}

.set-tier > summary {
  background: rgba(224, 199, 150, 0.18) !important;
}

.set-quality-group {
  margin: 10px 8px 12px !important;
  padding: 0 0 2px !important;
  border: 0 !important;
  border-left: 0 !important;
  background: transparent !important;
}

.set-quality-title {
  margin: 0 0 10px !important;
  padding: 7px 9px !important;
  border: 1px solid rgba(88, 63, 38, 0.13) !important;
  border-left: 3px solid rgba(137, 91, 60, 0.52) !important;
  background: rgba(246, 232, 201, 0.42) !important;
}

.set-slot-group {
  margin-top: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(88, 63, 38, 0.14) !important;
  background: transparent !important;
}

.set-slot-group + .set-slot-group {
  margin-top: 18px !important;
}

.set-slot-group > h4 {
  margin: 0 0 9px !important;
  padding: 8px 4px 7px 10px !important;
  border: 0 !important;
  border-left: 3px solid rgba(123, 45, 40, 0.34) !important;
  background: transparent !important;
  color: #4e382a !important;
  font-size: 0.82rem !important;
}

/* Actual item cards are the brightest surface in the hierarchy. */
.set-mini-item {
  padding: 10px !important;
  border: 1px solid rgba(88, 63, 38, 0.24) !important;
  background: rgba(255, 253, 247, 0.96) !important;
  box-shadow:
    0 2px 8px rgba(57, 39, 22, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.set-mini-item:hover {
  border-color: rgba(123, 45, 40, 0.34) !important;
  box-shadow:
    0 5px 13px rgba(57, 39, 22, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

.set-mini-body {
  padding-right: 4px !important;
}

.set-mini-body > strong {
  color: #38271d !important;
}

.set-mini-body > span {
  color: #776957 !important;
}

/* Stats are simple rows, not another set of boxes inside the card. */
.set-mini-stats {
  gap: 0 14px !important;
  margin-top: 9px !important;
  border-top: 1px solid rgba(88, 63, 38, 0.10);
  border-bottom: 1px solid rgba(88, 63, 38, 0.10);
}

.set-mini-stats span {
  min-height: 33px;
  display: flex;
  align-items: center;
  padding: 6px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(88, 63, 38, 0.07) !important;
  background: transparent !important;
}

.set-mini-stats span:nth-last-child(-n + 2) {
  border-bottom-color: transparent !important;
}

/* Details is visually secondary and no longer a full beige inner panel. */
.set-mini-details {
  margin-top: 9px !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}

.set-mini-details > summary {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 30px;
  padding: 5px 9px !important;
  border: 1px solid rgba(105, 62, 43, 0.22);
  background: rgba(246, 235, 209, 0.50) !important;
  color: #684235 !important;
  cursor: pointer;
}

.set-mini-details[open] > summary {
  border-color: rgba(123, 45, 40, 0.30);
  background: rgba(238, 220, 184, 0.48) !important;
}

.set-mini-details > dl {
  margin: 7px 0 0 !important;
  padding: 7px 9px !important;
  border-top: 1px solid rgba(88, 63, 38, 0.10);
  background: rgba(250, 244, 229, 0.38);
}

.set-detail-chip-row {
  padding: 6px 0 !important;
}

.set-detail-chip-row dd span {
  border: 1px solid rgba(88, 63, 38, 0.11) !important;
  background: rgba(255, 253, 247, 0.68) !important;
}

/* Comparison columns should frame clean item cards, not tint everything yellow. */
.set-compare-column {
  background: rgba(238, 220, 184, 0.18) !important;
  box-shadow: none !important;
}

.set-compare-column > header {
  background: rgba(222, 197, 150, 0.22) !important;
}

.set-compare-summary {
  background: rgba(255, 253, 247, 0.78) !important;
}

.set-compare-summary > span {
  background: transparent !important;
  border-color: rgba(88, 63, 38, 0.10) !important;
}

.set-compare-items {
  margin: 0 8px 10px !important;
  padding: 4px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.set-compare-items .set-slot-group {
  padding-top: 10px !important;
}

@media (max-width: 760px) {
  .set-mini-stats {
    grid-template-columns: 1fr !important;
  }

  .set-mini-stats span:nth-last-child(-n + 2) {
    border-bottom-color: rgba(88, 63, 38, 0.07) !important;
  }

  .set-mini-stats span:last-child {
    border-bottom-color: transparent !important;
  }
}
