:root {
  color-scheme: dark;
  --bg: #171615;
  --panel: #222426;
  --panel-2: #2a2f31;
  --ink: #f0e8d5;
  --muted: #b7aa91;
  --line: #5f655f;
  --gold: #d6a84e;
  --blue: #76bfd5;
  --green: #93c47d;
  --red: #cf705d;
  --black: #0c0b0a;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: auto;
  background:
    linear-gradient(115deg, rgba(8, 11, 13, 0.94), rgba(36, 34, 29, 0.94)),
    #111415;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: #9dd4e8;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell.details-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.map-panel {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 14px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 10px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

h2 {
  font-size: 18px;
}

.map-context {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.context-title {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.act-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.campaign-nav {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(109, 91, 59, 0.74);
  border-bottom-color: rgba(37, 31, 23, 0.95);
  border-radius: 8px 8px 3px 3px;
  background:
    linear-gradient(180deg, rgba(45, 38, 30, 0.96), rgba(16, 14, 12, 0.96)),
    #181510;
  padding: 7px 9px 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 233, 180, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.28);
}

.part-tabs,
.act-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.nav-tab {
  min-height: 28px;
  padding: 0 12px;
  border-color: rgba(141, 119, 78, 0.54);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(38, 34, 29, 0.96), rgba(18, 17, 15, 0.96));
  color: #d8c6aa;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 236, 188, 0.05);
}

.part-tabs .nav-tab {
  min-width: 86px;
  text-transform: uppercase;
}

.act-tabs .nav-tab {
  min-height: 26px;
  padding: 0 8px;
  border-color: rgba(118, 191, 213, 0.2);
  font-size: 11px;
}

.nav-tab.selected,
.nav-tab[aria-selected="true"] {
  border-color: rgba(216, 168, 78, 0.86);
  background: linear-gradient(180deg, rgba(88, 66, 32, 0.96), rgba(43, 34, 24, 0.96));
  color: #fff1c9;
  box-shadow: inset 0 0 0 1px rgba(255, 231, 165, 0.12);
}

.nav-tab:focus-visible {
  outline: 2px solid rgba(255, 215, 132, 0.9);
  outline-offset: 2px;
}

.hub-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(216, 168, 78, 0.32);
  border-radius: 6px;
  background: rgba(34, 31, 28, 0.82);
  color: #f0d99f;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.hub-link:hover,
.hub-link:focus-visible {
  border-color: rgba(216, 168, 78, 0.82);
  background: rgba(52, 43, 29, 0.94);
  outline: none;
}

.toggle,
button,
.select-control {
  min-height: 36px;
  border: 1px solid #4b4235;
  border-radius: 6px;
  background: #221f1c;
  color: var(--ink);
  font: inherit;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 13px;
}

.select-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 13px;
}

.select-control span {
  color: var(--muted);
  font-weight: 700;
}

select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}

option {
  background: #221f1c;
  color: var(--ink);
}

button {
  padding: 0 14px;
  cursor: pointer;
}

button:hover,
.toggle:hover,
.select-control:hover {
  border-color: #8b7652;
  background: #2d2822;
}

.map-wrap {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 0;
}

.map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 902 / 570;
  min-height: 0;
  border: 1px solid #40372c;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1712;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.important-reward-tray {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  max-height: min(38vh, 260px);
  border: 1px solid rgba(239, 218, 169, 0.24);
  border-radius: 6px;
  background: rgba(18, 17, 15, 0.82);
  padding: 8px;
  overflow: auto;
  backdrop-filter: blur(5px);
}

.important-reward-tray[hidden] {
  display: none;
}

.important-reward-tray.collapsed {
  justify-self: end;
  width: auto;
  max-height: none;
  gap: 0;
  padding: 0;
  border-color: rgba(239, 218, 169, 0.2);
  background: rgba(18, 17, 15, 0.66);
  overflow: visible;
}

.reward-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.important-reward-tray.collapsed .reward-tray-header {
  display: block;
}

.reward-tray-heading {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.reward-tray-title {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.reward-tray-count {
  color: #b7aa91;
  font-size: 11px;
  font-weight: 700;
}

.reward-tray-toggle {
  min-height: 24px;
  padding: 0 8px;
  border-color: rgba(216, 168, 78, 0.28);
  border-radius: 999px;
  background: rgba(34, 31, 28, 0.86);
  color: #fff3d2;
  font-size: 11px;
  font-weight: 800;
}

.important-reward-tray.collapsed .reward-tray-toggle {
  min-height: 32px;
  padding: 0 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.36);
}

.reward-tray-list {
  display: grid;
  gap: 5px;
  overflow: hidden;
}

.reward-tray-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.reward-tray-row.bandit-check {
  grid-template-columns: minmax(0, 1fr) 40px;
}

.reward-tray-row:not(.no-check) {
  min-height: 40px;
  border: 1px solid rgba(216, 168, 78, 0.24);
  border-radius: 6px;
  background: rgba(34, 31, 28, 0.86);
  padding: 5px 6px;
}

.reward-tray-row.no-check {
  grid-template-columns: minmax(0, 1fr);
}

.quest-guide-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 52px;
  border: 1px solid rgba(216, 168, 78, 0.22);
  border-radius: 6px;
  background: rgba(34, 31, 28, 0.86);
  padding: 5px 6px;
}

.quest-guide-row.bandit-check {
  grid-template-columns: minmax(0, 1fr) 40px;
}

.quest-guide-row.no-check {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  border: 0;
  background: transparent;
}

.manual-check-button {
  display: grid;
  place-items: center;
  position: relative;
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  align-self: center;
  border: 1px solid rgba(216, 168, 78, 0.34);
  border-radius: 6px;
  background: rgba(18, 17, 15, 0.82);
  color: #f5cf6a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  padding: 1px;
}

.manual-check-button.choice-check-button {
  width: 38px;
  min-width: 38px;
}

.manual-check-button:hover,
.manual-check-button:focus {
  border-color: #f0c75f;
  outline: 1px solid rgba(245, 207, 106, 0.42);
  outline-offset: 2px;
}

.manual-check-button.checked {
  background: rgba(83, 63, 23, 0.9);
  box-shadow: inset 0 0 0 1px rgba(245, 207, 106, 0.32);
}

.manual-check-icon,
.manual-check-fallback {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.manual-check-fallback {
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(52, 42, 21, 0.72);
  color: #fff3d2;
  font-size: 11px;
}

.choice-check-button .manual-check-fallback {
  width: 34px;
  font-size: 9px;
  letter-spacing: 0;
}

.manual-check-mark {
  position: absolute;
  right: 1px;
  bottom: 1px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: rgba(18, 17, 15, 0.94);
  color: #f8e3a0;
  box-shadow: 0 0 0 1px rgba(245, 207, 106, 0.82);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
}

.manual-check-multiplier {
  right: -1px;
  top: -1px;
}

.manual-check-button.checked .manual-check-mark {
  opacity: 1;
  transform: scale(1);
}

.manual-check-button.checked .manual-check-mark::before {
  content: "\2713";
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.reward-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.reward-filter {
  min-height: 24px;
  border-color: rgba(216, 168, 78, 0.2);
  border-radius: 999px;
  background: rgba(34, 31, 28, 0.72);
  color: #d8c6aa;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
}

.reward-filter.active {
  border-color: rgba(216, 168, 78, 0.72);
  background: rgba(77, 59, 29, 0.84);
  color: #fff3d2;
}

.reward-tray-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(216, 168, 78, 0.24);
  border-radius: 6px;
  background: rgba(34, 31, 28, 0.86);
  color: #eadfc6;
  padding: 5px 7px;
  text-align: left;
}

.reward-tray-row:not(.no-check) .reward-tray-item {
  min-height: 30px;
  border: 0;
  background: transparent;
  padding: 0;
}

.reward-tray-item:hover,
.reward-tray-item:focus {
  border-color: #d6a84e;
}

.reward-tray-row:not(.no-check) .reward-tray-item:hover,
.reward-tray-row:not(.no-check) .reward-tray-item:focus {
  background: rgba(57, 47, 30, 0.46);
  outline: 1px solid rgba(214, 168, 78, 0.46);
  outline-offset: 2px;
}

.reward-tray-row.checked,
.quest-guide-row.checked,
.overlay-card.checked {
  border-color: rgba(245, 207, 106, 0.58);
  background: rgba(45, 38, 22, 0.9);
}

.reward-tray-item img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.reward-icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
}

.reward-icon-wrap img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.reward-multiplier {
  position: absolute;
  right: -4px;
  top: -5px;
  display: grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border: 1px solid rgba(255, 240, 181, 0.88);
  border-radius: 999px;
  background: rgba(104, 65, 12, 0.96);
  color: #fff1b8;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.52);
  pointer-events: none;
}

.reward-tray-neutral {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(216, 168, 78, 0.45);
  border-radius: 999px;
  background: rgba(52, 42, 21, 0.72);
  color: #fff3d2;
  font-size: 11px;
  font-weight: 800;
}

.reward-tray-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.reward-tray-copy b,
.reward-tray-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-tray-copy b {
  color: #f0e8d5;
  font-size: 11px;
}

.reward-tray-copy small,
.reward-tray-empty {
  color: #d8c6aa;
  font-size: 11px;
}

.reward-tray-empty {
  margin: 0;
  line-height: 1.35;
}

.quest-strip {
  display: grid;
  gap: 8px;
  border: 1px solid #40372c;
  border-radius: 8px;
  background: rgba(18, 17, 15, 0.78);
  padding: 9px;
}

.quest-strip-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.quest-guide-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.quest-guide-filter {
  min-height: 26px;
  border-color: rgba(118, 191, 213, 0.2);
  border-radius: 999px;
  background: rgba(34, 31, 28, 0.72);
  color: #d8c6aa;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
}

.quest-guide-filter.active {
  border-color: rgba(118, 191, 213, 0.72);
  background: rgba(31, 53, 58, 0.84);
  color: #e6f6fb;
}

.quest-guide-filter.reset-checks:disabled {
  cursor: default;
  opacity: 0.45;
}

.manual-checklist-summary {
  display: grid;
  gap: 1px;
  min-height: 26px;
  padding: 1px 7px;
  border-left: 1px solid rgba(216, 168, 78, 0.28);
  color: #eadfc6;
  font-size: 11px;
  line-height: 1.15;
}

.manual-checklist-summary small {
  color: #cbb895;
  font-size: 10px;
}

.labyrinth-progress-note {
  margin: 0;
  border: 1px solid rgba(143, 211, 111, 0.22);
  border-radius: 6px;
  background: rgba(20, 45, 25, 0.32);
  color: #d6e6c4;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.35;
}

.quest-guide-group {
  display: grid;
  gap: 5px;
}

.quest-guide-group h3 {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quest-guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px;
}

.quest-guide-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(216, 168, 78, 0.22);
  border-radius: 6px;
  background: rgba(34, 31, 28, 0.86);
  color: #eadfc6;
  padding: 5px 7px;
  text-align: left;
}

.quest-guide-row:not(.no-check) .quest-guide-item {
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
}

.quest-guide-item:hover,
.quest-guide-item:focus {
  border-color: #d6a84e;
}

.quest-guide-row:not(.no-check) .quest-guide-item:hover,
.quest-guide-row:not(.no-check) .quest-guide-item:focus {
  background: rgba(57, 47, 30, 0.5);
  outline: 1px solid rgba(214, 168, 78, 0.48);
  outline-offset: 2px;
}

.quest-guide-item.selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(214, 168, 78, 0.22);
}

.quest-guide-row:not(.no-check) .quest-guide-item.selected {
  box-shadow: none;
  outline: 2px solid rgba(214, 168, 78, 0.42);
  outline-offset: 2px;
}

.quest-guide-item.no-anchor {
  border-style: dashed;
}

.quest-guide-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.quest-guide-item .quest-guide-reward-icon {
  width: 24px;
  height: 24px;
  justify-self: end;
}

.quest-guide-reward-token {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  justify-self: end;
  border: 1px solid rgba(216, 168, 78, 0.45);
  border-radius: 5px;
  background: rgba(52, 42, 21, 0.72);
  color: #fff3d2;
  font-size: 11px;
  font-weight: 800;
}

.quest-guide-token {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: center / contain no-repeat url("./assets/world-panel-ui/world-panel-quest-frame.webp");
  color: #fff3d2;
  font-size: 10px;
  font-weight: 900;
}

.quest-guide-item.optional .quest-guide-token,
.quest-guide-item.trials .quest-guide-token {
  background-image: url("./assets/world-panel-ui/world-panel-optional-quest-frame.webp");
}

.quest-guide-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.quest-guide-copy b,
.quest-guide-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-guide-copy b {
  color: #f0e8d5;
  font-size: 12px;
}

.quest-guide-copy small {
  color: #d8c6aa;
  font-size: 11px;
}

.quest-tile {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  height: 72px;
  border: 1px solid rgba(216, 168, 78, 0.24);
  border-radius: 6px;
  background: rgba(34, 31, 28, 0.86);
  color: #eadfc6;
  padding: 6px 5px;
}

.quest-tile:hover,
.quest-tile:focus {
  border-color: #d6a84e;
}

.quest-tile.selected {
  border-color: #ffffff;
  background: rgba(64, 51, 31, 0.9);
  box-shadow: 0 0 0 2px rgba(214, 168, 78, 0.22);
}

.quest-tile img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.quest-tile span {
  width: 100%;
  overflow: hidden;
  color: #ded3b9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-strip-detail {
  display: grid;
  gap: 5px;
  min-height: 82px;
  border: 1px solid rgba(118, 191, 213, 0.18);
  border-radius: 6px;
  background: rgba(12, 13, 13, 0.44);
  padding: 8px;
}

.quest-strip-detail p {
  margin: 0;
  color: #d8c6aa;
  font-size: 12px;
  line-height: 1.35;
}

.quest-strip-detail h2 {
  font-size: 15px;
}

.gem-vendor-open {
  border-color: #7b6238;
  color: #f0d89d;
  font-weight: 800;
}

.gem-vendor-open[aria-expanded="true"] {
  border-color: #d6a84e;
  background: #352b1c;
  color: #fff1c9;
}

.gem-vendor-dialog {
  box-sizing: border-box;
  width: 95%;
  height: 95%;
  max-width: none;
  max-height: none;
  margin: auto;
  border: 1px solid #7b6238;
  border-radius: 10px;
  background: #181510;
  color: var(--ink);
  padding: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}

.gem-vendor-dialog:not([open]) {
  display: none;
}

html:has(.gem-vendor-dialog[open]),
body:has(.gem-vendor-dialog[open]) {
  overflow: hidden;
}

.gem-vendor-dialog::backdrop {
  background: rgba(3, 4, 5, 0.78);
  backdrop-filter: blur(2px);
}

.gem-vendor-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 9px;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #181510;
  padding: 14px;
}

.gem-vendor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #4b3d29;
  padding-bottom: 10px;
}

.gem-vendor-header h2 {
  color: #f0d89d;
  font-size: 20px;
}

.gem-vendor-header-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.gem-vendor-summary,
.gem-vendor-note,
.gem-vendor-empty {
  margin: 3px 0 0;
  color: #b7aa91;
  font-size: 11px;
  line-height: 1.4;
}

.gem-vendor-class-picker {
  display: grid;
  gap: 3px;
  min-width: 180px;
  color: #c9b47e;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.gem-vendor-class-picker select {
  min-height: 34px;
  border: 1px solid #6b5737;
  border-radius: 6px;
  background: #0f0d0a;
  color: #f0d89d;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.gem-vendor-close {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  border-color: #665336;
  padding: 0;
  color: #ecd49b;
  font-size: 21px;
  line-height: 1;
}

.gem-vendor-table-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.gem-vendor-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border: 1px solid #40372c;
  border-radius: 7px;
  background: #0d1011;
  overflow: hidden;
}

.gem-vendor-col-quest {
  width: 20%;
}

.gem-vendor-col-rewards {
  width: 34%;
}

.gem-vendor-col-unlocks {
  width: 46%;
}

.gem-vendor-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.gem-vendor-table thead th {
  border-bottom: 1px solid #59472d;
  background: #1e190f;
  color: #f0d89d;
  padding: 8px 10px;
  font-size: 11px;
  text-align: left;
  text-transform: uppercase;
}

.gem-vendor-table th + th,
.gem-vendor-table td + td {
  border-left: 1px solid #30291f;
}

.gem-vendor-table tbody th,
.gem-vendor-table tbody td {
  border-bottom: 1px solid #30291f;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.gem-vendor-table tbody tr:last-child th,
.gem-vendor-table tbody tr:last-child td {
  border-bottom: 0;
}

.gem-vendor-table tbody tr:nth-child(even) th,
.gem-vendor-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.018);
}

.gem-vendor-quest-cell {
  font-weight: inherit;
}

.gem-vendor-quest-head {
  display: grid;
  align-items: start;
  gap: 8px;
}

.gem-vendor-quest-head h3,
.gem-vendor-quest-head p {
  margin: 0;
}

.gem-vendor-quest-head h3 {
  color: #ead49e;
  font-size: 13px;
}

.gem-vendor-quest-head p {
  margin-top: 2px;
  color: #9faeb1;
  font-size: 10px;
}

.gem-vendor-focus {
  min-height: 27px;
  flex: 0 0 auto;
  border-color: #665336;
  padding: 0 9px;
  color: #ecd49b;
  font-size: 10px;
  font-weight: 800;
  justify-self: start;
}

.gem-vendor-group {
  display: grid;
  gap: 4px;
}

.gem-vendor-group + .gem-vendor-group {
  margin-top: 8px;
  border-top: 1px solid #30291f;
  padding-top: 7px;
}

.gem-vendor-group > strong {
  color: #ad9e80;
  font-size: 10px;
  text-transform: uppercase;
}

.gem-vendor-group.is-general > strong {
  color: #f0d17f;
}

.gem-vendor-cell-empty {
  color: #776d5d;
}

.gem-vendor-gems {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.gem-vendor-gem {
  display: inline-grid;
  grid-template-columns: 27px minmax(0, auto);
  align-items: center;
  gap: 5px;
  min-height: 32px;
  max-width: 210px;
  border: 1px solid #544d43;
  border-radius: 6px;
  background: #121318;
  color: #ded6c4;
  padding: 2px 7px 2px 3px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.15;
  text-decoration: none;
}

.gem-vendor-gem:hover,
.gem-vendor-gem:focus-visible {
  border-color: #d6a84e;
  color: #fff0c8;
  outline: none;
}

.gem-vendor-gem.is-red {
  border-left-color: #b95d4c;
}

.gem-vendor-gem.is-green {
  border-left-color: #60996b;
}

.gem-vendor-gem.is-blue {
  border-left-color: #607fbd;
}

.gem-vendor-gem.is-reward {
  background: #12160f;
}

.gem-vendor-gem-icon {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
}

.gem-vendor-gem-icon > img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.gem-vendor-price {
  position: absolute;
  right: -4px;
  bottom: -3px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-height: 11px;
  border: 1px solid #0b0907;
  border-radius: 999px;
  background: #271d10;
  color: #f0d28f;
  padding: 1px 3px;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.gem-vendor-price img {
  width: 10px;
  height: 10px;
  object-fit: contain;
}

.gem-vendor-price.is-free {
  background: #17220f;
  color: #cfe7a9;
}

.gem-vendor-gem-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .gem-vendor-dialog {
    width: 97%;
    height: 97%;
  }

  .gem-vendor-panel {
    height: calc(100dvh - 18px);
    padding: 10px;
  }

  .gem-vendor-header {
    align-items: stretch;
    flex-direction: column;
  }

  .gem-vendor-header-actions {
    align-items: end;
  }

  .gem-vendor-class-picker {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

}

.epilogue-verification {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid #40372c;
  border-radius: 8px;
  background: rgba(23, 22, 20, 0.92);
  padding: 10px;
}

.epilogue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.epilogue-header button {
  min-height: 30px;
  padding: 0 10px;
  border-color: rgba(216, 168, 78, 0.28);
  font-size: 12px;
}

.epilogue-summary {
  margin: 0;
  color: #d8c6aa;
  font-size: 12px;
  line-height: 1.35;
}

.passives-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 6px;
}

.passives-status-card {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(136, 125, 103, 0.28);
  border-radius: 6px;
  background: rgba(38, 36, 31, 0.74);
  padding: 7px;
}

.passives-status-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.passives-status-card b {
  color: #fff3d2;
  font-size: 13px;
}

.passives-status-card small {
  color: #cbb895;
  font-size: 10px;
  line-height: 1.25;
}

.passives-status-card.ok {
  border-color: rgba(147, 196, 125, 0.38);
}

.passives-status-card.warn {
  border-color: rgba(207, 112, 93, 0.46);
}

.passives-status-card.privacy {
  border-color: rgba(118, 191, 213, 0.32);
}

.campaign-audit-list {
  display: grid;
  gap: 9px;
}

.campaign-audit-group {
  display: grid;
  gap: 5px;
}

.campaign-audit-group h3 {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0;
}

.campaign-audit-group-list {
  display: grid;
  gap: 5px;
}

.campaign-audit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 0.42fr) 30px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(136, 125, 103, 0.28);
  border-radius: 6px;
  background: rgba(31, 29, 25, 0.86);
  padding: 5px 6px;
}

.campaign-audit-row.bandit {
  grid-template-columns: minmax(0, 1fr) minmax(118px, 0.42fr) 40px;
}

.campaign-audit-row:not(:has(.manual-check-button)) {
  grid-template-columns: minmax(0, 1fr) minmax(118px, 0.42fr);
}

.campaign-audit-row.checked {
  border-color: rgba(245, 207, 106, 0.58);
  background: rgba(43, 35, 23, 0.92);
}

.campaign-audit-row.auto {
  border-color: rgba(147, 196, 125, 0.36);
}

.campaign-audit-row.missing {
  border-color: rgba(207, 112, 93, 0.42);
}

.campaign-audit-main {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.campaign-audit-main:hover,
.campaign-audit-main:focus {
  outline: 1px solid rgba(245, 207, 106, 0.38);
  outline-offset: 2px;
  background: rgba(57, 47, 30, 0.36);
}

.campaign-audit-main img,
.campaign-audit-main .quest-guide-token {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.campaign-audit-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.campaign-audit-copy b,
.campaign-audit-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-audit-copy b {
  font-size: 12px;
}

.campaign-audit-copy small {
  color: #cbb895;
  font-size: 10px;
}

.campaign-audit-source {
  color: #9d927f !important;
}

.campaign-audit-status {
  justify-self: stretch;
  min-width: 0;
  border-radius: 4px;
  background: rgba(50, 47, 40, 0.72);
  color: #d8c6aa;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.2;
}

.campaign-audit-status.auto {
  color: #dcefcf;
  background: rgba(52, 82, 42, 0.62);
}

.campaign-audit-status.missing {
  color: #ffd8ce;
  background: rgba(103, 44, 32, 0.62);
}

.campaign-audit-status.manual {
  color: #fff3d2;
  background: rgba(83, 63, 23, 0.62);
}

.campaign-audit-status.inactive,
.campaign-audit-status.muted {
  color: #b7aa91;
}

.quest-strip-facts {
  margin-top: 2px;
}

.quest-strip-empty {
  min-height: 72px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(216, 168, 78, 0.24);
  border-radius: 6px;
  color: #b7aa91;
  font-size: 12px;
}

#map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.sea {
  fill: #132128;
}

.land {
  fill: url("#landWash");
  opacity: 0.82;
  filter: url("#softShadow");
}

.coast {
  fill: none;
  stroke: rgba(240, 224, 181, 0.35);
  stroke-width: 2;
  stroke-dasharray: 7 10;
}

.map-background-image {
  opacity: 0.95;
}

.edge {
  fill: none;
  stroke: rgba(30, 22, 16, 0.74);
  stroke-width: 4;
  stroke-linecap: round;
}

.gated-edge {
  stroke: rgba(177, 73, 58, 0.86);
  stroke-dasharray: 9 7;
}

.edge-highlight {
  stroke: rgba(230, 188, 89, 0.92);
}

.edge-gap {
  fill: none;
  stroke: rgba(207, 112, 93, 0.78);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 8 8;
}

.node-hit {
  fill: transparent;
  cursor: pointer;
}

.active-zone-ring {
  display: none;
  fill: none;
  pointer-events: none;
  stroke: #76bfd5;
  stroke-width: 4;
}

.quest-focus-ring {
  display: none;
  fill: rgba(245, 176, 42, 0.26);
  pointer-events: none;
  stroke: #f5b02a;
  stroke-opacity: 0.34;
  stroke-width: 1.2;
}

.node-core {
  fill: #2d2118;
  opacity: 0;
  stroke: #eed283;
  stroke-width: 2.4;
}

.node.side .node-core {
  fill: #33231f;
  stroke: #cf705d;
}

.node.town .node-core {
  fill: #263826;
  stroke: #a9d77c;
}

.node.exit .node-core {
  fill: #3b2630;
  stroke: #e08877;
}

.node.selected .node-core,
.node:hover .node-core {
  opacity: 0.24;
  stroke: #ffffff;
  stroke-width: 3.2;
}

.node-pin-icon,
.player-position-icon {
  pointer-events: none;
}

.node.selected .node-pin-icon,
.node:hover .node-pin-icon {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}

.player-position-icon {
  display: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.75));
}

.node.active-zone:not(.ambiguous-zone) .player-position-icon {
  display: block;
}

.node.active-zone.ambiguous-zone .player-position-icon {
  display: block;
  opacity: 0.38;
  filter: grayscale(0.25) drop-shadow(0 0 3px rgba(230, 211, 111, 0.72));
}

.node.active-zone.ambiguous-zone .active-zone-ring {
  display: block;
  filter: drop-shadow(0 0 7px rgba(118, 191, 213, 0.95));
  stroke: #76bfd5;
}

.node.ambiguous-zone .active-zone-ring {
  display: block;
  stroke: #e6d36f;
  stroke-dasharray: 5 4;
}

.node.quest-selected-objective .quest-focus-ring {
  display: block;
  filter: drop-shadow(0 0 7px rgba(245, 176, 42, 0.62));
}

.node.quest-hover-objective .quest-focus-ring {
  display: block;
  fill: rgba(248, 181, 38, 0.42);
  stroke-opacity: 0.72;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 10px rgba(248, 181, 38, 0.9));
  animation: questObjectivePulse 1.35s ease-in-out infinite;
}

@keyframes questObjectivePulse {
  0%,
  100% {
    opacity: 0.82;
    stroke-width: 2.1;
  }

  50% {
    opacity: 0.96;
    stroke-width: 2.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .node.quest-hover-objective .quest-focus-ring {
    animation: none;
  }
}

.gates-muted .gated-edge {
  opacity: 0.24;
}

.gates-muted .gate-marker {
  opacity: 0.28;
}

.gate-marker,
.overlay-marker {
  cursor: pointer;
  filter: url("#softShadow");
}

.map-exterior-continuation {
  fill: #1b1712;
}

.map-exterior-continuation.top {
  opacity: 0.78;
}

.map-art-edge {
  stroke: rgba(216, 168, 78, 0.2);
  stroke-width: 1;
  stroke-dasharray: 8 8;
}

.overlay-marker-tether {
  pointer-events: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 3 4;
  opacity: 0.52;
}

.overlay-marker-tether.reward {
  stroke: #f0c75f;
}

.overlay-marker-tether.trial {
  stroke: #8fd36f;
}

.gate-marker-bg {
  fill: #37201d;
  stroke: #f09b72;
  stroke-width: 2.2;
}

.gate-marker-text,
.overlay-marker-text,
.overlay-count-text {
  pointer-events: none;
  fill: #fff3d2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.overlay-marker-bg {
  stroke-width: 2.4;
}

.overlay-marker-hit {
  fill: transparent;
}

.overlay-marker-icon {
  pointer-events: none;
}

.overlay-marker.reward .overlay-marker-bg {
  fill: #342a15;
  stroke: #f0c75f;
}

.overlay-marker.reward.bandit .overlay-marker-bg {
  fill: rgba(46, 35, 18, 0.94);
  stroke: #f0c75f;
}

.overlay-marker.trial .overlay-marker-bg {
  fill: rgba(20, 45, 25, 0.92);
  stroke: #8fd36f;
}

.overlay-marker.trial .overlay-marker-icon {
  filter: drop-shadow(0 0 2px rgba(143, 211, 111, 0.62));
}

.overlay-marker-multiplier-bg {
  fill: rgba(104, 65, 12, 0.96);
  stroke: rgba(255, 240, 181, 0.9);
  stroke-width: 1.2;
}

.overlay-marker-multiplier-text {
  pointer-events: none;
  fill: #fff1b8;
  font-size: 10px;
  font-weight: 900;
}

.overlay-marker:hover .overlay-marker-bg,
.overlay-marker:focus .overlay-marker-bg,
.gate-marker:hover .gate-marker-bg,
.gate-marker:focus .gate-marker-bg {
  stroke: #ffffff;
  stroke-width: 3;
}

.overlay-count-bg {
  fill: #12100d;
  stroke: #e8dcbf;
  stroke-width: 1.5;
}

#map.rewards-hidden .overlay-marker.reward,
#map.trials-hidden .overlay-marker.trial {
  display: none;
}

.town-mark {
  fill: var(--green);
}

.node-label {
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(17, 15, 12, 0.92);
  stroke-width: 2.8px;
  fill: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.node-meta {
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(17, 15, 12, 0.92);
  stroke-width: 2.8px;
  fill: #d7c8a6;
  display: none;
  font-size: 8.5px;
  letter-spacing: 0;
}

#map.labels-hidden .node-label,
#map.labels-hidden .node-meta {
  display: none;
}

.legend-label {
  fill: #eadfc6;
  font-size: 13px;
  letter-spacing: 0;
}

.legend-bg {
  fill: rgba(21, 18, 15, 0.64);
  stroke: rgba(239, 218, 169, 0.24);
}

.map-legend {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  border: 1px solid rgba(239, 218, 169, 0.22);
  border-radius: 6px;
  background: rgba(18, 17, 15, 0.78);
  color: #eadfc6;
  font-size: 12px;
  backdrop-filter: blur(5px);
}

.map-legend summary {
  cursor: pointer;
  padding: 6px 9px;
}

.legend-items {
  display: grid;
  gap: 7px;
  min-width: 148px;
  padding: 0 9px 9px;
}

.legend-items span {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #eed283;
  border-radius: 999px;
  background: #2d2118;
}

.legend-dot.waypoint {
  position: relative;
}

.legend-dot.waypoint::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: var(--blue);
}

.legend-dot.unknown {
  display: inline-grid;
  place-items: center;
  color: #f2dc9d;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.legend-dot.active {
  border-color: #e6d36f;
  box-shadow: 0 0 0 3px rgba(230, 211, 111, 0.24);
  outline: 1px dashed #e6d36f;
  outline-offset: 2px;
}

.legend-player {
  width: 15px;
  height: 22px;
  background: url("./assets/world-panel-ui/world-panel-player-icon.webp") center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}

.legend-line {
  width: 24px;
  height: 0;
  border-top: 3px dashed rgba(177, 73, 58, 0.95);
}

.legend-badge {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  color: #fff3d2;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.legend-badge.reward {
  border: 2px solid #f0c75f;
  background: #342a15 url("./assets/icons/item-8229-questskillbook.webp") center / 13px 13px no-repeat;
  color: transparent;
}

.legend-badge.trial {
  border: 2px solid #7ed2df;
  background: #1d2d34 url("./assets/world-panel-ui/world-panel-labyrinth-trial-icon.webp") center / 14px 14px no-repeat;
  color: transparent;
}

.legend-badge.gate {
  border: 2px solid #f09b72;
  background: #37201d;
}

.info-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
  gap: 12px;
  border-top: 1px solid #3b342b;
  background: linear-gradient(180deg, var(--panel), #171615);
  min-width: 0;
  padding: 14px;
  overflow: visible;
}

.details-collapsed .info-panel {
  display: none;
  border-top: 0;
  padding: 0;
  overflow: hidden;
}

.info-panel section {
  border-bottom: 1px solid #393129;
  padding-bottom: 12px;
}

.info-panel section:last-child {
  border-bottom: 0;
}

.selected-card {
  min-height: 248px;
  max-height: min(42vh, 390px);
  overflow: auto;
}

.active-zone-card {
  min-height: 142px;
}

.active-zone-detail {
  margin: 8px 0 0;
  color: #d8c6aa;
  font-size: 12px;
  line-height: 1.4;
}

.facts {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 6px 9px;
  margin: 12px 0 0;
  font-size: 12px;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.compact-facts {
  grid-template-columns: 72px 1fr;
  margin-top: 10px;
}

.selected-overlays {
  margin-top: 12px;
}

.selected-overlays h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.overlay-card-list {
  display: grid;
  gap: 8px;
}

.overlay-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(216, 168, 78, 0.24);
  border-radius: 6px;
  background: rgba(18, 16, 13, 0.48);
  padding: 7px;
}

.overlay-card-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.overlay-card-body {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.28;
}

.overlay-card-body span,
.overlay-card-body small {
  color: #d8c6aa;
}

.overlay-card-body small {
  overflow-wrap: anywhere;
}

.status-list,
.sources {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 12px;
}

.status-list li,
.sources li {
  margin: 8px 0;
  color: #ded3b9;
  line-height: 1.42;
}

.gap-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.gap-item {
  border: 1px solid #594138;
  border-radius: 6px;
  background: rgba(77, 52, 42, 0.44);
  padding: 8px;
}

.gap-item b {
  display: block;
  margin-bottom: 3px;
}

.gap-item span {
  color: #d8c6aa;
  font-size: 12px;
}

.side-details {
  border-bottom: 1px solid #393129;
  padding-bottom: 10px;
}

.side-details summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

#gapCount {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

@media (min-width: 1180px) and (min-height: 700px) {
  body {
    overflow: hidden;
  }

  .app-shell {
    display: grid;
    grid-template-areas:
      "topbar topbar"
      "map epilogue"
      "map rewards"
      "map quest"
      "map info";
    grid-template-columns: max-content minmax(340px, 1fr);
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    align-items: start;
    gap: 10px 12px;
    height: 100vh;
    min-height: 0;
    padding: 12px;
    overflow: hidden;
  }

  .app-shell.details-collapsed {
    grid-template-columns: max-content minmax(340px, 1fr);
  }

  .app-shell.epilogue-mode {
    grid-template-columns: minmax(420px, 45vw) minmax(520px, 1fr);
  }

  .map-panel {
    display: contents;
    padding: 0;
  }

  .topbar {
    grid-area: topbar;
    min-width: 0;
    padding: 0 2px;
  }

  .map-wrap {
    grid-area: map;
    align-self: start;
    width: min(calc(100vw - 430px), calc(158.25vh - 250px));
    max-width: calc(100vw - 430px);
  }

  .epilogue-mode .map-wrap {
    width: 100%;
    max-width: 100%;
  }

  .important-reward-tray {
    grid-area: rewards;
    max-height: min(20vh, 210px);
  }

  .epilogue-verification {
    grid-area: epilogue;
    min-height: 0;
    max-height: min(42vh, 380px);
    overflow: auto;
  }

  .epilogue-mode .epilogue-verification {
    max-height: calc(100vh - 112px);
  }

  .quest-strip {
    grid-area: quest;
    min-height: 0;
    max-height: min(31vh, 340px);
    overflow: auto;
  }

  .info-panel {
    grid-area: info;
    display: grid;
    grid-template-columns: 1fr;
    align-self: stretch;
    min-height: 0;
    max-height: 100%;
    border-top: 0;
    border-left: 1px solid #3b342b;
    padding: 10px 12px;
    overflow: auto;
  }

  .selected-card {
    max-height: none;
    overflow: visible;
  }

  .details-collapsed .info-panel {
    display: none;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .info-panel {
    border-top: 1px solid #3b342b;
  }
}

@media (max-width: 640px) {
  .map-panel,
  .info-panel {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar {
    justify-content: flex-start;
  }

  .campaign-nav {
    width: 100%;
    min-width: 0;
  }

  .part-tabs,
  .act-tabs {
    justify-content: flex-start;
  }

  .important-reward-tray {
    gap: 5px;
    width: 100%;
    max-height: none;
    padding: 6px;
  }

  .reward-filter-list {
    gap: 3px;
  }

  .reward-filter {
    min-height: 21px;
    padding: 0 6px;
    font-size: 10px;
  }

  .reward-tray-list {
    gap: 4px;
  }

  .reward-tray-item {
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 30px;
    gap: 5px;
    padding: 3px 5px;
  }

  .reward-tray-item img,
  .reward-tray-neutral {
    width: 21px;
    height: 21px;
  }

  .reward-tray-copy b,
  .reward-tray-copy small {
    font-size: 10px;
  }

  .quest-guide-list {
    grid-template-columns: 1fr;
  }

  .quest-guide-item {
    min-height: 42px;
  }

  .quest-guide-copy b,
  .quest-guide-copy small {
    white-space: normal;
  }
}
