.remaked-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--rm-border);
  border-radius: 10px;
  background: rgba(251, 253, 247, 0.94);
  box-shadow: 0 5px 16px rgba(54, 75, 38, 0.07);
}

.remaked-tools-label {
  margin-right: auto;
  color: #65715a;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.remaked-tool-button,
.remaked-search-close,
.remaked-search-reset,
.remaked-search-result {
  box-sizing: border-box;
  border: 1px solid var(--rm-border);
  font-family: var(--rm-font);
  cursor: pointer;
}

.remaked-tool-button {
  min-height: 34px;
  padding: 7px 12px;
  border-color: #a9c28a;
  border-radius: 8px;
  background: linear-gradient(180deg, #f9fcf5 0%, #edf5e4 100%);
  color: #496438;
  font-size: 11px;
  font-weight: 750;
}

.remaked-tool-button:hover,
.remaked-tool-button:focus-visible {
  border-color: #6f9d47;
  background: #e4f1d6;
  color: #35591e;
  outline: 2px solid rgba(102, 155, 54, .24);
  outline-offset: 1px;
}

.remaked-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 18px;
  background: rgba(31, 40, 25, .42);
  backdrop-filter: blur(5px);
}

.remaked-search-panel {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid #a9bd8e;
  border-radius: 14px;
  background: #f9fbf5;
  color: var(--rm-text);
  box-shadow: 0 24px 70px rgba(34, 49, 25, .32);
  font-family: var(--rm-font);
}

.remaked-search-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #d4dfc5;
  background: linear-gradient(180deg, #f2f7e9, #e9f1dd);
}

.remaked-search-heading {
  min-width: 0;
}

.remaked-search-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #738361;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.remaked-search-heading h2 {
  margin: 0;
  color: #34452a;
  font-size: 19px;
  line-height: 1.15;
}

.remaked-search-close {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fbfdf8;
  color: #526349;
  font-size: 10px;
  font-weight: 750;
}

.remaked-search-close:hover,
.remaked-search-close:focus-visible,
.remaked-search-reset:hover,
.remaked-search-reset:focus-visible {
  border-color: #84a461;
  background: #eaf3df;
  outline: none;
}

.remaked-search-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 14px;
}

.remaked-search-controls {
  display: grid;
  grid-template-columns: minmax(145px, .8fr) minmax(210px, 1.4fr) auto auto;
  align-items: end;
  gap: 9px;
}

.remaked-search-controls-soul {
  grid-template-columns: minmax(180px, .9fr) minmax(220px, 1.5fr);
}

.remaked-search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.remaked-search-label {
  color: #69755f;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .03em;
}

.remaked-search-input,
.remaked-search-select {
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  border: 1px solid #b7c8a1;
  border-radius: 8px;
  background: #fff;
  color: #35432e;
  font: 11px/1.2 var(--rm-font);
}

.remaked-search-input {
  padding: 8px 10px;
}

.remaked-search-select {
  padding: 7px 28px 7px 9px;
}

.remaked-search-input:focus,
.remaked-search-select:focus {
  border-color: #6f9d47;
  outline: 2px solid rgba(102, 155, 54, .22);
  outline-offset: 1px;
}

.remaked-search-levels {
  display: grid;
  grid-template-columns: 72px 72px;
  gap: 5px;
}

.remaked-search-reset {
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f4f8ef;
  color: #57694a;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.remaked-search-summary {
  min-height: 15px;
  margin: 11px 2px 6px;
  color: #7a846f;
  font-size: 9px;
  font-weight: 650;
}

.remaked-search-results {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-height: 84px;
  max-height: min(520px, 58vh);
  overflow-y: auto;
  padding: 2px 3px 3px 2px;
  scrollbar-width: thin;
  scrollbar-color: #a8bd8c transparent;
}

.remaked-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 43px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  color: #384b2c;
  text-align: left;
}

.remaked-search-result:hover,
.remaked-search-result:focus-visible {
  border-color: #79a04f;
  background: #edf6e3;
  outline: none;
}

.remaked-search-result-name {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remaked-search-result-detail {
  flex: 0 0 auto;
  color: #7b876f;
  font-size: 12px;
  white-space: nowrap;
}

.remaked-search-empty {
  display: grid;
  grid-column: 1 / -1;
  min-height: 110px;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 20px;
  border: 1px dashed #c5d3b3;
  border-radius: 10px;
  background: #f3f7ed;
  color: #77836b;
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.remaked-search-empty-reset {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4e752f;
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.remaked-search-empty-reset:hover,
.remaked-search-empty-reset:focus-visible {
  color: #35591e;
  outline: none;
  text-decoration-thickness: 2px;
}

@media (max-width: 700px) {
  .remaked-tools {
    overflow-x: auto;
    padding: 7px;
  }

  .remaked-tools-label {
    display: none;
  }

  .remaked-tool-button {
    flex: 1 0 auto;
    min-height: 38px;
  }

  .remaked-search-backdrop {
    padding: 8px;
  }

  .remaked-search-panel {
    max-height: calc(100vh - 16px);
    border-radius: 11px;
  }

  .remaked-search-header {
    padding: 11px 12px;
  }

  .remaked-search-body {
    padding: 10px;
  }

  .remaked-search-controls,
  .remaked-search-controls-soul {
    grid-template-columns: 1fr;
  }

  .remaked-search-levels {
    grid-template-columns: 1fr 1fr;
  }

  .remaked-search-reset {
    width: 100%;
  }

  .remaked-search-results {
    grid-template-columns: 1fr;
    max-height: 55vh;
  }

  .remaked-search-result {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .remaked-search-backdrop {
    backdrop-filter: none;
  }
}
.remaked-search-row { position: relative; min-width: 0; }
.remaked-search-row .remaked-search-result { width: 100%; min-height: 2.75rem; }
.remaked-search-row .remaked-search-result:not(:only-child) { width: calc(100% - 48px); }
.remaked-item-preview { font: .8125rem/1.5 var(--rm-font); color: var(--rm-text); }
.remaked-item-preview summary {
  position: absolute; top: 0; right: 0; width: 44px;
  box-sizing: border-box; min-height: 44px;
  padding: 10px; list-style: none; text-align: center;
  border: 0; border-radius: 6px;
  background: transparent; cursor: pointer;
}
.remaked-item-preview summary::-webkit-details-marker { display: none; }
.remaked-item-info-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; font: 700 13px/1 var(--rm-font); }
.remaked-item-preview summary:hover { background: #e4f1d6; }
@media (min-width: 701px) and (hover: hover) {
  .remaked-item-preview summary { opacity: 0; }
  .remaked-search-row:hover summary, .remaked-search-row:focus-within summary { opacity: 1; }
}
.remaked-item-description {
  box-sizing: border-box;
  padding: 12px 14px;
  border: 2px ridge #8f7c61;
  border-radius: 5px;
  color: #f3ead6;
  background: linear-gradient(165deg, #191a17 0%, #10120f 100%);
  overflow-wrap: anywhere;
  line-height: 1.55;
  text-shadow: 0 1px 1px #050605;
  box-shadow: inset 0 0 0 2px #30302b, 0 12px 30px rgba(0, 0, 0, .35);
}
.remaked-item-description[popover] {
  position: fixed; inset: auto; margin: 0;
  width: min(368px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px); overflow: auto;
  scrollbar-width: thin; scrollbar-color: #8a7860 #1c1d1a;
  font: .8125rem/1.5 var(--rm-font);
  color: #f3ead6;
}
.remaked-item-description > .remaked-item-title {
  display: block;
  padding: 2px 0 9px; margin-bottom: 10px;
  border-bottom: 1px solid #7c6b56;
  color: #fff4d7; font-size: .92rem; font-weight: 700;
  white-space: normal; overflow-wrap: anywhere;
}
.remaked-item-metadata {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 2px 12px; margin-bottom: 10px;
}
.remaked-item-description .remaked-item-meta-line {
  min-width: 0; margin: 0; font-size: .78rem; color: #e3ddcb;
}
.remaked-item-description .remaked-item-prose {
  margin: .65rem 0; padding-top: .45rem;
  border-top: 1px solid rgba(158, 140, 106, .28);
  white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: .81rem; line-height: 1.55;
}
.remaked-item-description p { white-space: pre-wrap; }
.remaked-item-description small {
  display: block; margin-top: 10px; padding-top: 7px;
  border-top: 1px solid rgba(158,140,106,.25);
  color: #bcb8a8; font-size: .72rem; white-space: normal;
}
.remaked-item-description .remaked-item-warning { color: #ffcb9b; }
.remaked-item-description .remaked-item-gem { color: #d8cb9e; }
.remaked-item-description .remaked-item-soul-bonus { margin: .3rem 0; color: #85bada; }
.remaked-item-description .remaked-item-classes { color: #c9c8bd; font-size: .75rem; }
.remaked-item-sockets {
  display: flex; flex-wrap: wrap; gap: .45rem;
  margin: .5rem 0 .75rem;
}
.remaked-item-socket {
  display: inline-block; width: .92rem; height: .92rem;
  box-sizing: border-box; border: 2px solid #a88b42; border-radius: 50%;
  background: radial-gradient(circle, #100f0a 32%, #43371d 100%);
  box-shadow: 0 0 0 1px #382e19, inset 0 1px 2px #000;
}
.remaked-item-socket[data-filled="true"] {
  border-color: #77b7db;
  background: radial-gradient(circle at 30% 28%, #b2e5fa 0%, #1b7eb8 45%, #0b334c 100%);
  box-shadow: 0 0 0 1px #335a76, 0 0 6px rgba(76,164,221,.24);
}
@media (max-width: 700px) {
  .remaked-item-metadata { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .remaked-item-description { padding: 12px; }
}

.remaked-modern #body select[data-remaked-picker-native],
.remaked-equipment-picker[hidden] { display: none !important; }
.remaked-equipment-picker {
  box-sizing: border-box; display: block; width: 100%; min-height: 36px;
  padding: 7px 26px 7px 9px; position: relative;
  border: 1px solid var(--rm-border); border-radius: 6px;
  background: #fff; color: var(--rm-text); cursor: pointer;
  font: 13px/1.4 var(--rm-font); text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.remaked-equipment-picker::after { content: '⌄'; position: absolute; right: 9px; }
.remaked-equipment-picker:hover { border-color: #79a04f; background: #f4f8ed; }
.remaked-equipment-picker:focus-visible,
.remaked-search-result:focus-visible,
.remaked-item-preview summary:focus-visible { outline: 2px solid #35591e; outline-offset: 2px; }
.remaked-picker-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 6px;
}
.remaked-picker-controls.remaked-picker-controls-single {
  grid-template-columns: minmax(0, 1fr);
}
.remaked-picker-type-filter {
  width: auto;
  min-width: 118px;
  max-width: 168px;
}
.remaked-picker-type-filter[hidden] { display: none; }
.remaked-picker-summary { margin-top: 7px; }
.remaked-picker-results { grid-template-columns: 1fr; margin-top: 0; overscroll-behavior: contain; }
.remaked-picker-group {
  position: sticky;
  top: -2px;
  z-index: 2;
  margin-top: 4px;
}
.remaked-picker-group:first-child { margin-top: 0; }
.remaked-picker-results .remaked-picker-group .remaked-search-result {
  width: 100%;
  min-height: 31px;
  padding: 5px 9px;
  border-color: #c7d5b5;
  border-radius: 5px;
  background: linear-gradient(180deg, #eef5e5 0%, #e5efda 100%);
  color: #536a42;
}
.remaked-picker-results .remaked-picker-group .remaked-search-result-name {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .025em;
}
.remaked-picker-results .remaked-picker-group .remaked-search-result:hover,
.remaked-picker-results .remaked-picker-group .remaked-search-result:focus-visible {
  border-color: #9eb987;
  background: #e2edd6;
}
.remaked-picker-results .remaked-search-row { position: relative; }
.remaked-picker-results .remaked-search-result { width: calc(100% - 48px); position: relative; padding-left: 28px; }
.remaked-picker-results .remaked-search-result:only-child { width: 100%; }
.remaked-picker-results .remaked-search-result-name { flex: 1; }
.remaked-picker-results .remaked-item-preview { display: block; }
.remaked-picker-results summary { position: absolute; top: 0; right: 0; width: 44px; }
.remaked-picker-results .remaked-item-description:not([popover]) { margin-top: 4px; }
.remaked-picker-results .remaked-search-result[data-selected="true"] { border-color: #598832; background: #e4f1d6; }
.remaked-picker-results .remaked-search-result[data-selected="true"]::before { content: '✓'; position: absolute; left: 10px; }
@media (max-width: 700px) { .remaked-equipment-picker { min-height: 44px; } }
@media (max-width: 420px) {
  .remaked-picker-controls { grid-template-columns: 1fr; }
  .remaked-picker-type-filter { width: 100%; max-width: none; }
}
.remaked-equipment-dropdown {
  position: fixed; inset: auto; margin: 0; padding: 0; border: 0;
  max-width: calc(100vw - 16px); background: transparent; overflow: visible;
  font-family: var(--rm-font); color: var(--rm-text);
}
.remaked-equipment-dropdown .remaked-search-panel {
  width: 100%; max-height: var(--rm-dropdown-height); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(34,49,25,.22);
}
.remaked-equipment-dropdown .remaked-search-header { padding: 4px 8px; align-items: center; }
.remaked-equipment-dropdown .remaked-search-eyebrow { display: none; }
.remaked-equipment-dropdown h2 { font-size: 13px; }
.remaked-equipment-dropdown .remaked-search-close { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 24px; }
.remaked-equipment-dropdown .remaked-search-body { padding: 4px; min-height: 0; }
.remaked-equipment-dropdown .remaked-search-label { display: none; }
.remaked-equipment-dropdown .remaked-search-input { min-height: 36px; }
.remaked-equipment-dropdown .remaked-picker-results { margin-top: 4px; gap: 0; max-height: max(40px, calc(var(--rm-dropdown-height) - 108px)); min-height: 40px; }
.remaked-equipment-dropdown .remaked-search-result { min-height: 44px; border: 0; border-radius: 4px; background: transparent; }
.remaked-equipment-dropdown .remaked-search-result:hover, .remaked-equipment-dropdown .remaked-search-result:focus-visible { background: #edf6e3; }
.remaked-equipment-dropdown .remaked-search-result:focus-visible { outline: 2px solid #35591e; outline-offset: -2px; }
.remaked-equipment-dropdown .remaked-search-result[data-selected="true"] { background: #e4f1d6; }
@media (max-width: 700px) { .remaked-equipment-dropdown .remaked-search-input { font-size: 16px; min-height: 44px; } }

/* Legacy equipment rows have fixed 16/18px heights. Let the enhanced controls
   define their own height rather than overlap the next slot or intercept clicks. */
.remaked-modern #body [data-remaked-picker-section] { box-sizing: border-box; width: min(984px, calc(100vw - 48px)) !important; }
.remaked-modern #body [data-remaked-picker-section] * { box-sizing: border-box; }
.remaked-modern #body [data-remaked-picker-slot] { display: flex; width: 100% !important; float: none !important; gap: 6px; align-items: center; }
.remaked-modern #body [data-remaked-picker-slot-label] { box-sizing: border-box; width: 64px !important; flex: 0 0 64px; padding: 6px 4px; color: #34452a; background: #e9f1dd; border: 0; box-shadow: none; text-align: left !important; font: 13px/1.4 var(--rm-font); overflow-wrap: anywhere; }
.remaked-modern #body [data-remaked-picker-fields] { flex: 1; float: none !important; width: auto !important; height: auto !important; min-width: 0; padding: 4px; }
.remaked-modern #body [data-remaked-picker-line] { display: flex !important; flex-wrap: wrap; gap: 6px; align-items: center; }
.remaked-modern #body [data-remaked-picker-field] { height: auto !important; margin: 0 !important; min-width: 0; }
.remaked-modern #body [data-remaked-picker-field][data-remaked-picker-available="false"] { display: none !important; }
.remaked-modern #body [data-remaked-picker-field] select { min-height: 36px; height: auto !important; }
.remaked-modern #body [data-remaked-picker-section] > ul:not([data-remaked-picker-slot]) { display: flex; width: 100%; float: none; }
.remaked-modern #body [data-remaked-picker-section] > ul:first-child .title { font: 600 13px/1.4 var(--rm-font); padding: 7px 4px; }
.remaked-modern #body [data-remaked-picker-section] > ul:first-child .title { box-sizing: border-box; }
.remaked-modern #body [data-remaked-picker-toolbar] { gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 4px; }
.remaked-modern #body [data-remaked-picker-toolbar] > li { margin: 0 !important; height: auto !important; }
.remaked-modern #body [data-remaked-picker-toolbar] > li:has([data-remaked-equipment-reset]) { width: fit-content !important; min-width: 0; max-width: 100%; }
.remaked-modern #body [data-remaked-picker-toolbar] select { min-height: 36px; height: auto !important; font: 13px/1.4 var(--rm-font); }
.remaked-modern #body #Text_26[hidden] { display: none !important; }
.remaked-equipment-picker[data-remaked-equipment-reset] { white-space: normal; overflow-wrap: anywhere; padding-right: 9px; }
.remaked-equipment-picker[data-remaked-equipment-reset]::after { content: none; }
@media (min-width: 1366px) {
  .remaked-tools { padding-block: 4px; margin-bottom: 8px; }
  /* One equipment header: title leading, global enchant/reset controls trailing.
     The original rows stay intact; all worn-item selectors follow in full width. */
  .remaked-modern #body [data-remaked-picker-section] {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
  }
  .remaked-modern #body [data-remaked-picker-section] > ul:first-child { grid-column: 1; grid-row: 1; align-items: center; }
  .remaked-modern #body [data-remaked-picker-section] > ul:first-child .title { text-align: start !important; }
  .remaked-modern #body [data-remaked-picker-toolbar] { grid-column: 2; grid-row: 1; padding-block: 4px; justify-content: end; }
  .remaked-modern #body [data-remaked-picker-slot] { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .remaked-modern #body [data-remaked-picker-slot] { display: grid; grid-template-columns: 1fr; gap: 0; }
  .remaked-modern #body [data-remaked-picker-slot-label] { float: none !important; width: auto !important; text-align: left !important; font: 13px/1.4 var(--rm-font); padding: 6px 4px; }
  .remaked-modern #body [data-remaked-picker-line] { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .remaked-modern #body [data-remaked-picker-field] { width: auto !important; }
  .remaked-modern #body [data-remaked-picker-field="0"],
  .remaked-modern #body [data-remaked-picker-field="4"],
  .remaked-modern #body [data-remaked-picker-field="5"],
  .remaked-modern #body [data-remaked-picker-field="6"] { grid-column: 1 / -1; }
  .remaked-modern #body [data-remaked-picker-field] select { min-height: 44px; }
  .remaked-modern #body [data-remaked-picker-toolbar] select { min-height: 44px; }
}
.remaked-item-warning,
.remaked-modern #body [data-remaked-equipment-warning] {
  box-sizing: border-box;
  float: none !important;
  clear: both;
  grid-column: 1 / -1;
  width: 100% !important;
  height: auto !important;
  padding: 6px 8px !important;
  color: #72420d;
  background: #fff4d7;
  border-left: 3px solid #ae812d;
  font: 12px/1.5 var(--rm-font);
  white-space: normal;
  overflow-wrap: anywhere;
}

.remaked-modern #body [data-remaked-picker-section] > ul:first-child { align-items: center; gap: 8px; flex-wrap: wrap; }
.remaked-modern #body #TextEquip_0 { width: auto !important; flex: 0 0 auto; background: transparent; font-weight: 700; }
.remaked-modern #body [data-remaked-picker-discovery] { float: none; width: auto !important; min-width: 0; flex: 1; }
.remaked-modern #body [data-remaked-picker-discovery] .remaked-tools {
  box-sizing: border-box; margin: 0; padding: 4px; border: 0; border-radius: 0;
  box-shadow: none; background: transparent; flex-wrap: wrap; overflow: visible; gap: 6px;
}
.remaked-modern #body [data-remaked-picker-discovery] .remaked-tools-label { display: none; }
.remaked-modern #body [data-remaked-picker-discovery] .remaked-tool-button { flex: 0 1 auto; }
.remaked-modern #body [data-remaked-picker-discovery]:empty { display: none; }
.remaked-modern #body [data-remaked-picker-toolbar] > li:empty { display: none; }
@media (max-width: 860px) { .remaked-tools { flex-wrap: wrap; overflow: visible; } }
@media (min-width: 861px) {
  /* PC rows keep native modifiers and all Soul fields, with one shared target
     height. Touch layouts continue to use 44px controls below 701px. */
  .remaked-equipment-picker { min-height: 30px; padding-block: 4px; }
  .remaked-modern #body [data-remaked-picker-discovery] .remaked-tool-button {
    min-height: 36px; padding: 7px 9px; font-size: 12px; line-height: 1.5; font-weight: 600;
  }
  .remaked-equipment-picker[data-remaked-equipment-reset] { min-height: 36px; font-size: 12px; line-height: 1.5; font-weight: 600; }
  .remaked-modern #body [data-remaked-picker-fields] { padding-block: 2px; }
  .remaked-modern #body [data-remaked-picker-field] select,
  .remaked-modern #body [data-remaked-picker-toolbar] select { min-height: 30px; font: 13px/1.4 var(--rm-font); }
  .remaked-modern #body [data-remaked-picker-toolbar] select { min-height: 36px; }
  .remaked-modern #body [data-remaked-picker-slot-label] { background: transparent; font-weight: 600; }
  .remaked-modern #body [data-remaked-picker-slot] { background: #fbfdf7; border-bottom: 1px solid #e2e9d8; }
  .remaked-modern #body [data-remaked-picker-slot]:nth-of-type(even) { background: #f3f7ed; }
}

.remaked-item-description p { white-space: pre-wrap; }

/* A dress has one actual item in the chest slot but occupies the pants slot,
   too. This is an explanation for Legacy's existing slot-clearing rule, not
   a second virtual equipped item or an extra stat source. */
.remaked-modern #body [data-remaked-slot-occupied] {
  box-sizing: border-box;
  display: block;
  clear: both;
  width: 100%;
  height: auto;
  margin: 5px 0;
  padding: 8px 10px;
  border-inline-start: 3px solid #7b9862;
  border-radius: 5px;
  color: #3d512e;
  background: #eaf1df;
  font: 12px/1.5 var(--rm-font);
  white-space: normal;
  overflow-wrap: anywhere;
}
.remaked-modern #body [data-remaked-slot-occupied][hidden] { display: none !important; }
.remaked-modern #body [data-remaked-picker-slot]:has([data-remaked-slot-occupied]:not([hidden])) {
  border-inline-start: 3px solid #8aa67a;
}
.remaked-modern #body [data-remaked-picker-slot]:has([data-remaked-slot-occupied]:not([hidden])) .remaked-equipment-picker:disabled {
  cursor: not-allowed;
  border-color: #b2bba8;
  background: #e8ece4;
  color: #5b6d51;
  opacity: 1;
}

.remaked-modern #body [data-remaked-remove-occupying-dress] {
  display: block;
  width: fit-content;
  min-height: 30px;
  margin: 4px 0 6px;
  padding: 5px 10px;
  background: #f7faf1;
  border: 1px solid #94ad7d;
  border-radius: 4px;
  color: #35592c;
  font: 600 12px/1.4 var(--rm-font);
  cursor: pointer;
}
.remaked-modern #body [data-remaked-remove-occupying-dress]:hover {
  background: #eaf3df;
}
.remaked-modern #body [data-remaked-remove-occupying-dress]:focus-visible {
  outline: 2px solid #507642;
  outline-offset: 2px;
}
.remaked-modern #body [data-remaked-remove-occupying-dress][hidden] { display: none !important; }
