body.wiki-workspace {
  margin: 0;
  --ws-bg: #10131a;
  --ws-panel: #191e29;
  --ws-border: #2e3547;
  --ws-muted: #b5bccb;
}
.wiki-workspace .ws-header,
.wiki-workspace .ws-sidebar,
.wiki-workspace .na-footer { background: #141822; }
.wiki-workspace main { min-width: 0; }
.wiki-workspace .na-mast {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: end;
  min-height: clamp(210px, 28vw, 340px);
  padding: clamp(18px, 4vw, 44px);
  border: 1px solid var(--ws-border);
  border-radius: 10px;
  background: #191e29;
}
.na-mast img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 44%;
}
.na-mast::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #090b12f0 0%, #090b12a6 52%, #090b1233 100%);
}
.na-mast-copy { max-width: 68ch; }
.na-mast h1 { font-size: clamp(2rem, 5vw, 3.35rem); line-height: 1.05; margin: 0; max-width: 100%; }
.na-mast-lead { margin: 10px 0 14px; color: #e2e7f2; font-size: 1.02rem; line-height: 1.45; }
.na-mast-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wiki-workspace .na-pill-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ws-border);
  border-radius: 999px;
  background: #191e29d9;
  color: var(--ws-ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.wiki-workspace .na-pill-btn:hover,
.wiki-workspace .na-pill-btn:focus-visible { border-color: var(--ws-accent); background: #222838; }
.wiki-workspace .na-pill-primary { background: var(--ws-accent); color: #12151c; border-color: var(--ws-accent); }
.wiki-workspace .na-pill-primary:hover,
.wiki-workspace .na-pill-primary:focus-visible { background: #ffc985; border-color: #ffc985; color: #10131a; }
.na-crumb { font-size: .875rem; color: var(--ws-muted); margin-bottom: 2px; }
.wiki-workspace .na-crumb a { text-decoration-color: #ffb96787; }
.na-patch { border-top: 1px solid var(--ws-border); }
.na-patch time { color: var(--ws-muted); }
.na-feedback { margin-top: 24px; }
.na-footer { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.na-footer a, .na-crumb a, .na-feedback summary, .ws-comment-thread summary { display: inline-flex; align-items: center; min-height: 44px; }
.wiki-workspace .table-wrap { max-width: 100%; max-height: none; overflow-x: auto; }
.wiki-workspace .table-wrap th:first-child, .wiki-workspace .table-wrap td:first-child { min-width: 150px; }
.wiki-workspace .table-wrap th, .wiki-workspace .table-wrap td { text-align: left; }
@media (max-width: 850px) {
  .wiki-workspace .ws-sidebar a { display: flex; align-items: center; min-height: 44px; }
  .wiki-workspace .ws-header button { min-height: 44px; }
}
.na-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.na-filters label { display: grid; gap: 4px; }
.na-owned { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.na-owned input { width: 4.6rem; }
.wiki-workspace [data-upgrade-list] th:nth-child(2),
.wiki-workspace [data-upgrade-list] td:nth-child(2) { min-width: 110px; }
.wiki-workspace [data-upgrade-list] td:nth-child(4) { min-width: 190px; }
.na-filters input, .na-filters select, .na-levels summary { min-height: 44px; }
.na-meta { display: block; color: var(--ws-muted); font-size: .875rem; }
.na-levels summary { cursor: pointer; color: var(--ws-accent); padding: 10px 0; }
.na-levels ol { min-width: 12rem; margin: 0; padding: 0; list-style: none; }
.na-levels li { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 4px 0; }
.na-levels li strong { margin-left: auto; }
.na-level-value { flex-basis: 100%; color: var(--ws-muted); }
.na-ore { display: flex; align-items: center; gap: 10px; }
.na-check { display: inline-grid; place-items: center; width: 44px; min-height: 44px; cursor: pointer; }
.na-check input { width: 20px; height: 20px; accent-color: var(--ws-accent); }
.na-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1rem; }
.na-stats { margin: 0; padding: 0; list-style: none; }
.wiki-workspace .na-feedback summary,
.wiki-workspace .ws-comment-thread summary,
.wiki-workspace main input:not([type=checkbox]),
.wiki-workspace main select { min-height: 44px; }
.wiki-workspace .ws-header .ws-game small { display: none; }
.wiki-workspace .skip {
  position: fixed;
  left: 8px;
  top: 8px;
  translate: 0 -200%;
}
.wiki-workspace .skip:focus { translate: none; }

.na-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.na-home-catalogue { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; }
.wiki-workspace .na-home-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  min-height: 68px;
  border: 1px solid var(--ws-border);
  border-radius: 8px;
  background: var(--ws-panel);
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.wiki-workspace .na-home-card:hover,
.wiki-workspace .na-home-card:focus-visible { border-color: var(--ws-accent); transform: translateY(-1px); }
.na-home-card img { flex: 0 0 42px; width: 42px; height: 42px; object-fit: contain; border-radius: 6px; }
.na-home-card img[src^="/media/art/"] { object-fit: cover; }
.na-home-card strong, .na-home-card span span { display: block; }
.na-home-card span span { margin-top: 2px; color: var(--ws-muted); font-size: .84rem; }
.na-home-catalogue .na-home-card strong { font-size: 1.15rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.na-home-section { margin-top: 26px; }
.na-home-section h2 { margin-bottom: 12px; }

.na-mineral-strip,
.na-perk-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(185px, 100%), 1fr));
  gap: 8px;
}
.na-mineral-chip,
.na-perk-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--ws-border);
  border-radius: 8px;
  background: var(--ws-panel);
  text-decoration: none;
}
.na-mineral-chip:hover,
.na-perk-chip:hover,
.na-mineral-chip:focus-visible,
.na-perk-chip:focus-visible { border-color: var(--ws-accent); }
.na-mineral-chip img,
.na-perk-chip img { flex: 0 0 32px; width: 32px; height: 32px; object-fit: contain; }
.na-mineral-chip strong,
.na-mineral-chip span span,
.na-perk-chip strong,
.na-perk-chip span span { display: block; }
.na-mineral-chip strong,
.na-perk-chip strong { font-size: .92rem; line-height: 1.2; }
.na-mineral-chip span span,
.na-perk-chip span span { font-size: .8rem; color: var(--ws-muted); }

.na-set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 10px;
}
.na-set-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--ws-border);
  border-radius: 8px;
  background: var(--ws-panel);
}
.na-set-card[data-complete="true"] { border-color: var(--ws-accent); }
.na-set-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.na-set-head h3 { margin: 0; font-size: 1rem; }
.na-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--ws-border);
  background: #141822;
  color: var(--ws-accent);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}
.na-set-perk { margin: 0; color: var(--ws-ink); font-size: .9rem; }
.na-set-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.wiki-workspace .na-mini-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid var(--ws-border);
  background: #141822;
}
.wiki-workspace .na-mini-art[data-found="true"] { border-color: var(--ws-accent); background: #262016; }
.na-mini-art img { width: 28px; height: 28px; object-fit: contain; }

.na-tele-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 12px;
}
.na-tele-card {
  overflow: hidden;
  border: 1px solid var(--ws-border);
  border-radius: 8px;
  background: var(--ws-panel);
}
.na-tele-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.na-tele-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 150px;
  background: radial-gradient(circle at 30% 30%, #242b3d, #12151e);
  color: var(--ws-muted);
  font-weight: 600;
}
.na-tele-body { padding: 10px 12px; }
.na-tele-body p { margin: 6px 0 0; }
.na-city-list { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 1100px) { .na-home-catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .na-home-grid { grid-template-columns: 1fr; }
  .na-home-catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .na-home-catalogue .na-home-card { padding: 8px; gap: 8px; }
  .na-home-catalogue .na-home-card img { flex-basis: 34px; width: 34px; height: 34px; }
  .na-mineral-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .na-perk-strip { grid-template-columns: 1fr; }
}
.wiki-workspace .na-compare p { max-width: 64ch; }
@media (max-width: 800px) {
  .wiki-workspace .ws-search-open { min-width: 44px; }
  .wiki-workspace .table-wrap table { min-width: 100%; width: max-content; }
  .wiki-workspace .table-wrap td { max-width: 240px; white-space: normal; }
  .wiki-workspace .table-wrap th:first-child,
  .wiki-workspace .table-wrap td:first-child { min-width: 124px; max-width: 165px; }
  .wiki-workspace .ws-page-sections a { display: inline-flex; align-items: center; min-height: 44px; }
  .wiki-workspace .ws-dialog-head button { min-width: 44px; min-height: 44px; }
}
.na-planner fieldset { min-width: 0; border: 1px solid var(--ws-border); margin: 0 0 16px; padding: 14px; }
.na-planner legend { color: var(--ws-ink); padding: 0 5px; font-weight: 650; }
.na-planner .na-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.na-planner .na-filters input, .na-planner .na-filters select { width: 100%; }
.na-planner .na-filters label { min-width: 0; align-content: end; }
.na-planner .na-levels { padding: 0 14px; border: 1px solid var(--ws-border); margin-bottom: 8px; }
.na-planner .na-levels[open] { padding-bottom: 14px; }
.na-table-hint { display: none; }
@media (max-width: 800px) {
  .na-table-hint { display: block; color: var(--ws-muted); font-size: .8125rem; }
  .wiki-workspace [data-achievements] table,
  .wiki-workspace [data-planner-results] table {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
  }
  .wiki-workspace [data-achievements] :is(td, th):first-child { width: 34%; min-width: 0; }
  .wiki-workspace [data-achievements] :is(td, th):last-child { width: 52px; padding-inline: 4px; text-align: center; }
  .wiki-workspace [data-achievements] .na-ore { align-items: flex-start; flex-direction: column; overflow-wrap: anywhere; gap: 5px; }
  .wiki-workspace [data-achievements] .na-ore img { width: 32px; height: 32px; }
  .wiki-workspace [data-planner-results] :is(td, th):first-child { width: 30%; min-width: 0; }
  .wiki-workspace [data-planner-results] :is(td, th) { padding-inline: 6px; overflow-wrap: anywhere; }
  .na-planner :is(.na-haul, .na-planner-levels) .na-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.wiki-workspace .na-planner .table-wrap a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 800px) {
  .wiki-workspace [data-other-upgrades] :is(td, th):nth-child(2) { width: 160px; min-width: 145px; }
  .wiki-workspace [data-upgrade-list] :is(td, th):first-child { min-width: 136px; }
  .wiki-workspace :is([data-upgrade-list], [aria-label="Minerals"]) td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--ws-panel);
  }
  .wiki-workspace :is([data-upgrade-list], [aria-label="Minerals"]) th:first-child { left: 0; z-index: 3; }
}
.na-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(275px, 100%), 1fr)); gap: 10px 24px; }
.na-guides div { padding: 0 0 12px; border-bottom: 1px solid var(--ws-border); }
.na-guides dt a { display: flex; align-items: center; min-height: 44px; font-weight: 650; }
.na-guides dd { margin: 0; color: var(--ws-muted); }
.na-artifact { display: inline-flex; align-items: center; vertical-align: middle; gap: 6px; }
.na-artifact img { flex: 0 0 28px; }
@media (max-width: 800px) {
  .wiki-workspace .table-wrap:is([aria-label="Scanner upgrades"], [aria-label="Day 1 purchase comparison"], [aria-label="Permanent bonuses per pick"]) table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .wiki-workspace .table-wrap:is([aria-label="Scanner upgrades"], [aria-label="Day 1 purchase comparison"], [aria-label="Permanent bonuses per pick"]) :is(td, th) {
    min-width: 0;
    padding-inline: 6px;
    overflow-wrap: anywhere;
  }
}
