:root {
  --rate-bg: #081019;
  --rate-bg-2: #111c2a;
  --rate-bg-3: #21324b;
  --rate-surface: rgba(13, 19, 30, 0.86);
  --rate-surface-strong: rgba(22, 34, 52, 0.94);
  --rate-line: rgba(171, 149, 91, 0.36);
  --rate-line-strong: rgba(255, 222, 126, 0.56);
  --rate-text: #ece2c8;
  --rate-muted: #a7a18d;
  --rate-gold: #e8cb80;
  --rate-cyan: #86d7ff;
  --rate-green: #8cf58c;
  --rate-red: #ff8585;
  --rate-blue: #67a9ff;
  --rate-item: #ff66cf;
  --rate-monster: #ff8e74;
  --rate-npc: #89d4f6;
  --rate-map: #8bd89d;
  --rate-route: #dfc88f;
  --rate-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body.itemRateShell {
  height: 100dvh;
  overflow: hidden;
  color: var(--rate-text);
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 183, 86, 0.18), transparent 18%),
    radial-gradient(circle at 16% 8%, rgba(233, 201, 108, 0.16), transparent 16%),
    radial-gradient(circle at 84% 12%, rgba(117, 159, 212, 0.12), transparent 18%),
    linear-gradient(180deg, #3b2b16 0%, #26354d 10%, var(--rate-bg-2) 22%, var(--rate-bg) 100%);
}

.itemRatePage {
  width: min(1920px, calc(100vw - 20px));
  height: 100dvh;
  margin: 0 auto;
  padding: 10px 0;
  display: grid;
  grid-template-rows: 100px minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.shellCard {
  background:
    linear-gradient(180deg, rgba(176, 136, 63, 0.12) 0%, rgba(176, 136, 63, 0) 18%),
    linear-gradient(180deg, rgba(67, 97, 138, 0.14) 0%, rgba(67, 97, 138, 0) 18%),
    var(--rate-surface);
  border: 1px solid var(--rate-line);
  box-shadow:
    inset 0 0 0 1px rgba(255, 237, 171, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.34),
    var(--rate-shadow);
  border-radius: 4px;
}

.columnDesc,
.searchResultHint,
.emptyStateText {
  color: var(--rate-muted);
  line-height: 1.7;
}

.typeFilterRow,
.searchGroupTitleRow,
.searchResultBadgeRow,
.entityBadgeRow,
.entityMetaList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topCommandBar {
  min-height: 100px;
  height: 100px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) minmax(0, 600px);
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 40;
  overflow: visible;
}

.topSearchTools,
.topFilterTools {
  min-width: 0;
}

.topSearchTools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.topFilterTools {
  display: flex;
  align-items: center;
}

.topCommandBar::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 224, 136, 0.08), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%);
}

.itemRateLogoButton {
  width: 200px;
  min-width: 200px;
  height: 72px;
  padding: 0;
  border: 1px solid rgba(176, 150, 84, 0.34);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(42, 52, 72, 0.94), rgba(18, 25, 35, 0.96));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.itemRateLogoButton:hover {
  border-color: rgba(255, 219, 74, 0.42);
}

.itemRateLogoImage {
  display: block;
  /* width: 200px; */
  height: 140px;
  margin-top: 15px;
  object-fit: contain;
}

.searchFieldWrap {
  position: relative;
  min-width: 0;
}

.topSearchWrap {
  width: 100%;
}

.heroInput {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 3px;
  border: 1px solid rgba(174, 147, 80, 0.36);
  background: rgba(7, 10, 16, 0.88);
  color: var(--rate-text);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.42);
}

.topFilterRow {
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.resetButton {
  min-width: 72px;
  height: 42px;
  padding: 0 14px;
  border-radius: 3px;
  border: 1px solid rgba(176, 150, 84, 0.34);
  background: linear-gradient(180deg, rgba(42, 52, 72, 0.94), rgba(18, 25, 35, 0.96));
  color: var(--rate-text);
  cursor: pointer;
}

.resetButton:hover {
  border-color: rgba(255, 219, 74, 0.42);
  color: #fff0bd;
}

.heroInput:focus {
  border-color: rgba(255, 219, 74, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 219, 74, 0.08);
}

.searchDropdown {
  position: absolute;
  z-index: 80;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(209, 180, 101, 0.28);
  background: linear-gradient(180deg, rgba(24, 35, 54, 0.96), rgba(8, 12, 18, 0.98));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.36);
}

.searchGroup + .searchGroup {
  border-top: 1px solid rgba(255, 219, 74, 0.08);
}

.searchGroupTitleRow {
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px 7px;
  background: rgba(255, 255, 255, 0.02);
}

.searchGroupTitle {
  color: #f0dfab;
  font-size: 12px;
  font-weight: 700;
}

.searchResultButton {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.searchResultMain {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.searchResultTextBlock {
  min-width: 0;
}

.searchResultButton:hover {
  background: rgba(106, 161, 255, 0.08);
}

.searchResultTitle {
  font-size: 14px;
  color: #f0e1b1;
  font-weight: 700;
}

.searchResultButton[data-type="npc"] .searchResultTitle {
  white-space: pre-line;
  line-height: 1.35;
}

.searchResultSubtitle {
  margin-top: 3px;
  color: var(--rate-muted);
  font-size: 12px;
}

.searchResultBadge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(171, 149, 91, 0.24);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  color: #d7c79a;
}

.searchResultHint {
  padding: 12px;
  font-size: 12px;
}

.typeFilterButton {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 3px;
  border: 1px solid rgba(176, 150, 84, 0.34);
  background: linear-gradient(180deg, rgba(42, 52, 72, 0.94), rgba(18, 25, 35, 0.96));
  color: var(--rate-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.typeFilterCheckbox {
  width: 14px;
  height: 14px;
  margin: 0;
  pointer-events: none;
  accent-color: #efc668;
}

.typeFilterButton.isActive {
  border-color: rgba(255, 229, 144, 0.82);
  color: #fff4cf;
  background: linear-gradient(180deg, rgba(135, 94, 24, 0.96), rgba(76, 48, 12, 0.99));
  box-shadow:
    inset 0 0 0 1px rgba(255, 243, 201, 0.24),
    0 0 0 1px rgba(255, 212, 96, 0.16),
    0 10px 20px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(255, 208, 96, 0.18);
}

.typeFilterButton.isActive::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 247, 212, 0.12), transparent 45%);
  pointer-events: none;
}

.workspaceScroller {
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  position: relative;
  z-index: 1;
}

.itemRateWorkspace {
  display: grid;
  grid-template-columns: repeat(5, minmax(290px, 1fr));
  gap: 10px;
  min-width: 1480px;
  height: 100%;
}

.columnPanel {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 12px;
  gap: 8px;
  overflow: hidden;
}

.columnHeadCard {
  border: 1px solid rgba(228, 198, 121, 0.24);
  border-radius: 4px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 239, 183, 0.08), rgba(255, 239, 183, 0.01) 46%),
    linear-gradient(180deg, rgba(46, 63, 88, 0.92), rgba(15, 23, 36, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 243, 201, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

body[data-item-rate-root-type="item"] .columnPanel[data-column="items"],
body[data-item-rate-root-type="monster"] .columnPanel[data-column="monsters"],
body[data-item-rate-root-type="npc"] .columnPanel[data-column="npcs"],
body[data-item-rate-root-type="map"] .columnPanel[data-column="maps"] {
  border-color: rgba(255, 229, 152, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 183, 0.12),
    inset 0 0 24px rgba(255, 223, 130, 0.06),
    0 0 0 1px rgba(255, 214, 102, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.34);
}

body[data-item-rate-root-type="item"] .columnPanel[data-column="items"] {
  background:
    linear-gradient(180deg, rgba(255, 102, 207, 0.18) 0%, rgba(255, 102, 207, 0.02) 20%),
    linear-gradient(180deg, rgba(67, 97, 138, 0.14) 0%, rgba(67, 97, 138, 0) 18%),
    var(--rate-surface);
}

body[data-item-rate-root-type="monster"] .columnPanel[data-column="monsters"] {
  background:
    linear-gradient(180deg, rgba(255, 142, 116, 0.18) 0%, rgba(255, 142, 116, 0.02) 20%),
    linear-gradient(180deg, rgba(67, 97, 138, 0.14) 0%, rgba(67, 97, 138, 0) 18%),
    var(--rate-surface);
}

body[data-item-rate-root-type="npc"] .columnPanel[data-column="npcs"] {
  background:
    linear-gradient(180deg, rgba(137, 212, 246, 0.18) 0%, rgba(137, 212, 246, 0.02) 20%),
    linear-gradient(180deg, rgba(67, 97, 138, 0.14) 0%, rgba(67, 97, 138, 0) 18%),
    var(--rate-surface);
}

body[data-item-rate-root-type="map"] .columnPanel[data-column="maps"] {
  background:
    linear-gradient(180deg, rgba(139, 216, 157, 0.18) 0%, rgba(139, 216, 157, 0.02) 20%),
    linear-gradient(180deg, rgba(67, 97, 138, 0.14) 0%, rgba(67, 97, 138, 0) 18%),
    var(--rate-surface);
}

.columnHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.columnHeadTools {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
}

.columnHead h2 {
  margin: 0;
  min-height: 62px;
  font-size: 16px;
  line-height: 1.2;
  font-family: 'SimHei', 'Microsoft YaHei UI', serif;
  color: #f0dfaa;
  overflow: hidden;
}

.columnTypeBlock {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  margin-bottom: 6px;
  border-radius: 999px;
  border: 1px solid rgba(211, 186, 120, 0.28);
  background: linear-gradient(180deg, rgba(66, 52, 24, 0.88), rgba(27, 21, 9, 0.96));
  color: #efdba2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 239, 183, 0.06);
}

.columnTypeBlock.isItem {
  border-color: rgba(255, 102, 207, 0.42);
  background: linear-gradient(180deg, rgba(112, 28, 88, 0.92), rgba(53, 12, 40, 0.98));
  color: #ffb4ea;
}

.columnTypeBlock.isMonster {
  border-color: rgba(255, 142, 116, 0.42);
  background: linear-gradient(180deg, rgba(105, 48, 34, 0.92), rgba(47, 18, 12, 0.98));
  color: #ffb59b;
}

.columnTypeBlock.isNpc {
  border-color: rgba(137, 212, 246, 0.42);
  background: linear-gradient(180deg, rgba(29, 74, 95, 0.92), rgba(11, 34, 44, 0.98));
  color: #a6edff;
}

.columnTypeBlock.isMap {
  border-color: rgba(139, 216, 157, 0.42);
  background: linear-gradient(180deg, rgba(40, 92, 54, 0.92), rgba(15, 41, 21, 0.98));
  color: #baf6b1;
}

.columnTypeBlock.isRoute {
  border-color: rgba(223, 200, 143, 0.42);
  background: linear-gradient(180deg, rgba(97, 78, 36, 0.92), rgba(39, 30, 11, 0.98));
  color: #f6e0a5;
}

.columnTitleBase {
  display: block;
  color: #f0dfaa;
  font-size: 14px;
  line-height: 1.25;
}

.columnTitleLead {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 4px;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.columnTitleType {
  color: #ead39c;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.columnTitleLeadDivider {
  color: rgba(246, 228, 171, 0.52);
  font-size: 13px;
}

.columnTitleName {
  display: inline-block;
  color: #fff3a7;
  font-size: 15px;
  line-height: 1.15;
  text-shadow: 0 0 10px rgba(255, 222, 126, 0.18);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.columnTitleLead.isItem,
.columnTitleType.isItem,
.columnTitleName.isItem {
  color: var(--rate-item);
  text-shadow: 0 0 12px rgba(255, 102, 207, 0.28);
}

.columnTitleName.isItem {
  color: #ffb4ea;
}

.columnTitleLead.isMonster,
.columnTitleType.isMonster,
.columnTitleName.isMonster {
  color: var(--rate-monster);
  text-shadow: 0 0 12px rgba(255, 120, 92, 0.24);
}

.columnTitleName.isMonster {
  color: #ffb59b;
}

.columnTitleLead.isNpc,
.columnTitleType.isNpc,
.columnTitleName.isNpc {
  color: var(--rate-npc);
  text-shadow: 0 0 12px rgba(80, 218, 255, 0.24);
}

.columnTitleName.isNpc {
  color: #a6edff;
}

.columnTitleLead.isMap,
.columnTitleType.isMap,
.columnTitleName.isMap {
  color: var(--rate-map);
  text-shadow: 0 0 12px rgba(117, 255, 138, 0.2);
}

.columnTitleName.isMap {
  color: #baf6b1;
}

.columnTitleSuffix {
  display: block;
  margin-top: 4px;
  color: #fff8dd;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 231, 160, 0.34);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.columnCount {
  min-width: 32px;
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(184, 159, 91, 0.26);
  background: rgba(255, 255, 255, 0.04);
  color: #f0e3b4;
  font-weight: 700;
}

.columnLocateButton {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  border: 1px solid rgba(184, 159, 91, 0.28);
  background: linear-gradient(180deg, rgba(61, 47, 19, 0.88), rgba(27, 21, 10, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 239, 183, 0.04);
  cursor: pointer;
}

.columnLocateButton:hover:not(:disabled) {
  border-color: rgba(255, 226, 125, 0.48);
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 198, 0.08),
    0 0 12px rgba(255, 208, 96, 0.16);
}

.columnLocateButton:disabled {
  opacity: 0.36;
  cursor: default;
}

.columnLocateIcon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 232, 173, 0.82);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(255, 214, 102, 0.18);
}

.columnLocateIcon::before,
.columnLocateIcon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 232, 173, 0.9);
  transform: translate(-50%, -50%);
}

.columnLocateIcon::before {
  width: 2px;
  height: 14px;
}

.columnLocateIcon::after {
  width: 14px;
  height: 2px;
}

.columnLocateButton:not(:disabled) .columnLocateIcon::before,
.columnLocateButton:not(:disabled) .columnLocateIcon::after {
  box-shadow: 0 0 8px rgba(255, 214, 102, 0.16);
}

body[data-item-rate-root-type="item"] .columnPanel[data-column="items"] .columnCount,
body[data-item-rate-root-type="monster"] .columnPanel[data-column="monsters"] .columnCount,
body[data-item-rate-root-type="npc"] .columnPanel[data-column="npcs"] .columnCount,
body[data-item-rate-root-type="map"] .columnPanel[data-column="maps"] .columnCount {
  color: #fff1c2;
  border-color: rgba(255, 226, 125, 0.5);
  background: linear-gradient(180deg, rgba(104, 79, 28, 0.5), rgba(28, 22, 10, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 239, 183, 0.12);
}

body[data-item-rate-root-type="item"] .columnPanel[data-column="items"] .columnLocateButton,
body[data-item-rate-root-type="monster"] .columnPanel[data-column="monsters"] .columnLocateButton,
body[data-item-rate-root-type="npc"] .columnPanel[data-column="npcs"] .columnLocateButton,
body[data-item-rate-root-type="map"] .columnPanel[data-column="maps"] .columnLocateButton {
  border-color: rgba(255, 226, 125, 0.44);
  background: linear-gradient(180deg, rgba(104, 79, 28, 0.58), rgba(28, 22, 10, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 239, 183, 0.12);
}

.entityList {
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 8px;
  padding-right: 2px;
}

.entityCard,
.emptyStateCard {
  width: 100%;
  align-self: start;
  text-align: left;
  border: 1px solid rgba(168, 139, 77, 0.28);
  background:
    linear-gradient(180deg, rgba(105, 144, 196, 0.1) 0%, rgba(105, 144, 196, 0) 18%),
    linear-gradient(180deg, rgba(48, 67, 95, 0.92), rgba(16, 20, 28, 0.98) 58%, rgba(7, 9, 13, 1) 100%);
  color: inherit;
  padding: 12px 12px 11px;
  position: relative;
  overflow: hidden;
}

.entityCard {
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.entityCard::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.entityCard::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 16%),
    radial-gradient(circle at 50% 0%, rgba(255, 224, 136, 0.06), transparent 30%);
  pointer-events: none;
}

.entityCardFrame {
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(219, 197, 134, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.entityCardCorner {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: rgba(226, 199, 126, 0.28);
  pointer-events: none;
}

.entityCardCornerLt {
  left: 2px;
  top: 2px;
  border-left: 1px solid;
  border-top: 1px solid;
}

.entityCardCornerRt {
  right: 2px;
  top: 2px;
  border-right: 1px solid;
  border-top: 1px solid;
}

.entityCardCornerLb {
  left: 2px;
  bottom: 2px;
  border-left: 1px solid;
  border-bottom: 1px solid;
}

.entityCardCornerRb {
  right: 2px;
  bottom: 2px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.entitySelectedSigil {
  position: absolute;
  right: 10px;
  top: 9px;
  width: 10px;
  height: 10px;
  background: linear-gradient(180deg, #ffe8a5, #d6a63c);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(255, 218, 118, 0.54);
  border: 1px solid rgba(255, 244, 196, 0.5);
  z-index: 1;
}

.entityCard[data-type="item"]::before {
  background: var(--rate-item);
}

.entityCard[data-type="monster"]::before {
  background: var(--rate-monster);
}

.entityCard[data-type="npc"]::before {
  background: var(--rate-npc);
}

.entityCard[data-type="map"]::before {
  background: var(--rate-map);
}

.entityCard[data-type="route"]::before {
  background: var(--rate-route);
}

.entityCard:hover {
  border-color: rgba(255, 219, 74, 0.34);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26), inset 0 0 0 1px rgba(255, 237, 171, 0.08);
}

body[data-item-rate-root-type="item"] .columnPanel[data-column="items"] .entityCard,
body[data-item-rate-root-type="monster"] .columnPanel[data-column="monsters"] .entityCard,
body[data-item-rate-root-type="npc"] .columnPanel[data-column="npcs"] .entityCard,
body[data-item-rate-root-type="map"] .columnPanel[data-column="maps"] .entityCard {
  border-color: rgba(255, 224, 136, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 225, 139, 0.12) 0%, rgba(255, 225, 139, 0.02) 18%),
    linear-gradient(180deg, rgba(86, 66, 22, 0.34), rgba(18, 16, 10, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 237, 171, 0.05);
}

body[data-item-rate-root-type="item"] .columnPanel[data-column="items"] .entityCard::before {
  background: var(--rate-item);
  box-shadow: 0 0 10px rgba(255, 102, 207, 0.34);
}

body[data-item-rate-root-type="monster"] .columnPanel[data-column="monsters"] .entityCard::before {
  background: var(--rate-monster);
  box-shadow: 0 0 10px rgba(255, 142, 116, 0.34);
}

body[data-item-rate-root-type="npc"] .columnPanel[data-column="npcs"] .entityCard::before {
  background: var(--rate-npc);
  box-shadow: 0 0 10px rgba(137, 212, 246, 0.34);
}

body[data-item-rate-root-type="map"] .columnPanel[data-column="maps"] .entityCard::before {
  background: var(--rate-map);
  box-shadow: 0 0 10px rgba(139, 216, 157, 0.34);
}

body[data-item-rate-root-type="item"] .columnPanel[data-column="items"] .entityCard:hover,
body[data-item-rate-root-type="monster"] .columnPanel[data-column="monsters"] .entityCard:hover,
body[data-item-rate-root-type="npc"] .columnPanel[data-column="npcs"] .entityCard:hover,
body[data-item-rate-root-type="map"] .columnPanel[data-column="maps"] .entityCard:hover {
  border-color: rgba(255, 232, 164, 0.56);
}

.entityCard.isSelected {
  border-color: rgba(255, 231, 151, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 227, 143, 0.22) 0%, rgba(255, 227, 143, 0.05) 18%),
    linear-gradient(180deg, rgba(93, 67, 18, 0.95), rgba(31, 22, 8, 0.99));
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 203, 0.26),
    inset 0 0 22px rgba(255, 214, 102, 0.12),
    0 0 0 1px rgba(255, 214, 102, 0.18),
    0 0 18px rgba(255, 196, 80, 0.18);
  transform: translateY(-1px) scale(1.005);
}

.entityCard.isSelected .entityTitle {
  color: #fff5cd;
  text-shadow: 0 0 10px rgba(255, 232, 167, 0.22);
}

.entityCard.isSelected .entitySubtitle {
  color: #f1ddb0;
}

.entityCard.isSelected .entityCardFrame {
  border-color: rgba(255, 240, 187, 0.24);
}

.entityCard.isSelected .entityCardCorner {
  border-color: rgba(255, 227, 141, 0.54);
}

.entityCard.isLocateFlashing {
  animation: entityLocateFlash 0.96s ease-out;
}

.entityCard.isLocateFlashing::after {
  background:
    linear-gradient(180deg, rgba(255, 250, 228, 0.22), transparent 22%),
    radial-gradient(circle at 50% 0%, rgba(255, 238, 172, 0.18), transparent 34%);
}

.entityCard.isLocateFlashing .entityCardFrame {
  border-color: rgba(255, 247, 210, 0.68);
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 205, 0.36),
    0 0 24px rgba(255, 214, 102, 0.3);
}

.entityCard.isLocateFlashing .entityCardCorner {
  border-color: rgba(255, 237, 173, 0.8);
}

body[data-item-rate-root-type="item"] .columnPanel[data-column="items"] .entityCard.isSelected,
body[data-item-rate-root-type="monster"] .columnPanel[data-column="monsters"] .entityCard.isSelected,
body[data-item-rate-root-type="npc"] .columnPanel[data-column="npcs"] .entityCard.isSelected,
body[data-item-rate-root-type="map"] .columnPanel[data-column="maps"] .entityCard.isSelected {
  border-color: rgba(255, 248, 219, 1);
  background:
    linear-gradient(180deg, rgba(255, 237, 170, 0.34) 0%, rgba(255, 225, 139, 0.08) 18%),
    linear-gradient(180deg, rgba(114, 79, 15, 0.98), rgba(44, 27, 7, 1));
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 228, 0.44),
    inset 0 0 36px rgba(255, 214, 102, 0.2),
    0 0 0 1px rgba(255, 234, 166, 0.34),
    0 0 28px rgba(255, 196, 80, 0.32),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

body[data-item-rate-root-type="item"] .columnPanel[data-column="items"] .entityCard.isSelected .entityTitle,
body[data-item-rate-root-type="monster"] .columnPanel[data-column="monsters"] .entityCard.isSelected .entityTitle,
body[data-item-rate-root-type="npc"] .columnPanel[data-column="npcs"] .entityCard.isSelected .entityTitle,
body[data-item-rate-root-type="map"] .columnPanel[data-column="maps"] .entityCard.isSelected .entityTitle {
  color: #fff9e4;
  text-shadow: 0 0 12px rgba(255, 231, 160, 0.3);
}

@keyframes entityLocateFlash {
  0% {
    border-color: rgba(255, 250, 228, 1);
    box-shadow:
      inset 0 0 0 1px rgba(255, 250, 228, 0.52),
      inset 0 0 40px rgba(255, 214, 102, 0.22),
      0 0 0 1px rgba(255, 234, 166, 0.42),
      0 0 34px rgba(255, 208, 96, 0.42),
      0 16px 30px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px) scale(1.01);
  }
  45% {
    border-color: rgba(255, 238, 176, 1);
    box-shadow:
      inset 0 0 0 1px rgba(255, 248, 220, 0.44),
      inset 0 0 32px rgba(255, 214, 102, 0.18),
      0 0 0 1px rgba(255, 234, 166, 0.32),
      0 0 28px rgba(255, 208, 96, 0.28),
      0 14px 28px rgba(0, 0, 0, 0.26);
    transform: translateY(-1px) scale(1.008);
  }
  100% {
    transform: translateY(-1px) scale(1.005);
  }
}

.entityCardHead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.entityTitleBlock {
  min-width: 0;
}

.entityTitle {
  font-size: 15px;
  font-weight: 700;
  color: #f3e4b6;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.56);
}

.entitySubtitle {
  margin-top: 3px;
  color: #b6c2d4;
  font-size: 12px;
  line-height: 1.35;
}

.entitySubtitle.isCompact {
  margin-top: 3px;
  color: #c7d0dc;
  font-size: 11px;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

.entityCard[data-card-type="map"] .entitySubtitle.isCompact {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow: hidden;
}

.entitySubtitlePart {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
}

.entitySubtitlePart.isColor {
  font-weight: 700;
}

.entityColorLabel {
  text-shadow: 0 0 8px currentColor;
}

.entitySubtitleSeparator {
  position: relative;
  width: 12px;
  height: 6px;
  display: inline-block;
  border-top: 1px solid rgba(255, 229, 162, 0.58);
  border-bottom: 1px solid rgba(156, 108, 28, 0.72);
  background: linear-gradient(90deg, rgba(114, 74, 18, 0.1), rgba(255, 223, 146, 0.94), rgba(114, 74, 18, 0.1));
  box-shadow: 0 0 10px rgba(255, 210, 100, 0.16);
  border-radius: 999px;
  margin-inline: 2px;
  animation: subtitleSigilPulse 2.2s ease-in-out infinite;
}

.entitySubtitleSeparator::before,
.entitySubtitleSeparator::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 232, 173, 0.86);
  transform: translateY(-50%);
  box-shadow: 0 0 6px rgba(255, 214, 102, 0.18);
}

.entitySubtitleSeparator::before {
  left: -3px;
}

.entitySubtitleSeparator::after {
  right: -3px;
}

.entityCard[data-card-type="map"] .entitySubtitleSeparator {
  margin-inline: 6px;
  width: 14px;
}

@keyframes subtitleSigilPulse {
  0%, 100% { opacity: 0.68; transform: scaleX(0.92); }
  50% { opacity: 1; transform: scaleX(1.08); }
}

.entityCard[data-card-type="npc"] .entityTitle {
  white-space: pre-line;
  line-height: 1.35;
}

.entityCard.isCompact {
  height: 78px;
  min-height: 78px;
  max-height: 78px;
  padding: 10px 12px 9px;
  overflow: hidden;
}

.entityCard.isCompact .entityTitle {
  font-size: 14px;
  line-height: 1.35;
}

.entityCard.isCompact .entityCardHead {
  height: 100%;
  align-items: center;
}

.entityCard.isCompact .entityTitleBlock {
  align-self: center;
  display: flex;
  min-height: 100%;
  justify-content: center;
  flex-direction: column;
}

.itemRateIconWrap {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 159, 91, 0.22);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.itemRateIconWrap::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(237, 212, 142, 0.14);
  pointer-events: none;
}

.itemRateIconWrap.isInteractive {
  cursor: pointer;
}

.itemRateIcon {
  display: block;
  width: 38px;
  height: 38px;
  image-rendering: pixelated;
  object-fit: contain;
}

.routeStepList {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.routeStepItem {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.routeStepItem.isNpc .routeStepIndex,
.routeStepItem.isNpc .routeConnectorArrow {
  color: #aeeeff;
  border-color: rgba(137, 212, 246, 0.42);
}

.routeStepItem.isPortal .routeStepIndex,
.routeStepItem.isPortal .routeConnectorArrow {
  color: #ffd8a2;
  border-color: rgba(255, 174, 112, 0.42);
}

.routeStepIndex {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(225, 198, 124, 0.34);
  background: linear-gradient(180deg, rgba(92, 73, 33, 0.94), rgba(33, 26, 10, 0.98));
  color: #f4ddb1;
  font-size: 11px;
  font-weight: 700;
}

.routeStepChain {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.routeNode {
  min-width: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid rgba(191, 165, 96, 0.22);
  background: linear-gradient(180deg, rgba(49, 66, 92, 0.9), rgba(15, 19, 27, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 234, 176, 0.03);
}

.routeNodeMap {
  border-color: rgba(139, 216, 157, 0.34);
}

.routeNodeNpc {
  border-color: rgba(137, 212, 246, 0.34);
}

.routeNodePortal {
  border-color: rgba(255, 174, 112, 0.34);
}

.routeNodeTarget {
  border-color: rgba(223, 200, 143, 0.34);
}

.routeConnector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 26px;
}

.routeConnectorLine {
  width: 2px;
  height: 14px;
  background: linear-gradient(180deg, rgba(255, 221, 147, 0.18), rgba(255, 221, 147, 0.68), rgba(255, 221, 147, 0.18));
}

.routeConnectorArrow {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(223, 200, 143, 0.34);
  background: linear-gradient(180deg, rgba(63, 54, 28, 0.92), rgba(22, 18, 8, 0.98));
  color: #f0d58c;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 0 10px rgba(255, 214, 102, 0.08);
}

.routeNodeLabel {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(214, 186, 113, 0.34);
  background: linear-gradient(180deg, rgba(77, 61, 26, 0.94), rgba(30, 23, 9, 0.98));
  color: #f0deb2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(255, 236, 180, 0.06);
}

.routeNodeMap .routeNodeLabel {
  border-color: rgba(139, 216, 157, 0.38);
  background: linear-gradient(180deg, rgba(39, 92, 54, 0.94), rgba(15, 40, 22, 0.98));
  color: #c8f7ce;
}

.routeNodeNpc .routeNodeLabel {
  border-color: rgba(137, 212, 246, 0.38);
  background: linear-gradient(180deg, rgba(27, 81, 106, 0.94), rgba(10, 34, 46, 0.98));
  color: #b9efff;
}

.routeNodePortal .routeNodeLabel {
  border-color: rgba(255, 174, 112, 0.38);
  background: linear-gradient(180deg, rgba(109, 59, 27, 0.94), rgba(44, 22, 10, 0.98));
  color: #ffd3ac;
}

.routeNodeTarget .routeNodeLabel {
  border-color: rgba(223, 200, 143, 0.38);
  background: linear-gradient(180deg, rgba(97, 77, 35, 0.94), rgba(40, 30, 11, 0.98));
  color: #f6e3b1;
}

.routeNodeName {
  color: #f3e4b6;
  font-size: 12px;
  line-height: 1.3;
}

.routeNodeMeta {
  color: #aebacf;
  font-size: 11px;
  line-height: 1.25;
}

.routeStepItem.isNpc .routeConnectorLine {
  background: linear-gradient(180deg, rgba(137, 212, 246, 0.14), rgba(137, 212, 246, 0.72), rgba(137, 212, 246, 0.14));
}

.routeStepItem.isPortal .routeConnectorLine {
  background: linear-gradient(180deg, rgba(255, 174, 112, 0.14), rgba(255, 174, 112, 0.72), rgba(255, 174, 112, 0.14));
}

.itemDetailPanel {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 219, 74, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

.itemDetailLead {
  margin-bottom: 8px;
  color: #d7ca9f;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-line;
}

.itemDetailGrid {
  display: grid;
  gap: 6px;
}

.itemDetailRow {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.itemDetailLabel {
  color: #9fb6cb;
  font-size: 12px;
  line-height: 1.5;
}

.itemDetailValue {
  color: #efe1b4;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-line;
  word-break: break-word;
}

.entityBadge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(184, 159, 91, 0.28);
  background: linear-gradient(180deg, rgba(61, 47, 19, 0.88), rgba(27, 21, 10, 0.96));
  font-size: 11px;
  color: #e8d3a1;
  box-shadow: inset 0 0 0 1px rgba(255, 239, 183, 0.04);
}

.entityMetaList {
  margin-top: 8px;
  flex-direction: column;
  gap: 4px;
}

.entityMetaItem {
  color: #a9c6e0;
  font-size: 12px;
  line-height: 1.55;
}

.routeStepList {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.routeStepItem {
  padding: 6px 8px;
  border: 1px solid rgba(255, 219, 74, 0.1);
  background: linear-gradient(180deg, rgba(49, 62, 90, 0.82), rgba(11, 16, 25, 0.92));
  color: #cfdcf0;
  font-size: 12px;
  line-height: 1.55;
}

.emptyStateCard {
  cursor: default;
  background:
    linear-gradient(180deg, rgba(52, 68, 98, 0.68), rgba(12, 16, 24, 0.94));
}

.emptyStateTitle {
  font-size: 14px;
  font-weight: 700;
  color: #e8d9a7;
}