:root {
  --bg: #080d11;
  --panel: #0b1217;
  --panel-2: #0e1820;
  --line: #243843;
  --line-strong: #33505a;
  --text: #eef4f0;
  --muted: #7f9b94;
  --dim: #50686a;
  --teal: #5fb3a3;
  --gold: #b3a45c;
  --red: #b06a64;
  --green: #6fa57f;
  --blue: #5f8fb0;
  --violet: #8b6fa6;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(95, 179, 163, .14), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: "Barlow Semi Condensed", Arial, sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(0, 0, 0, .18) 3px, transparent 4px);
  z-index: 20;
}

.topbar,
.footer,
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  font-family: "Oswald", sans-serif;
  color: var(--teal);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer,
.eyebrow,
.panel-label,
.terminal-title {
  font-family: "Share Tech Mono", monospace;
  color: var(--teal);
}

.nav {
  display: flex;
  gap: 10px;
}

.nav a,
.button {
  border: 1px solid var(--line);
  min-height: 38px;
  padding: 9px 14px;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(11, 18, 23, .72);
}

.nav a.active,
.nav a:hover,
.button.primary,
.button:hover {
  border-color: var(--teal);
  color: var(--text);
}

.hero {
  min-height: 620px;
  max-height: 680px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding-top: 54px;
  padding-left: 28px;
  padding-right: 28px;
}

.hero-copy,
.hero-panel,
.page-head,
.records-section,
.section-grid,
.dossier {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  margin: 0 0 12px;
}

h1,
h2 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  margin: 0;
}

.hero h1 {
  font-size: clamp(76px, 14vw, 168px);
  line-height: .86;
  letter-spacing: .03em;
}

.hero-logo {
  display: block;
  width: min(360px, 100%);
  max-height: 300px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 16px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .48));
}

.motto,
.page-head p,
.status-block p {
  color: #aebfb9;
  font-size: 20px;
  line-height: 1.45;
  max-width: 620px;
}

.hero-panel,
.file-panel,
.status-block,
.notice,
.terminal-list {
  border: 1px solid var(--line);
  background: rgba(11, 18, 23, .88);
}

.hero-panel,
.file-panel,
.status-block {
  padding: 22px;
}

.hero-panel {
  margin-top: 172px;
  justify-self: end;
}

.panel-label,
.terminal-title {
  font-size: 12px;
  letter-spacing: .16em;
  margin-bottom: 16px;
}

.dossier .file-panel > .panel-label {
  cursor: pointer;
  user-select: none;
  min-height: 24px;
}

.dossier .file-panel > .panel-label::after {
  content: "MINIMIZE";
  float: right;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: .12em;
}

.dossier .file-panel.collapsed {
  min-height: 46px;
  padding-top: 12px;
  padding-bottom: 10px;
}

.dossier .file-panel.collapsed > :not(.panel-label) {
  display: none !important;
}

.dossier .file-panel.collapsed > .panel-label {
  margin-bottom: 0;
}

.dossier .file-panel.collapsed > .panel-label::after {
  content: "EXPAND";
}

.telemetry,
.kv {
  margin: 0;
}

.telemetry div,
.kv div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #121e22;
}

dt {
  color: var(--dim);
  text-transform: uppercase;
  font-size: 12px;
}

dd {
  margin: 0;
  font-family: "Oswald", sans-serif;
  color: var(--text);
}

.corner {
  position: absolute;
  width: 24px;
  height: 24px;
}

.corner.tl {
  top: 28px;
  left: 0;
  border-top: 1px solid var(--teal);
  border-left: 1px solid var(--teal);
}

.corner.br {
  bottom: 28px;
  right: 0;
  border-right: 1px solid var(--teal);
  border-bottom: 1px solid var(--teal);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  padding: 54px 0 20px;
}

.status-block h2,
.page-head h1 {
  font-size: clamp(38px, 8vw, 74px);
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-family: "Share Tech Mono", monospace;
}

.notice-stack {
  display: grid;
  gap: 12px;
}

.notice {
  padding: 16px;
  color: #aebfb9;
}

.notice[href] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 6px 14px;
  transition: border-color .16s ease, color .16s ease, transform .16s ease, background .16s ease;
}

.notice[href]::after {
  content: ">";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  color: var(--teal);
  font-family: "Share Tech Mono", monospace;
  font-size: 24px;
  line-height: 1;
}

.notice[href]:hover {
  border-color: var(--teal);
  color: var(--text);
  transform: translateX(4px);
  background: rgba(14, 24, 32, .94);
}

.notice span {
  display: block;
  color: var(--gold);
  font-family: "Share Tech Mono", monospace;
}

.records-section,
.page-head,
.dossier {
  padding: 48px 0;
}

.guild-history {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  margin: 34px 0 12px;
}

.guild-history .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.history-copy {
  display: grid;
  gap: 14px;
}

.history-copy p {
  margin: 0;
  color: #aebfb9;
  font-size: 18px;
  line-height: 1.55;
}

.history-stats {
  margin: 0;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.history-stats div {
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #121e22;
}

.history-stats dd {
  margin-top: 4px;
  font-size: 22px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.section-heading span {
  color: var(--teal);
  font-family: "Share Tech Mono", monospace;
}

.section-heading h2 {
  font-size: 18px;
  letter-spacing: .24em;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.record-card {
  min-height: 156px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.record-card:hover,
.terminal-row:hover,
.gear-slot:hover {
  border-color: var(--teal);
}

.record-card strong {
  font-family: "Oswald", sans-serif;
  font-size: 28px;
}

.record-card small,
.record-card em,
.terminal-row small,
.gear-slot small,
.item-list span {
  color: var(--muted);
  font-style: normal;
}

.record-class,
.class-chip {
  color: var(--gold);
  font-family: "Share Tech Mono", monospace;
  text-transform: uppercase;
  font-size: 12px;
}

.warrior { color: var(--red); }
.priest { color: #d8d8c8; }
.mage { color: var(--blue); }
.shaman { color: var(--violet); }
.rogue { color: #c4b061; }
.hunter { color: var(--green); }

.page-head {
  border-bottom: 1px solid var(--line);
}

.terminal-list {
  margin: 34px 0 60px;
}

.armory-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(120px, 160px) minmax(120px, 160px) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 18px;
  padding: 16px;
}

.terminal-title {
  padding: 18px 18px 0;
}

.terminal-header,
.terminal-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) 140px 140px 180px 140px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
}

.terminal-header {
  color: var(--dim);
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.terminal-row {
  border-bottom: 1px solid #121e22;
}

.crafting-header,
.crafting-row {
  grid-template-columns: minmax(220px, 1.4fr) 160px minmax(220px, 1fr) 140px;
}

.crafter-list a {
  color: var(--teal);
  text-decoration: none;
}

.crafter-list a:hover {
  color: var(--text);
}

.crafting-recipe-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.crafting-recipe-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.armory-row[hidden],
.crafting-row[hidden],
#armory-empty[hidden],
#crafting-empty[hidden] {
  display: none !important;
}

.pvp-rank-cell,
.record-rank,
.rank-with-icon {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pvp-rank-cell img,
.record-rank img {
  width: 28px;
  height: 28px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(179, 164, 92, .2));
}

.record-rank {
  min-height: 30px;
}

.record-rank span,
.pvp-rank-cell span {
  min-width: 0;
}

.subject b {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 20px;
}

.subject small {
  display: block;
  margin-top: 2px;
}

.dossier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.dossier-head h1 {
  font-size: clamp(58px, 12vw, 130px);
  line-height: .9;
}

.dossier-head p {
  color: #aebfb9;
}

.seal {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 60px;
  flex: none;
}

.dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  margin: 24px 0 18px;
}

.rank {
  color: var(--gold);
  font-family: "Oswald", sans-serif;
  font-size: 34px;
  margin-bottom: 10px;
}

.rank-with-icon img {
  width: 54px;
  height: 54px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(179, 164, 92, .24));
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stats-panel {
  margin-bottom: 18px;
}

.dossier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dossier-tab {
  min-height: 34px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 17, .86);
  color: var(--muted);
  padding: 0 11px;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.dossier-tab.active,
.dossier-tab:hover {
  border-color: var(--teal);
  color: var(--text);
  background: rgba(95, 179, 163, .14);
}

.dossier-tab-panel {
  display: none;
}

.dossier-tab-panel.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stats-grid div {
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 12px;
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  margin-bottom: 6px;
}

.stats-grid strong {
  color: var(--text);
  font-family: "Oswald", sans-serif;
  font-size: 22px;
}

.gear-slot {
  min-height: 112px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  position: relative;
  cursor: pointer;
}

.gear-slot span,
.item-list span {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
}

.gear-slot strong {
  color: var(--text);
  line-height: 1.15;
}

.quality-epic strong { color: #b48be8; }
.quality-rare strong { color: #6aa8ff; }
.quality-uncommon strong { color: #70c977; }
.quality-legendary strong { color: #ff9f42; }

.gear-icon {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid #59616b;
  background:
    linear-gradient(135deg, rgba(179, 164, 92, .2), transparent),
    #080b12;
  box-shadow: inset 0 0 0 1px #05070c;
  box-sizing: border-box;
  object-fit: cover;
}

.gear-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.gear-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--dim);
  font-style: normal;
  line-height: 1.25;
}

.gear-details b {
  font-weight: 400;
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
}

.honor-breakdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.honor-breakdown div {
  min-height: 76px;
  border: 1px solid var(--line);
  background: rgba(14, 24, 32, .78);
  padding: 10px;
}

.honor-breakdown span,
.honor-breakdown small {
  display: block;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.honor-breakdown strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--text);
  font-family: "Oswald", sans-serif;
  font-size: 19px;
}

.spellbook-panel {
  margin: 18px 0;
}

.spellbook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.spellbook-tab {
  border: 1px solid var(--line);
  background: rgba(14, 24, 32, .72);
  min-height: 120px;
}

.spellbook-tab header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid #121e22;
}

.spellbook-tab header strong {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.spellbook-tab header span {
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
}

.spell-list {
  max-height: 360px;
  overflow: auto;
}

.spell-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #121e22;
}

.spell-row strong {
  font-size: 15px;
}

.spell-row span {
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
}

.wow-tooltip-shell {
  position: fixed;
  z-index: 100;
  width: 420px;
  max-width: calc(100vw - 24px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .08s ease, transform .08s ease;
}

.wow-tooltip-shell.visible {
  opacity: 1;
  transform: translateY(0);
}

.wow-tooltip-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.wow-tooltip-card.no-icon {
  grid-template-columns: 1fr;
}

.wow-tooltip-icon {
  width: 64px;
  height: 64px;
  border: 2px solid #777;
  border-radius: 6px;
  background-color: #070a14;
  background-size: cover;
  box-shadow: 0 0 0 1px #050505, inset 0 0 12px rgba(255, 255, 255, .15);
}

.wow-tooltip-html,
.wow-tooltip-loading {
  background: #02091d;
  border: 1px solid #777;
  border-radius: 5px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.25;
  padding: 8px;
  text-shadow: 1px 1px 0 #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  min-width: 320px;
  overflow-wrap: normal;
  word-break: normal;
}

.wow-tooltip-loading {
  color: #aebfb9;
  font-family: "Share Tech Mono", monospace;
}

.wow-tooltip-loading.error {
  color: #ff8a80;
}

.wow-tooltip-html .tooltip {
  float: none !important;
  width: 320px !important;
  max-width: 100% !important;
  visibility: visible !important;
  padding: 0 !important;
}

.wow-tooltip-html table {
  border-collapse: collapse;
  width: 100%;
  table-layout: auto;
}

.wow-tooltip-html th {
  font-weight: normal;
  text-align: right;
  white-space: nowrap;
}

.wow-tooltip-html td {
  vertical-align: top;
}

.wow-tooltip-html a {
  color: inherit;
}

.wow-tooltip-html .q0 { color: #9d9d9d; }
.wow-tooltip-html .q1 { color: #ffffff; }
.wow-tooltip-html .q2 { color: #1eff00; }
.wow-tooltip-html .q3 { color: #0070dd; }
.wow-tooltip-html .q4 { color: #a335ee; }
.wow-tooltip-html .q5 { color: #ff8000; }

.manifest-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.talents-panel {
  margin-top: 18px;
}

.talents-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.talents-head h2 {
  color: var(--text);
  font-size: 30px;
  letter-spacing: .08em;
}

.talents-head span {
  color: var(--gold);
  font-family: "Share Tech Mono", monospace;
}

.talent-trees {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 14px;
}

.talent-tree {
  min-height: 520px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(8, 13, 17, .76), rgba(8, 13, 17, .92)),
    radial-gradient(80% 60% at 50% 0%, rgba(95, 179, 163, .13), transparent 68%),
    #090d12;
  padding: 12px;
}

.talent-tree header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-bottom: 1px solid #1a2a30;
  margin-bottom: 14px;
  padding-bottom: 10px;
}

.talent-tree header img,
.tree-icon-placeholder {
  width: 32px;
  height: 32px;
  border: 1px solid #667078;
  background: #05070c;
}

.talent-tree header strong {
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.talent-tree header .tree-points {
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
}

.talent-grid {
  display: grid;
  grid-template-columns: repeat(4, 64px);
  grid-template-rows: repeat(var(--talent-rows), 78px);
  justify-content: space-around;
  align-items: start;
  gap: 8px 12px;
}

.talent-node {
  position: relative;
  width: 54px;
  min-height: 70px;
  justify-self: center;
}

.talent-icon-frame {
  display: block;
  width: 48px;
  height: 48px;
}

.tree-icon-frame {
  width: 32px;
  height: 32px;
}

.talent-node img,
.talent-node .talent-icon-placeholder {
  width: 48px;
  height: 48px;
  border: 2px solid #7f8b90;
  border-radius: 6px;
  background: #05070c;
  box-shadow: inset 0 0 0 1px #000, 0 0 14px rgba(0, 0, 0, .45);
  display: block;
}

.talent-icon-placeholder {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  color: #718087;
  font-family: "Share Tech Mono", monospace;
  font-size: 22px;
  line-height: 1;
  user-select: none;
  background-color: #05070c;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 5px,
    rgba(95, 179, 163, .08) 5px,
    rgba(95, 179, 163, .08) 6px
  );
}

.talent-icon-placeholder[hidden],
.talent-icon-frame img[hidden] {
  display: none;
}

.tree-icon-placeholder {
  font-size: 16px;
}

.talent-node.inactive img,
.talent-node.inactive .talent-icon-placeholder {
  filter: grayscale(1) brightness(.62);
  opacity: .78;
}

.talent-node.active img,
.talent-node.active .talent-icon-placeholder {
  border-color: var(--teal);
  box-shadow: 0 0 12px rgba(95, 179, 163, .28), inset 0 0 0 1px #000;
}

.talent-node .talent-rank {
  position: absolute;
  right: -3px;
  top: 34px;
  min-width: 28px;
  padding: 1px 3px;
  background: #02080b;
  border: 1px solid #1a2a30;
  color: #6dff3d;
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  text-align: center;
}

.talent-node.inactive .talent-rank {
  color: #99a4aa;
}

.talent-node em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.05;
  font-style: normal;
  text-align: center;
}

.item-list {
  display: grid;
  gap: 10px;
}

.item-list div {
  border-bottom: 1px solid #121e22;
  padding-bottom: 10px;
}

.item-list strong,
.item-list span {
  display: block;
}

.bank-page {
  padding: 38px 0 56px;
}

.bank-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: rgba(11, 18, 23, .88);
}

.bank-tabs a {
  min-height: 54px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  letter-spacing: .12em;
}

.bank-tabs a:last-child {
  border-right: 0;
}

.bank-tabs a.active,
.bank-tabs a:hover {
  color: var(--text);
  background: rgba(95, 143, 176, .18);
  box-shadow: inset 0 -2px 0 var(--teal);
}

.bank-summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  margin-bottom: 16px;
  padding-right: 190px;
}

.bank-summary h1 {
  font-size: clamp(38px, 7vw, 72px);
}

.bank-summary p:not(.eyebrow) {
  color: #aebfb9;
  margin-bottom: 0;
}

.scan-stamp {
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
}

.scan-stamp {
  position: absolute;
  right: 22px;
  bottom: 14px;
}

.bank-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.search-field span,
.quality-filter legend,
.ah-filter-set legend {
  display: block;
  margin-bottom: 7px;
  color: var(--dim);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
}

.search-field input,
.search-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  background: rgba(11, 18, 23, .88);
  color: var(--text);
  padding: 9px 12px;
  font: inherit;
}

.search-field select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--teal) 50%) calc(100% - 15px) 17px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--teal) 50%, transparent 50%) calc(100% - 10px) 17px / 6px 6px no-repeat,
    rgba(11, 18, 23, .88);
  padding-right: 32px;
}

.quality-filter {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.quality-toggle input {
  position: absolute;
  opacity: 0;
}

.quality-toggle span {
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(11, 18, 23, .88);
  padding: 0 10px;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
}

.quality-toggle input:checked + span {
  border-color: var(--teal);
  color: var(--text);
  background: rgba(95, 179, 163, .15);
}

.bank-table {
  padding: 0;
  overflow: hidden;
}

.bank-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) 90px minmax(240px, 1fr) 120px;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid #121e22;
}

.bank-header {
  min-height: 46px;
  color: var(--dim);
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
  background: rgba(14, 24, 32, .8);
}

.bank-item:hover {
  background: rgba(95, 179, 163, .08);
}

.bank-item[hidden],
#bank-live-empty[hidden] {
  display: none;
}

.bank-item-name {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.bank-item-name img,
.bank-icon-placeholder {
  width: 34px;
  height: 34px;
  border: 1px solid #667078;
  background: #05070c;
}

.bank-icon-placeholder {
  display: grid;
  place-items: center;
  color: #718087;
  font-family: "Share Tech Mono", monospace;
  font-size: 16px;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 5px,
    rgba(95, 179, 163, .08) 5px,
    rgba(95, 179, 163, .08) 6px
  );
}

.bank-item strong {
  font-size: 18px;
}

.bank-item-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bank-item-copy small {
  color: var(--teal);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  line-height: 1.3;
}

.bank-count {
  color: #c7d4cf;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  text-align: right;
}

.bank-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bank-sources em,
.quality-badge {
  display: inline-block;
  border-radius: 3px;
  padding: 4px 7px;
  background: rgba(95, 143, 176, .18);
  color: #8fb9d8;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  font-style: normal;
}

.bank-sources em:first-child {
  background: rgba(111, 165, 127, .18);
  color: #8ccf99;
}

.quality-badge {
  color: var(--text);
  background: #2a3237;
}

.quality-badge.quality-uncommon { color: #1eff00; background: rgba(30, 255, 0, .13); }
.quality-badge.quality-rare { color: #0070dd; background: rgba(0, 112, 221, .18); }
.quality-badge.quality-epic { color: #a335ee; background: rgba(163, 53, 238, .16); }
.quality-badge.quality-legendary { color: #ff8000; background: rgba(255, 128, 0, .15); }

.bank-empty {
  padding: 22px;
}

.resets-head {
  padding-bottom: 30px;
}

.reset-list {
  margin: 34px 0 60px;
  padding: 0;
  overflow: hidden;
}

.reset-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 120px 190px minmax(180px, .9fr);
  gap: 18px;
  align-items: center;
  min-height: 70px;
  padding: 14px 18px;
  border-bottom: 1px solid #121e22;
}

.reset-header {
  min-height: 46px;
  color: var(--dim);
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
  background: rgba(14, 24, 32, .8);
}

.reset-record {
  background:
    linear-gradient(90deg, rgba(95, 179, 163, .08), transparent 48%),
    rgba(11, 18, 23, .62);
}

.reset-record.inactive {
  opacity: .72;
  background: rgba(11, 18, 23, .55);
}

.reset-name strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  letter-spacing: .04em;
}

.reset-name small {
  display: block;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  margin-top: 2px;
}

.reset-countdown {
  color: var(--gold);
  font-family: "Share Tech Mono", monospace;
  font-size: 18px;
  white-space: nowrap;
}

.reset-date {
  color: #aebfb9;
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
}

.ah-scan-meta {
  margin: 18px 0 0;
  color: var(--dim);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
}

.ah-scan-meta strong {
  color: var(--gold);
  font-weight: 700;
}

.ah-tools {
  margin: 18px 0 16px;
}

.ah-search {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(7, minmax(104px, 1fr));
  gap: 12px;
  align-items: end;
}

.ah-filter-set {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  align-items: center;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.ah-filter-set[hidden],
.check-pill[hidden] {
  display: none !important;
}

.ah-filter-set-wide {
  padding-top: 2px;
}

.ah-filter-set legend {
  width: 100%;
}

.check-pill {
  position: relative;
  display: inline-grid;
}

.check-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-pill span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(11, 18, 23, .88);
  padding: 0 10px;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: .03em;
}

.check-pill input:checked + span {
  border-color: var(--teal);
  color: var(--text);
  background: rgba(95, 179, 163, .15);
}

.ah-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 4px;
}

.ah-table {
  margin-bottom: 60px;
  padding: 0;
  overflow: hidden;
}

.ah-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) 170px 170px 190px;
  gap: 18px;
  align-items: center;
  min-height: 64px;
  padding: 12px 18px;
  border-bottom: 1px solid #121e22;
}

.ah-header {
  min-height: 46px;
  color: var(--dim);
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
  background: rgba(14, 24, 32, .8);
}

.ah-record {
  background:
    linear-gradient(90deg, rgba(95, 179, 163, .08), transparent 48%),
    rgba(11, 18, 23, .62);
}

.ah-name strong,
.ah-item-link {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  letter-spacing: .04em;
}

.ah-name {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  min-width: 0;
}

.ah-item-icon,
.ah-icon-placeholder {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid #667078;
  background: #05070c;
  box-sizing: border-box;
  grid-column: 1;
  grid-row: 1;
}

.ah-item-icon {
  object-fit: cover;
}

.ah-icon-placeholder {
  display: grid;
  place-items: center;
  color: #718087;
  font-family: "Share Tech Mono", monospace;
}

.ah-name-text {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.ah-item-link {
  color: inherit;
  text-decoration: none;
}

.ah-item-link:hover,
.ah-item-link:focus-visible {
  color: var(--teal);
}

.ah-record.quality-poor .ah-item-link,
.ah-record.quality-poor .ah-name strong {
  color: #9d9d9d;
}

.ah-record.quality-common .ah-item-link,
.ah-record.quality-common .ah-name strong {
  color: #ffffff;
}

.ah-record.quality-uncommon .ah-item-link,
.ah-record.quality-uncommon .ah-name strong {
  color: #1eff00;
}

.ah-record.quality-rare .ah-item-link,
.ah-record.quality-rare .ah-name strong {
  color: #0070dd;
}

.ah-record.quality-epic .ah-item-link,
.ah-record.quality-epic .ah-name strong {
  color: #a335ee;
}

.ah-record.quality-legendary .ah-item-link,
.ah-record.quality-legendary .ah-name strong {
  color: #ff8000;
}

.ah-name small {
  display: block;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  margin-top: 2px;
}

.ah-history-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--teal);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.ah-history-link:hover {
  color: var(--gold);
}

.ah-price {
  color: var(--gold);
  font-family: "Share Tech Mono", monospace;
  font-size: 16px;
}

.ah-empty {
  padding: 22px;
}

.empty {
  color: var(--muted);
  margin: 0;
}

.history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1px;
  margin: 28px 0 16px;
  padding: 0;
  overflow: hidden;
}

.history-summary div {
  min-height: 108px;
  padding: 18px;
  background: rgba(11, 18, 23, .72);
}

.history-summary span,
.history-summary small {
  display: block;
  color: var(--dim);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
}

.history-summary strong {
  display: block;
  margin: 8px 0;
  color: var(--gold);
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  letter-spacing: .04em;
}

.history-table {
  padding: 0;
  margin-bottom: 60px;
  overflow: hidden;
}

.history-chart {
  margin-bottom: 16px;
}

.history-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.history-chart-caption {
  margin: 7px 0 0;
  color: var(--dim);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-chart-actions {
  display: flex;
  gap: 4px;
}

.history-chart-actions button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 11, .72);
  color: var(--dim);
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.history-chart-actions button:hover,
.history-chart-actions button.active {
  border-color: var(--teal);
  color: var(--teal);
}

.history-chart-stage {
  position: relative;
  min-height: 280px;
}

.history-trendline {
  display: block;
  width: 100%;
  height: 310px;
  overflow: visible;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(95, 179, 163, .08), transparent),
    rgba(4, 8, 11, .7);
}

.history-trendline:focus {
  outline: 1px solid var(--teal);
  outline-offset: 3px;
}

.history-trendline .history-grid {
  stroke: rgba(95, 179, 163, .16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.history-trendline .history-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.history-trendline .history-dot {
  fill: var(--teal);
  stroke: #061014;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.history-axis,
.history-median-label {
  fill: var(--dim);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: .04em;
}

.history-trendline .history-median {
  stroke: rgba(95, 179, 163, .55);
  stroke-width: 1;
  stroke-dasharray: 5 5;
}

.history-median-label {
  fill: var(--teal);
  font-size: 10px;
}

.history-trendline .history-selected {
  stroke: var(--teal);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.history-trendline circle.history-selected {
  fill: var(--gold);
  stroke: #061014;
  stroke-width: 2;
}

.history-outlier {
  fill: var(--gold);
  stroke: #061014;
  stroke-width: 1;
}

.history-chart-tooltip {
  position: absolute;
  top: 18px;
  z-index: 2;
  min-width: 170px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(4, 8, 11, .96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
  pointer-events: none;
  transform: translateX(-12%);
}

.history-chart-tooltip.align-right {
  transform: translateX(-88%);
}

.history-chart-tooltip strong,
.history-chart-tooltip span {
  display: block;
  font-family: "Share Tech Mono", monospace;
}

.history-chart-tooltip strong {
  color: var(--gold);
  font-size: 15px;
}

.history-chart-tooltip span {
  margin-top: 4px;
  color: var(--dim);
  font-size: 10px;
}

.history-change.up,
.history-chart-tooltip .up {
  color: #d89272;
}

.history-change.down,
.history-chart-tooltip .down {
  color: var(--teal);
}

.history-chart-empty {
  margin: 0;
  padding: 80px 24px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.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;
}

.history-row {
  display: grid;
  grid-template-columns: 180px 160px minmax(180px, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 54px;
  padding: 10px 18px;
  border-bottom: 1px solid #121e22;
  background: rgba(11, 18, 23, .62);
}

.history-header {
  min-height: 44px;
  color: var(--dim);
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
  background: rgba(14, 24, 32, .8);
}

.history-bar-shell {
  height: 12px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 11, .86);
}

.history-bar {
  display: block;
  height: 100%;
  min-width: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.footer {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 13, 17, .9);
  color: var(--teal);
  font-family: "Share Tech Mono", monospace;
  font-size: 18px;
  box-shadow: 0 0 0 1px rgba(95, 179, 163, .08), 0 14px 34px rgba(0, 0, 0, .38);
}

.back-to-top:hover {
  border-color: var(--teal);
  color: var(--text);
  background: rgba(14, 24, 32, .96);
}

@media (max-width: 860px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .hero,
  .section-grid,
  .guild-history,
  .dossier-grid,
  .manifest-columns,
  .bank-summary,
  .bank-filters,
  .armory-filters,
  .bank-row {
    grid-template-columns: 1fr;
  }

  .bank-tabs {
    grid-template-columns: 1fr;
  }

  .history-stats {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
  }

  .bank-tabs a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .bank-header,
  .scan-stamp {
    display: none;
  }

  .quality-filter {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding: 34px 18px 44px;
  }

  .hero-panel {
    margin-top: 0;
  }

  .records-grid,
  .equipment-grid,
  .stats-grid,
  .honor-breakdown,
  .spellbook-grid {
    grid-template-columns: 1fr;
  }

  .wow-tooltip-shell {
    display: none;
  }

  .terminal-header {
    display: none;
  }

  .terminal-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .reset-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ah-search,
  .ah-row,
  .history-summary,
  .history-row {
    grid-template-columns: 1fr;
  }

  .history-chart-head {
    flex-direction: column;
  }

  .history-chart-stage {
    min-height: 240px;
  }

  .history-trendline {
    height: 250px;
  }

  .talent-trees {
    grid-template-columns: 1fr;
  }

  .seal {
    display: none;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}
