:root {
  color-scheme: dark;
  --bg: #111315;
  --surface: #191c1e;
  --surface-2: #202426;
  --line: #353a3c;
  --line-strong: #50575a;
  --text: #f1eee7;
  --muted: #a7aca9;
  --jade: #42bd8b;
  --jade-dark: #23795b;
  --class-color: #00ff98;
  --gold: #d8ac50;
  --gold-light: #f1d28c;
  --danger: #bf665e;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
}

button, input, select, textarea { font: inherit; }
button { letter-spacing: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 94px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(220px, auto) minmax(280px, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 22px 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 19, 21, .96);
  backdrop-filter: blur(10px);
}

.identity { grid-row: 1; grid-column: 1; display: flex; align-items: center; min-width: 0; }
.header-center { display: contents; }
.header-specialization-context { grid-row: 1; grid-column: 2; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left; }
.header-specialization-context > div { min-width: 0; }
.header-specialization-context h1 { margin: 0; overflow: hidden; font-size: 18px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.header-specialization-context p { margin: 2px 0 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.specialization-picker { position: relative; flex: 0 0 154px; }
.specialization-trigger {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 9px 5px 6px;
  border: 1px solid var(--class-color);
  border-radius: 5px;
  color: var(--text);
  background: var(--surface-2);
  cursor: pointer;
  text-align: left;
}
.specialization-trigger:focus-visible {
  outline: 2px solid var(--class-color);
  outline-offset: 2px;
}
.specialization-trigger:disabled { opacity: .6; cursor: wait; }
.specialization-trigger img,
.specialization-option img {
  width: 26px;
  height: 26px;
  border: 1px solid var(--class-color);
  border-radius: 5px;
  object-fit: contain;
  background: #111817;
}
.specialization-trigger span:not(.specialization-chevron) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.specialization-chevron { color: var(--muted); font-size: 13px; }
.specialization-menu {
  position: fixed;
  z-index: 80;
  width: 164px;
  display: block;
  overflow: visible;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #15191a;
  box-shadow: 0 12px 28px rgb(0 0 0 / 48%);
}
.specialization-menu[hidden] { display: none; }
.specialization-class-list,
.specialization-spec-list {
  overflow-y: auto;
  padding: 4px;
}
.specialization-class-list { max-height: min(72vh, 720px); background: #111516; }
.specialization-spec-list {
  position: absolute;
  top: calc(4px + var(--active-class-index) * 40px);
  left: calc(100% + 6px);
  width: 246px;
  max-height: min(60vh, 350px);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #15191a;
  box-shadow: 0 12px 28px rgb(0 0 0 / 48%);
}
.specialization-class-option {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.specialization-class-option:hover,
.specialization-class-option:focus-visible { outline: 0; color: var(--text); background: var(--surface-2); }
.specialization-class-option.is-active {
  border-left-color: var(--picker-class-color);
  color: var(--text);
  background: color-mix(in srgb, var(--picker-class-color) 13%, transparent);
}
.specialization-class-option img {
  width: 28px;
  height: 28px;
  border: 1px solid var(--picker-class-color);
  border-radius: 5px;
  object-fit: contain;
  background: #111817;
}
.specialization-class-option span,
.specialization-option span:not(.specialization-option-check) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.specialization-option {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.specialization-option:hover,
.specialization-option:focus-visible { outline: 0; background: var(--surface-2); }
.specialization-option.is-selected {
  box-shadow: inset 2px 0 var(--class-color);
  background: rgba(255, 255, 255, .07);
}
.specialization-option .specialization-role-icon {
  width: 24px;
  height: 24px;
  justify-self: end;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.spec-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 3px;
  border: 1px solid var(--class-color);
  border-radius: 7px;
  object-fit: contain;
  background: #111817;
}

.spec-mark[data-specialization="restoration-druid"] {
  background: #172416;
}

.view-tabs, .hero-selector, .language-selector {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101214;
}

.view-tabs { grid-row: 2; grid-column: 1 / -1; width: 100%; justify-self: stretch; }
.view-tabs .tab { flex: 1; }

.tab, .hero-option, .language-option {
  min-height: 34px;
  padding: 6px 16px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.tab:hover, .hero-option:hover, .language-option:hover { color: var(--text); background: var(--surface-2); }
.tab.is-active, .hero-option.is-active, .language-option.is-active { color: #101713; background: var(--jade); font-weight: 700; }

.language-option { min-height: 30px; padding: 4px 10px; font-size: 12px; }

.header-actions { grid-row: 1; grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 12px; }
.guide-home-link {
  display: inline-flex;
  height: 32px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface-1);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.guide-home-link:hover,
.guide-home-link:focus-visible { color: var(--text); border-color: var(--class-color); outline: 0; }
.version-picker {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.version-picker select {
  min-width: 154px;
  height: 32px;
  padding: 0 28px 0 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: var(--surface-1);
  font: inherit;
  cursor: pointer;
}
.version-picker select:focus-visible { outline: 1px solid var(--class-color); outline-offset: 2px; }
.point-summary { display: flex; gap: 10px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.point-summary strong { color: var(--gold-light); font-size: 14px; }

.reset-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--text);
  background: var(--surface-2);
  font-size: 21px;
  cursor: pointer;
}
.reset-button:hover { border-color: var(--gold); color: var(--gold-light); }

.apply-button {
  min-height: 38px;
  padding: 6px 16px;
  border: 1px solid var(--jade-dark);
  border-radius: 5px;
  color: #0d1713;
  background: var(--jade);
  font-weight: 700;
  cursor: pointer;
}
.apply-button:hover:not(:disabled) { background: #62d3a5; }
.apply-button:disabled { border-color: var(--line); color: var(--muted); background: var(--surface-2); cursor: default; }
.apply-button.has-pending { box-shadow: 0 0 0 2px rgba(216, 172, 80, .3); }

.stats-toggle-button {
  width: 100%;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--text);
  background: var(--surface-2);
  cursor: pointer;
}
.stats-toggle-button:hover:not(:disabled), .stats-toggle-button[aria-expanded="true"] { border-color: var(--gold); color: var(--gold-light); }
.stats-toggle-button:disabled { color: #747a78; border-color: var(--line); cursor: not-allowed; }

main { padding: 14px; }
.simulator-anchor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
  background: #15181a;
}
.simulator-anchor.has-results { grid-template-columns: minmax(310px, 350px) minmax(0, 1fr); align-items: start; }
.simulator-control { grid-column: 2; padding: 16px; border-inline: 1px solid var(--line); }
.simulator-anchor.has-results .simulator-control { grid-column: 1; position: sticky; top: 72px; border-left: 0; }
.simulator-control > p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: center; }
.simulation-status-row { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 24px; margin-top: 8px; }
.simulation-status-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: center; }
.simulation-confidence { flex: 0 0 auto; padding: 3px 7px; border: 1px solid #59616a; border-radius: 4px; color: #d7dce0; background: #20252a; font-size: 12px; line-height: 1.2; }
.simulation-confidence.confidence-live-verified { border-color: #38966f; color: #9ee8c5; background: #17352b; }
.simulation-confidence.confidence-live-sampled { border-color: #b9923c; color: #f0d28b; background: #382f1a; }
.simulation-confidence.confidence-mechanics-modeled { border-color: #a96357; color: #efb2a8; background: #38231f; }
.stats-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.stats-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stats-panel-heading h2 { margin: 0; font-size: 17px; }
.stats-panel > p { margin: 6px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.stats-reset-button {
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.stats-reset-button:hover { color: var(--text); border-color: var(--gold); }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 11px; }
.stats-grid label { min-width: 0; color: var(--muted); font-size: 12px; }
.stats-grid input[type="number"],
.stats-grid select {
  width: 100%;
  height: 34px;
  display: block;
  margin-top: 5px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  color: var(--text);
  background: #111416;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.stats-grid select { cursor: pointer; }
.stats-grid input[type="number"]:focus,
.stats-grid select:focus { border-color: var(--jade); }
.stat-conversion-preview {
  margin: 0;
  padding: 8px 9px;
  border-left: 2px solid var(--gold);
  color: #c9c6ba;
  background: #111416;
  font-size: 12px;
  line-height: 1.5;
}
.stats-grid .stat-option { min-height: 26px; display: flex; align-items: center; gap: 7px; color: var(--text); }
.stat-option input { width: 16px; height: 16px; accent-color: var(--jade); }
.restoration-sim-options {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #315d4b;
  border-radius: 4px;
  background: #101916;
}
.restoration-sim-options[hidden] { display: none; }
.mastery-mechanics-button {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--gold-light);
  background: #171a1b;
  cursor: pointer;
}
.mastery-mechanics-button:hover { border-color: var(--gold); }
.mechanics-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  background: #15191a;
  box-shadow: 0 18px 60px rgb(0 0 0 / 55%);
}
.mechanics-dialog::backdrop { background: rgb(4 8 7 / 72%); }
.mechanics-dialog > header { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.mechanics-dialog h2 { margin: 0; font-size: 17px; }
.mechanics-dialog > header button { width: 30px; height: 30px; border: 0; color: var(--muted); background: transparent; font-size: 22px; cursor: pointer; }
.mechanics-dialog > header button:hover { color: var(--text); }
.mechanics-dialog-body { padding: 14px 15px 16px; color: #d2d8d5; font-size: 13px; line-height: 1.6; }
.mechanics-dialog-body p { margin: 0 0 12px; }
.mechanics-dialog-body p:last-child { margin: 12px 0 0; color: var(--muted); }
.mechanics-dialog table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mechanics-dialog th, .mechanics-dialog td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.mechanics-dialog th:first-child, .mechanics-dialog td:first-child { text-align: left; }
.stats-apply-button {
  min-height: 38px;
  border: 1px solid var(--jade-dark);
  border-radius: 4px;
  color: #08140f;
  background: var(--jade);
  font-weight: 700;
  cursor: pointer;
}
.stats-apply-button:hover { background: #62d3a5; }

.healing-results { grid-column: 2; min-width: 0; overflow: hidden; border-left: 1px solid var(--line); background: var(--surface); }
.healing-results > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.healing-results h2 { margin: 0; font-size: 17px; }
.healing-results-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 14px; }
.result-mode-control { display: inline-grid; grid-template-columns: repeat(3, minmax(54px, auto)); border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.result-mode-control button { min-height: 30px; padding: 4px 11px; border: 0; border-right: 1px solid var(--line); color: var(--muted); background: #101315; cursor: pointer; font: inherit; font-size: 12px; }
.result-mode-control button:last-child { border-right: 0; }
.result-mode-control button:hover { color: var(--text); background: #1a1e20; }
.result-mode-control button.is-active { color: #09130f; background: var(--jade); font-weight: 700; }
.result-mastery-control { display: inline-flex; align-items: center; gap: 8px; color: #cbd7d1; font-size: 13px; }
.result-mastery-control[hidden] { display: none; }
.result-mastery-control select { height: 30px; min-width: 72px; padding: 0 26px 0 9px; border: 1px solid #3b765e; border-radius: 4px; color: var(--text); background: #0c1512; font: inherit; }
.result-mastery-control select:focus { border-color: var(--jade); outline: none; box-shadow: 0 0 0 2px rgb(72 192 145 / 16%); }
#healing-results-meta { color: var(--muted); font-size: 12px; line-height: 1.5; text-align: right; }
.healing-result-columns { display: grid; grid-template-columns: 1fr 1fr; }
.healing-result-columns > section + section { border-left: 1px solid var(--line); }
.healing-result-columns h3 { margin: 0; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--gold-light); font-size: 14px; }
.healing-result-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); }
.healing-result-row { min-height: 78px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 11px; background: var(--surface); }
.healing-result-row img { width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 4px; }
.healing-result-row h4 { margin: 0 0 6px; font-size: 15px; }
.healing-metrics { display: grid; gap: 7px; color: #d5ddd9; font-size: 13px; line-height: 1.45; }
.result-metric-group { display: flex; flex-wrap: wrap; gap: 5px 12px; padding-left: 9px; border-left: 2px solid var(--jade); }
.result-metric-group > b { width: 100%; color: #8ce7c4; font-size: 11px; font-weight: 700; }
.result-metric-group strong { color: #86d9b5; font-variant-numeric: tabular-nums; }
.result-metric-group--damage { border-left-color: #d77f57; }
.result-metric-group--damage > b { color: #efa27d; }
.result-metric-group--damage strong { color: #f0a47e; }
.result-target-control { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.result-target-control input { width: 72px; height: 28px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 8px; background: #0c1312; color: var(--text); font: inherit; font-variant-numeric: tabular-nums; }
.result-target-control input:focus { border-color: var(--jade); outline: none; box-shadow: 0 0 0 2px rgb(72 192 145 / 16%); }
.healing-result-note { grid-column: 1 / -1; margin: -3px 0 0 52px; color: var(--muted); font-size: 9px; }
.healing-calculation { grid-column: 1 / -1; margin-left: 52px; color: var(--muted); font-size: 13px; }
.healing-calculation summary { width: max-content; color: var(--gold-light); cursor: pointer; user-select: none; }
.healing-calculation--healing summary { color: #8ce7c4; }
.healing-calculation--damage summary { color: #efa27d; }
.healing-calculation ol { margin: 8px 0 0; padding-left: 20px; line-height: 1.58; }
.healing-calculation li + li { margin-top: 5px; }
.calculation-talent {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 1px 5px;
  border-bottom: 1px solid #67d8b0;
  outline: 0;
  color: #8ce7c4;
  background: rgba(38, 102, 79, .2);
  cursor: pointer;
  font-weight: 700;
}
.calculation-talent:hover, .calculation-talent:focus-visible {
  color: #d8fff0;
  background: rgba(58, 144, 110, .34);
  box-shadow: 0 0 0 1px rgba(103, 216, 176, .45);
}
.talent-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  margin-bottom: 10px;
}
.talent-toolbar .search-field { width: min(420px, 100%); }
.talent-spec-icon {
  position: absolute;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translateX(-50%);
  object-fit: contain;
}
#talent-search-count { color: var(--gold-light); font-size: 12px; }
.clear-linked-button {
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid #4cae9f;
  border-radius: 4px;
  color: #a8eee0;
  background: #17312c;
  cursor: pointer;
}
.clear-linked-button:hover, .clear-linked-button:focus-visible {
  outline: 1px solid #83e0d1;
  outline-offset: 1px;
  color: #071511;
  background: #63d9c6;
}
.interaction-hint { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.interaction-hint kbd {
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 3px;
  color: var(--text);
  background: var(--surface-2);
  font: inherit;
}
.tree-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #171a1c;
  background-image: linear-gradient(#222729 1px, transparent 1px), linear-gradient(90deg, #222729 1px, transparent 1px);
  background-size: 40px 40px;
}
.talent-footer {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #15181a;
}
.tree-layout:has(+ .talent-footer) { border-radius: 6px 6px 0 0; }
.recommended-loadout {
  width: min(240px, 24vw);
  height: 36px;
  padding: 5px 30px 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  background: #101315;
}
.recommended-loadout:disabled { color: var(--muted); cursor: default; }
.loadout-string {
  width: min(430px, 40vw);
  height: 36px;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: 0;
  color: var(--text);
  background: #101315;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 11px;
}
.loadout-string:focus { border-color: var(--jade); }
.loadout-button {
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  background: var(--surface-2);
  cursor: pointer;
}
.loadout-button:hover, .loadout-button:focus-visible { border-color: var(--gold); color: var(--gold-light); }
.talent-footer .apply-button { min-height: 36px; margin-left: 2px; }
.loadout-status, .config-status { font-size: 11px; }
.loadout-status { color: var(--muted); }
.loadout-status.is-error, .config-status { color: #ef9a91; }
.config-status { margin-left: auto; }
.tree-panel { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(23, 26, 28, .72); }
.tree-panel:last-child { border-right: 0; }

.panel-header {
  height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: start;
  gap: 14px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(29, 32, 34, .96);
}
.panel-header h2 { margin: 0; font-size: 15px; letter-spacing: 0; }
.panel-points { margin-left: auto; color: var(--gold-light); font-size: 13px; font-variant-numeric: tabular-nums; }
.hero-header { row-gap: 6px; }
.hero-header .hero-selector { grid-column: 1 / -1; width: 100%; margin-left: 0; justify-self: center; }
.hero-header .panel-points { margin-left: 0; justify-self: end; }
.hero-option { position: relative; min-height: 30px; padding: 4px 12px; font-size: 12px; }
.hero-match-badge, .hero-linked-badge {
  min-width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  margin-left: 5px;
  padding: 0 4px;
  border-radius: 8px;
  color: #15110a;
  background: var(--gold-light);
  font-size: 9px;
  line-height: 1;
}
.hero-linked-badge { color: #061713; background: #63d9c6; }

.tree-scroll { flex: 1; min-width: 0; overflow: hidden; }
.specialization-aura-panel {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: rgba(18, 22, 22, .94);
}
.specialization-aura-panel > header {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
}
.specialization-aura-panel h3 { margin: 0; font-size: 12px; }
.specialization-aura-panel header span { color: var(--muted); font-size: 9px; font-family: Consolas, "Cascadia Mono", monospace; }
.specialization-aura-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.specialization-aura-row {
  min-width: 0;
  min-height: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  align-items: center;
  padding: 9px 10px;
  border: 0;
  border-right: 1px solid rgba(73, 80, 81, .45);
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: help;
}
.specialization-aura-row:last-child { border-right: 0; }
.specialization-aura-row:hover,
.specialization-aura-row:focus-visible { outline: 1px solid var(--class-color); outline-offset: -1px; background: rgba(255, 255, 255, .035); }
.specialization-aura-row > span { min-width: 0; font-size: 12px; }
.specialization-aura-row strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.specialization-aura-row small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; line-height: 1.45; }
.specialization-aura-row.is-healing strong { color: #70d7aa; }
.specialization-aura-row.is-damage strong { color: #ed9b88; }
.specialization-aura-row.is-defense strong,
.specialization-aura-row.is-mastery strong,
.specialization-aura-row.is-avoidance strong { color: #8bc7e8; }
.specialization-aura-row.is-threat strong { color: #e8b56d; }
.specialization-aura-row.is-tuning strong { color: #d9b8f0; }
.tooltip-description.specialization-aura-description { font-size: 14px; line-height: 1.6; }
.specialization-aura-effect-list { margin: 9px 0 0; padding-left: 18px; color: #d4dbd7; font-size: 13px; line-height: 1.55; }
.specialization-aura-detail-heading { margin: 12px 0 0; color: var(--gold-light); font-size: 13px; }
.aura-version-changes { margin-top: 12px; padding-top: 10px; border-top: 1px solid #625a42; }
.aura-version-changes h4 { margin: 0 0 5px; color: var(--gold-light); font-size: 12px; }
.aura-version-changes .version-change-row > p { color: #e2d6b9; font-size: 12px; }
.hero-scroll {
  --hero-icon-size: 180px;
  position: relative;
}
.hero-icon-anchor {
  position: absolute;
  z-index: 4;
  left: 50%;
  width: var(--hero-icon-size);
  height: var(--hero-icon-size);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-icon-anchor[hidden] { display: none; }
.hero-icon-anchor img {
  width: var(--hero-icon-size);
  height: var(--hero-icon-size);
  object-fit: contain;
}
.hero-icon-anchor img.is-void-variant { filter: hue-rotate(82deg) saturate(1.55) brightness(.82); }
.set-bonus-panel {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: rgba(17, 21, 21, .92);
}
.set-bonus-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
}
.set-bonus-kicker { display: block; color: var(--muted); font-size: 9px; }
.set-bonus-header h3 { margin: 2px 0 0; font-size: 12px; letter-spacing: 0; }
.set-piece-selector { display: flex; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.set-piece-selector button {
  min-width: 42px;
  height: 27px;
  padding: 0 7px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  color: var(--muted);
  background: #15191a;
  cursor: pointer;
  font-size: 10px;
}
.set-piece-selector button:last-child { border-right: 0; }
.set-piece-selector button:hover, .set-piece-selector button:focus-visible { color: var(--gold-light); outline: 0; background: #242727; }
.set-piece-selector button.is-active { color: #071511; background: #63d9c6; font-weight: 700; }
.set-bonus-list { border-top: 1px solid var(--line); }
.set-bonus-row {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  padding: 9px;
  border: 0;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(73, 80, 81, .45);
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.set-bonus-row:last-child { border-bottom: 0; }
.set-bonus-row:hover, .set-bonus-row:focus-visible { outline: 0; background: rgba(255, 255, 255, .035); }
.set-bonus-row.is-active { border-left-color: var(--gold); background: rgba(163, 130, 62, .1); }
.set-bonus-row img { width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 3px; filter: grayscale(.72); opacity: .62; }
.set-bonus-row.is-active img { border-color: var(--gold); filter: none; opacity: 1; }
.set-bonus-row > span:not(.set-bonus-threshold) { min-width: 0; }
.set-bonus-row strong, .set-bonus-row small { display: block; }
.set-bonus-row strong { font-size: 12px; line-height: 1.35; }
.set-bonus-row small { margin-top: 3px; color: #b9c2be; font-size: 11px; line-height: 1.45; white-space: normal; }
.set-bonus-threshold { margin-top: 1px; color: var(--gold-light); font-size: 11px; font-variant-numeric: tabular-nums; }
.tree-stage {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: transparent;
}

.tree-edges { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tree-edge { stroke: #3f4548; stroke-width: 3; stroke-linecap: round; }
.tree-edge.is-open { stroke: var(--jade-dark); }
.tree-edge.is-selected { stroke: var(--gold); }
.tree-edge.is-invalid { stroke: var(--danger); stroke-dasharray: 5 4; }

.gate-line {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 2;
  height: 1px;
  border-top: 1px dashed #665b43;
  color: #bca671;
  font-size: 11px;
  pointer-events: auto;
}
.gate-line span { position: absolute; right: 5px; top: -16px; background: #171a1c; padding-left: 7px; }

.talent-node {
  position: absolute;
  z-index: 4;
  width: 46px;
  height: 46px;
}
.talent-node.is-choice { width: 58px; }

.node-button, .choice-half {
  position: relative;
  height: 46px;
  overflow: hidden;
  padding: 0;
  border: 3px solid #4c5254;
  color: var(--text);
  background: #25292b;
  cursor: pointer;
  filter: saturate(.35) brightness(.62);
}
.node-button { width: 46px; border-radius: 5px; }
.node-button.is-passive { border-radius: 50%; }
.node-button img, .choice-half img { width: 100%; height: 100%; object-fit: cover; display: block; }
.node-button:hover, .choice-half:hover, .node-button:focus-visible, .choice-half:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.talent-node.is-available .node-button, .talent-node.is-available .choice-half { border-color: var(--jade); filter: saturate(.8) brightness(.85); }
.talent-node.is-selected .node-button, .choice-half.is-selected { border-color: var(--gold); filter: none; box-shadow: 0 0 0 1px #4f3e1c; }
.talent-node.is-applied .node-button, .talent-node.is-applied .choice-half.is-selected { box-shadow: 0 0 0 2px var(--jade-dark); }
.talent-node.is-granted .node-button, .talent-node.is-granted .choice-half { border-color: var(--gold-light); }
.talent-node.is-linked-highlight::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border: 2px dashed #63d9c6;
  border-radius: 9px;
  box-shadow: 0 0 12px rgba(99, 217, 198, .32);
  pointer-events: none;
}

.choice-wrap { display: flex; width: 58px; height: 46px; border-radius: 5px; overflow: visible; }
.choice-half { width: 29px; border-radius: 0; }
.choice-half:first-child { border-radius: 5px 0 0 5px; border-right-width: 1px; }
.choice-half:last-child { border-radius: 0 5px 5px 0; border-left-width: 1px; }
.choice-half.is-passive-shape:first-child { border-radius: 23px 0 0 23px; }
.choice-half.is-passive-shape:last-child { border-radius: 0 23px 23px 0; }
.choice-half.is-selected {
  z-index: 2;
  border-color: var(--gold) !important;
  filter: none !important;
  box-shadow: 0 0 0 2px #5d451a, 0 0 14px rgba(216, 172, 80, .65) !important;
  animation: choice-selected-pop 180ms ease-out;
}
.talent-node.is-refund-invalid .node-button,
.talent-node.is-refund-invalid .choice-half.is-selected {
  border-color: #e06f65 !important;
  filter: saturate(.72) brightness(.72) !important;
  box-shadow: 0 0 0 2px #6e2926, 0 0 14px rgba(224, 111, 101, .48) !important;
  animation: invalid-node-pulse 1.6s ease-in-out infinite;
}
.talent-node.is-refund-invalid .rank-badge { border-color: #9d4b45; color: #ffb2aa; }
.talent-node.is-apex .rank-badge {
  right: 50%;
  min-width: max-content;
  transform: translateX(50%);
  color: #fff1c6;
  border-color: #9b8143;
  background: #17150f;
  font-size: 9px;
  letter-spacing: 0;
}
@keyframes invalid-node-pulse {
  0%, 100% { box-shadow: 0 0 0 2px #6e2926, 0 0 8px rgba(224, 111, 101, .28); }
  50% { box-shadow: 0 0 0 2px #a0443d, 0 0 16px rgba(224, 111, 101, .58); }
}
.choice-half.is-linked-highlight { outline: 2px dashed #63d9c6; outline-offset: 3px; }
@keyframes choice-selected-pop {
  from { transform: scale(.9); }
  to { transform: scale(1); }
}

.talent-match-badge {
  position: absolute;
  left: -8px;
  top: -10px;
  z-index: 9;
  min-width: 24px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 1px solid #ffe1a0;
  border-radius: 8px 8px 8px 2px;
  color: #181107;
  background: #f1b84b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
  font-size: 9px;
  font-weight: 800;
  pointer-events: none;
}

.rank-badge {
  position: absolute;
  right: -7px;
  bottom: -8px;
  z-index: 7;
  min-width: 23px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 1px solid #665a3b;
  border-radius: 4px;
  color: var(--gold-light);
  background: #111315;
  font-size: 10px;
  font-weight: 700;
}

.skills-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.catalog-toolbar { display: grid; gap: 10px; margin-bottom: 14px; }
.catalog-search-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.catalog-search-row > span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.catalog-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) repeat(3, minmax(150px, auto)) auto;
  gap: 7px;
  align-items: stretch;
}
.catalog-filters select,
.catalog-filters label,
.filter-reset {
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  font-size: 11px;
}
.catalog-filters select { padding: 0 8px; }
.catalog-filters label { display: flex; align-items: center; gap: 5px; padding: 0 7px; color: var(--muted); white-space: nowrap; }
.catalog-filters label input { width: 42px; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; font-variant-numeric: tabular-nums; }
.catalog-filters select:focus-visible,
.catalog-filters label:focus-within,
.filter-reset:focus-visible { outline: 1px solid var(--jade); outline-offset: 1px; }
.filter-reset { padding: 0 10px; color: var(--gold-light); cursor: pointer; }
.filter-reset:hover { border-color: var(--gold); background: var(--surface-2); }
.search-field { width: min(420px, 100%); display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 5px; padding: 0 11px; background: var(--surface); }
.search-field span { color: var(--muted); font-size: 20px; }
.search-field input { width: 100%; height: 42px; border: 0; outline: 0; color: var(--text); background: transparent; }
#skill-count { color: var(--muted); font-size: 13px; white-space: nowrap; }

.skill-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }

.global-search-view {
  max-width: 1400px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
}
.global-search-header {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 25px;
  border-bottom: 1px solid var(--line);
  background: #202426;
}
.global-search-header h2 { margin: 4px 0 7px; font-size: 24px; }
.global-search-header p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.global-search-toolbar { display: grid; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.global-search-query-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.global-search-field { width: min(680px, 100%); }
#global-search-count, #global-result-limit { color: var(--muted); font-size: 12px; }
.global-search-filters { display: grid; grid-template-columns: repeat(6, minmax(125px, 1fr)) auto; gap: 7px; }
.global-search-filters select,
.global-search-filters .filter-reset {
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: var(--surface-2);
  font: inherit;
  font-size: 11px;
}
.global-search-filters select { padding: 0 7px; }
.comparison-workspace { border-bottom: 1px solid var(--line); background: #181c1d; }
.comparison-workspace > header,
.global-result-section > header,
.global-relation-panel > header {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
}
.comparison-workspace h3,
.global-result-section h3,
.global-relation-panel h3 { margin: 2px 0 0; font-size: 14px; }
.comparison-actions { display: flex; align-items: center; gap: 8px; }
.comparison-actions span { color: var(--muted); font-size: 10px; }
.comparison-actions button,
.global-relation-panel > header button {
  min-width: 34px;
  height: 29px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--gold-light);
  background: var(--surface);
  cursor: pointer;
}
.comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.comparison-column { min-width: 0; padding-bottom: 12px; border-top: 3px solid var(--result-color); background: var(--surface); }
.comparison-column > header { min-height: 65px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 28px; align-items: center; gap: 9px; padding: 10px 11px; border-bottom: 1px solid var(--line); }
.comparison-column > header img { width: 38px; height: 38px; border: 1px solid var(--result-color); border-radius: 4px; }
.comparison-column > header strong,
.comparison-column > header small { display: block; }
.comparison-column > header strong { color: var(--gold-light); font-size: 12px; }
.comparison-column > header small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.comparison-column > header button { width: 28px; height: 28px; padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 18px; }
.comparison-facts { border-bottom: 1px solid var(--line); }
.comparison-facts > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; padding: 6px 10px; border-bottom: 1px solid rgba(72, 79, 80, .38); font-size: 11px; }
.comparison-facts > div:last-child { border-bottom: 0; }
.comparison-facts span { color: var(--muted); }
.comparison-facts strong { color: #d8dedb; font-weight: 500; overflow-wrap: anywhere; }
.comparison-description,
.comparison-components,
.comparison-mechanics { padding: 9px 10px 5px; border-bottom: 1px solid rgba(72, 79, 80, .38); }
.comparison-description > span,
.comparison-components > span,
.comparison-mechanics > span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.comparison-description p,
.comparison-mechanics p { margin: 6px 0 0; color: #cbd2ce; font-size: 10px; line-height: 1.55; }
.comparison-components p { margin: 6px 0 0; padding-left: 7px; border-left: 2px solid var(--result-color); color: #cbd2ce; font-size: 10px; line-height: 1.45; }
.comparison-mechanics p { padding-left: 7px; border-left: 2px solid #55766a; }
.comparison-mechanics small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }
.comparison-tags, .global-result-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.comparison-tags { padding: 7px 10px 0; }
.comparison-tags span, .global-result-tags span { padding: 2px 5px; border: 1px solid #40524c; border-radius: 3px; color: #a7d9c8; background: #17231f; font-size: 8px; }
.cross-build-section { padding: 0; background: #181c1d; }
.cross-build-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.cross-build-header h2 { margin: 0 0 5px; color: #dce2de; font-size: 16px; }
.cross-build-header p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.cross-build-identity { flex: 0 0 auto; padding: 5px 7px; border: 1px solid #3b4643; border-radius: 3px; color: #9ca8a3; background: #151819; font-family: Consolas, monospace; font-size: 9px; }
.cross-build-controls { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) auto auto; align-items: end; gap: 8px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.cross-build-controls label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.cross-build-controls select,
.cross-build-controls button { min-height: 34px; border: 1px solid #3f4946; border-radius: 3px; color: #d9dfdc; background: #171b1c; font-size: 11px; }
.cross-build-controls select { width: 100%; padding: 0 9px; }
.cross-build-controls button { padding: 0 11px; cursor: pointer; }
.cross-build-controls button:hover { border-color: var(--class-color); color: #fff; }
.cross-build-controls button:disabled { cursor: default; opacity: .45; }
.cross-build-diff-summary { display: flex; flex-wrap: wrap; gap: 6px; min-height: 41px; align-items: center; padding: 8px 22px; border-bottom: 1px solid var(--line); }
.cross-build-diff-summary span { padding: 4px 7px; border: 1px solid #46504d; border-radius: 3px; color: #cdd4d0; background: #202526; font-size: 10px; }
.cross-build-diff-summary .is-numeric { border-color: #9c793c; color: #f0cb80; }
.cross-build-diff-summary .is-mechanic { border-color: #4e8175; color: #8ed4c2; }
.cross-build-diff-summary .is-structure { border-color: #7c596e; color: #d8a4c4; }
.cross-build-diff-summary .is-localization { border-color: #536f8e; color: #9cc4ea; }
.cross-build-diff-summary .is-evidence { border-color: #626c53; color: #bacb94; }
.cross-build-diff-summary .is-relation { border-color: #826151; color: #e0ad8f; }
.cross-build-diff-summary .is-unchanged { border-color: #416957; color: #91d2b1; }
.cross-build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cross-build-grid .comparison-column > header { grid-template-columns: 42px minmax(0, 1fr); }
.cross-build-grid .comparison-column > header img { width: 42px; height: 42px; }
.cross-build-grid .comparison-column > header strong { font-size: 13px; }
.cross-build-grid .comparison-column > header small,
.cross-build-grid .comparison-description p,
.cross-build-grid .comparison-mechanics p,
.cross-build-grid .comparison-components p,
.cross-build-grid .comparison-facts > div { font-size: 11px; }
.cross-build-grid .changed-numeric .comparison-components,
.cross-build-grid .changed-numeric .comparison-facts { box-shadow: inset 3px 0 #9c793c; }
.cross-build-grid .changed-mechanic .comparison-description,
.cross-build-grid .changed-mechanic .comparison-mechanics { box-shadow: inset 3px 0 #4e8175; }
.cross-build-grid .changed-structure > header { box-shadow: inset 3px 0 #7c596e; }
.cross-build-grid .changed-localization .comparison-description { border-left: 3px solid #536f8e; }
.cross-build-grid .changed-evidence .comparison-facts { border-right: 3px solid #626c53; }
.cross-build-relation-delta { padding: 12px 22px 16px; border-top: 1px solid var(--line); }
.cross-build-relation-delta strong { display: block; margin-bottom: 7px; color: #d8dedb; font-size: 12px; }
.cross-build-relation-delta p { margin: 3px 0; color: #adb7b2; font-size: 10px; line-height: 1.45; }
.cross-build-relation-delta small { color: var(--muted); font-size: 9px; }
.global-search-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.global-result-section { min-width: 0; }
.global-search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.global-result-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-left: 3px solid var(--result-color); background: var(--surface); }
.global-result-row:hover { background: var(--surface-2); }
.global-result-main { min-width: 0; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.global-result-main:focus-visible { outline: 1px solid var(--jade); outline-offset: -2px; }
.global-result-main > img { width: 46px; height: 46px; border: 1px solid var(--result-color); border-radius: 4px; }
.global-result-copy, .global-result-heading { min-width: 0; display: block; }
.global-result-heading strong, .global-result-heading small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-result-heading strong { color: #e5e2dc; font-size: 13px; }
.global-result-heading small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.global-result-description { min-height: 32px; display: -webkit-box; margin-top: 5px; overflow: hidden; color: #b9c1bd; font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.global-result-match { display: -webkit-box; margin-top: 5px; overflow: hidden; color: #9fb9ae; font-size: 10px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.global-result-match strong { color: #8fcdb7; font-weight: 600; }
.global-result-tags { margin-top: 6px; }
.global-result-actions { width: 70px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.global-result-actions button { flex: 1; min-height: 27px; padding: 3px 5px; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }
.global-result-actions button:last-child { border-bottom: 0; }
.global-result-actions button:hover, .global-result-actions button:focus-visible { outline: 0; color: var(--gold-light); background: #252b2a; }
.global-result-actions button.is-active { color: #a4e3c7; background: #17251f; }
.global-relation-panel { position: sticky; top: 10px; min-width: 0; max-height: calc(100vh - 20px); overflow: auto; border-left: 1px solid var(--line); background: #171a1b; }
#global-relation-origin { display: grid; gap: 3px; padding: 12px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--class-color); }
#global-relation-origin strong { color: var(--gold-light); font-size: 13px; }
#global-relation-origin span { color: var(--muted); font-size: 9px; }
.global-relation-list { display: grid; gap: 1px; background: var(--line); }
.global-relation-list button { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 10px; border: 0; color: inherit; background: var(--surface); text-align: left; cursor: pointer; }
.global-relation-list button:hover, .global-relation-list button:focus-visible { outline: 0; background: var(--surface-2); }
.global-relation-list img { width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 3px; }
.global-relation-list strong, .global-relation-list small { display: block; }
.global-relation-list strong { overflow: hidden; color: #dce1de; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.global-relation-list small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.35; overflow-wrap: anywhere; }
.global-relation-empty { margin: 0; padding: 14px; color: var(--muted); background: var(--surface); font-size: 10px; line-height: 1.5; }
.global-search-empty { grid-column: 1 / -1; min-height: 180px; display: grid; place-content: center; gap: 6px; padding: 28px; color: var(--muted); background: var(--surface); text-align: center; }
.global-search-empty strong { color: #d7ddd9; font-size: 14px; }
.global-search-empty span { font-size: 11px; }
.global-search-more-row { padding: 12px; border-top: 1px solid var(--line); background: #181c1d; text-align: center; }
.global-search-more-row button { min-width: 150px; height: 34px; border: 1px solid #397b62; border-radius: 4px; color: #a9e1ca; background: #16231e; cursor: pointer; font: inherit; font-size: 11px; }
.global-search-more-row button:hover,
.global-search-more-row button:focus-visible { outline: 1px solid var(--jade); background: #1d3028; }

.reliability-view,
.health-view {
  max-width: 1320px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
}
.release-header {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: #202426;
}
.release-header h2 { margin: 5px 0 8px; font-size: 25px; }
.release-header p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.release-kicker { color: #8fcdb7; font-size: 10px; text-transform: uppercase; }
.release-build-block {
  min-width: 230px;
  display: grid;
  gap: 6px;
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
}
.release-build-block > span:first-child { color: var(--muted); font-size: 10px; }
.release-build-block strong { color: var(--gold-light); font: 700 18px/1.3 Consolas, "Cascadia Mono", monospace; }
.release-status {
  width: max-content;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--muted);
  background: #171a1b;
  font-size: 10px;
}
.release-status.is-ok, .release-row-status.is-ok { border-color: #397b62; color: #9ce1c3; background: #14251f; }
.release-status.is-warning, .release-row-status.is-warning { border-color: #8a7140; color: #ebcb84; background: #2b2518; }
.release-status.is-danger { border-color: #8e4c47; color: #f1aba5; background: #2d1b1a; }
.health-header {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: #202426;
}
.health-header h2 { margin: 5px 0 8px; font-size: 25px; }
.health-header p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.health-build-block { min-width: 230px; display: grid; gap: 6px; padding-left: 24px; border-left: 1px solid var(--line-strong); }
.health-build-block > span:first-child { color: var(--muted); font-size: 10px; }
.health-build-block strong { color: var(--gold-light); font: 700 18px/1.3 Consolas, "Cascadia Mono", monospace; }
.health-section { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.health-fingerprint-short { color: #818b87; font: 10px/1.4 Consolas, "Cascadia Mono", monospace; }
.health-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--line); gap: 1px; }
.health-phase { min-height: 70px; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-top: 3px solid #59625f; }
.health-phase > span { color: #747d79; font: 11px/1 Consolas, "Cascadia Mono", monospace; }
.health-phase strong, .health-phase small { display: block; }
.health-phase strong { color: #dce1de; font-size: 12px; }
.health-phase small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.health-phase.is-complete { border-top-color: #42a97e; }
.health-phase.is-pending { border-top-color: #b48b45; }
.health-phase.is-failed { border-top-color: #b65f59; }
.health-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); border: 1px solid var(--line); background: var(--line); gap: 1px; }
.health-metric { min-width: 0; min-height: 102px; display: grid; align-content: center; gap: 5px; padding: 12px 14px; background: var(--surface-2); border-bottom: 3px solid #59625f; }
.health-metric > span { color: var(--muted); font-size: 10px; }
.health-metric > strong { color: #ece8df; font: 700 24px/1.2 Consolas, "Cascadia Mono", monospace; }
.health-metric > small { min-height: 28px; color: #89938f; font-size: 9px; line-height: 1.45; }
.health-metric.is-ok { border-bottom-color: #42a97e; }
.health-metric.is-warning { border-bottom-color: #b48b45; }
.health-metric.is-danger { border-bottom-color: #b65f59; }
.health-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .45fr); }
.health-layout > .health-section { border-bottom: 0; }
.health-provenance { border-left: 1px solid var(--line); }
.health-gates-header { align-items: end; }
.health-gate-filters { display: flex; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.health-gate-filters button { min-height: 30px; padding: 5px 9px; border: 0; border-right: 1px solid var(--line-strong); color: var(--muted); background: #171b1c; cursor: pointer; font-size: 10px; }
.health-gate-filters button:last-child { border-right: 0; }
.health-gate-filters button:hover, .health-gate-filters button:focus-visible { color: var(--text); background: #252b29; outline: 0; }
.health-gate-filters button.is-active { color: #b9ead6; background: #1a392f; }
.health-gate-list { display: grid; border: 1px solid var(--line); background: var(--line); gap: 1px; }
.health-gate { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; background: var(--surface-2); border-left: 3px solid #59625f; }
.health-gate.is-pass { border-left-color: #42a97e; }
.health-gate.is-warning { border-left-color: #b48b45; }
.health-gate.is-fail { border-left-color: #b65f59; }
.health-gate-marker { color: #858e8a; font: 9px/1.2 Consolas, "Cascadia Mono", monospace; }
.health-gate.is-pass .health-gate-marker { color: #83d7b1; }
.health-gate.is-warning .health-gate-marker { color: #e1c47f; }
.health-gate.is-fail .health-gate-marker { color: #ec9993; }
.health-gate > div { min-width: 0; }
.health-gate > div > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.health-gate strong { color: #e4e6e3; font-size: 12px; }
.health-gate > div > div > span { color: #aab3af; font-size: 9px; white-space: nowrap; }
.health-gate p { margin: 5px 0; color: #b9c1bd; font-size: 10px; line-height: 1.5; }
.health-gate small { display: block; color: #737d79; font: 9px/1.4 Consolas, "Cascadia Mono", monospace; }
.health-gate > button, .health-actions button { min-height: 31px; padding: 5px 9px; border: 1px solid #4e6f63; border-radius: 3px; color: #9ed9c2; background: #17251f; cursor: pointer; font-size: 10px; }
.health-gate > button:hover, .health-gate > button:focus-visible, .health-actions button:hover, .health-actions button:focus-visible { border-color: var(--jade); color: #d4f3e7; outline: 0; }
.health-provenance-list { display: grid; grid-template-columns: minmax(105px, auto) minmax(0, 1fr); margin: 0; border: 1px solid var(--line); }
.health-provenance-list dt, .health-provenance-list dd { min-width: 0; margin: 0; padding: 8px 9px; border-bottom: 1px solid var(--line); font-size: 10px; }
.health-provenance-list dt { color: var(--muted); background: #191d1e; }
.health-provenance-list dd { overflow: hidden; color: #c9d0cc; background: var(--surface-2); font-family: Consolas, "Cascadia Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.health-provenance-list dt:nth-last-of-type(1), .health-provenance-list dd:last-child { border-bottom: 0; }
.health-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.release-section { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.release-section:last-child { border-bottom: 0; }
.release-section-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.release-section-header h3 { margin: 3px 0 0; font-size: 16px; }
.release-section-note { margin: -3px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.release-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.release-spec-row {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 0;
  border-left: 3px solid transparent;
  color: var(--text);
  background: var(--surface-2);
  text-align: left;
  cursor: pointer;
}
.release-spec-row:hover, .release-spec-row:focus-visible { outline: 0; background: #29302e; }
.release-spec-row.is-current { border-left-color: var(--spec-row-color); background: #252c2a; }
.release-spec-row img { width: 38px; height: 38px; border: 1px solid var(--spec-row-color); border-radius: 5px; object-fit: contain; }
.release-spec-identity { min-width: 0; }
.release-spec-identity strong, .release-spec-identity small { display: block; }
.release-spec-identity strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.release-spec-identity small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.release-row-status { padding: 3px 6px; border: 1px solid var(--line-strong); border-radius: 3px; font-size: 9px; white-space: nowrap; }
.release-columns { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); }
.release-columns > .release-section:first-child { border-right: 1px solid var(--line); }
.release-empty { display: grid; gap: 5px; padding: 14px; border-left: 3px solid var(--line-strong); background: #15191a; }
.release-empty.is-ok { border-left-color: #42a97e; }
.release-empty strong { color: #a4e3c7; font-size: 13px; }
.release-empty span { color: var(--muted); font-size: 11px; line-height: 1.55; }
.release-diff-counts { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.release-diff-counts span { padding: 3px 6px; border: 1px solid #806c3d; border-radius: 3px; color: #e4ca8b; background: #282318; font-size: 9px; }
.release-diff-row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid #303537; font-size: 11px; line-height: 1.45; }
.release-diff-row > span:first-child { color: var(--gold-light); }
.release-diff-row > span:last-child { color: #cbd2ce; overflow-wrap: anywhere; }
.release-history { margin: 12px 0 0; color: #747b78; font: 10px/1.5 Consolas, "Cascadia Mono", monospace; }
.release-workbench-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, max-content)) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 9px;
  margin: 0 0 14px;
  padding: 11px;
  border: 1px solid var(--line);
  background: #171b1c;
}
.release-workbench-controls label { min-width: 0; display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.release-workbench-controls select,
.release-workbench-controls input,
.release-workbench-controls button {
  min-width: 0;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--text);
  background: var(--surface-2);
}
.release-workbench-controls button { cursor: pointer; }
.release-workbench-controls button:hover,
.release-workbench-controls button:focus-visible { border-color: var(--gold); color: var(--gold-light); }
.release-adjacent-controls { grid-template-columns: minmax(150px, max-content) minmax(150px, max-content) minmax(260px, 1fr); }
.release-adjacent-list { display: grid; border: 1px solid var(--line); background: var(--line); gap: 1px; }
.release-adjacent-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 11px 12px;
  background: var(--surface-2);
  border-left: 3px solid #59625f;
}
.release-adjacent-row.is-reviewed { border-left-color: #42a97e; }
.release-adjacent-row.is-review-needed { border-left-color: #c38b4b; }
.release-adjacent-status { display: grid; gap: 5px; }
.release-adjacent-status span { width: max-content; padding: 2px 5px; border: 1px solid #56605c; border-radius: 3px; color: #b9c5c0; font-size: 9px; }
.release-adjacent-row.is-reviewed .release-adjacent-status span:first-child { border-color: #397b62; color: #9ce1c3; }
.release-adjacent-row.is-review-needed .release-adjacent-status span:first-child { border-color: #8a7140; color: #ebcb84; }
.release-adjacent-copy strong { display: block; color: #e8e4dc; font-size: 12px; }
.release-adjacent-copy p { margin: 5px 0 0; color: #c4cbc7; font-size: 11px; line-height: 1.55; }
.release-adjacent-copy small { display: block; margin-top: 5px; color: #7f8985; font: 9px/1.45 Consolas, "Cascadia Mono", monospace; overflow-wrap: anywhere; }
.release-adjacent-evidence { max-width: 300px; color: #9da6a2; font-size: 10px; line-height: 1.5; text-align: right; }
.release-evidence-summary { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.release-evidence-row { min-height: 38px; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 9px; background: var(--surface-2); font-size: 11px; }
.release-evidence-row strong { color: var(--gold-light); font-variant-numeric: tabular-nums; }
.release-evidence-swatch { width: 8px; height: 8px; border-radius: 50%; background: #7b8581; }
.release-evidence-row[data-evidence="client-direct"] .release-evidence-swatch { background: #49c794; }
.release-evidence-row[data-evidence="client-derived"] .release-evidence-swatch { background: #5ea8dc; }
.release-evidence-row[data-evidence="live-observed"] .release-evidence-swatch { background: #e3bf67; }
.release-evidence-row[data-evidence="live-inferred"] .release-evidence-swatch { background: #c28d5a; }
.release-evidence-row[data-evidence="external-verified"] .release-evidence-swatch { background: #ad82d4; }
.release-evidence-row[data-evidence="external-adopted"] .release-evidence-swatch { background: #d46e75; }
.release-unresolved-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--line); gap: 1px; }
.release-unresolved-row { position: relative; min-width: 0; padding: 12px 13px 13px; background: var(--surface-2); border-left: 3px solid transparent; }
.release-unresolved-row.priority-p1 { border-left-color: #d08a57; }
.release-unresolved-row.priority-p2 { border-left-color: #c5ae6a; }
.release-unresolved-row.priority-p3 { border-left-color: #678a83; }
.release-unresolved-row header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.release-unresolved-row strong { color: #e8e4dc; font-size: 12px; }
.release-unresolved-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.release-unresolved-row header span { padding: 2px 5px; border: 1px solid #514c3e; border-radius: 3px; color: #c9b77f; font: 9px/1.3 Consolas, "Cascadia Mono", monospace; text-align: right; overflow-wrap: anywhere; }
.release-unresolved-row header .release-priority.priority-p1 { border-color: #9b613f; color: #f0b17d; background: #2d2018; }
.release-unresolved-row header .release-priority.priority-p2 { border-color: #77683d; color: #e1cf91; background: #292619; }
.release-unresolved-row header .release-priority.priority-p3 { border-color: #45675f; color: #9bc2b8; background: #172723; }
.release-unresolved-row p { margin: 7px 0; color: #c4cbc7; font-size: 11px; line-height: 1.55; }
.release-unresolved-row small { display: block; color: #aab1ae; font-size: 10px; line-height: 1.5; }
.release-unresolved-row .release-static-boundary { margin-top: 5px; color: #707976; font-family: Consolas, "Cascadia Mono", monospace; }
.release-unresolved-row .release-issue-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.release-issue-actions button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #4e6f63;
  border-radius: 3px;
  color: #9ed9c2;
  background: #17251f;
  cursor: pointer;
}
.release-issue-actions button:hover,
.release-issue-actions button:focus-visible { border-color: var(--jade); color: #d4f3e7; }
.skill-row { min-height: 82px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 0; color: inherit; text-align: left; background: var(--surface); cursor: pointer; }
.skill-row:hover, .skill-row:focus-visible { outline: 1px solid var(--jade); outline-offset: -1px; background: var(--surface-2); }
.skill-row[data-related="true"] { box-shadow: inset 3px 0 var(--jade-dark); }
.skill-row img { width: 50px; height: 50px; border: 1px solid var(--line-strong); border-radius: 5px; }
.skill-row h3 { margin: 0 0 5px; font-size: 14px; }
.skill-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.skill-kind { align-self: start; color: #aeb6bd; font-size: 11px; }
.skill-meta { height: 100%; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.entry-open-mark { color: var(--jade); font-size: 16px; line-height: 1; }

.entry-view { max-width: 1180px; margin: 0 auto; }
.entry-toolbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.entry-toolbar > span { color: var(--muted); font-family: Consolas, "Cascadia Mono", monospace; font-size: 11px; }
.entry-back,
.copy-entry-link {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}
.entry-back { width: 36px; padding: 0; font-size: 19px; }
.copy-entry-link { margin-left: auto; padding: 0 12px; color: var(--gold-light); }
.entry-back:hover,
.copy-entry-link:hover,
.entry-back:focus-visible,
.copy-entry-link:focus-visible { outline: 1px solid var(--jade); outline-offset: 1px; background: var(--surface-2); }
.entry-detail { border: 1px solid var(--line); background: var(--surface); }
.entry-heading { min-height: 104px; display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #202426; }
.entry-heading > img { width: 68px; height: 68px; border: 1px solid #776a45; border-radius: 5px; }
.entry-heading h1 { margin: 0 0 7px; color: var(--gold-light); font-size: 24px; letter-spacing: 0; }
.entry-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.entry-section { margin: 0; padding: 18px 22px; border: 0; border-bottom: 1px solid var(--line); }
.entry-section:last-child { border-bottom: 0; }
.entry-section > h2 { margin: 0 0 13px; color: #dce2de; font-size: 14px; }
.entry-description { margin: 0; color: #e4e2dc; font-size: 14px; line-height: 1.65; white-space: pre-line; }
.version-changes {
  padding: 14px 18px;
  border: 1px solid #6f613d;
  border-left: 3px solid var(--gold);
  background: #1c1b17;
}
.version-changes h3,
.version-changes h4 { margin: 0 0 8px; color: var(--gold-light); font-size: 14px; }
.version-history-groups { display: grid; gap: 8px; }
.version-history-build {
  overflow: hidden;
  border: 1px solid #47443b;
  border-left: 3px solid #5e625f;
  background: #181a19;
}
.version-history-build.is-ptr-baseline { border-left-color: #4d8e80; }
.version-history-build.is-latest {
  border-color: #806f42;
  border-left-color: var(--gold);
  background: #211f18;
  box-shadow: inset 0 0 0 1px rgba(208, 174, 91, .08);
}
.version-history-build > header {
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  padding: 7px 9px;
  border-bottom: 1px solid #3e403b;
  background: rgba(255, 255, 255, .025);
}
.version-history-build.is-latest > header { background: rgba(207, 171, 81, .075); }
.version-history-build > header strong {
  padding: 2px 5px;
  border: 1px solid #66716c;
  border-radius: 3px;
  color: #b9c7c1;
  font-size: 9px;
  font-weight: 600;
}
.version-history-build.is-ptr-baseline > header strong { border-color: #487568; color: #9ad3c2; }
.version-history-build.is-latest > header strong { border-color: #947d43; color: #ffe099; }
.version-history-build > header span { color: #e0ded7; font: 11px/1.4 Consolas, "Cascadia Mono", monospace; }
.version-history-build > header small {
  flex-basis: 100%;
  color: #9aa49f;
  font-size: 9px;
  line-height: 1.4;
}
.version-history-rows { display: grid; gap: 1px; background: #353732; }
.version-change-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px; align-items: start; }
.version-history-rows .version-change-row { padding: 8px 9px; background: #1a1c1b; }
.version-history-build.is-latest .version-change-row { background: #211f19; }
.version-change-row > span { min-width: 42px; padding: 2px 5px; border: 1px solid #776741; border-radius: 3px; color: #f0d391; font-size: 9px; text-align: center; }
.version-change-row.is-mechanic > span { border-color: #4e7980; color: #9ddce3; }
.version-change-row.is-structure > span { border-color: #6d6481; color: #c6b9e6; }
.version-change-row.is-bugfix > span { border-color: #775858; color: #efb1aa; }
.version-change-row.is-pending > span { border-color: #92733c; color: #ffd27a; }
.version-change-row > p { margin: 0; color: #eee3c8; font-size: 12px; line-height: 1.5; }
.version-change-link { grid-column: 2; width: fit-content; color: #8fc8ee; font-size: 10px; text-decoration: none; }
.version-change-link:hover { color: #c6e6fb; text-decoration: underline; }
.version-change-row details { grid-column: 2; color: var(--muted); font-size: 10px; }
.version-change-row details summary { cursor: pointer; color: #c8b982; }
.version-change-row details p { margin: 5px 0; white-space: pre-line; line-height: 1.5; }
.version-change-source,
.version-change-more { margin: 8px 0 0; color: #aaa38f; font-size: 10px; line-height: 1.5; }
.version-changes.is-compact { margin-top: 10px; padding: 10px 11px; }
.version-changes.is-compact .version-change-row > p { font-size: 11px; }
.version-changes.is-compact .version-history-build > header { min-height: 30px; padding: 6px 7px; }
.version-changes.is-compact .version-history-rows .version-change-row { padding: 7px; }
.entry-section .action-info { max-width: 640px; margin-bottom: 14px; }
.mechanic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mechanic-tags span { padding: 4px 7px; border: 1px solid #40524c; border-radius: 3px; color: #a7dfcc; background: #17231f; font-size: 10px; }
.mechanic-table { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1fr 1.5fr; border: 1px solid var(--line); background: var(--line); gap: 1px; }
.mechanic-table > strong,
.mechanic-table > span { min-width: 0; padding: 9px 10px; background: var(--surface-2); overflow-wrap: anywhere; }
.mechanic-table > strong { color: var(--muted); font-size: 10px; font-weight: 600; }
.mechanic-table > span { color: #d9dfdc; font-size: 11px; line-height: 1.45; }
.mechanic-table > span:nth-child(5n + 2) { color: #86d9b5; font-family: Consolas, "Cascadia Mono", monospace; }
.entry-empty { margin: 0; color: var(--muted); font-size: 12px; }
.relation-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.relation-list button { min-width: 0; min-height: 54px; display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 9px; align-items: center; padding: 8px; border: 0; color: var(--text); text-align: left; background: var(--surface-2); cursor: pointer; }
.relation-list button:hover,
.relation-list button:focus-visible { outline: 1px solid var(--jade); outline-offset: -1px; background: #27302d; }
.relation-list img { grid-row: 1 / 3; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 4px; }
.relation-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.relation-list small { color: var(--muted); font-size: 9px; }
.entry-detail > .formula-block.entry-section { margin: 0; padding-top: 18px; }
.entry-detail > .formula-block .formula-title { font-size: 15px; }
.entry-detail > .formula-block .formula-effect h4 { font-size: 14px; }
.entry-detail > .formula-block .formula-expression { font-size: 14px; line-height: 1.65; }
.entry-detail > .formula-block .mechanic-detail-list { font-size: 13px; line-height: 1.65; }
.entry-detail > .formula-block .formula-meta,
.entry-detail > .formula-block .mechanic-sources { font-size: 12px; line-height: 1.6; }
.entry-detail > .source-details.entry-section { color: var(--muted); font-size: 11px; }

.tooltip {
  position: fixed;
  z-index: 100;
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 13px 14px;
  border: 1px solid #6c603f;
  border-radius: 5px;
  color: var(--text);
  background: rgba(10, 11, 12, .98);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
  pointer-events: none;
}
.tooltip h3 { margin: 0; color: var(--gold-light); font-size: 15px; }
.tooltip-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.tooltip-meta { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 10px; color: var(--muted); font-size: 11px; }
.apex-stage-list { display: grid; gap: 8px; margin: 0 0 11px; }
.apex-stage {
  padding: 8px 9px;
  border-left: 2px solid #9b8143;
  background: rgba(155, 129, 67, .08);
}
.apex-stage h4 { margin: 0 0 4px; color: #f0d899; font-size: 11px; }
.apex-stage p { margin: 0; color: #e4e2dc; font-size: 12px; line-height: 1.5; white-space: pre-line; }
.action-info {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 12px;
  margin: 0 0 11px;
  padding: 9px 0;
  border-top: 1px solid #34393b;
  border-bottom: 1px solid #34393b;
  font-size: 11px;
  line-height: 1.4;
}
.action-info dt { color: var(--muted); }
.action-info dd { min-width: 0; margin: 0; color: #e4e2dc; text-align: right; }
.action-info dd.is-modified { color: #86d9b5; }
.tooltip-description { margin: 0; white-space: pre-line; color: #e4e2dc; font-size: 13px; line-height: 1.55; }
.is-provisional-translation {
  padding: 9px 10px;
  border: 1px dashed #d7a84f;
  border-left: 3px solid #d7a84f;
  border-radius: 4px;
  color: #f0dfba;
  background: rgba(95, 67, 20, .22);
  font-family: "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0;
}
.provisional-translation-badge {
  width: fit-content;
  display: block;
  margin: 0 0 7px;
  padding: 3px 7px;
  border: 1px solid #d7a84f;
  border-radius: 3px;
  color: #17120a;
  background: #e0b45f;
  font-family: "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
}
.provisional-translation-badge.is-compact {
  display: inline-block;
  margin: 0 6px 2px 0;
  padding: 1px 5px;
  font-size: 8px;
  vertical-align: 1px;
}
.global-result-description.is-provisional-translation {
  padding: 4px 5px;
  border-left-width: 2px;
}
.comparison-description p.is-provisional-translation { font-size: 10px; }
.apex-stage p.is-provisional-translation { padding: 7px 8px; }
.tooltip-origin { flex: 0 1 auto; color: var(--gold-light); font-size: 10px; text-align: right; }
.tooltip-source { margin-top: 10px; color: var(--jade); font-size: 10px; text-transform: uppercase; }

.context-menu {
  position: fixed;
  z-index: 130;
  width: 148px;
  overflow: hidden;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #101214;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .55);
}
.context-menu button {
  width: 100%;
  min-height: 34px;
  display: block;
  padding: 7px 10px;
  border: 0;
  border-radius: 3px;
  color: var(--text);
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.context-menu button:hover, .context-menu button:focus-visible { outline: 0; color: #07150f; background: var(--jade); }

.corrections-view {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #171a1c;
}
.correction-header {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  background: #1c2022;
}
.correction-header h2 { margin: 3px 0 5px; font-size: 24px; }
.correction-header p { max-width: 740px; margin: 0; color: var(--muted); line-height: 1.55; }
.correction-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 360px); }
.correction-editor { min-width: 0; border-right: 1px solid var(--line); }
.correction-form { padding: 22px 24px; }
.correction-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.correction-context span {
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: #d9dedb;
  background: #202527;
  font-size: 12px;
}
.correction-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 13px; }
.correction-grid label, .correction-wide { min-width: 0; display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.correction-grid input, .correction-grid select, .correction-wide textarea, .plugin-evidence textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: 0;
  color: var(--text);
  background: #101315;
}
.correction-grid input, .correction-grid select { min-height: 38px; padding: 6px 8px; }
.correction-wide { margin-top: 14px; }
.correction-wide textarea, .plugin-evidence textarea { padding: 9px 10px; line-height: 1.5; resize: vertical; }
.correction-grid input:focus, .correction-grid select:focus, .correction-wide textarea:focus, .plugin-evidence textarea:focus { border-color: var(--jade); }
.correction-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.correction-actions button {
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  background: var(--surface-2);
  cursor: pointer;
}
.correction-actions button:hover:not(:disabled), .correction-actions button:focus-visible { border-color: var(--gold); color: var(--gold-light); }
.correction-actions button:disabled { color: #747a77; cursor: default; }
#correction-add, #correction-export { border-color: var(--jade-dark); color: #a9e6cc; background: #17372c; }
#correction-form-status, #plugin-evidence-status { color: var(--muted); font-size: 12px; }
#correction-form-status.is-error, #plugin-evidence-status.is-error { color: #ef9a91; }
.plugin-evidence { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: #15191a; }
.plugin-evidence > header { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.plugin-evidence h3 { margin: 2px 0 0; font-size: 16px; }
.plugin-evidence textarea { min-height: 126px; font-family: Consolas, "Cascadia Mono", monospace; font-size: 11px; }
.plugin-evidence-summary { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.plugin-evidence-summary span { padding: 3px 6px; border-left: 2px solid var(--jade); color: #d1d8d4; background: #202527; font-size: 11px; }
.correction-queue { min-width: 0; background: #141719; }
.correction-queue > header { padding: 18px; border-bottom: 1px solid var(--line); }
.correction-queue h3 { margin: 0; font-size: 16px; }
.correction-queue .correction-actions { margin-top: 11px; }
#correction-queue-list { max-height: 720px; overflow-y: auto; }
.correction-queue-item {
  position: relative;
  padding: 14px 42px 14px 16px;
  border-bottom: 1px solid var(--line);
}
.correction-queue-item h4 { margin: 0 0 5px; font-size: 13px; }
.correction-queue-item p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.correction-queue-item .correction-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.correction-workflow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.correction-workflow select {
  min-width: 130px;
  min-height: 31px;
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  background: #101315;
}
.correction-status { padding: 3px 6px; border: 1px solid #5d625f; border-radius: 3px; color: #c9cfcc; font-size: 10px; }
.correction-status.status-verified, .correction-status.status-accepted { border-color: #4d8f75; color: #9fe2c4; background: #172923; }
.correction-status.status-rejected { border-color: #8d5353; color: #efaaaa; background: #2b1b1b; }
.correction-status.status-closed { border-color: #54716a; color: #acd0c7; background: #182522; }
.correction-queue-empty { margin: 0; padding: 22px 18px; color: var(--muted); font-size: 12px; }

.formula-block { margin-top: 13px; padding-top: 12px; border-top: 1px solid #34393b; }
.formula-title { margin: 0 0 9px; color: var(--gold-light); font-size: 12px; }
.formula-effect + .formula-effect { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #313638; }
.formula-effect h4 { margin: 0 0 5px; color: #d7ddd9; font-size: 11px; font-weight: 600; }
.formula-expression { margin: 0; color: #86d9b5; font-family: Consolas, "Cascadia Mono", monospace; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.formula-meta { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; white-space: pre-line; }
.mechanic-detail-list {
  margin: 8px 0 0;
  padding-left: 19px;
  color: #cbd2ce;
  font-size: 11px;
  line-height: 1.55;
}
.mechanic-detail-list li + li { margin-top: 5px; }
.tooltip .evidence-mechanic .formula-expression { font-size: 13px; }
.tooltip .evidence-mechanic .mechanic-detail-list { font-size: 12px; line-height: 1.55; }
.tooltip .evidence-mechanic .formula-meta,
.tooltip .evidence-mechanic .mechanic-sources { font-size: 11px; }
.evidence-mechanic { border-left: 2px solid color-mix(in srgb, var(--class-color, #f1c75b) 72%, #fff 28%); padding-left: 10px; }
.mechanic-sources { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.mechanic-sources a { color: #8fc9ff; text-decoration: none; }
.mechanic-sources a:hover { color: #c6e5ff; text-decoration: underline; }
.formula-note { margin: 9px 0 0; color: #aeb6bd; font-size: 10px; line-height: 1.45; }
.tooltip-config-error {
  margin: 0 0 10px;
  padding: 7px 8px;
  border-left: 3px solid var(--danger);
  color: #ffb2aa;
  background: rgba(105, 37, 33, .28);
  font-size: 11px;
  line-height: 1.4;
}
.source-details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #34393b;
  color: var(--muted);
  font-size: 10px;
}
.source-details summary { color: var(--gold-light); cursor: pointer; user-select: none; }
.source-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px 10px;
  margin: 9px 0 0;
  line-height: 1.4;
}
.source-list dt { color: #c4c9c6; }
.source-list dd { min-width: 0; margin: 0; text-align: right; overflow-wrap: anywhere; }
.source-confidence { display: inline-block; margin: 0 5px 3px 0; padding: 1px 4px; border-left: 2px solid #678a83; color: #9fb1aa; background: #202628; font-size: 9px; }
.source-confidence.confidence-authoritative, .source-confidence.confidence-verified { border-left-color: var(--jade); color: #a8dec7; }
.source-confidence.confidence-provisional, .source-confidence.confidence-fallback { border-left-color: #b48b45; color: #dbc58d; }
.source-label { color: inherit; }
a.source-label { color: #8fc9ff; text-decoration: none; }
a.source-label:hover { text-decoration: underline; }
.behavior-classification { color: #b8d9cb; }
.source-evidence {
  display: inline-block;
  padding: 1px 4px;
  border: 1px solid #53615c;
  border-radius: 3px;
  color: #d6e5df;
  background: #29312e;
  font-size: 9px;
  line-height: 1.35;
}
.evidence-live-observed { border-color: #4d8f75; color: #9fe2c4; }
.evidence-live-inferred { border-color: #8b7444; color: #e2c981; }
.evidence-external-verified { border-color: #866a42; color: #e3c58a; }
.evidence-external-adopted { border-color: #8d5353; color: #efaaaa; }
.source-details h4 { margin: 10px 0 4px; color: #ffb2aa; font-size: 10px; }
.source-details p { margin: 4px 0 0; line-height: 1.4; }
.source-build { color: #747a78; font-family: Consolas, "Cascadia Mono", monospace; }

[hidden] { display: none !important; }

@media (max-width: 2000px) {
  .point-summary { display: none; }
}

@media (min-width: 1101px) and (max-width: 1700px) {
  .app-header { grid-template-columns: minmax(154px, .8fr) minmax(210px, auto) minmax(360px, 1.2fr); gap: 8px 12px; padding-inline: 12px; }
  .point-summary { display: none; }
}

@media (max-width: 1100px) {
  .app-header { grid-template-columns: 1fr auto; gap: 10px; padding: 10px 12px; }
  .identity { grid-row: 1; grid-column: 1; }
  .header-actions { grid-row: 1; grid-column: 2; }
  .header-specialization-context { grid-row: 2; grid-column: 1 / -1; }
  .view-tabs { grid-row: 3; grid-column: 1 / -1; }
  .tab { flex: 1; }
  .point-summary { display: none; }
  main { padding: 10px; }
  .tree-layout { grid-template-columns: 1fr; }
  .hero-scroll { padding-bottom: calc(var(--hero-icon-size) - 6px); }
  .simulator-anchor { grid-template-columns: 1fr; }
  .simulator-anchor.has-results { grid-template-columns: 1fr; }
  .simulator-control { grid-column: 1; border-inline: 0; }
  .simulation-status-row { flex-wrap: wrap; }
  .simulator-anchor.has-results .simulator-control { position: static; border-bottom: 1px solid var(--line); }
  .healing-results { grid-column: 1; border-left: 0; }
  .tree-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .tree-panel:last-child { border-bottom: 0; }
  .tree-stage { margin: 0 auto; }
  .talent-footer { flex-wrap: wrap; }
  .loadout-string { width: min(100%, 560px); flex: 1 1 320px; }
  .config-status { width: 100%; margin-left: 0; }
  .hero-header { display: flex; flex-wrap: wrap; }
  .hero-header .hero-selector { order: 3; width: 100%; margin-left: 0; }
  .hero-option { flex: 1; }
  .catalog-filters { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .global-search-filters { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .global-search-layout { grid-template-columns: 1fr; }
  .global-relation-panel { position: static; max-height: none; border-top: 1px solid var(--line); border-left: 0; }
  .release-columns { grid-template-columns: 1fr; }
  .release-columns > .release-section:first-child { border-right: 0; }
  .health-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .health-layout { grid-template-columns: 1fr; }
  .health-provenance { border-top: 1px solid var(--line); border-left: 0; }
  .release-workbench-controls, .release-adjacent-controls { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .release-workbench-search { grid-column: 1 / -1; }
  .correction-layout { grid-template-columns: 1fr; }
  .correction-editor { border-right: 0; }
  .correction-queue { border-top: 1px solid var(--line); }
  .correction-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}

@media (max-width: 520px) {
  .app-header { grid-template-columns: 1fr; }
  .identity, .header-actions, .view-tabs { width: 100%; min-width: 0; }
  .header-actions { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; justify-content: flex-end; }
  .version-picker { margin-right: auto; }
  .header-specialization-context { grid-row: 3; grid-column: 1 / -1; }
  .view-tabs { grid-row: 4; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tab { min-width: 0; padding-inline: 5px; }
  .header-specialization-context h1 { font-size: 17px; }
  .header-specialization-context p { display: none; }
  .specialization-picker { flex: 0 0 154px; }
  .specialization-menu { width: 138px; }
  .specialization-spec-list { width: min(190px, calc(100vw - 164px)); }
  .panel-header { padding-inline: 10px; }
  .skills-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-search-row { align-items: stretch; flex-direction: column; }
  .catalog-filters { grid-template-columns: 1fr 1fr; }
  .global-search-header { align-items: stretch; flex-direction: column; padding: 17px 15px; }
  .global-search-query-row { align-items: stretch; flex-direction: column; }
  .global-search-filters { grid-template-columns: 1fr 1fr; }
  .global-search-results, .comparison-grid { grid-template-columns: 1fr; }
  .cross-build-header { display: grid; padding: 15px 14px 12px; }
  .cross-build-identity { justify-self: start; }
  .cross-build-controls { grid-template-columns: 1fr 1fr; padding: 11px 14px; }
  .cross-build-controls label { grid-column: 1 / -1; }
  .cross-build-controls button { width: 100%; }
  .cross-build-diff-summary { padding: 8px 14px; }
  .cross-build-relation-delta { padding: 11px 14px 14px; }
  .global-result-row { grid-template-columns: minmax(0, 1fr) 64px; }
  .global-result-main { grid-template-columns: 40px minmax(0, 1fr); padding: 9px 8px; }
  .global-result-main > img { width: 40px; height: 40px; }
  .global-result-actions { width: 64px; }
  .comparison-facts > div { grid-template-columns: 74px minmax(0, 1fr); }
  .talent-toolbar { align-items: stretch; flex-direction: column; }
  .talent-spec-icon { position: static; align-self: center; transform: none; }
  .hero-scroll { --hero-icon-size: 150px; }
  .interaction-hint { margin-left: 0; }
  .talent-footer { align-items: stretch; }
  .recommended-loadout { width: 100%; }
  .loadout-string { flex-basis: 100%; width: 100%; }
  .skill-list { grid-template-columns: 1fr; }
  .release-header { align-items: stretch; flex-direction: column; padding: 18px 16px; }
  .release-header h2 { font-size: 21px; }
  .release-build-block { min-width: 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .health-header { align-items: stretch; flex-direction: column; padding: 18px 16px; }
  .health-header h2 { font-size: 21px; }
  .health-build-block { min-width: 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .health-section { padding: 18px 14px; }
  .health-phases { grid-template-columns: 1fr 1fr; }
  .health-metrics { grid-template-columns: 1fr 1fr; }
  .health-gates-header { align-items: stretch; flex-direction: column; }
  .health-gate-filters { width: 100%; }
  .health-gate-filters button { flex: 1; }
  .health-gate { grid-template-columns: 52px minmax(0, 1fr); }
  .health-gate > button { grid-column: 2; width: max-content; }
  .health-actions { grid-template-columns: 1fr; }
  .release-section { padding: 18px 14px; }
  .release-spec-grid, .release-unresolved-list { grid-template-columns: 1fr; }
  .release-spec-row { grid-template-columns: 34px minmax(0, 1fr); }
  .release-spec-row img { width: 34px; height: 34px; }
  .release-row-status { grid-column: 2; width: max-content; }
  .release-diff-row { grid-template-columns: 1fr; gap: 3px; }
  .release-workbench-controls, .release-adjacent-controls { grid-template-columns: 1fr; }
  .release-workbench-search { grid-column: auto; }
  .release-adjacent-row { grid-template-columns: 1fr; }
  .release-adjacent-evidence { max-width: none; text-align: left; }
  .correction-header { align-items: stretch; flex-direction: column; padding: 18px 16px; }
  .correction-form, .plugin-evidence { padding: 17px 14px; }
  .correction-grid { grid-template-columns: 1fr; }
  .language-option { padding-inline: 8px; }
  .healing-result-columns { grid-template-columns: 1fr; }
  .healing-result-columns > section + section { border-left: 0; border-top: 1px solid var(--line); }
  .entry-heading { min-height: 88px; padding: 14px; }
  .entry-heading > img { width: 56px; height: 56px; }
  .entry-heading h1 { font-size: 19px; }
  .entry-section { padding: 15px 14px; }
  .mechanic-table { grid-template-columns: 1fr; }
  .mechanic-table > strong { display: none; }
  .mechanic-table > span { border-left: 3px solid transparent; }
  .mechanic-table > span:nth-child(5n + 1) { border-left-color: var(--jade); color: var(--gold-light); font-weight: 600; }
  .mechanic-table > span:nth-child(5n + 2) { color: #86d9b5; }
}
