:root {
  --ink: #e7edf6;
  --muted: #9aa8bc;
  --paper: #0d1117;
  --panel: rgba(19, 26, 36, 0.94);
  --line: rgba(173, 190, 214, 0.12);
  --green: #59d0a0;
  --gold: #e4b86c;
  --blue: #3b82f6;
  --site-gold: #cda75a;
  --site-gold-bright: #f0d082;
  --site-yellow: #ffbc13;
  --site-yellow-deep: #f5a900;
  --site-brown: #2d2115;
  --site-brown-dark: #17120d;
  --site-card: linear-gradient(180deg, rgba(42, 30, 13, 0.97), rgba(15, 15, 13, 0.98));
  --site-card-soft: rgba(255, 188, 19, 0.075);
  --site-card-line: rgba(255, 188, 19, 0.36);
  --site-header: linear-gradient(180deg, rgba(245, 169, 0, 0.34), rgba(67, 43, 10, 0.96) 42%, rgba(24, 18, 11, 0.98));
  --site-button: linear-gradient(180deg, #d8a83e 0%, #c18a24 52%, #a86f1b 100%);
  --site-button-hover: linear-gradient(180deg, #e0b34d 0%, #c9962e 52%, #ad7721 100%);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --scroll-track: rgba(12, 16, 22, 0.95);
  --scroll-thumb: linear-gradient(180deg, #f0c85c, #a97821);
  --scroll-thumb-solid: #c99a37;
}

:root[data-theme="light"] {
  --ink: #24190f;
  --muted: #6c5f52;
  --paper: #f7ead4;
  --panel: rgba(255, 247, 232, 0.94);
  --line: rgba(101, 65, 27, 0.16);
  --green: #227451;
  --gold: #b9751f;
  --blue: #b9751f;
  --site-gold: #a96f26;
  --site-gold-bright: #c48730;
  --site-yellow: #ffbc13;
  --site-yellow-deep: #f5a900;
  --site-brown: #f3dfbc;
  --site-brown-dark: #ead1a8;
  --site-card: linear-gradient(180deg, rgba(255, 247, 231, 0.98), rgba(250, 232, 197, 0.98));
  --site-card-soft: rgba(255, 188, 19, 0.13);
  --site-card-line: rgba(245, 169, 0, 0.42);
  --site-header: linear-gradient(180deg, rgba(255, 188, 19, 0.38), rgba(244, 205, 128, 0.98));
  --site-button: linear-gradient(180deg, #d8a83e 0%, #c18a24 52%, #a86f1b 100%);
  --site-button-hover: linear-gradient(180deg, #e0b34d 0%, #c9962e 52%, #ad7721 100%);
  --shadow: 0 18px 48px rgba(93, 58, 22, 0.16);
  --scroll-track: rgba(255, 246, 231, 0.95);
  --scroll-thumb: linear-gradient(180deg, #d9a638, #9f651b);
  --scroll-thumb-solid: #b9751f;
}

* {
  box-sizing: border-box;
  scrollbar-color: var(--scroll-thumb-solid) var(--scroll-track);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border: 1px solid rgba(255, 213, 93, 0.12);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 2px solid var(--scroll-track);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 246, 196, 0.45);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffe078, #c58c25);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  background:
    linear-gradient(180deg, #090b10 0%, #0d1118 28%, #0c1016 58%, #0a0d12 100%);
  min-height: 100vh;
}

.bg-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 174, 72, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 155, 63, 0.06) 0%, rgba(255, 155, 63, 0.02) 14%, rgba(0, 0, 0, 0) 30%);
}

.bg-stage::before,
.bg-stage::after {
  content: "";
  position: absolute;
  inset: -12% -8%;
  pointer-events: none;
}

.bg-stage::before {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 196, 108, 0.2), transparent 34%),
    radial-gradient(ellipse at 72% 6%, rgba(255, 132, 42, 0.12), transparent 30%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 150, 68, 0.08), transparent 22%);
  filter: blur(30px);
  opacity: 0.9;
  animation: hazePulse 18s ease-in-out infinite;
}

.bg-stage::after {
  background:
    linear-gradient(180deg, rgba(255, 167, 70, 0.12) 0%, rgba(255, 167, 70, 0.03) 18%, rgba(0, 0, 0, 0) 36%);
  opacity: 0.65;
}

.cloud-layer {
  position: absolute;
  inset: auto;
  width: 120rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(24px);
  background:
    radial-gradient(ellipse at 18% 50%, rgba(46, 51, 64, 1), rgba(46, 51, 64, 0) 48%),
    radial-gradient(ellipse at 42% 44%, rgba(24, 28, 38, 1), rgba(24, 28, 38, 0) 46%),
    radial-gradient(ellipse at 66% 56%, rgba(36, 42, 54, 0.98), rgba(36, 42, 54, 0) 44%),
    radial-gradient(ellipse at 84% 46%, rgba(143, 72, 16, 0.56), rgba(143, 72, 16, 0) 38%),
    radial-gradient(ellipse at 56% 48%, rgba(255, 184, 84, 0.28), rgba(255, 184, 84, 0) 40%);
  opacity: 1;
  mix-blend-mode: screen;
  animation: cloudDrift 34s linear infinite;
}

.cloud-back {
  filter: blur(26px);
  opacity: 0.88;
}

.cloud-mid {
  filter: blur(16px);
  opacity: 0.96;
}

.cloud-front {
  filter: blur(10px);
  opacity: 1;
}

.cloud-a {
  top: 0;
  left: -74rem;
  animation-duration: 24s;
}

.cloud-b {
  top: 7rem;
  left: -96rem;
  animation-duration: 30s;
  animation-delay: -12s;
}

.cloud-c {
  top: 3rem;
  left: -86rem;
  animation-duration: 20s;
  animation-delay: -8s;
}

.cloud-d {
  top: 10rem;
  left: -110rem;
  animation-duration: 28s;
  animation-delay: -16s;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 190, 110, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 190, 110, 0.014) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
  opacity: 0.2;
  animation: driftGrid 36s linear infinite;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 34%, rgba(5, 7, 11, 0.36) 74%, rgba(3, 4, 7, 0.72) 100%);
}

@keyframes floatOrb {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: translate3d(2.2rem, 1.8rem, 0) scale(1.04);
  }
  50% {
    transform: translate3d(-1.6rem, 3.2rem, 0) scale(0.98);
  }
  75% {
    transform: translate3d(2.8rem, 0.8rem, 0) scale(1.03);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes cloudDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(240rem, 0, 0);
  }
}

@keyframes driftGrid {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, 52px, 0);
  }
}

@keyframes hazePulse {
  0% {
    opacity: 0.84;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 0.84;
    transform: scale(1);
  }
}

.shell {
  width: min(2500px, calc(100% - 12px));
  margin: 0 auto;
  padding: 10px 0 32px;
  position: relative;
  z-index: 1;
}

.hero,
.search-panel,
.result-card,
.empty {
  background: linear-gradient(180deg, rgba(18, 25, 35, 0.95), rgba(15, 21, 31, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 18px;
}

.eyebrow {
  color: #f2b45f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.75rem);
  line-height: 0.95;
  margin: 0;
  max-width: 720px;
}

.lead {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.3;
  margin: 8px 0 0;
  max-width: 780px;
}

code {
  background: rgba(89, 208, 160, 0.12);
  border: 1px solid rgba(89, 208, 160, 0.18);
  border-radius: 8px;
  padding: 1px 6px;
}

.stats {
  border-radius: 18px;
  color: #dfe8f8;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  padding: 8px 10px;
  white-space: normal;
  max-width: 300px;
  text-align: right;
}

.stats[hidden] {
  display: none;
}

.search-panel {
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
}

.version-tabs,
.mode-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  background: rgba(23, 18, 13, 0.84);
  border: 1px solid rgba(205, 167, 90, 0.28);
  border-radius: 999px;
}

.version-tabs {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
}

.mode-tabs {
  background: rgba(15, 22, 32, 0.72);
  border-color: rgba(122, 216, 178, 0.28);
  margin-left: 8px;
}

.mode-tabs[hidden] {
  display: none;
}

.version-tab,
.mode-tab {
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  min-height: 30px;
  padding: 0 12px;
}

.version-tab-active,
.mode-tab-active {
  background: var(--site-button);
  color: #fffdf7;
  box-shadow: inset 0 1px 0 rgba(255, 244, 196, 0.35), 0 8px 18px rgba(245, 169, 0, 0.2);
}

.mode-tabs .mode-tab-active {
  background: rgba(83, 166, 132, 0.88);
}

.search-meta {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.search-meta .hint {
  margin: 0;
  text-align: right;
}

label {
  display: block;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 0;
  text-transform: uppercase;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
}

.search-input-wrap {
  min-width: 0;
  position: relative;
}

.search-input-wrap input {
  width: 100%;
}

#dataset {
  min-width: 0;
  width: 100%;
}

.source-filter-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.source-filter-bar > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.source-filter-bar label {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(205, 167, 90, 0.32);
  border-radius: 8px;
  color: #e8edf7;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.7rem;
  justify-content: center;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
  min-height: 24px;
  min-width: 94px;
  padding: 4px 14px;
  text-transform: none;
}

.source-filter-bar input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.source-filter-bar label:has(input:checked) {
  background: rgba(207, 152, 34, 0.22);
  border-color: rgba(226, 181, 72, 0.62);
  color: #fff6d8;
}

.source-filter-bar label:hover {
  border-color: rgba(226, 181, 72, 0.52);
}

.source-filter-empty {
  margin: 4px 0 0;
}

.autocomplete-panel {
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid rgba(255, 213, 93, 0.22);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48);
  left: 0;
  max-height: 480px;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  top: calc(100% + 6px);
  width: min(460px, 100%);
  z-index: 30;
}

.autocomplete-option {
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  color: #e7edf6;
  display: grid;
  gap: 10px;
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 82px;
  padding: 6px 8px;
  text-align: left;
  width: 100%;
}

.autocomplete-option:hover,
.autocomplete-option:focus {
  background: rgba(255, 213, 93, 0.13);
  outline: none;
}

.autocomplete-icons {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, 36px);
  min-height: 76px;
}

.autocomplete-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 213, 93, 0.16);
  border-radius: 6px;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  overflow: hidden;
  width: 36px;
}

.autocomplete-icon img {
  display: block;
  height: 34px;
  object-fit: contain;
  width: 34px;
}

.autocomplete-class-mark {
  align-items: center;
  background: rgba(89, 208, 160, 0.12);
  border: 1px solid rgba(89, 208, 160, 0.32);
  border-radius: 8px;
  color: #a9f0ce;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  grid-column: 1 / -1;
  height: 36px;
  justify-content: center;
  letter-spacing: 0.04em;
  width: 76px;
}

.autocomplete-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.autocomplete-text strong,
.autocomplete-text > span:not(.autocomplete-source-names) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autocomplete-text strong {
  color: #f7fbff;
  font-size: 0.9rem;
}

.autocomplete-text span {
  color: #c7d2e4;
  font-size: 0.78rem;
  font-weight: 700;
}

.autocomplete-source-names {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  line-height: 1.25;
  margin-top: 2px;
}

.autocomplete-source-names em {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 213, 93, 0.14);
  border-radius: 999px;
  color: #dbe4f3;
  display: inline-block;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
  padding: 2px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input,
select,
button {
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  font-size: 0.98rem;
  min-height: 46px;
  padding: 0 14px;
}

input,
select {
  background: rgba(10, 16, 24, 0.96);
  color: var(--ink);
}

button {
  background: var(--site-button);
  border-color: rgba(222, 174, 76, 0.74);
  color: #fff8e4;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(202, 143, 35, 0.14), inset 0 1px 0 rgba(255, 237, 183, 0.26);
}

button:hover {
  background: var(--site-button-hover);
  border-color: rgba(235, 194, 103, 0.82);
}

.hint,
.muted,
.subline {
  color: var(--muted);
}

.hint {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.results {
  display: grid;
  gap: 14px;
  overflow-x: visible;
}

.search-result-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  color: #d9e4f6;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0 6px;
}

.acquire-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.acquire-table {
  border-collapse: collapse;
  min-width: 1780px;
  table-layout: fixed;
  width: max-content;
}

.acquire-col-id {
  width: 122px;
}

.acquire-col-name {
  width: 270px;
}

.acquire-col-shown-level,
.acquire-col-total-level {
  width: 44px;
}

.acquire-col-learn-level {
  width: 54px;
}

.acquire-col-type {
  width: 154px;
}

.acquire-col-status {
  width: 76px;
}

.acquire-col-class {
  width: 112px;
}

.acquire-col-adena {
  width: 48px;
}

.acquire-col-items {
  width: 50px;
}

.acquire-table th,
.acquire-table td {
  border-bottom: 1px solid rgba(255, 210, 84, 0.14);
  line-height: 1.25;
  overflow-wrap: anywhere;
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
  word-break: normal;
}

.acquire-table .acquire-main-separator {
  border-left: 1px solid rgba(173, 190, 214, 0.14);
}

.acquire-table th {
  color: #ffd95d;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.acquire-table thead .acquire-source-group-head {
  border-bottom-color: rgba(255, 210, 84, 0.26);
  color: #ffe287;
  text-align: center;
}

.acquire-table thead .acquire-head-sources th {
  color: #bcd6ff;
  font-size: 0.72rem;
  line-height: 1;
  padding-bottom: 6px;
  padding-left: 2px;
  padding-right: 2px;
  padding-top: 5px;
  text-align: center;
  white-space: nowrap;
}

.acquire-table td {
  color: var(--ink);
  font-size: 0.9rem;
}

.acquire-table th:first-child,
.acquire-table td:first-child {
  min-width: 0;
}

.acquire-table th:nth-child(2),
.acquire-table td:nth-child(2) {
  min-width: 0;
}

.acquire-group-row td {
  background: rgba(255, 213, 93, 0.1);
  border-bottom-color: rgba(255, 213, 93, 0.24);
  color: #ffd95d;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 8px 10px;
  text-transform: uppercase;
}

.acquire-group-row span {
  margin-right: 8px;
}

.acquire-group-row strong {
  color: #f4ead1;
  font-size: 0.78rem;
}

.acquire-skill-link,
.acquire-name-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  min-height: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.acquire-skill-link {
  align-items: center;
  display: grid;
  grid-template-columns: 42px minmax(52px, 1fr);
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.acquire-skill-link strong {
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
  padding-top: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acquire-skill-link:hover,
.acquire-name-link:hover {
  color: #ffd95d;
  text-decoration: underline;
}

.acquire-icon {
  align-items: center;
  background: rgba(255, 213, 93, 0.08);
  border: 1px solid rgba(255, 213, 93, 0.18);
  border-radius: 6px;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  width: 42px;
}

.acquire-icon-stack {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 3px;
  max-width: 72px;
}

.acquire-icon-empty {
  opacity: 0.45;
}

.acquire-icon img {
  display: block;
  height: 100%;
  image-rendering: auto;
  object-fit: cover;
  width: 100%;
}

.acquire-name-cell {
  min-width: 0;
  width: 20%;
}

.acquire-name-link {
  display: inline-flex;
  font-weight: 800;
  margin-bottom: 3px;
}

.acquire-skill-name-variants {
  align-items: stretch;
  display: grid;
  gap: 2px;
  justify-items: start;
}

.acquire-skill-name-variant {
  color: #d7ddeb;
  display: block;
  gap: 3px;
  font-size: 0.8rem;
  line-height: 1.22;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.acquire-skill-name-variant strong {
  color: #ffd95d;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.acquire-skill-name-empty {
  color: #9da9bb;
  font-size: 0.72rem;
}

.acquire-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.acquire-type-filter {
  background: rgba(255, 213, 93, 0.08);
  border: 1px solid rgba(255, 213, 93, 0.2);
  border-radius: 999px;
  box-shadow: none;
  color: #ffd95d;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 30px;
  padding: 0 10px;
}

.acquire-type-filter span {
  color: #f4ead1;
  margin-left: 4px;
}

.acquire-type-filter-active,
.acquire-type-filter:hover {
  background: rgba(255, 213, 93, 0.2);
  border-color: rgba(255, 213, 93, 0.42);
}

.acquire-status-pill,
.acquire-class-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  padding: 3px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acquire-class-pill {
  background: rgba(244, 234, 209, 0.1);
  border: 1px solid rgba(244, 234, 209, 0.24);
  color: #f4ead1;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acquire-class-physical {
  background: rgba(89, 208, 160, 0.12);
  border-color: rgba(89, 208, 160, 0.28);
  color: #a9f0ce;
}

.acquire-class-magic {
  background: rgba(122, 188, 255, 0.13);
  border-color: rgba(122, 188, 255, 0.3);
  color: #bcd6ff;
}

.acquire-class-passive {
  background: rgba(255, 213, 93, 0.13);
  border-color: rgba(255, 213, 93, 0.3);
  color: #ffd95d;
}

.acquire-class-debuff {
  background: rgba(255, 118, 118, 0.13);
  border-color: rgba(255, 118, 118, 0.3);
  color: #ffb8b8;
}

.acquire-class-support {
  background: rgba(188, 214, 255, 0.12);
  border-color: rgba(188, 214, 255, 0.28);
  color: #d8e7ff;
}

.acquire-class-recovery {
  background: rgba(89, 208, 160, 0.14);
  border-color: rgba(89, 208, 160, 0.3);
  color: #84efbd;
}

.acquire-class-transform {
  background: rgba(255, 167, 66, 0.13);
  border-color: rgba(255, 167, 66, 0.3);
  color: #ffd28a;
}

.acquire-class-common {
  background: rgba(180, 190, 205, 0.11);
  border-color: rgba(180, 190, 205, 0.3);
  color: #d2dae6;
}

.acquire-category-active {
  background: rgba(89, 208, 160, 0.12);
  border-color: rgba(89, 208, 160, 0.25);
  color: #a9f0ce;
}

.acquire-category-passive {
  background: rgba(255, 213, 93, 0.12);
  border-color: rgba(255, 213, 93, 0.28);
  color: #ffd95d;
}

.acquire-category-support {
  background: rgba(122, 188, 255, 0.12);
  border-color: rgba(122, 188, 255, 0.28);
  color: #bcd6ff;
}

.acquire-category-recovery {
  background: rgba(89, 208, 160, 0.13);
  border-color: rgba(89, 208, 160, 0.28);
  color: #84efbd;
}

.acquire-category-transform {
  background: rgba(255, 167, 66, 0.13);
  border-color: rgba(255, 167, 66, 0.3);
  color: #ffd28a;
}

.acquire-category-common {
  background: rgba(180, 190, 205, 0.11);
  border-color: rgba(180, 190, 205, 0.3);
  color: #d2dae6;
}

.acquire-type-active {
  background: rgba(89, 208, 160, 0.13);
  border: 1px solid rgba(89, 208, 160, 0.26);
  color: #84efbd;
}

.acquire-type-passive {
  background: rgba(255, 213, 93, 0.13);
  border: 1px solid rgba(255, 213, 93, 0.28);
  color: #ffd95d;
}

.acquire-status-learnable {
  background: rgba(89, 208, 160, 0.13);
  border: 1px solid rgba(89, 208, 160, 0.28);
  color: #a9f0ce;
}

.acquire-status-removed {
  background: rgba(255, 167, 66, 0.13);
  border: 1px solid rgba(255, 167, 66, 0.34);
  color: #ffd28a;
}

.acquire-status-missing {
  background: rgba(180, 190, 205, 0.1);
  border: 1px solid rgba(180, 190, 205, 0.28);
  color: #c8d0dc;
}

.acquire-items-cell {
  min-width: 0;
  width: 17%;
}

.acquire-cost-cell {
  min-width: 0;
  width: 11%;
}

.acquire-first-level-cell {
  min-width: 0;
  width: 7%;
}

.acquire-source-shown-level-head,
.acquire-source-shown-level-cell,
.acquire-source-total-level-head,
.acquire-source-total-level-cell {
  min-width: 0;
  text-align: center;
  width: 38px;
}

.acquire-source-learn-level-head,
.acquire-source-learn-level-cell {
  min-width: 0;
  text-align: center;
  width: 48px;
}

.acquire-type-cell {
  min-width: 0;
  padding-left: 6px;
  padding-right: 14px;
  text-align: center;
  width: 64px;
}

.acquire-source-type-head,
.acquire-source-type-cell {
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
  width: 138px;
}

.acquire-source-type-cell:last-of-type {
  padding-right: 4px;
}

.acquire-source-status-head,
.acquire-source-status-cell {
  text-align: center;
  width: 58px;
}

.acquire-source-adena-head,
.acquire-source-adena-cell {
  text-align: center;
  width: 40px;
}

.acquire-source-items-head,
.acquire-source-items-cell {
  text-align: center;
  width: 42px;
}

.acquire-source-shown-level-cell,
.acquire-source-total-level-cell,
.acquire-source-learn-level-cell,
.acquire-source-type-cell,
.acquire-source-status-cell,
.acquire-source-adena-cell,
.acquire-source-items-cell {
  text-align: center;
  vertical-align: middle;
}

.acquire-status-cell {
  min-width: 0;
  width: 9%;
}

.acquire-source-type-value {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1.1;
  max-width: 100%;
  padding: 3px 7px;
  white-space: nowrap;
}

.acquire-source-type-stack {
  align-items: center;
  display: inline-grid;
  gap: 3px;
  justify-items: center;
  max-width: 100%;
}

.acquire-source-type-class {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.1;
  max-width: 100%;
  padding: 2px 6px;
  white-space: nowrap;
}

.acquire-source-type-stack .acquire-source-type-class {
  display: block;
  margin: 0 auto;
}

.acquire-source-type-active {
  background: rgba(89, 208, 160, 0.12);
  border: 1px solid rgba(89, 208, 160, 0.28);
  color: #84efbd;
}

.acquire-source-type-passive {
  background: rgba(255, 213, 93, 0.13);
  border: 1px solid rgba(255, 213, 93, 0.3);
  color: #ffd95d;
}

.acquire-source-type-empty {
  color: #6f7b8d;
  font-size: 0.78rem;
  font-weight: 900;
}

.acquire-source-level-value {
  color: #f4ead1;
  font-size: 0.9rem;
  font-weight: 900;
}

.acquire-source-level-empty {
  color: #6f7b8d;
  font-size: 0.78rem;
  font-weight: 900;
}

.acquire-source-status-cell .acquire-status-pill {
  font-size: 0.66rem;
  padding: 3px 6px;
}

.acquire-source-adena-cell .required-item-icon,
.acquire-source-adena-cell .required-item-fallback {
  flex-basis: 28px;
  height: 28px;
  width: 28px;
}

.acquire-source-items-cell .required-item-icon,
.acquire-source-items-cell .required-item-fallback {
  flex-basis: 30px;
  height: 30px;
  width: 30px;
}

.acquire-source-adena-cell .required-item-list,
.acquire-source-items-cell .required-item-list {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.acquire-source-items-cell .acquire-item-primary {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 76px;
}

.acquire-source-adena-cell .required-item-empty,
.acquire-source-items-cell .required-item-empty {
  display: inline-block;
  font-size: 0.72rem;
}


.required-item-list,
.skill-required-items > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.required-item-list-compact {
  gap: 4px;
  flex-wrap: wrap;
}

.acquire-item-variants {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.acquire-item-primary {
  max-width: 116px;
}

.acquire-item-preview {
  position: relative;
}

.acquire-item-spoiler {
  max-width: 100%;
}

.acquire-item-spoiler summary {
  color: #bcd6ff;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
  list-style-position: inside;
  white-space: nowrap;
}

.acquire-item-spoiler summary:hover {
  color: #ffd95d;
}

.acquire-item-variant {
  border-top: 1px solid rgba(173, 190, 214, 0.12);
  display: grid;
  gap: 3px;
  margin-top: 4px;
  padding-top: 4px;
}

.acquire-item-variant > span {
  color: #98a5b8;
  font-size: 0.68rem;
  font-weight: 800;
}

.mechanics-required-items {
  min-width: 96px;
}

.mechanics-required-items .required-item-empty {
  display: inline-block;
  padding-top: 5px;
}

.mechanics-source-requirement {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.mechanics-source-requirement > span {
  color: #ffd95d;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mechanics-source-requirement-k > span {
  color: #bcd6ff;
}

.mechanics-source-requirement-v > span {
  color: #9ff0c8;
}

.mechanics-source-requirement-ru > span {
  color: #ffd95d;
}

.mechanics-required-items .required-item-icon {
  flex-basis: 30px;
  height: 30px;
  width: 30px;
}

.mechanics-required-items .required-item-fallback {
  height: 30px;
  width: 30px;
}

.required-item-pill {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #f7e7ad;
  display: inline-flex;
  font-size: 0;
  font-weight: 900;
  line-height: 1.2;
  justify-content: center;
  padding: 2px;
  position: relative;
}

.required-item-pill:focus {
  outline: 2px solid rgba(255, 213, 93, 0.58);
  outline-offset: 2px;
}

.required-item-icon {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  display: inline-flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
  overflow: hidden;
  width: 44px;
}

.required-item-icon img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.required-item-fallback {
  align-items: center;
  color: #ffd95d;
  display: inline-flex;
  font-size: 0.78rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.required-item-text {
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.required-item-count-badge {
  align-items: center;
  background: rgba(5, 10, 15, 0.9);
  border: 1px solid rgba(255, 213, 93, 0.42);
  border-radius: 999px;
  bottom: -2px;
  color: #ffd95d;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 900;
  justify-content: center;
  min-width: 18px;
  padding: 1px 4px;
  position: absolute;
  right: -4px;
}

.acquire-cost-pill {
  border-radius: 7px;
  min-height: 0;
  padding: 2px;
}

.acquire-cost-inline {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.acquire-cost-inline strong {
  color: #ffd95d;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.required-item-tooltip {
  background: rgba(13, 18, 25, 0.98);
  border: 1px solid rgba(255, 213, 93, 0.42);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  color: #f7e7ad;
  font-size: 0.78rem;
  font-weight: 900;
  left: 0;
  line-height: 1.25;
  max-width: min(360px, calc(100vw - 16px));
  padding: 8px 10px;
  pointer-events: none;
  position: fixed;
  top: 0;
  white-space: pre-line;
  z-index: 1000;
}

.required-item-tooltip-rich {
  display: grid;
  gap: 7px;
  max-width: min(440px, calc(100vw - 16px));
  white-space: normal;
}

.required-item-tooltip-group,
.required-item-tooltip-list {
  display: grid;
  gap: 5px;
}

.required-item-tooltip-group > strong {
  color: #ffd95d;
  font-size: 0.78rem;
}

.required-item-tooltip-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 30px minmax(0, 1fr);
}

.required-item-tooltip-icon,
.required-item-tooltip-fallback {
  align-items: center;
  background: rgba(255, 213, 93, 0.08);
  border: 1px solid rgba(255, 213, 93, 0.18);
  border-radius: 5px;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  overflow: hidden;
  width: 30px;
}

.required-item-tooltip-icon img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.required-item-tooltip-fallback {
  color: #ffd95d;
  font-size: 0.7rem;
}

.required-item-tooltip[hidden] {
  display: none;
}

.required-item-empty {
  color: #98a5b8;
  font-size: 0.9rem;
  font-weight: 800;
}

.class-directory-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.class-directory-title {
  color: #ffd95d;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  margin: 14px 0 8px;
  text-transform: uppercase;
}

.class-tree {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin-bottom: 0;
  overflow: visible;
  padding: 0;
  position: relative;
  width: 100%;
}

.class-tree-lines {
  inset: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.class-tree-line {
  animation: classSvgPulse 3.2s ease-in-out infinite;
  fill: none;
  stroke: rgba(255, 213, 93, 0.72);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  filter: drop-shadow(0 0 4px rgba(255, 213, 93, 0.26));
}

.class-tree-line-energy {
  opacity: 0.72;
  stroke: rgb(255, 213, 93);
  stroke-linecap: round;
  stroke-width: 2.8;
  filter: drop-shadow(0 0 7px rgba(255, 213, 93, 0.34));
}

.class-directory-card {
  margin-left: 0;
  margin-right: 0;
  overflow: visible;
  width: 100%;
}

.class-tree-window {
  background:
    linear-gradient(180deg, rgba(18, 25, 35, 0.98), rgba(13, 18, 27, 0.98));
  border-color: rgba(255, 213, 93, 0.22);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 213, 93, 0.05);
}

.class-directory-card .class-tree-group {
  min-width: 1700px;
  padding-left: 18px;
  padding-right: 18px;
}

.class-tree-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.class-tree-head strong {
  color: #ffd95d;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.class-tree-head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.class-tree-group {
  display: block;
  margin-top: 18px;
  padding-top: 18px;
  width: 100%;
}

.class-tree-group + .class-tree-group {
  border-top: 1px solid rgba(255, 213, 93, 0.18);
}

.class-tree-race {
  align-items: center;
  background: rgba(255, 213, 93, 0.1);
  border: 1px solid rgba(255, 213, 93, 0.26);
  border-radius: 9px;
  box-shadow: none;
  color: #ffe390;
  display: inline-flex;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: center;
  min-width: 190px;
  min-height: 0;
  padding: 7px 9px;
  position: relative;
  text-align: center;
  margin-bottom: 14px;
  z-index: 1;
}

.class-tree-race:hover {
  background: rgba(255, 213, 93, 0.16);
  border-color: rgba(255, 213, 93, 0.42);
}

.class-tree-race-mark {
  align-items: center;
  border: 1px solid rgba(255, 213, 93, 0.3);
  border-radius: 999px;
  color: #ffd95d;
  display: inline-flex;
  flex: 0 0 18px;
  font-size: 0.78rem;
  height: 18px;
  justify-content: center;
  line-height: 1;
  width: 18px;
}

.class-tree-group-collapsed .class-tree-race {
  margin-bottom: 0;
}

.class-tree-group-collapsed .class-tree-paths {
  display: none;
}

.class-tree-paths {
  min-width: 0;
  width: 100%;
}

.class-tree-branch {
  display: grid;
  gap: 10px;
}

.class-tree-branch-item {
  align-items: start;
  display: grid;
  gap: clamp(72px, 6vw, 124px);
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
  position: relative;
}

.class-tree-branch-item > .class-tree-branch {
  padding-left: clamp(42px, 3.4vw, 68px);
  position: relative;
}

.class-tree-branch-item[data-child-count="2"] > .class-tree-branch,
.class-tree-branch-item[data-child-count="3"] > .class-tree-branch,
.class-tree-branch-item[data-child-count="4"] > .class-tree-branch {
  border-left: 0;
  margin-bottom: 15px;
  margin-top: 0;
}

.class-tree-branch-item[data-child-count="2"] > .class-tree-branch::after,
.class-tree-branch-item[data-child-count="3"] > .class-tree-branch::after,
.class-tree-branch-item[data-child-count="4"] > .class-tree-branch::after {
  content: "";
  display: none;
}

.class-tree-branch-item[data-child-count="2"] > .class-tree-branch > .class-tree-branch-item::before,
.class-tree-branch-item[data-child-count="3"] > .class-tree-branch > .class-tree-branch-item::before,
.class-tree-branch-item[data-child-count="4"] > .class-tree-branch > .class-tree-branch-item::before {
  content: "";
  display: none;
}

.class-tree-branch-item > .class-tree-branch::before {
  content: "";
  display: none;
}

.class-tree-branch-item[data-child-count="2"] > .class-tree-branch::before,
.class-tree-branch-item[data-child-count="3"] > .class-tree-branch::before,
.class-tree-branch-item[data-child-count="4"] > .class-tree-branch::before {
  display: none;
}

.class-tree-branch-item > .class-tree-branch::after {
  content: "";
  display: none;
}

.class-tree-branch-item[data-child-count="2"] > .class-tree-branch::after,
.class-tree-branch-item[data-child-count="3"] > .class-tree-branch::after,
.class-tree-branch-item[data-child-count="4"] > .class-tree-branch::after {
  border: 0;
}

.class-tree-branch-item[data-child-count="2"] > .class-tree-branch > .class-tree-branch-item > .class-tree-node::before,
.class-tree-branch-item[data-child-count="3"] > .class-tree-branch > .class-tree-branch-item > .class-tree-node::before,
.class-tree-branch-item[data-child-count="4"] > .class-tree-branch > .class-tree-branch-item > .class-tree-node::before {
  display: none;
}

.class-tree-branch-item > .class-tree-branch:empty {
  border-left: 0;
  padding-left: 0;
}

.class-tree-branch-item > .class-tree-branch:empty::before {
  display: none;
}

.class-tree-branch-item > .class-tree-branch:empty::after {
  display: none;
}

@keyframes classLinePulse {
  0% {
    opacity: 0.5;
    transform: scaleX(0.88);
    transform-origin: left;
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left;
  }
  100% {
    opacity: 0.5;
    transform: scaleX(0.88);
    transform-origin: left;
  }
}

@keyframes classEnergyFlow {
  0% {
    background-position: 120% 0;
    opacity: 0.55;
  }
  45% {
    opacity: 1;
  }
  100% {
    background-position: -80% 0;
    opacity: 0.55;
  }
}

@keyframes classVerticalEnergy {
  0% {
    background-position: 0 120%;
  }
  100% {
    background-position: 0 -80%;
  }
}

@keyframes classSvgPulse {
  0% {
    opacity: 0.66;
  }
  50% {
    opacity: 0.86;
  }
  100% {
    opacity: 0.66;
  }
}

.class-tree-node {
  align-items: center;
  align-self: start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 213, 93, 0.18);
  border-radius: 8px;
  box-shadow: none;
  color: #f3ead0;
  display: flex;
  gap: 7px;
  justify-content: space-between;
  min-height: 30px;
  min-width: 0;
  padding: 4px 7px;
  position: relative;
  text-align: left;
  text-decoration: none;
  z-index: 1;
}

.class-tree-node:hover {
  background: rgba(255, 213, 93, 0.14);
  border-color: rgba(255, 213, 93, 0.36);
}

.class-tree-name {
  font-size: 0.72rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.class-tree-id {
  color: #ffd95d;
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 900;
  opacity: 0.82;
}

.class-directory-item {
  align-items: center;
  background: rgba(255, 213, 93, 0.08);
  border: 1px solid rgba(255, 213, 93, 0.18);
  border-radius: 10px;
  box-shadow: none;
  color: #f3ead0;
  display: grid;
  gap: 8px;
  grid-template-columns: 42px 1fr;
  min-height: 34px;
  padding: 5px 8px;
  text-align: left;
  text-decoration: none;
}

.class-directory-item:hover {
  background: rgba(255, 213, 93, 0.15);
  border-color: rgba(255, 213, 93, 0.34);
}

.class-directory-id {
  color: #ffd95d;
  font-size: 0.74rem;
  font-weight: 900;
}

.class-directory-name {
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-head span {
  color: var(--muted);
}

.result-card,
.empty {
  border-radius: 22px;
  padding: 18px;
}

.card-top {
  align-items: start;
  background: linear-gradient(180deg, #111922 0%, #0f1720 100%);
  border-bottom: 1px solid rgba(255, 188, 19, 0.58);
  border-radius: 18px 18px 0 0;
  display: grid;
  gap: 6px 12px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: -18px -18px 12px;
  padding: 10px 18px 10px;
}

.skill-card-preview .card-top {
  gap: 4px 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.skill-card-full .card-top {
  grid-template-columns: minmax(0, 1fr);
}

.card-top-icon {
  align-self: start;
  grid-row: 1 / span 3;
  min-height: 52px;
  min-width: 52px;
}

.card-top-icon:empty {
  display: none;
}

.card-top-copy {
  min-width: 0;
}

.skill-class-breadcrumb {
  align-items: center;
  color: #aeb9ca;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 5px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.skill-class-breadcrumb a,
.skill-class-breadcrumb span {
  color: inherit;
  text-decoration: none;
}

.skill-class-breadcrumb a {
  border-bottom: 1px solid rgba(255, 213, 93, 0.22);
}

.skill-class-breadcrumb a:hover {
  color: #ffd95d;
  border-bottom-color: rgba(255, 213, 93, 0.72);
}

.skill-class-breadcrumb a:last-of-type {
  color: #f4ead1;
}

.skill-class-breadcrumb i {
  color: rgba(255, 213, 93, 0.54);
  font-style: normal;
}

.skill-card .card-top h2 {
  font-size: clamp(1.05rem, 1.65vw, 1.65rem);
  line-height: 1.05;
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-title-level {
  color: #ffd95d;
  font-family: inherit;
  font-size: 0.72em;
  font-weight: 900;
  white-space: nowrap;
}

.unused-skill-note {
  color: #ffd95d;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 4px 0 0;
  text-transform: uppercase;
}

.card-title-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dataset-version-badge {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff8e4;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 5px 8px;
  text-transform: uppercase;
}

.skill-id-badge {
  background: rgba(127, 179, 255, 0.14);
  border: 1px solid rgba(127, 179, 255, 0.38);
  border-radius: 999px;
  color: #d7e7ff;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 3px 7px;
}

.skill-id-badge:hover,
.skill-id-badge:focus-visible {
  background: rgba(127, 179, 255, 0.24);
  border-color: rgba(166, 205, 255, 0.68);
  outline: none;
}

.skill-id-badge.skill-id-copied {
  background: rgba(89, 208, 160, 0.22);
  border-color: rgba(89, 208, 160, 0.64);
  color: #c7ffe3;
}

.skill-id-copied {
  color: #c7ffe3 !important;
}

.skill-type-badge {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 5px 8px;
  text-transform: uppercase;
}

.skill-type-active {
  background: rgba(216, 168, 62, 0.18);
  border-color: rgba(216, 168, 62, 0.42);
  color: #ffe6a3;
}

.skill-type-passive {
  background: rgba(92, 184, 146, 0.2);
  border-color: rgba(122, 216, 178, 0.46);
  color: #bff5df;
}

.source-difference-badge {
  background: rgba(127, 179, 255, 0.14);
  border: 1px solid rgba(127, 179, 255, 0.42);
  border-radius: 999px;
  color: #cfe2ff;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  padding: 5px 8px;
  text-transform: uppercase;
  vertical-align: middle;
}

.skill-card-dataset-base .dataset-version-badge {
  background: rgba(86, 142, 220, 0.28);
  border-color: rgba(127, 179, 255, 0.46);
}

.skill-card-dataset-classic .dataset-version-badge {
  background: rgba(118, 108, 202, 0.28);
  border-color: rgba(158, 148, 238, 0.54);
  color: #ece9ff;
}

.skill-card-dataset-classicAden .dataset-version-badge {
  background: rgba(92, 184, 146, 0.24);
  border-color: rgba(122, 216, 178, 0.48);
}

.open-skill-full {
  align-self: center;
  background: linear-gradient(180deg, #d8a83e 0%, #c18a24 52%, #a86f1b 100%);
  border-color: rgba(222, 174, 76, 0.74);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(202, 143, 35, 0.14), inset 0 1px 0 rgba(255, 237, 183, 0.26);
  color: #fff8e4;
  font-size: 0.82rem;
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.open-skill-full:hover {
  background: linear-gradient(180deg, #e0b34d 0%, #c9962e 52%, #ad7721 100%);
  border-color: rgba(235, 194, 103, 0.82);
}

.dataset-card-label {
  background: rgba(255, 188, 19, 0.18);
  border: 1px solid rgba(255, 188, 19, 0.36);
  border-radius: 999px;
  color: var(--site-yellow);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  margin-right: 10px;
  padding: 3px 8px;
  text-transform: uppercase;
  vertical-align: middle;
}

.dataset-result-group,
.dataset-acquire-group {
  display: grid;
  gap: 8px;
}

.type {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h2,
h3,
h4 {
  margin: 0;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

h3 {
  margin-top: 22px;
}

.subline {
  margin: 6px 0 0;
  font-size: 0.92rem;
}

.skill-card .subline {
  font-size: 0.8rem;
  line-height: 1.18;
  margin-top: 3px;
}

.skill-name-variants {
  align-items: flex-start;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding: 0;
}

.skill-name-variants-label {
  color: #9da9bb;
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-top: 0;
  text-transform: uppercase;
}

.skill-name-variants-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.skill-name-variant {
  color: #f5e7b9;
  display: grid;
  font-size: 0.78rem;
  gap: 3px;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.skill-name-variant strong {
  color: #ffd95d;
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skill-name-variant span {
  display: block;
  min-width: 0;
}

.tooltip-card .skill-name-variants-label {
  margin-top: 0;
}

.tooltip-card .skill-name-variants {
  margin-bottom: 6px;
  padding: 6px 8px;
}

.tooltip-card .skill-name-variant {
  font-size: 0.74rem;
}

.tooltip-card .skill-name-variant strong {
  font-size: 0.68rem;
}

.source-bulk-controls,
.dataset-view-controls {
  align-items: center;
  background: rgba(255, 188, 19, 0.065);
  border: 1px solid rgba(255, 188, 19, 0.18);
  border-radius: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
  margin-bottom: 6px;
  padding: 3px 7px;
}

.source-bulk-controls > span,
.dataset-view-controls > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.source-bulk-controls > div,
.dataset-view-controls > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.source-bulk-toggle,
.dataset-view-toggle {
  background: rgba(45, 33, 21, 0.72);
  border: 1px solid rgba(205, 167, 90, 0.44);
  border-radius: 999px;
  box-shadow: none;
  color: var(--site-gold-bright);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
  min-height: 0;
  padding: 2px 6px;
  text-transform: uppercase;
}

.source-bulk-toggle:hover,
.source-bulk-active,
.dataset-view-toggle:hover,
.dataset-view-active {
  background: rgba(74, 53, 29, 0.86);
  border-color: rgba(240, 208, 130, 0.68);
}

.levels {
  display: grid;
  gap: 8px;
}

.tooltip-levels {
  align-items: stretch;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 600px));
  justify-content: start;
}

.level-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  min-width: 0;
  width: 100%;
}

.level-card-wide {
  grid-column: span 1;
}

.tooltip-card {
  background: linear-gradient(180deg, #111922 0%, #0f1720 100%);
  border: 1px solid rgba(255, 202, 62, 0.42);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 224, 113, 0.1);
  color: #ddd6bf;
  padding: 0;
  overflow: hidden;
}

.tooltip-header {
  align-items: flex-start;
  background: linear-gradient(180deg, #111922 0%, #0f1720 100%);
  border-bottom: 1px solid rgba(255, 210, 84, 0.28);
  display: flex;
  gap: 8px;
  padding: 8px 10px;
}

.level-card-head {
  align-items: flex-start;
  background: linear-gradient(180deg, #111922 0%, #0f1720 100%);
  border-bottom: 1px solid rgba(255, 210, 84, 0.28);
  display: flex;
  gap: 8px;
  padding: 8px 10px;
}

.icon-stack {
  align-items: flex-start;
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
}

.icon-stack-item {
  align-items: center;
  display: grid;
  gap: 3px;
  justify-items: center;
}

.icon-stack-item > span {
  display: none;
}

.level-card-head .icon-stack-item > span,
.card-top-icon .icon-stack-item > span,
.modification-summary-main .icon-stack-item > span {
  color: #ffd95d;
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.icon-stack-item-k > span {
  color: #bcd6ff;
}

.icon-stack-item-v > span {
  color: #9ff0c8;
}

.icon-stack-item-ru > span {
  color: #ffd95d;
}

.card-top-icon .icon-stack {
  max-width: 112px;
}

.level-card-head .icon-stack {
  max-width: none;
}

.modification-summary-main .icon-stack {
  max-width: 58px;
}

.level-card-head .icon-box {
  border-radius: 4px;
  flex: 0 0 48px;
  height: 48px;
  width: 48px;
}

.level-card-title {
  min-width: 0;
}

.level-card-title h4 {
  color: #f5e7b9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.05;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-card-title h4 span {
  color: var(--site-yellow);
  font-family: inherit;
  font-size: 0.82em;
  font-weight: 900;
}

.level-name-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 3px;
  max-width: 100%;
}

.level-name-variant {
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #d7deeb;
  display: grid;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 2px;
  line-height: 1.12;
  max-width: 100%;
  min-width: 0;
  padding: 0;
}

.level-name-variant strong {
  color: #ffd95d;
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.level-name-variant span {
  color: #eef2f8;
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-card-title p {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 6px;
  margin: 2px 0 0;
}

.level-card-title p strong {
  color: #ffd95d;
}

.level-card-title p .level-card-id {
  background: rgba(75, 118, 178, 0.22);
  border: 1px solid rgba(135, 177, 235, 0.55);
  border-radius: 999px;
  color: #cfe3ff;
  cursor: pointer;
  font-size: 0.72rem;
  line-height: 1;
  padding: 2px 7px;
}

.level-card-title p .level-card-id:hover,
.level-card-title p .level-card-id:focus-visible {
  border-color: rgba(166, 205, 255, 0.78);
  color: #ffffff;
  outline: none;
}

.skill-required-items {
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 210, 84, 0.18);
  color: var(--muted);
  display: flex;
  gap: 8px;
  padding: 7px 10px;
}

.skill-required-items > span {
  color: #ffd95d;
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modification-list {
  border-top: 1px solid rgba(255, 210, 84, 0.28);
  display: grid;
  gap: 6px;
  margin: 8px 10px 10px;
  padding-top: 8px;
}

.modification-panel {
  background: rgba(255, 213, 93, 0.045);
  border: 1px solid rgba(255, 213, 93, 0.22);
  border-radius: 8px;
  overflow: hidden;
}

.modification-panel summary {
  align-items: center;
  color: #ffd95d;
  cursor: pointer;
  display: flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  list-style: none;
  min-height: 32px;
  padding: 0 10px;
  position: relative;
}

.modification-summary-main {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  justify-content: center;
  min-width: 0;
}

.modification-summary-main .icon-box {
  border-radius: 4px;
  flex: 0 0 24px;
  height: 24px;
  width: 24px;
}

.modification-panel summary::-webkit-details-marker {
  display: none;
}

.modification-panel summary::after {
  color: var(--muted);
  content: "+";
  font-size: 1rem;
  line-height: 1;
  position: absolute;
  right: 10px;
}

.modification-panel[open] summary::after {
  content: "-";
}

.modification-panel summary small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.modification-panel .tooltip-stats,
.modification-panel .comparison-source-grid {
  margin: 8px;
}

.modification-empty {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 8px 10px 10px;
}

.tooltip-title-wrap {
  min-width: 0;
  width: 100%;
}

.tooltip-header .icon-box {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 224, 113, 0.22);
  border-radius: 4px;
  height: 36px;
  width: 36px;
  flex: 0 0 36px;
}

.tooltip-title-wrap h4 {
  color: #ffd95d;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
}

.tooltip-title-wrap h4 span {
  color: #ffe893;
  font-weight: 700;
}

.tooltip-title-wrap p {
  color: #f0e9da;
  font-size: 0.72rem;
  margin: 2px 0 0;
}

.tooltip-stats {
  display: grid;
  gap: 3px 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 10px 0;
}

.mechanics-table-wrap {
  grid-column: 1 / -1;
  overflow-x: auto;
  width: 100%;
}

.mechanics-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
}

.mechanics-table th,
.mechanics-table td {
  background: rgba(15, 23, 32, 0.72);
  border-bottom: 1px solid rgba(173, 190, 214, 0.12);
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}

.mechanics-table thead th {
  background: rgba(15, 23, 32, 0.86);
  color: var(--site-yellow);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mechanics-table thead th:not(:first-child) {
  min-width: 118px;
}

.mechanics-table thead .source-badge {
  background: transparent;
  display: inline-flex;
  font-size: 0.72rem;
  max-width: 100%;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}

.mechanics-table tbody th {
  color: #efe7d1;
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  width: 31%;
}

.mechanics-table td strong {
  color: #ffd35f;
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mechanics-source-notice {
  background: rgba(216, 168, 62, 0.12);
  border: 1px solid rgba(216, 168, 62, 0.38);
  border-radius: 999px;
  color: #ffe0a0;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.25;
  padding: 4px 7px;
}

.tooltip-stat {
  align-items: baseline;
  display: flex;
  font-size: 0.76rem;
  gap: 5px;
  min-width: 0;
}

.tooltip-stat span {
  color: #efe7d1;
}

.tooltip-stat strong {
  color: #ffd35f;
  font-weight: 700;
}

.tooltip-stat-with-variants {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.tooltip-stat-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
}

.tooltip-stat-variant {
  align-items: baseline;
  display: inline-flex;
  gap: 4px;
  min-width: 0;
}

.tooltip-stat-variant em {
  color: #9da9bb;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tooltip-stat-variant strong {
  color: #ffd35f;
  overflow-wrap: anywhere;
}

.icon-box {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  width: 52px;
}

.icon-box img {
  image-rendering: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.description {
  font-size: 0.92rem;
  line-height: 1.42;
}

.tooltip-divider {
  border-top: 1px solid rgba(255, 210, 84, 0.34);
  margin: 8px 10px 0;
}

.tooltip-body {
  padding: 8px 9px 4px;
}

.dataset-compare-grid {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 600px));
  justify-content: start;
}

.dataset-compare-grid .skill-card {
  min-width: 0;
}

.dataset-compare-grid .tooltip-levels {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 600px));
}

.dataset-compare-grid .level-card-wide {
  grid-column: span 1;
}

.comparison-table-wrap {
  overflow: visible;
  padding: 8px 9px 9px;
}

.comparison-table-old {
  display: none;
}

.comparison-source-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px 9px 9px;
}

.comparison-source-count-1 {
  grid-template-columns: 1fr;
}

.comparison-source-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-source-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comparison-source-column {
  background: rgba(15, 23, 32, 0.72);
  border: 1px solid rgba(173, 190, 214, 0.12);
  border-radius: 6px;
  min-width: 0;
  padding: 8px 9px;
}

.comparison-source-head {
  align-items: center;
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.comparison-source-head > span:last-child {
  min-width: 0;
}

.source-icon {
  flex: 0 0 auto;
}

.source-icon .icon-box {
  border-radius: 4px;
  height: 28px;
  width: 28px;
}

.comparison-source-column h5 {
  color: #f5e7b9;
  font-size: 0.9rem;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.comparison-source-description,
.comparison-source-extra {
  overflow-wrap: anywhere;
}

.comparison-source-extra {
  border-top: 1px solid rgba(173, 190, 214, 0.12);
  margin-top: 10px;
  padding-top: 8px;
}

.comparison-source-extra > span {
  color: #ffd95d;
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.comparison-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
}

.comparison-table th,
.comparison-table td {
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 210, 84, 0.14);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: rgba(255, 219, 95, 0.1);
  color: #ffd95d;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-table thead {
  display: none;
}

.comparison-table tbody th {
  width: 116px;
}

.comparison-row-label {
  color: #ffd95d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-source-cell {
  background: rgba(255, 219, 95, 0.06);
}

.comparison-name {
  color: #f5e7b9;
  font-weight: 800;
  overflow-wrap: anywhere;
  width: 150px;
}

.comparison-text {
  overflow-wrap: anywhere;
}

.comparison-extra {
  overflow-wrap: anywhere;
  width: 22%;
}

.comparison-table .description {
  font-size: 0.86rem;
  line-height: 1.42;
}

.comparison-table .description p {
  margin: 0 0 7px;
}

.comparison-table .description p:last-child {
  margin-bottom: 0;
}

.comparison-empty {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

.source-bulk-controls {
  display: none;
}

.dataset-view-controls {
  display: none;
}

.source-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 9px 9px;
}

.source-panel {
  background: rgba(15, 23, 32, 0.72);
  border: 1px solid rgba(173, 190, 214, 0.12);
  border-radius: 6px;
  flex: 0 0 auto;
  overflow: visible;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: max-width 0.18s ease, opacity 0.18s ease;
}

.source-panel-collapsed {
  flex: 0 0 auto;
  max-width: none;
  opacity: 0.86;
}

.source-extra {
  border-top: 1px solid rgba(255, 210, 84, 0.16);
  padding-top: 2px;
}

.source-content {
  max-height: 1200px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
}

.source-panel-collapsed .source-content {
  max-height: 0;
  opacity: 0;
}

.source-extra-title {
  color: #ffd35f;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 8px 12px 0;
  text-transform: uppercase;
}

.source-head {
  align-items: center;
  background: rgba(255, 188, 19, 0.11);
  border-bottom: 1px solid rgba(255, 188, 19, 0.24);
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-height: 0;
  padding: 6px 8px;
  width: 100%;
}

.source-head:hover {
  background: rgba(255, 188, 19, 0.16);
}

.source-panel-collapsed .source-head {
  border-bottom: 0;
  flex-direction: row;
  gap: 8px;
  justify-content: space-between;
  min-height: 100%;
  padding: 6px 8px;
}

.source-head strong {
  color: #f5e7b9;
  font-size: 0.76rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: normal;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-toggle-mark {
  align-items: center;
  border: 1px solid rgba(255, 213, 93, 0.26);
  border-radius: 999px;
  color: #ffd95d;
  display: inline-flex;
  flex: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  line-height: 1;
  margin-top: 1px;
  width: 18px;
}

.source-badge {
  background: rgba(15, 23, 32, 0.72);
  border: 1px solid rgba(255, 188, 19, 0.34);
  border-radius: 999px;
  color: var(--site-yellow);
  font-size: 0.72rem;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  text-transform: uppercase;
}

.source-badge-compact {
  color: var(--site-yellow);
  display: none;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-orientation: mixed;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
}

.tooltip-line {
  font-size: 0.78rem;
  line-height: 1.24;
  margin: 0 0 3px;
  overflow-wrap: break-word;
  word-break: normal;
}

.tooltip-line-section {
  color: #6dff58;
  font-weight: 700;
}

.tooltip-line-accent {
  color: #ffd35f;
  font-weight: 700;
}

.tooltip-line-body {
  color: #d7d2c3;
}

.skill-ref-link {
  color: #ffdc67;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.skill-ref-link:hover {
  color: #fff1a8;
  text-decoration-style: solid;
}

.service-effect-desc {
  background: rgba(255, 211, 95, 0.055);
  border: 1px solid rgba(255, 211, 95, 0.24);
  border-radius: 6px;
  margin: 8px 0 0;
  padding: 8px 9px;
}

.service-effect-desc-title {
  color: #ffdc67;
  font-size: 0.76rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.service-effect-desc-note,
.service-effect-desc-sources {
  color: #aaa18b;
  font-size: 0.68rem;
  line-height: 1.35;
  margin: 0 0 7px;
}

.service-effect-desc-sources {
  border-top: 1px solid rgba(255, 211, 95, 0.16);
  margin: 7px 0 0;
  padding-top: 6px;
}

.service-effect-source-link {
  color: #d7e6ff;
  font-weight: 700;
  text-decoration: none;
}

.service-effect-source-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.skill-chain-panel {
  margin: 8px 0 10px;
  padding: 0;
  border: 1px solid rgba(255, 211, 95, 0.35);
  border-radius: 8px;
  background: rgba(255, 211, 95, 0.06);
  overflow: hidden;
}

.skill-chain-head {
  display: grid;
  grid-template-columns: max-content minmax(150px, max-content) max-content minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  cursor: pointer;
  color: #ffdc67;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.76rem;
  list-style: none;
}

.skill-chain-head::-webkit-details-marker {
  display: none;
}

.skill-chain-head::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 211, 95, 0.35);
  border-radius: 4px;
  color: #ffdc67;
  font-size: 0.78rem;
  line-height: 1;
}

.skill-chain-panel[open] .skill-chain-head::before {
  content: "-";
}

.skill-chain-head small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 211, 95, 0.13);
  color: #aaa18b;
  font-weight: 700;
  text-transform: none;
}

.skill-chain-preview {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  color: #b9ad91;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: none;
}

.skill-chain-panel[open] .skill-chain-preview {
  display: none;
}

.skill-chain-preview-chip,
.skill-chain-preview-more {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 380px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 211, 95, 0.18);
  border-radius: 999px;
  background: rgba(14, 20, 26, 0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-chain-preview-chip {
  flex: 0 1 auto;
}

.skill-chain-preview-chip .skill-chain-link {
  max-width: 360px;
  min-height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d7e6ff;
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-chain-preview-more {
  flex: 0 0 auto;
  color: #ffdc67;
}

.skill-chain-row {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 211, 95, 0.16);
}

.skill-chain-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.skill-chain-row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.skill-chain-row-title strong {
  color: #f5f0df;
}

.skill-chain-kind {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 211, 95, 0.38);
  border-radius: 999px;
  color: #ffdc67;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.skill-chain-row p {
  margin: 4px 0;
  color: #d7d2c3;
  font-size: 0.78rem;
  line-height: 1.45;
}

.skill-chain-evidence,
.skill-chain-mechanics {
  color: #aaa18b !important;
  font-size: 0.72rem !important;
}

.skill-chain-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.skill-chain-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #aaa18b;
  font-size: 0.72rem;
}

.skill-chain-link {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  max-width: 100%;
  padding: 1px 5px;
  border: 1px solid rgba(143, 182, 255, 0.28);
  border-radius: 5px;
  background: rgba(143, 182, 255, 0.08);
  color: #d7e6ff;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.skill-chain-link:hover {
  color: #ffffff;
  border-color: rgba(215, 230, 255, 0.58);
  background: rgba(143, 182, 255, 0.16);
}

.skill-chain-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 10px;
  padding: 8px;
  border-top: 1px solid rgba(255, 211, 95, 0.16);
}

.skill-chain-compact-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 211, 95, 0.12);
  border-radius: 6px;
  background: rgba(5, 10, 15, 0.2);
}

.skill-chain-compact-row:first-child {
  border-top: 1px solid rgba(255, 211, 95, 0.12);
}

.skill-chain-icon-stack {
  display: inline-flex;
  align-items: center;
  align-self: start;
  min-width: 24px;
}

.skill-chain-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 211, 95, 0.22);
  border-radius: 6px;
  background: rgba(5, 10, 15, 0.45);
  overflow: hidden;
}

.skill-chain-icon + .skill-chain-icon {
  margin-left: -13px;
}

.skill-chain-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skill-chain-icon-empty {
  opacity: 0.32;
}

.skill-chain-icon em {
  position: absolute;
  right: -1px;
  bottom: -1px;
  max-width: 28px;
  padding: 0 2px;
  border-radius: 3px 0 5px 0;
  background: rgba(5, 10, 15, 0.86);
  color: #ffdc67;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
  pointer-events: none;
}

.skill-chain-compact-main {
  min-width: 0;
}

.skill-chain-compact-title {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 4px 6px;
  margin-bottom: 4px;
}

.skill-chain-compact-title .skill-chain-link {
  flex: 1 1 100%;
  justify-self: start;
  max-width: 100%;
  font-size: 0.8rem;
  line-height: 1.22;
}

.skill-chain-title-name {
  color: #f5f0df;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
}

.skill-chain-relation {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 211, 95, 0.24);
  border-radius: 999px;
  background: rgba(255, 211, 95, 0.08);
  color: #ffdc67;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: normal;
}

.skill-chain-source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(143, 182, 255, 0.12);
  color: #aac8ff;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: normal;
}

.skill-chain-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.skill-chain-source-name {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(215, 230, 255, 0.06);
  color: #f5f0df;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.skill-chain-source-name strong {
  color: #8fb6ff;
  font-size: 0.68rem;
}

.skill-chain-source-name-primary {
  background: rgba(255, 211, 95, 0.1);
  color: #fff2bd;
}

.skill-chain-source-name-primary strong {
  color: #ffdc67;
}

.skill-chain-compact-main p {
  margin: 0 0 4px;
  color: #d7d2c3;
  font-size: 0.74rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skill-chain-compact-main small {
  display: block;
  color: #aaa18b;
  font-size: 0.72rem;
  line-height: 1.25;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.tooltip-muted {
  color: #938c79;
  margin: 0;
  padding: 8px 9px 4px;
  font-size: 0.74rem;
  line-height: 1.2;
}

.tooltip-footer {
  border-top: 1px solid rgba(173, 190, 214, 0.12);
  color: #a99f84;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.68rem;
  padding: 6px 9px 8px;
}

.pill {
  background: rgba(228, 184, 108, 0.1);
  border: 1px solid rgba(228, 184, 108, 0.16);
  border-radius: 999px;
  color: #edc97e;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 8px;
}

.kv-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 8px;
}

.kv-grid div {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 12px;
  padding: 8px 10px;
}

.kv-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  margin-bottom: 3px;
}

.kv-grid strong {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.group-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 10px;
  padding: 10px;
}

.group-head {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

@media (min-width: 1500px) {
  .tooltip-levels {
    grid-template-columns: repeat(auto-fill, minmax(560px, 600px));
  }
}

@media (max-width: 1200px) {
  .dataset-compare-grid {
    grid-template-columns: 1fr;
  }

  .tooltip-levels {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 600px));
  }

  .level-card-wide {
    grid-column: span 1;
  }

}

@media (min-width: 1320px) {
  .level-card {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .dataset-compare-grid {
    grid-template-columns: 1fr;
  }

  .class-tree-group {
    display: block;
  }

  .class-tree {
    overflow: visible;
  }

  .class-tree-paths {
    min-width: 0;
  }

  .class-tree-branch-item {
    gap: 48px;
    grid-template-columns: minmax(160px, 190px) 1fr;
  }

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

  .comparison-source-grid,
  .comparison-source-count-2,
  .comparison-source-count-3 {
    grid-template-columns: 1fr;
  }

  .level-card-wide {
    grid-column: span 1;
  }

  .hero,
  .search-row {
    grid-template-columns: 1fr;
  }

  .skill-card-preview .card-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .skill-card-preview .open-skill-full {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .search-meta {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .search-meta .hint {
    text-align: left;
  }

  .stats {
    border-radius: 20px;
    white-space: normal;
  }

  .source-grid-triple {
    flex-direction: column;
  }

  .source-panel,
  .source-panel-collapsed {
    flex-basis: auto;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .tooltip-levels {
    grid-template-columns: 1fr;
  }
}

.hero-actions {
  align-items: flex-end;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.theme-toggle {
  min-height: 38px;
  padding: 0 14px;
}

:root[data-theme="light"] body {
  background:
    linear-gradient(180deg, #fff2d8 0%, #f6e0bb 40%, #efe0c8 100%);
}

:root[data-theme="light"] .bg-stage {
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 174, 72, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 214, 136, 0.28) 0%, rgba(255, 214, 136, 0.12) 20%, rgba(255, 255, 255, 0) 42%);
}

:root[data-theme="light"] .cloud-layer {
  background:
    radial-gradient(ellipse at 18% 50%, rgba(112, 80, 52, 0.78), rgba(112, 80, 52, 0) 48%),
    radial-gradient(ellipse at 42% 44%, rgba(78, 58, 44, 0.84), rgba(78, 58, 44, 0) 46%),
    radial-gradient(ellipse at 66% 56%, rgba(132, 86, 38, 0.72), rgba(132, 86, 38, 0) 44%),
    radial-gradient(ellipse at 84% 46%, rgba(201, 112, 24, 0.46), rgba(201, 112, 24, 0) 38%),
    radial-gradient(ellipse at 56% 48%, rgba(255, 164, 56, 0.34), rgba(255, 164, 56, 0) 40%);
  filter: blur(14px);
  mix-blend-mode: multiply;
  opacity: 1;
}

:root[data-theme="light"] .cloud-back {
  opacity: 0.74;
}

:root[data-theme="light"] .cloud-mid {
  opacity: 0.88;
}

:root[data-theme="light"] .cloud-front {
  opacity: 1;
}

:root[data-theme="light"] .bg-grid {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(126, 82, 30, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 82, 30, 0.08) 1px, transparent 1px);
}

:root[data-theme="light"] .bg-vignette {
  background:
    radial-gradient(circle at center, transparent 42%, rgba(122, 82, 34, 0.08) 78%, rgba(122, 82, 34, 0.16) 100%);
}

:root[data-theme="light"] .hero,
:root[data-theme="light"] .search-panel,
:root[data-theme="light"] .result-card,
:root[data-theme="light"] .empty {
  background: linear-gradient(180deg, rgba(255, 250, 239, 0.96), rgba(250, 235, 211, 0.96));
}

:root[data-theme="light"] .stats {
  color: #4d3420;
}

:root[data-theme="light"] input,
:root[data-theme="light"] select {
  background: rgba(255, 252, 246, 0.96);
}

:root[data-theme="light"] .kv-grid div,
:root[data-theme="light"] .group-card {
  background: rgba(116, 75, 28, 0.06);
}

@media (max-width: 760px) {
  .hero-actions {
    justify-items: stretch;
  }
}
