:root {
  color-scheme: dark;
  --bg: #050910;
  --panel: #081321;
  --panel-soft: #0b1828;
  --line: #183a5f;
  --line-soft: #102842;
  --text: #eef7ff;
  --muted: #9fb0c5;
  --accent: #f9a916;
  --good: #35d07f;
  --danger: #ff6666;
  --profession-elementalist: #f5a623;
  --profession-engineer: #36a6c9;
  --profession-guardian: #4aa7ee;
  --profession-mesmer: #b46be3;
  --profession-necromancer: #62b567;
  --profession-ranger: #88b94d;
  --profession-revenant: #c45758;
  --profession-thief: #9b8e84;
  --profession-warrior: #d76b4c;
  --profession-unknown: #52677e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0, rgba(38, 91, 145, .18), transparent 32rem), var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 14px 28px;
  background: rgba(5, 9, 16, .94);
  border-bottom: 1px solid rgba(249, 169, 22, .7);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 310px;
  min-width: 180px;
}

.brand-logo {
  display: block;
  width: min(360px, 100%);
  height: 80px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  display: block;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand strong {
  display: block;
  font-size: 22px;
}

.brand-wordmark {
  color: var(--text);
  letter-spacing: 0;
}

.brand-wordmark-accent {
  color: var(--accent);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.auth-page { width: 100%; max-width: 560px; margin-inline: auto; }
.auth-page .account-card { min-width: 0; }
.account-tabs [aria-current="page"] { border-color: var(--accent); }

.main-nav a,
.main-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid #1a4b7e;
  background: #081526;
  font: inherit;
  cursor: pointer;
}

.main-nav a:hover,
.main-nav button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  display: none;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 6px;
  min-width: 330px;
  padding: 10px;
  background: #06101d;
  border: 1px solid #1b548c;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: grid;
}

.dropdown-menu a {
  min-height: auto;
  padding: 10px;
  border-color: var(--line-soft);
}

.guide-dropdown-menu {
  grid-template-columns: 1fr;
  min-width: 220px;
}

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

.glossary-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(82, 119, 158, .34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(12, 28, 45, .84), rgba(5, 14, 25, .76));
}

.glossary-card h3 {
  margin: 0;
  color: var(--accent);
  font-size: 17px;
}

.glossary-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guides-header,
.glossary-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 20px;
}

.guides-layout,
.glossary-layout {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.guides-layout .category-grid {
  gap: 26px;
}

.guides-layout .category {
  padding: 18px;
  border: 1px solid rgba(82, 119, 158, .3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(12, 28, 45, .72), rgba(5, 14, 25, .64));
}

.guides-layout .category h2 {
  margin-bottom: 14px;
  color: #f1f7fd;
}

.profession-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 28px;
  background: #060d18;
  border-bottom: 1px solid var(--line-soft);
}

.profession-ribbon[hidden] {
  display: none;
}

.profession-ribbon a {
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
}

.profession-ribbon a.active,
.profession-ribbon a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.site-shell {
  width: 100%;
  margin: 0;
  padding: 0 0 64px;
}

.site-shell > section:not(.build-hero),
.site-shell > .two-col,
.site-shell > .category-grid,
.site-shell > .admin-wrap {
  width: min(1180px, calc(100% - 32px));
  margin-left: 24px;
  margin-right: auto;
}

.build-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(20px, 3vw, 44px);
  align-items: end;
  min-height: 300px;
  padding: clamp(34px, 5vw, 68px) max(24px, calc((100vw - 1540px) / 2)) 30px;
  border-bottom: 1px solid rgba(124, 157, 194, .28);
  background:
    linear-gradient(90deg, rgba(4, 9, 16, .98) 0%, rgba(5, 12, 21, .92) 44%, rgba(5, 11, 19, .84) 100%),
    url('https://wiki.guildwars2.com/images/4/42/Verdant_Brink_loading_screen.jpg');
  background-position: center;
  background-size: cover;
}

.site-shell > .guide-hero,
.site-shell > .guide-layout {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.guide-hero {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 40px 0 28px;
  border-bottom: 1px solid rgba(124, 157, 194, .28);
  background: transparent;
}

.guide-hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
}

.guide-hero > p:not(.eyebrow) {
  max-width: 860px;
  margin: 0;
  color: #d7e4f1;
  font-size: 17px;
  line-height: 1.55;
}

.hero-copy {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 15px;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 820px;
  margin: 0;
  color: #d7e4f1;
  font-size: 17px;
}

.hero-panel {
  display: grid;
  gap: 10px;
  align-self: stretch;
  align-content: end;
  padding: 18px;
  border: 1px solid rgba(107, 144, 184, .4);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(18, 37, 57, .86), rgba(5, 14, 25, .94));
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
}

.template-code {
  overflow-wrap: anywhere;
  padding: 12px;
  color: #dbeaff;
  border: 1px solid rgba(111, 151, 191, .3);
  border-radius: 5px;
  background: rgba(2, 8, 15, .5);
  font-size: 12px;
}

.hero-panel small {
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 980px) minmax(140px, 1fr);
  gap: 26px;
  align-items: start;
  width: min(1540px, calc(100% - 48px));
  padding: 24px 0 0;
  margin: 0 auto;
}

.layout.build-layout {
  grid-template-columns: 170px minmax(0, 1fr);
  width: min(1460px, calc(100% - 64px));
}

.layout.build-layout .ad-rail {
  display: none;
}

.guide-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 920px) minmax(220px, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px 0 0;
}

.guide-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 116px);
  overflow: auto;
  padding: 10px 12px 12px 10px;
  border-left: 1px solid rgba(96, 132, 171, .28);
}

.guide-toc h2 {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 16px;
}

.guide-toc nav {
  display: grid;
  gap: 2px;
}

.guide-toc a {
  padding: 6px 8px;
  color: var(--muted);
  border-left: 2px solid transparent;
  font-size: 13px;
  line-height: 1.35;
}

.guide-toc a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.guide-source-footer {
  margin-top: 42px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.guide-content h3 {
  scroll-margin-top: 112px;
}

.guide-cover {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #061324;
}

.guide-cover::after {
  color: var(--accent);
  content: 'G';
  font-size: 14px;
  font-weight: 800;
}

.guide-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-cover:has(img)::after {
  display: none;
}

.guide-cover.guide-cover-fallback img {
  display: none;
}

.guide-cover.guide-cover-fallback::after {
  display: block;
}

.guide-content {
  min-width: 0;
}

.guide-content > .section {
  max-width: 920px;
  padding: 22px;
  border: 1px solid rgba(82, 119, 158, .3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(12, 28, 45, .72), rgba(5, 14, 25, .64));
  color: #e1ebf5;
  font-size: 16px;
  line-height: 1.7;
}

.guide-content h2,
.guide-content h3 {
  margin: 1.55em 0 .55em;
  color: #f2f7fb;
}

.guide-content h3 {
  font-size: 24px;
}

.guide-content p {
  max-width: 880px;
  margin: 0 0 1em;
}

.toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  padding: 10px 0 10px 10px;
  border-left: 1px solid rgba(96, 132, 171, .28);
}

.toc a {
  padding: 9px 10px;
  color: var(--muted);
  border-left: 2px solid transparent;
}

.toc a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.content {
  min-width: 0;
}

.ad-rail {
  min-height: 760px;
  border-left: 1px solid rgba(71, 109, 148, .22);
  opacity: .6;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.ad-space {
  min-height: 640px;
  border-left: 1px dashed #143455;
  opacity: .7;
}

.two-col.profession-layout {
  grid-template-columns: minmax(0, 1fr);
}

.two-col.profession-layout .ad-space {
  display: none;
}

.profession-header {
  --profession-accent: var(--profession-unknown);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.profession-header-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--profession-accent) 50%, #6f8ca8);
  border-radius: 8px;
  background: rgba(3, 10, 18, .56);
  box-shadow: inset 0 0 20px color-mix(in srgb, var(--profession-accent) 13%, transparent);
}

.profession-header-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--profession-accent) 55%, transparent));
}

.profession-header-copy .eyebrow {
  margin: 0 0 5px;
  color: var(--profession-accent);
}

.profession-header-copy .page-title {
  margin-bottom: 6px;
}

.profession-build-count {
  align-self: start;
  margin-top: 4px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--profession-accent) 38%, #64819f);
  border-radius: 5px;
  color: #dce8f4;
  background: rgba(4, 13, 23, .6);
  font-size: .8rem;
  white-space: nowrap;
}

.home-mobile-tabs {
  display: none;
}

.home-intro {
  width: 100%;
  margin: 0 0 14px;
}

.home-intro .lead {
  margin: 0;
  font-size: .96rem;
  line-height: 1.45;
}

.home-community-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(360px, 420px) minmax(250px, 310px);
  gap: 10px;
  align-items: start;
  width: min(1640px, calc(100% - 48px));
  padding-top: 10px;
  margin: 0 auto;
}

.home-build-pane {
  min-width: 0;
}

.home-build-board,
.home-latest-column,
.community-column {
  border: 1px solid rgba(84, 118, 154, .32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 29, 45, .92), rgba(5, 12, 22, .94)),
    radial-gradient(circle at 18% 0, rgba(249, 169, 22, .08), transparent 22rem);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .26);
}

.home-build-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 150px));
  border-bottom: 1px solid rgba(84, 118, 154, .25);
}

.home-build-tabs a {
  display: grid;
  min-height: 52px;
  place-items: center;
  color: var(--muted);
  border-right: 1px solid rgba(84, 118, 154, .22);
  font-weight: 700;
}

.home-build-tabs a.active {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.home-mode-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.home-mode-block h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 10px;
  color: #f2f7fd;
  font-size: 1.35rem;
}

.home-mode-block h2:first-child {
  margin-top: 0;
}

.home-build-list {
  display: grid;
  gap: 8px;
}

.home-build-row {
  display: grid;
  grid-template-columns: 42px minmax(120px, 1fr) 84px 48px 108px;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px 12px;
  color: var(--text);
  border: 1px solid rgba(84, 118, 154, .26);
  border-left: 4px solid var(--profession-accent, var(--profession-unknown));
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(13, 29, 46, .95), rgba(6, 15, 26, .88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.home-build-row:hover {
  border-color: color-mix(in srgb, var(--profession-accent, var(--accent)) 60%, white);
  background: linear-gradient(90deg, rgba(19, 40, 62, .98), rgba(8, 19, 32, .92));
}

@media (hover: hover) {
  .home-build-row:hover {
    transform: translateY(-1px);
  }
}

.home-build-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
}

.home-build-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--profession-accent, var(--accent)) 45%, transparent));
}

.home-build-copy {
  min-width: 0;
}

.home-build-copy strong,
.home-build-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-build-copy strong {
  color: #f4f8ff;
  font-size: .98rem;
}

.home-build-copy small {
  margin-top: 3px;
  color: var(--profession-accent, var(--muted));
  font-size: .82rem;
}

.home-mode-chip,
.home-rating,
.home-detail-button {
  white-space: nowrap;
}

.home-mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  color: #cbd7e6;
  border: 1px solid rgba(84, 118, 154, .35);
  border-radius: 6px;
  background: rgba(4, 11, 20, .5);
  font-size: .82rem;
}

.home-rating {
  width: 48px;
  color: #ffd26a;
  font-weight: 700;
  font-size: .86rem;
  text-align: center;
}

.home-detail-button,
.home-tier-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  color: #ffbf3b;
  border: 1px solid rgba(249, 169, 22, .68);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(249, 169, 22, .16), rgba(249, 169, 22, .06));
  font-weight: 700;
}

.home-detail-button {
  width: 100%;
  min-width: 0;
  padding-inline: 6px;
  font-size: .78rem;
}

.home-detail-button::after,
.home-tier-link::after {
  content: "→";
}

.home-tier-link {
  margin: 4px 14px 14px;
  width: calc(100% - 28px);
}

.community-column {
  position: sticky;
  top: 110px;
  height: calc(100vh - 124px);
  min-height: 560px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 0 8px 80px;
}

.community-heading {
  margin: 0 -8px 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(84, 118, 154, .25);
}

.community-heading span {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.community-composer,
.community-login-note,
.community-post {
  border: 1px solid rgba(84, 118, 154, .3);
  background: rgba(6, 16, 28, .82);
  border-radius: 8px;
}

.community-composer {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
}

.community-composer-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
}

.community-composer-row > div:last-child {
  display: grid;
  gap: 6px;
}

.community-composer textarea,
.community-composer input,
.community-comment-form input {
  width: 100%;
  padding: 9px 10px;
  color: var(--text);
  border: 1px solid rgba(84, 118, 154, .35);
  border-radius: 6px;
  background: rgba(3, 9, 16, .9);
  font: inherit;
}

.community-composer textarea {
  min-height: 52px;
  resize: vertical;
}

.community-attachments summary {
  width: max-content;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

.community-attachments[open] summary {
  margin-bottom: 8px;
}

.community-media-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .82rem;
}

.community-attachment-grid {
  display: grid;
  gap: 8px;
}

.community-media-field input[type="file"] {
  min-height: 44px;
  padding: 7px;
}

.community-media-field small {
  color: var(--muted);
}

.community-composer-actions,
.community-post footer,
.profile-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.community-composer button,
.community-login-note a,
.community-comment-form button,
.community-load-more {
  min-height: 38px;
  padding: 0 14px;
  color: #07111d;
  border: 1px solid var(--accent);
  background: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
}

.community-login-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
}

.community-login-note p {
  margin: 0;
  color: var(--muted);
}

.community-feed {
  display: grid;
  gap: 12px;
}

.home-latest-column {
  position: sticky;
  top: 110px;
  min-width: 0;
  padding: 0 12px 14px;
}

.home-latest-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -12px 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(84, 118, 154, .25);
}

.home-latest-heading strong {
  font-size: 1.05rem;
}

.home-latest-heading a {
  color: var(--muted);
  font-size: .82rem;
}

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

.home-latest-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 0 10px;
  color: var(--text);
  border-bottom: 1px solid rgba(84, 118, 154, .22);
}

.home-latest-card:last-child {
  border-bottom: 0;
}

.home-latest-cover {
  display: block;
  width: 82px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(84, 118, 154, .28);
  border-radius: 6px;
  background:
    radial-gradient(circle at 45% 35%, rgba(249, 169, 22, .2), transparent 32px),
    #07111f;
}

.home-latest-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-latest-card b,
.home-latest-card small,
.home-latest-card em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-latest-card b {
  color: #89d8ff;
  font-size: .92rem;
  line-height: 1.25;
}

.home-latest-card small {
  width: max-content;
  max-width: 100%;
  margin: 5px 0;
  padding: 2px 6px;
  color: #c9f4d6;
  border: 1px solid rgba(53, 208, 127, .35);
  border-radius: 4px;
  background: rgba(53, 208, 127, .1);
  font-size: .68rem;
  font-style: normal;
}

.home-latest-card em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: .78rem;
  font-style: normal;
  line-height: 1.35;
}

.community-post {
  overflow: hidden;
}

.community-post > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 12px;
}

.community-post > header > div:nth-child(2) {
  display: grid;
  gap: 2px;
}

.community-post time {
  color: var(--muted);
  font-size: .75rem;
}

.community-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #07111d;
  background: var(--accent);
  font-weight: 800;
  border-radius: 50%;
}

.community-avatar {
  width: 42px;
  height: 42px;
}

.community-composer .community-avatar {
  width: 36px;
  height: 36px;
}

.home-voice-slot {
  min-width: 0;
  min-height: 0;
}

.home-voice-slot .voice-dock:not([data-open="true"]) {
  position: fixed;
  top: auto;
  right: 22px;
  bottom: 22px;
  width: min(210px, calc(100vw - 28px));
}

.home-voice-slot .voice-dock[data-open="true"] {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: min(400px, calc(100vw - 28px));
}

.community-avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-delete {
  width: 34px;
  height: 34px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
}

.community-post-body {
  margin: 0;
  padding: 0 12px 12px;
  overflow-wrap: anywhere;
}

.community-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.community-video-tiktok {
  width: min(100%, 349px);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

.community-tiktok-link {
  display: grid;
  gap: 4px;
  margin: 0 12px 12px;
  padding: 14px;
  color: #f4f8ff;
  border: 1px solid rgba(235, 76, 144, .42);
  border-left: 3px solid #ea4c89;
  border-radius: 5px;
  background: linear-gradient(105deg, rgba(42, 12, 31, .82), rgba(10, 19, 32, .9));
  text-decoration: none;
}

.community-tiktok-link:hover {
  border-color: #ff79aa;
  background: linear-gradient(105deg, rgba(58, 16, 41, .9), rgba(14, 26, 42, .96));
}

.community-tiktok-link strong {
  font-size: .9rem;
}

.community-tiktok-link span {
  color: #ff9bc0;
  font-size: .8rem;
}

.community-video iframe,
.community-image img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.community-image img {
  max-height: 560px;
  object-fit: contain;
  background: #03070d;
}

.community-link {
  display: block;
  margin: 0 12px 12px;
  padding: 9px;
  overflow-wrap: anywhere;
  color: #8cc8ff;
  border: 1px solid var(--line-soft);
}

.community-link-preview {
  display: grid;
  grid-template-columns: minmax(96px, 150px) minmax(0, 1fr);
  gap: 10px;
  margin: 0 12px 12px;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(84, 118, 154, .4);
  background: rgba(7, 18, 31, .76);
  text-decoration: none;
}

.community-link-preview.no-image {
  grid-template-columns: 1fr;
}

.community-link-preview img {
  width: 100%;
  height: 100%;
  min-height: 94px;
  object-fit: cover;
  background: #03070d;
}

.community-link-preview > span {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 10px 10px 10px 0;
}

.community-link-preview strong,
.community-link-preview small,
.community-link-preview em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-link-preview strong {
  color: #dceeff;
}

.community-link-preview small,
.community-link-preview em {
  color: var(--muted);
  font-size: .76rem;
  font-style: normal;
}

.community-post > footer {
  padding: 9px 12px;
  border-top: 1px solid var(--line-soft);
}

.community-post > footer button {
  flex: 1 1 0;
  min-height: 36px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.community-post > footer button:hover,
.community-post > footer button.active {
  color: var(--accent);
  background: #0c1c2f;
}

.community-comments {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line-soft);
}

.community-comment-list {
  display: grid;
  gap: 7px;
  margin-bottom: 9px;
}

.community-comment-list p {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 8px;
  background: #050a11;
}

.community-comment-list span {
  color: #cbd9e8;
  overflow-wrap: anywhere;
}

.community-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.community-comment-login {
  display: block;
  padding: 8px;
  color: #8cc8ff;
  text-align: center;
}

.community-load-more {
  width: 100%;
  margin-top: 12px;
}

.voice-dock-footer button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  color: #111;
  background: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.voice-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  width: min(400px, calc(100vw - 28px));
}

body:not(.home-page) > .voice-dock:not([data-open="true"]) {
  position: fixed;
  top: auto;
  right: 22px;
  bottom: 22px;
  width: min(210px, calc(100vw - 28px));
  margin: 0;
}

.voice-dock-compact {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(8, 19, 33, .98);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .4);
}

.voice-dock[data-open="true"] .voice-dock-compact { display: none; }

.voice-dock-tag {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  padding: 7px 7px 7px 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  font-weight: 400;
  cursor: pointer;
}
.voice-dock-tag-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0;
}
.voice-dock-tag-cta {
  display: inline-block;
  padding: 11px 13px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #06111f;
  font-weight: 700;
}
.voice-dock-tag:hover,
.voice-dock-tag:focus-visible { background: rgba(0, 168, 255, .15); }
.voice-dock-tag:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.voice-dock-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--good);
}

.voice-dock-panel {
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .45);
}

.voice-dock[data-open="true"] .voice-dock-panel { display: block; }

.voice-dock-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.voice-dock-heading strong, .voice-dock-heading span { display: block; }
.voice-dock-heading span { margin-top: 2px; color: var(--muted); font-size: 13px; }
.voice-dock-heading span[data-kind="good"] { color: var(--good); }
.voice-dock-heading span[data-kind="warn"] { color: var(--accent); }
.voice-dock-heading span[data-kind="error"] { color: var(--danger); }
.voice-dock-actions { display: flex; gap: 6px; }

.voice-dock-actions button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #081526;
  font: inherit;
  cursor: pointer;
}

.voice-frame { height: min(520px, calc(100vh - 190px)); background: #050910; }
.voice-frame:has(.voice-access-form),
.voice-frame:has(.voice-room-picker) { height: auto; min-height: 260px; }
.voice-dock-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.voice-dock-footer button { min-height: 34px; color: var(--text); border-color: var(--line); background: #081526; }

.voice-access-form,
.voice-room-picker {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.voice-access-form { align-content: center; min-height: 260px; }
.voice-access-form label { color: var(--text); font-weight: 700; }
.voice-access-form input {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #071321;
  font: inherit;
}
.voice-access-form button,
.voice-room-option {
  border: 1px solid var(--line);
  color: var(--text);
  background: #081526;
  font: inherit;
  cursor: pointer;
}
.voice-access-form button { min-height: 42px; color: #111; border-color: var(--accent); background: var(--accent); font-weight: 700; }
.voice-access-message { min-height: 20px; margin: 0; color: var(--muted); font-size: 13px; }
.voice-access-message[data-kind="error"] { color: var(--danger); }
.voice-room-picker > p { margin: 0; color: var(--muted); }
.voice-room-list { display: grid; gap: 8px; }
.voice-room-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 9px 11px;
  text-align: left;
}
.voice-room-option:hover,
.voice-room-option:focus-visible { border-color: var(--accent); background: #0b1b2f; }
.voice-room-option span,
.voice-room-option small { display: block; }
.voice-room-option small { margin-top: 3px; color: var(--muted); }
.voice-room-option b { flex: 0 0 auto; color: var(--accent); font-size: 13px; }
.voice-loading { display: grid; min-height: 160px; place-items: center; gap: 10px; padding: 18px; color: var(--muted); text-align: center; }
.voice-loading p { margin: 0; }
.voice-loading button { min-height: 38px; padding: 0 14px; border: 1px solid var(--accent); color: #111; background: var(--accent); font: inherit; cursor: pointer; }

.page-title {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 840px;
  color: #c9d6e5;
  font-size: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line-soft);
  color: #cfe4ff;
  background: #071321;
  font-size: 13px;
}

.source-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(249, 169, 22, .5);
}

.section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(84, 118, 154, .28);
}

.section h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.15;
}

.category-grid {
  display: grid;
  gap: 22px;
}

.category h2 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 20px;
}

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

.build-tier-group + .build-tier-group {
  margin-top: 16px;
}

.build-tier-group h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.build-tier-group.tier-meta h3 {
  color: #f9a916;
}

.build-tier-group.tier-great h3 {
  color: #46a8ff;
}

.build-tier-group.tier-good h3 {
  color: #45c77b;
}

.build-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 8px 12px 8px 9px;
  background: linear-gradient(90deg, rgba(12, 29, 47, .92), rgba(7, 16, 28, .74));
  border: 1px solid var(--line-soft);
  border-left-width: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.build-row:hover {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(18, 42, 67, .96), rgba(8, 20, 34, .82));
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.build-row small {
  color: var(--muted);
}

.build-row.tier-meta {
  border-left-color: #f9a916;
}

.build-row.tier-great {
  border-left-color: #46a8ff;
}

.build-row.tier-good {
  border-left-color: #45c77b;
}

.build-row.tier-unranked {
  border-left-color: #52677e;
}

.build-row.profession-elementalist,
.tier-list-group.profession-elementalist { --profession-accent: var(--profession-elementalist); }
.build-row.profession-engineer,
.tier-list-group.profession-engineer { --profession-accent: var(--profession-engineer); }
.build-row.profession-guardian,
.tier-list-group.profession-guardian { --profession-accent: var(--profession-guardian); }
.build-row.profession-mesmer,
.tier-list-group.profession-mesmer { --profession-accent: var(--profession-mesmer); }
.build-row.profession-necromancer,
.tier-list-group.profession-necromancer { --profession-accent: var(--profession-necromancer); }
.build-row.profession-ranger,
.tier-list-group.profession-ranger { --profession-accent: var(--profession-ranger); }
.build-row.profession-revenant,
.tier-list-group.profession-revenant { --profession-accent: var(--profession-revenant); }
.build-row.profession-thief,
.tier-list-group.profession-thief { --profession-accent: var(--profession-thief); }
.build-row.profession-warrior,
.tier-list-group.profession-warrior { --profession-accent: var(--profession-warrior); }

.build-row[class*="profession-"] {
  border-left-color: var(--profession-accent, var(--profession-unknown));
}

@media (hover: hover) {
  .build-row:hover {
    transform: translateY(-1px);
    border-left-color: color-mix(in srgb, var(--profession-accent, var(--accent)) 78%, white);
  }
}

.build-row:focus-visible,
.tier-list-group-summary:focus-visible,
.tier-list-variant:focus-visible,
.tier-list-filters input:focus-visible,
.tier-list-filters select:focus-visible,
.tier-list-filters button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rank-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}

.rank-mark img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.build-row-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.build-row-copy > span {
  min-width: 0;
}

.build-row-copy strong,
.build-row-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.build-row-copy strong {
  color: #f1f7fd;
  font-size: 14px;
}

.build-row-copy small {
  margin-top: 2px;
  font-size: 11px;
}

.build-row-facts {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 78px;
}

.rating-value {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 31px;
  color: #ffd267;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rating-value::before {
  content: '★';
  font-size: 11px;
}

.difficulty-pips {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.difficulty-pips i {
  width: 5px;
  height: 13px;
  background: #26384d;
}

.difficulty-pips i.active {
  background: #f9a916;
}

.empty {
  padding: 18px;
  color: var(--muted);
  border: 1px dashed var(--line);
  background: rgba(8, 19, 33, .52);
}

.trait-line,
.usage-list,
.admin-card {
  border: 1px solid rgba(82, 119, 158, .34);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(12, 28, 45, .84), rgba(5, 14, 25, .76));
  padding: 16px;
}

.skill-group {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(82, 119, 158, .3);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(12, 28, 45, .78), rgba(5, 14, 25, .65));
}

.mechanic-skill-group {
  padding-left: 14px;
  border-left: 3px solid rgba(255, 171, 0, .72);
}

.pet-skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 18px;
}

.pet-skill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  align-content: start;
}

.pet-merged-skills h4 {
  margin: 3px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #b9d4e8;
}

.pet-merged-slot {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.pet-merged-slot > small {
  font-size: 12px;
  line-height: 16px;
  color: #b9d4e8;
}

.pet-skill-heading {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 38px;
}

.pet-skill-heading > img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: cover;
}

.pet-skill-row strong {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
  color: #dceeff;
  font-size: 14px;
  font-weight: 600;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.skill-matrix {
  display: grid;
  gap: 7px;
}

.skill-matrix-row {
  display: grid;
  grid-template-columns: 64px auto;
  gap: 8px;
  align-items: center;
}

.skill-matrix-row > span {
  color: var(--muted);
  font-size: 13px;
}

.mechanic-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
}

.mechanic-cluster {
  display: flex;
  gap: 4px;
  align-items: center;
}

.mechanic-cluster:not(:last-child)::after {
  content: '';
  width: 1px;
  height: 42px;
  margin-left: 2px;
  background: var(--line-soft);
}

.skill-group h3,
.equipment-band h3 {
  margin: 0 0 10px;
  color: #dceeff;
  font-size: 17px;
  font-weight: 500;
}

.icon-tile {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid #172334;
  background: transparent;
  cursor: pointer;
}

.icon-tile img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.icon-tile.major {
  width: 58px;
  height: 58px;
  border-color: var(--accent);
}

.icon-tile.major img {
  width: 54px;
  height: 54px;
}

.icon-tile.minor {
  width: 44px;
  height: 44px;
  opacity: .82;
}

.icon-tile.minor img {
  width: 40px;
  height: 40px;
}

.variant-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.variant-note .icon-tile {
  width: 34px;
  height: 34px;
}

.variant-note .icon-tile img {
  width: 30px;
  height: 30px;
}

.traits {
  display: grid;
  gap: 10px;
}

.trait-line {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  align-items: center;
}

.trait-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.trait-name img {
  width: 32px;
  height: 32px;
}

.trait-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.trait-tree-line {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
}

.trait-tree-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
  pointer-events: none;
}

.trait-tree-line .trait-name {
  flex-direction: column;
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 3px #000;
}

.trait-tree-line .trait-name img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.build-trait-tree {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 180px;
  min-width: 0;
}

.trait-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  fill: none;
  stroke: #ffd16b;
  stroke-width: 2;
}

.build-trait-tier {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  z-index: 1;
}

.build-trait-minor,
.build-trait-choice {
  display: grid;
  place-items: center;
}

.build-trait-choices {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.build-trait-tree .icon-tile {
  width: 44px;
  height: 44px;
  padding: 3px;
  margin: 0;
}

.build-trait-tree .icon-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.build-trait-minor .icon-tile {
  width: 38px;
  height: 38px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: #dca94a;
}

.build-trait-choice.is-inactive .icon-tile img {
  filter: grayscale(.6) brightness(.48);
}

.build-trait-choice.is-selected .icon-tile {
  border: 2px solid #ffd16b;
  box-shadow: 0 0 7px #ffc34d88;
}

.build-trait-choice .icon-tile:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.equipment-weapon-type {
  color: #ffd16b;
}

@media (max-width: 1100px) {
  .trait-tree-line {
    grid-template-columns: minmax(0, 1fr);
  }

  .trait-tree-line .trait-name {
    flex-direction: row;
    text-align: left;
  }

  .trait-tree-line .trait-name img {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 600px) {
  .build-trait-tree {
    height: 144px;
  }

  .build-trait-tree .icon-tile {
    width: 32px;
    height: 32px;
    padding: 2px;
  }

  .build-trait-minor .icon-tile {
    width: 28px;
    height: 28px;
  }
}

.equipment-board {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 20px;
  border: 1px solid rgba(82, 119, 158, .32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(12, 28, 45, .82), rgba(5, 14, 25, .72));
}

.gear-core {
  padding-right: 22px;
  border-right: 1px solid rgba(82, 119, 158, .3);
}

.gear-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(3, 86px);
  gap: 10px 22px;
}

.gear-loadout {
  display: grid;
  gap: 20px;
}

.gear-band {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.gear-band:last-child {
  border-bottom: 0;
}

.gear-band .gear-title {
  font-size: 20px;
}

.gear-strip,
.item-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.item-card {
  width: 76px;
  min-height: 88px;
  color: var(--text);
}

.item-card .icon-tile {
  width: 54px;
  height: 54px;
  border-color: var(--accent);
}

.item-card .icon-tile img {
  width: 50px;
  height: 50px;
}

.item-card strong,
.item-card span {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.2;
}

.item-card strong {
  margin-top: 4px;
  color: #e7f4ff;
  font-weight: 500;
}

.item-card span {
  color: #c3d3e7;
}

.item-card .item-name {
  color: #d8e8f8;
  font-size: 11px;
  line-height: 1.15;
}

.empty-inline {
  color: var(--muted);
  font-size: 13px;
}

.usage-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  padding: 14px;
  color: #dde4ea;
  line-height: 1.62;
}

.content > .section {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.deferred-status {
  color: var(--muted);
}

.usage-more {
  min-height: 40px;
  margin: 10px 14px 0;
  padding: 0 14px;
  color: var(--accent);
  border: 1px solid #315a82;
  background: #081526;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.usage-more:hover {
  border-color: var(--accent);
}

.usage-list p {
  margin: 0;
}

.term,
.usage-visual {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  border-bottom: 1px dotted var(--accent);
  vertical-align: -2px;
}

.term img,
.usage-visual img {
  width: 14px;
  height: 14px;
  object-fit: cover;
}

.term-badge,
.usage-visual {
  margin: 0 2px;
  color: #dfefff;
}

.usage-visual span,
.term-badge span {
  font-size: 13px;
  line-height: 1;
}

.usage-visual:hover,
.term-badge:hover {
  color: #fff2b5;
}

.admin-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.account-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1040px);
  gap: 16px;
}

.build-editor-page {
  width: min(1240px, calc(100% - 48px));
}

.build-editor-page-heading {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 30px 34px 26px;
  border: 1px solid rgba(90, 127, 166, .28);
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(7, 19, 32, .95), rgba(6, 14, 24, .74)),
    url('/assets/buildturk-battlefield-bg.png') center 55% / cover;
}

.build-editor-page-heading .eyebrow {
  margin: 0 0 7px;
  color: #ffbd36;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.build-editor-page-heading .page-title {
  margin-bottom: 8px;
}

.build-editor-page-heading .lead {
  margin: 0;
  color: #b9cbe0;
}

.account-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #1b528a;
  background: #08111d;
}

.account-card form,
.account-card label {
  display: grid;
  gap: 8px;
}

.account-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.account-heading h2,
.account-heading p {
  margin: 0;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  font-size: 2rem;
}

.profile-form {
  gap: 14px !important;
  padding: 16px;
  border: 1px solid var(--line-soft);
  background: #06101b;
}

.profile-form-main {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(280px, 1.3fr);
  gap: 12px;
}

.profile-social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.profile-form input[type="file"] {
  height: auto;
  min-height: 46px;
  padding: 8px;
}

.build-editor-accordion {
  border: 1px solid #1b528a;
  background: #06101b;
}

.build-editor-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.build-editor-accordion > summary::-webkit-details-marker {
  display: none;
}

.build-editor-accordion > summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.5rem;
}

.build-editor-accordion[open] > summary::after {
  content: '−';
}

.build-editor-accordion > summary span {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 800;
}

.build-editor-accordion > summary small {
  margin-left: auto;
  color: var(--muted);
}

.build-editor-accordion-body {
  padding: 16px;
  border-top: 1px solid var(--line-soft);
}

.build-editor-account-hidden {
  display: none;
}

.build-editor-direct {
  border: 0;
  background: transparent;
}

.build-editor-direct > summary {
  display: none;
}

.build-editor-direct .build-editor-accordion-body {
  padding: 0;
  border-top: 0;
}

.build-editor-only .profile-heading,
.build-editor-only .profile-form,
.build-editor-only > .status.warn,
.build-editor-only .account-builds {
  display: none;
}

.quota-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #fff2b5;
  border: 1px solid #74591c;
  background: #171306;
  font-size: 0.82rem;
}

.status.warn {
  color: #ffd47a;
}

.account-card input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid #1b528a;
  background: #050a11;
  font: inherit;
}

.account-card textarea,
.account-card select {
  width: 100%;
  padding: 12px;
  color: var(--text);
  border: 1px solid #1b528a;
  background: #050a11;
  font: inherit;
}

.visual-build-editor {
  gap: 16px !important;
}

.build-editor-direct .visual-build-editor,
.guest-editor-card .visual-build-editor {
  display: grid;
  gap: 16px;
}

.editor-form-grid {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(160px, 1fr);
  gap: 10px;
}

.editor-template-field {
  grid-column: 1 / -1;
}

.editor-template-import,
.editor-bulk-stat {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.editor-template-import {
  padding: 14px;
  border: 1px solid rgba(249, 169, 22, .42);
  border-radius: 7px;
  background: linear-gradient(100deg, rgba(52, 39, 12, .48), rgba(6, 21, 38, .76));
}

.editor-template-heading,
.editor-bulk-stat-heading {
  display: grid;
  grid-column: 1 / -1;
  gap: 3px;
}

.editor-template-heading strong,
.editor-bulk-stat-heading strong {
  color: #fff2b5;
  font-size: .92rem;
}

.editor-template-heading small,
.editor-bulk-stat-heading small {
  color: #b9cce0;
  line-height: 1.35;
}

.editor-template-output {
  color: var(--muted);
}

.editor-template-import .status,
.editor-bulk-stat .status {
  grid-column: 1 / -1;
  align-self: center;
  min-height: 1.4em;
}

.editor-stage {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(82, 119, 158, .36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(12, 28, 45, .84), rgba(5, 14, 25, .76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.editor-stage + .editor-stage {
  border-top: 1px solid rgba(82, 119, 158, .36);
}

.editor-stage[hidden] {
  display: none;
}

.editor-stage h3,
.editor-stage h4 {
  margin: 0;
}

.editor-stage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(82, 119, 158, .26);
}

.editor-stage-heading h3 {
  color: #f1f7fd;
  font-size: 1.15rem;
}

.editor-stage-heading span,
.editor-stage-heading strong {
  color: var(--accent);
  font-size: 0.82rem;
}

.editor-profession-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(76px, 1fr));
  gap: 5px;
}

.account-card .editor-profession-option,
.account-card .editor-specialization-option {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  height: 82px;
  padding: 7px;
  color: #dceeff;
  border: 1px solid rgba(82, 119, 158, .42);
  border-radius: 6px;
  background: rgba(5, 14, 25, .72);
  font-size: 0.76rem;
  line-height: 1.15;
}

.editor-profession-option img,
.editor-specialization-option img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.editor-profession-option span,
.editor-specialization-option span {
  overflow: hidden;
  width: 100%;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card .editor-profession-option.active,
.account-card .editor-specialization-option.active {
  color: #fff2b5;
  border-color: var(--accent);
  background: #101a27;
  box-shadow: inset 0 -3px 0 var(--accent);
}

@media (hover: hover) {
  .account-card .editor-profession-option:hover,
  .account-card .editor-specialization-option:hover,
  .account-card .editor-option-tile:hover,
  .account-card .editor-pet-option:hover,
  .account-card .editor-item-result:hover {
    border-color: rgba(249, 169, 22, .72);
    background: rgba(18, 39, 59, .82);
  }
}

#editorSpecializationBlock {
  display: grid;
  gap: 9px;
}

#editorSpecializationBlock[hidden] {
  display: none;
}

.editor-specialization-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 6px;
}

.editor-mechanic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 4px;
}

.editor-weapon-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.editor-weapon-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(82, 119, 158, .36);
  border-radius: 6px;
  background: rgba(3, 10, 18, .48);
}

.editor-weapon-set > strong {
  grid-column: 1 / -1;
  color: #dceeff;
}

.editor-weapon-set select {
  min-height: 42px;
  padding: 8px;
}

.editor-weapon-skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.editor-weapon-skills.elementalist-layout {
  grid-template-columns: 1fr;
}

.editor-weapon-skills.standard-layout {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.editor-weapon-skills.standard-layout > .editor-skill-set-preview {
  flex: 1 1 0;
  min-width: 280px;
}

.editor-skill-set-preview {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.editor-skill-set-preview h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 0.94rem;
}

.editor-skill-set-preview h4 span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.editor-attunement-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.editor-attunement-row > strong {
  color: var(--accent);
  font-size: 0.78rem;
}

.editor-weapon-skills.standard-layout .editor-attunement-row {
  display: block;
}

.editor-skill-row,
.editor-skill-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.editor-weapon-skills.standard-layout .editor-skill-row {
  flex-wrap: nowrap;
  min-width: max-content;
}

.editor-weapon-skills.standard-layout .editor-skill-variants {
  padding-left: 0;
}

.account-card .editor-skill-tile {
  position: relative;
  display: block;
  flex: 0 0 50px;
  width: 50px;
  min-width: 50px;
  height: 50px;
  min-height: 50px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(94, 139, 182, .56);
  border-radius: 4px;
  background: #02060b;
}

.editor-skill-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-skill-tile > span {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: grid;
  min-width: 16px;
  height: 16px;
  padding-inline: 3px;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .82);
  font-size: 10px;
  line-height: 1;
}

.editor-skill-tile.variant {
  border-color: var(--accent);
}

.editor-skill-tile.empty {
  opacity: .42;
  background: #0b1521;
}

.editor-skill-variants {
  align-items: center;
  padding-left: 71px;
}

.editor-skill-variants > span {
  margin-right: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}

.editor-utility-section,
.editor-pet-section {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(82, 119, 158, .26);
}

.editor-subheading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.editor-subheading span {
  color: var(--accent);
  font-size: 0.78rem;
}

.editor-utility-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.account-card .editor-utility-slot {
  position: relative;
  display: block;
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #315579;
  background: #02060b;
}

.editor-utility-slot.active {
  border-color: var(--accent) !important;
  box-shadow: inset 0 0 0 2px rgba(249, 169, 22, .42);
}

.editor-utility-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-utility-slot span {
  position: absolute;
  right: 2px;
  bottom: 2px;
  min-width: 16px;
  padding: 2px 3px;
  color: #fff;
  background: rgba(0, 0, 0, .82);
  font-size: 10px;
}

.editor-option-grid,
.editor-pet-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 4px;
  max-height: 270px;
  overflow: auto;
  padding: 4px;
  border: 1px solid rgba(82, 119, 158, .36);
  border-radius: 6px;
  background: rgba(3, 10, 18, .5);
}

.account-card .editor-option-tile,
.account-card .editor-pet-option {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  height: 76px;
  padding: 5px;
  color: #dceeff;
  border: 1px solid transparent;
  background: #08111d;
  font-size: 0.68rem;
  line-height: 1.1;
}

.editor-option-tile img,
.editor-pet-option img {
  width: 38px;
  height: 38px;
  object-fit: cover;
}

.editor-option-tile span,
.editor-pet-option span {
  display: -webkit-box;
  overflow: hidden;
  width: 100%;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-align: center;
}

.account-card .editor-option-tile.active,
.account-card .editor-pet-option.active {
  color: #fff2b5;
  border-color: var(--accent);
}

.account-card .editor-option-tile:disabled,
.account-card .editor-pet-option:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.editor-legend-list {
  display: grid;
  gap: 8px;
}

.editor-legend-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.editor-legend-row select {
  min-height: 48px;
}

.editor-pet-selected {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 230px));
  gap: 6px;
}

.editor-pet-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.editor-pet-skill-row {
  display: flex;
  gap: 3px;
  align-items: center;
}

.editor-pet-skill-row .editor-skill-tile {
  width: 48px;
  height: 48px;
}

.account-card .editor-pet-slot {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  height: 58px;
  padding: 4px;
  color: #dceeff;
  border: 1px solid #315579;
  background: #050a11;
  text-align: left;
}

.editor-pet-slot.active {
  color: #fff2b5 !important;
  border-color: var(--accent) !important;
}

.editor-pet-slot img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.editor-pet-slot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-pet-search {
  max-width: 360px;
}

.editor-trait-lines {
  display: grid;
  gap: 9px;
}

.editor-trait-line {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(82, 119, 158, .36);
  border-radius: 6px;
  background: rgba(3, 10, 18, .48);
}

.editor-trait-line-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.editor-trait-line-heading > img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid #315579;
}

.editor-trait-line-heading select {
  width: 100%;
  min-width: 0;
}

.editor-trait-tree {
  display: grid;
  grid-template-columns: repeat(3, minmax(142px, 1fr));
  gap: 8px;
  min-width: 0;
}

.editor-trait-tier {
  display: grid;
  grid-template-columns: 18px 36px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.editor-trait-tier-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.account-card .editor-trait-minor,
.account-card .editor-trait-major {
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  background: #02060b;
}

.account-card .editor-trait-minor {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  cursor: help;
  border: 1px solid #4f6f8f;
  border-radius: 50%;
}

.editor-trait-major-options {
  display: flex;
  gap: 3px;
  min-width: 0;
}

.account-card .editor-trait-major {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid #294662;
  opacity: .42;
  filter: grayscale(.72);
}

.account-card .editor-trait-major.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px rgba(249, 169, 22, .38);
  opacity: 1;
  filter: none;
}

.editor-trait-minor img,
.editor-trait-major img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-equipment-groups {
  display: grid;
  gap: 0;
}

.editor-bulk-stat {
  grid-template-columns: minmax(180px, 1fr) minmax(170px, .8fr) auto;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(249, 169, 22, .38);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(48, 37, 12, .54), rgba(6, 21, 38, .72));
}

.editor-equipment-group {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid rgba(82, 119, 158, .28);
}

.editor-equipment-group:first-child {
  border-top: 0;
}

.editor-equipment-group h4 {
  padding-top: 5px;
  color: #dceeff;
  font-size: 0.82rem;
}

.editor-equipment-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.account-card .editor-equipment-slot {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  width: 154px;
  min-width: 154px;
  height: 58px;
  min-height: 58px;
  padding: 4px;
  color: #a9bdd2;
  border: 1px solid rgba(82, 119, 158, .4);
  border-radius: 5px;
  background: rgba(3, 10, 18, .58);
  text-align: left;
}

.account-card .editor-equipment-slot.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(249, 169, 22, .38);
}

.account-card .editor-equipment-slot.filled {
  color: #e7f3ff;
}

.account-card .editor-equipment-slot.disabled {
  cursor: not-allowed;
  opacity: .42;
}

.account-card .editor-equipment-stat-slot {
  width: 210px;
  min-width: 210px;
  height: 68px;
  min-height: 68px;
}

.editor-equipment-stat-slot .editor-equipment-copy select {
  width: 100%;
  min-width: 0;
  height: 25px;
  min-height: 25px;
  padding: 2px 22px 2px 5px;
  color: #e7f3ff;
  border: 1px solid #315579;
  background: #07111d;
  font-size: 0.68rem;
}

.editor-equipment-stat-slot .editor-equipment-copy small {
  max-width: 144px;
}

.editor-equipment-icon {
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: #02060b;
}

.editor-equipment-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.editor-equipment-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.editor-equipment-copy strong,
.editor-equipment-copy small,
.editor-equipment-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-equipment-copy strong {
  color: inherit;
  font-size: 0.7rem;
}

.editor-equipment-copy small {
  color: var(--muted);
  font-size: 0.62rem;
}

.editor-equipment-copy em {
  color: var(--accent);
  font-size: 0.6rem;
  font-style: normal;
}

.editor-item-picker {
  display: grid;
  grid-column: 2;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(82, 119, 158, .34);
}

.editor-item-picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.editor-item-picker-heading > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.editor-item-picker-heading span {
  color: var(--muted);
  font-size: 0.72rem;
}

.editor-item-picker-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 260px);
  gap: 8px;
}

.editor-item-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 4px;
  max-height: 320px;
  overflow: auto;
}

.account-card .editor-item-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  height: 52px;
  min-height: 52px;
  padding: 4px;
  color: #dceeff;
  border: 1px solid rgba(82, 119, 158, .36);
  border-radius: 5px;
  background: rgba(3, 10, 18, .58);
  text-align: left;
}

.account-card .editor-item-result.active {
  border-color: var(--accent);
}

.editor-item-result img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.editor-item-result span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.editor-item-result strong,
.editor-item-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-item-result strong {
  font-size: 0.69rem;
}

.editor-item-result small {
  color: var(--muted);
  font-size: 0.6rem;
}

.draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.draft-actions button:last-child {
  color: #dceeff;
  border: 1px solid #2f6596;
  background: #0a1b2d;
}

.account-builds {
  display: grid;
  gap: 8px;
  border-top: 1px solid #1b528a;
  padding-top: 16px;
}

.account-build-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #173d63;
  background: #050a11;
}

.slot-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #06101d !important;
  background: var(--accent);
  font-weight: 900;
}

.account-build-copy {
  display: grid;
  gap: 3px;
}

.account-build-copy strong {
  color: var(--text);
}

.account-build-actions {
  display: flex;
  gap: 6px;
}

.account-build-actions button,
.account-build-actions a {
  min-height: 32px;
  padding: 6px 9px;
  color: #dceeff;
  border: 1px solid #2f6596;
  background: #0a1b2d;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.account-build-row span,
.account-build-row b {
  color: var(--muted);
  font-size: 0.84rem;
}

.account-card button {
  min-height: 44px;
  padding: 0 16px;
  color: #06101d;
  border: 0;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.account-card button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.account-tabs {
  display: flex;
  gap: 8px;
}

.account-tabs button {
  color: #dceeff;
  border: 1px solid #2f6596;
  background: #0a1b2d;
}

.admin-card {
  display: grid;
  gap: 12px;
}

.admin-login-wrap {
  display: grid;
  max-width: 440px;
  margin: 52px 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.admin-tabs {
  display: grid;
  gap: 5px;
  position: sticky;
  top: 18px;
}

.admin-tabs button {
  min-height: 42px;
  padding: 9px 12px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-left: 3px solid transparent;
  background: #06101d;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.admin-tabs button:hover,
.admin-tabs button.active {
  color: var(--text);
  border-left-color: var(--accent);
  background: #09203a;
}

.admin-workspace {
  min-width: 0;
}

.admin-tab-panel {
  min-width: 0;
}

.admin-tab-panel > .admin-card {
  min-height: 540px;
  padding: 24px;
}

#importForm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 18px;
}

#importForm h2,
#importForm label,
#importForm .admin-build-options,
#importForm .bulk-import-panel,
#importForm .status,
#importForm > button {
  grid-column: 1 / -1;
}

#importForm .admin-build-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#importForm .admin-build-options > * {
  display: grid;
  min-height: 58px;
  place-items: center;
  text-align: center;
}

#importForm > button {
  min-height: 54px;
}

.bulk-import-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(5, 16, 29, .62);
}

.bulk-import-panel h3,
.bulk-import-panel p {
  margin: 0;
}

.bulk-import-panel p {
  margin-top: 5px;
  color: var(--muted);
}

.bulk-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-import-actions button {
  min-height: 40px;
  padding: 8px 12px;
}

.bulk-import-list {
  display: grid;
  max-height: 250px;
  overflow: auto;
  border-top: 1px solid var(--line-soft);
}

.bulk-import-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(27, 84, 140, .36);
}

.bulk-import-list span {
  color: var(--muted);
  text-align: right;
}

.admin-tab-panel[hidden] {
  display: none;
}

.admin-card label {
  display: grid;
  gap: 6px;
  color: #dceaff;
}

.admin-card input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid #1b528a;
  background: #050a11;
  font: inherit;
}

.admin-build-options,
.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-build-options a,
.admin-build-options button,
.admin-section-heading button,
.member-admin-row button,
.review-admin-actions button {
  min-height: 40px;
  padding: 9px 12px;
  color: #06101d;
  border: 0;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.member-admin-list {
  display: grid;
  gap: 6px;
}

.review-admin-list {
  display: grid;
  gap: 8px;
}

.guide-management-list {
  display: grid;
  gap: 8px;
}

.build-management-list {
  display: grid;
  gap: 8px;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-filter-row button {
  min-height: 36px;
  padding: 7px 11px;
  color: var(--muted);
  border: 1px solid #215481;
  background: #0a2138;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-filter-row button.active,
.admin-filter-row button:hover {
  color: #06101d;
  border-color: var(--accent);
  background: var(--accent);
}

.admin-filter-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-filter-row select {
  min-height: 36px;
  max-width: 180px;
  padding: 6px 28px 6px 9px;
  color: var(--text);
  border: 1px solid #215481;
  background: #0a2138;
  font: inherit;
}

.build-management-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line-soft);
  background: #06101d;
}

.build-management-row strong,
.build-management-row small {
  display: block;
}

.build-management-row small {
  margin-top: 4px;
  color: var(--muted);
}

.build-management-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.build-management-actions a,
.build-management-actions button {
  min-height: 38px;
  padding: 8px 11px;
  color: #06101d;
  border: 0;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.build-management-actions .secondary-action {
  color: var(--text);
  border: 1px solid #215481;
  background: #0a2138;
}

.guide-management-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line-soft);
  background: #06101d;
}

.guide-management-row strong,
.guide-management-row small {
  display: block;
}

.guide-management-row small {
  margin-top: 4px;
  color: var(--muted);
}

.guide-management-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.guide-management-actions a,
.guide-management-actions button {
  min-height: 38px;
  padding: 8px 11px;
  color: #06101d;
  border: 0;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.guide-management-actions .secondary-action {
  color: var(--text);
  border: 1px solid #215481;
  background: #0a2138;
}

.member-admin-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 110px 74px 100px auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #173d63;
  background: #050a11;
}

.member-admin-row > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.member-admin-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 320px) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #173d63;
  background: #050a11;
}

.guide-image {
  margin: 16px 0;
}

.guide-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(82, 119, 158, .4);
  border-radius: 6px;
}

.guide-list-item {
  margin: 7px 0;
  padding-left: 14px;
  border-left: 2px solid var(--line-soft);
}

.guide-list {
  display: grid;
  gap: 7px;
  margin: 0 0 20px;
  padding: 14px 18px 14px 34px;
  border-left: 2px solid var(--accent);
  background: rgba(2, 8, 15, .42);
}

.guide-list li {
  padding-left: 3px;
}

.tier-list-header {
  padding: 34px 0 20px;
}

.site-shell > .tier-list-header {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.tier-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1080px);
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.tier-list-main {
  min-width: 0;
}

.tier-list-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(130px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(82, 119, 158, .36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(12, 28, 45, .84), rgba(5, 14, 25, .76));
}

.tier-list-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.tier-list-filters input,
.tier-list-filters select,
.tier-list-reset {
  min-height: 38px;
  width: 100%;
  padding: 7px 9px;
  color: var(--text);
  border: 1px solid #1b528a;
  background: #07192b;
  font: inherit;
}

.tier-list-reset {
  width: auto;
  color: var(--text);
  cursor: pointer;
}

.tier-list-result-count {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .86rem;
}

.tier-list-results {
  display: grid;
  gap: 8px;
}

.tier-list-group {
  --profession-accent: var(--profession-unknown);
  overflow: hidden;
  border: 1px solid rgba(82, 119, 158, .36);
  border-left: 3px solid var(--profession-accent);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(13, 29, 46, .92), rgba(6, 15, 26, .86));
  box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.tier-list-group-summary {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 11px 15px;
  color: var(--text);
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tier-list-group-summary:hover {
  background: rgba(16, 47, 76, .52);
}

@media (hover: hover) {
  .tier-list-group:hover {
    transform: translateY(-1px);
    border-color: var(--profession-accent);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  }
}

.tier-list-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.tier-list-mode-pills i {
  padding: 2px 6px;
  color: #cbd7e6;
  border: 1px solid rgba(84, 118, 154, .4);
  border-radius: 4px;
  background: rgba(4, 11, 20, .45);
  font-size: .68rem;
  font-style: normal;
}

.tier-list-variant-count {
  min-width: 72px;
  color: var(--muted);
  font-size: .78rem;
  text-align: right;
}

.tier-list-variants {
  display: grid;
  border-top: 1px solid rgba(82, 119, 158, .3);
  background: rgba(2, 8, 15, .5);
}

.tier-list-variants[hidden] {
  display: none;
}

.tier-list-variant {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 80px auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px 8px 24px;
  border-top: 1px solid rgba(82, 119, 158, .24);
  color: var(--text);
}

.tier-list-variant:first-child { border-top: 0; }
.tier-list-variant:hover { background: rgba(16, 47, 76, .45); }
.tier-list-variant > strong { color: var(--accent); }
.tier-list-variant > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tier-list-variant small { color: var(--muted); }
.tier-list-variant b { color: var(--accent); font-size: .8rem; white-space: nowrap; }

.tier-list-empty {
  display: grid;
  gap: 4px;
  padding: 28px 18px;
  border: 1px dashed rgba(82, 119, 158, .6);
  border-radius: 7px;
  background: rgba(5, 14, 25, .56);
  color: var(--muted);
  text-align: center;
}

.tier-list-empty strong { color: var(--text); }

.tier-list-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tier-list-tabs button {
  min-height: 38px;
  padding: 7px 13px;
  color: var(--text);
  border: 1px solid #1b528a;
  background: #07192b;
  font: inherit;
  cursor: pointer;
}

.tier-list-tabs button:hover,
.tier-list-tabs button.active {
  color: #07111d;
  border-color: var(--accent);
  background: var(--accent);
}

.tier-list-mode {
  margin-bottom: 22px;
  border: 1px solid #1b528a;
  background: rgba(7, 25, 43, .58);
}

.tier-list-mode-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 13px 15px;
  border-bottom: 1px solid #1b528a;
}

.tier-list-mode-heading h2 {
  margin: 0;
  color: var(--accent);
  font-size: 1.15rem;
}

.tier-list-mode-heading span {
  color: var(--muted);
  font-size: .82rem;
}

.tier-list-builds {
  display: grid;
}

.tier-list-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 115px;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 9px 14px;
  color: var(--text);
  border-top: 1px solid rgba(27, 82, 138, .58);
  text-decoration: none;
}

.tier-list-row:first-child {
  border-top: 0;
}

.tier-list-row:hover {
  background: #0b2741;
}

.tier-list-rank,
.tier-list-build-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tier-list-rank strong {
  color: var(--accent);
  font-size: .88rem;
}

.tier-list-build-info > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tier-list-build-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tier-list-build-info small,
.tier-list-rating small {
  color: var(--muted);
  font-size: .78rem;
}

.tier-list-rating {
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
}

/* Inner-page visual pass: align editorial headers and tier data on one grid. */
@media (min-width: 981px) {
  .site-shell > section.guides-header,
  .site-shell > section.glossary-header,
  .site-shell > section.tier-list-header {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
  }

  .tier-list-header {
    padding: 42px 0 22px;
    border-bottom: 1px solid rgba(88, 122, 158, .24);
  }

  .tier-list-header .eyebrow {
    margin-bottom: 8px;
    color: #ffbd36;
    font-size: .76rem;
  }

  .tier-list-header .page-title {
    margin-bottom: 10px;
  }

  .tier-list-header .lead {
    max-width: 720px;
    color: #b7c7d9;
  }

  .tier-list-layout {
    padding-top: 18px;
  }

  .tier-list-filters {
    padding: 12px;
    border-color: rgba(88, 122, 158, .3);
    border-radius: 6px;
    background: #0a1624;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
  }

  .tier-list-group {
    border-left-width: 3px;
    border-radius: 6px;
    background: linear-gradient(90deg, #0d1b2b 0%, #0a1624 100%);
    box-shadow: none;
  }

  .tier-list-group-summary {
    min-height: 70px;
    padding: 10px 14px;
  }

  .tier-list-group-summary:hover {
    background: rgba(20, 40, 63, .62);
  }

  .tier-list-rank .build-profession-icon {
    padding: 2px;
    border: 1px solid color-mix(in srgb, var(--profession-accent) 32%, transparent);
    border-radius: 4px;
    background: rgba(3, 10, 17, .34);
  }

  .tier-list-variants {
    background: rgba(3, 10, 17, .42);
  }

  .tier-list-variant {
    min-height: 42px;
  }
}

@media (max-width: 980px) {
  .tier-list-layout {
    grid-template-columns: 1fr;
    width: calc(100% - 20px);
  }

  .tier-list-row {
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 9px;
    padding-inline: 10px;
  }

  .tier-list-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tier-list-search { grid-column: 1 / -1; }

  .tier-list-reset { width: 100%; }

  .tier-list-group-summary {
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 9px;
    padding-inline: 10px;
  }

  .tier-list-variant-count { grid-column: 2 / -1; text-align: left; }
}

@media (max-width: 560px) {
  .tier-list-filters { grid-template-columns: 1fr; }
  .tier-list-search { grid-column: auto; }
  .tier-list-group-summary { grid-template-columns: 68px minmax(0, 1fr); }
  .tier-list-rating { grid-column: 2; text-align: left; }
  .tier-list-variant-count { grid-column: 2; }
  .tier-list-variant { grid-template-columns: 72px minmax(0, 1fr); padding-left: 12px; }
  .tier-list-variant small { grid-column: 2; }
  .tier-list-variant b { grid-column: 2; }
}

.guide-source-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-editor-label {
  margin-top: 4px;
  color: #dceaff;
  font-weight: 700;
}

.guide-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--line-soft);
  border-bottom: 0;
  background: #07192b;
}

.guide-editor-toolbar button {
  min-height: 31px;
  padding: 4px 9px;
  color: var(--text);
  border: 1px solid #215481;
  background: #0a2138;
  font: inherit;
  cursor: pointer;
}

.guide-editor-toolbar button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.guide-editor-canvas {
  min-height: 420px;
  padding: 18px;
  color: var(--text);
  border: 1px solid var(--line-soft);
  background: #050a11;
  line-height: 1.6;
  outline: 0;
}

.guide-editor-canvas:empty::before {
  color: var(--muted);
  content: attr(data-placeholder);
}

.guide-editor-canvas h3 {
  margin: 1.4em 0 .55em;
}

.guide-editor-canvas p,
.guide-editor-canvas ul,
.guide-editor-canvas ol {
  margin: 0 0 1em;
}

.guide-editor-canvas img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border: 1px solid var(--line-soft);
}

.review-admin-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.review-admin-main small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-admin-row textarea {
  width: 100%;
  min-height: 44px;
  padding: 7px;
  resize: vertical;
  color: var(--text);
  border: 1px solid #1b528a;
  background: #08111d;
  font: inherit;
  font-size: 13px;
}

.review-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.editor-data-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  gap: 6px;
}

.editor-data-stats[hidden] {
  display: none;
}

.editor-data-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #173d63;
  background: #050a11;
}

.editor-data-stats strong {
  color: var(--accent);
  font-size: 18px;
}

.editor-data-stats small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
}

.member-admin-row input,
.member-admin-row select {
  width: 100%;
  min-height: 40px;
  padding: 7px;
  color: var(--text);
  border: 1px solid #1b528a;
  background: #08111d;
}

.admin-card button {
  height: 48px;
  color: #06101d;
  border: 0;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-card button.secondary-action {
  color: #dceeff;
  border: 1px solid #2f6596;
  background: #0a1b2d;
}

.admin-card button:disabled {
  opacity: .55;
  cursor: wait;
}

.status {
  color: var(--muted);
}

.status.ok {
  color: var(--good);
}

.status.err {
  color: var(--danger);
}

.tooltip-layer {
  position: fixed;
  z-index: 80;
  width: min(390px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 24px));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 10px;
  color: #f3f3f3;
  background: linear-gradient(#0b0b0b, #151515);
  border: 1px solid #5e5240;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .68), inset 0 0 0 1px rgba(255, 255, 255, .05);
  font-size: 12px;
  line-height: 1.25;
}

.tooltip-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.tooltip-head img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid #7a674c;
}

.tooltip-title {
  color: #ffd56a;
  font-size: 15px;
  font-weight: 800;
}

.tooltip-kind {
  color: #aaa;
  font-size: 11px;
}

.tooltip-row {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  margin: 2px 0;
}

.tooltip-row > img {
  width: 14px;
  height: 14px;
  object-fit: cover;
  margin-top: 1px;
}

.tooltip-row b {
  flex: 0 0 auto;
  color: #d9cdb8;
}

.tooltip-value {
  color: #8cc8ff;
}

.tooltip-number {
  color: #62b6ff;
  font-weight: 700;
}

.tooltip-item .tooltip-value,
.tooltip-item .tooltip-bonus {
  color: #e9e0d3;
}

.tooltip-item .tooltip-number {
  color: inherit;
}

.tooltip-item .tooltip-attribute b,
.tooltip-item .tooltip-attribute .tooltip-value {
  color: #8cc8ff;
}

.tooltip-desc {
  margin-top: 6px;
  color: #e9e0d3;
}

.tooltip-bonus {
  margin-top: 4px;
  color: #dce9f5;
}

.tooltip-link {
  display: inline-block;
  margin-top: 7px;
  color: #8cc8ff;
}

@media (max-width: 980px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .layout {
    grid-template-columns: 1fr;
    width: min(100% - 20px, 760px);
    padding-top: 16px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    width: calc(100% - 20px);
    padding: 18px 0 0;
  }

  .guide-toc {
    position: static;
    max-height: none;
    padding: 0;
    border-left: 0;
  }

  .toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    padding-top: 0;
    border-left: 0;
  }

  .ad-space,
  .ad-rail {
    display: none;
  }

  .build-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 30px max(16px, calc((100vw - 760px) / 2)) 24px;
  }

  .equipment-board {
    grid-template-columns: 1fr;
  }

  .gear-core {
    padding-right: 0;
    border-right: 0;
  }

  .editor-profession-grid {
    grid-template-columns: repeat(5, minmax(76px, 1fr));
  }

  .editor-specialization-grid {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }
}

@media (max-width: 900px) {
  .home-intro {
    display: none;
  }

  .home-mobile-tabs {
    position: sticky;
    top: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 4px;
    border: 1px solid var(--line-soft);
    background: #050910;
  }

  .home-mobile-tabs button {
    min-height: 42px;
    color: var(--muted);
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
  }

  .home-mobile-tabs button.active {
    color: #07111d;
    background: var(--accent);
  }

  .home-community-layout {
    display: block;
    width: min(100% - 20px, 680px);
    margin-inline: auto;
    touch-action: pan-y;
  }

  .home-build-row {
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
      "icon copy"
      "icon mode";
    gap: 7px 10px;
    min-height: 82px;
  }

  .home-build-icon { grid-area: icon; }
  .home-build-copy { grid-area: copy; }
  .home-mode-chip { grid-area: mode; justify-self: start; }
  .home-rating,
  .home-detail-button { display: none; }

  .home-build-copy strong,
  .home-build-copy small {
    max-width: 100%;
  }

  .home-build-copy strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .home-voice-slot {
    display: contents;
  }

  .home-voice-slot .voice-dock:not([data-open="true"]) {
    position: fixed;
    right: 10px;
    bottom: 14px;
    top: auto;
    width: min(210px, calc(100vw - 20px));
  }

  .home-community-layout[data-mobile-pane="builds"] [data-home-pane="community"],
  .home-community-layout[data-mobile-pane="builds"] [data-home-pane="latest"],
  .home-community-layout[data-mobile-pane="community"] [data-home-pane="builds"],
  .home-community-layout[data-mobile-pane="community"] [data-home-pane="latest"],
  .home-community-layout[data-mobile-pane="latest"] [data-home-pane="builds"],
  .home-community-layout[data-mobile-pane="latest"] [data-home-pane="community"] {
    display: none;
  }

  .community-column,
  .home-latest-column {
    position: static;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0 0 120px;
  }

}

@media (max-width: 480px) {
  .home-mobile-tabs {
    width: calc(100% - 16px);
    margin-block: 8px;
  }

  .home-mobile-tabs button {
    min-height: 40px;
    padding-inline: 4px;
    font-size: .78rem;
  }

  .home-community-layout {
    width: calc(100% - 16px);
  }

  .home-mode-list {
    padding: 10px;
  }

  .home-mode-block h2 {
    margin-block: 5px 8px;
    font-size: 1.15rem;
  }

  .home-build-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 6px 8px;
    min-height: 76px;
    padding: 8px;
  }

  .home-build-icon,
  .home-build-icon img {
    width: 34px;
    height: 34px;
  }

  .home-build-copy strong {
    font-size: .9rem;
  }

  .home-build-copy small,
  .home-mode-chip {
    font-size: .75rem;
  }

  .home-mode-chip {
    min-height: 30px;
    padding-inline: 7px;
  }

}

/* Homepage layout pass: keep the three desktop areas balanced without
   changing their content or interaction behavior. */
@media (min-width: 901px) {
  .home-community-layout {
    grid-template-columns: minmax(600px, 1.42fr) minmax(300px, .78fr) minmax(250px, .72fr);
    gap: 14px;
    width: min(1660px, calc(100% - 56px));
  }

  .home-intro {
    padding-right: 6px;
  }

  .home-build-row {
    grid-template-columns: 42px minmax(0, 1fr) 84px 52px 118px;
    gap: 10px;
  }

  .community-column,
  .home-latest-column {
    top: 104px;
  }

  .community-column {
    padding-inline: 10px;
  }

  .community-heading {
    margin-inline: -10px;
    padding-top: 12px;
  }
}

.mobile-utility-tabs {
  display: none;
}

.community-text-link,
.community-inline-link {
  color: #7fd7ff;
  text-decoration: underline;
  text-decoration-color: rgba(127, 215, 255, .5);
  overflow-wrap: anywhere;
}

.community-inline-link {
  display: inline-grid;
  gap: 5px;
  margin: 8px 0;
  text-decoration: none;
}

.community-inline-link img {
  display: block;
  width: min(100%, 340px);
  max-height: 220px;
  object-fit: cover;
  border: 1px solid rgba(84, 118, 154, .35);
  border-radius: 6px;
}

.community-inline-link span {
  color: #7fd7ff;
  font-size: .78rem;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

@media (min-width: 901px) {
  .home-latest-list {
    height: min(620px, calc(100vh - 210px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 4px;
  }

}

@media (max-width: 900px) {
  .profession-header {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
  }

  .profession-header-icon {
    width: 48px;
    height: 48px;
  }

  .profession-header-icon img {
    width: 40px;
    height: 40px;
  }

  .profession-header-copy .eyebrow {
    margin-bottom: 3px;
    font-size: .7rem;
  }

  .profession-header-copy .page-title {
    font-size: 1.85rem;
  }

  .profession-build-count {
    grid-column: 2;
    justify-self: start;
    margin-top: -4px;
  }

  body:not(.home-page) .mobile-utility-tabs.is-visible {
    position: sticky;
    top: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 20px);
    margin: 8px auto;
    padding: 4px;
    border: 1px solid var(--line-soft);
    background: #050910;
  }

  .mobile-utility-tabs a {
    display: grid;
    min-height: 40px;
    place-items: center;
    color: var(--muted);
    font-weight: 700;
  }

  .mobile-utility-tabs a:active,
  .mobile-utility-tabs a:focus-visible {
    color: #07111d;
    background: var(--accent);
  }
}

@media (max-width: 900px) {
  .home-build-board,
  .community-column,
  .home-latest-column {
    overflow: clip;
  }

  .home-latest-list {
    height: min(620px, calc(100dvh - 150px));
    min-height: 420px;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-gutter: stable;
    padding-right: 4px;
  }

  .home-latest-sentinel {
    min-height: 1px;
  }

  .home-mode-list {
    padding: 12px;
  }

  .home-build-copy {
    overflow-wrap: anywhere;
  }

  .home-build-copy small {
    white-space: normal;
  }

  .home-voice-slot .voice-dock[data-open="true"] {
    position: fixed;
    inset: auto 10px 10px;
    width: auto;
    max-height: calc(100dvh - 20px);
  }

  .home-voice-slot .voice-dock[data-open="true"] .voice-frame {
    max-height: calc(100dvh - 180px);
    overflow: auto;
  }
}

@media (max-width: 480px) {
  .home-build-row {
    width: 100%;
    min-width: 0;
  }

  .community-column,
  .home-latest-column {
    padding-inline: 0;
  }

  .home-voice-slot .voice-dock:not([data-open="true"]) {
    right: 8px;
    bottom: 8px;
    width: min(210px, calc(100vw - 16px));
  }
}

/* Ana sayfa: modern liste ve topluluk yerleşimi. */
body.home-page {
  background-color: #060a11;
  background-image: url('/assets/buildturk-battlefield-bg.png');
  background-repeat: no-repeat;
  background-position: center 84px;
  background-size: max(1440px, 100%) auto;
  background-attachment: fixed;
}

@media (max-width: 900px) {
  body.home-page {
    background-image: none;
  }
}

body.home-page .home-community-layout {
  grid-template-columns: minmax(560px, 1.42fr) minmax(350px, .85fr) minmax(254px, .55fr);
  gap: 16px;
  width: min(1740px, calc(100% - 64px));
  padding-top: 18px;
}

body.home-page .home-intro {
  margin-bottom: 16px;
  padding: 4px 0 4px 15px;
  border-left: 3px solid var(--accent);
}

body.home-page .home-intro .lead {
  max-width: 760px;
  color: #b7c7d9;
}

body.home-page .home-build-board,
body.home-page .community-column,
body.home-page .home-latest-column {
  border-color: rgba(88, 122, 158, .34);
  border-radius: 6px;
  background: #0a1420;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

body.home-page .home-mode-list {
  gap: 0;
  padding: 12px;
}

body.home-page .home-mode-block {
  padding: 12px 0 14px;
}

body.home-page .home-mode-block + .home-mode-block {
  border-top: 1px solid rgba(88, 122, 158, .22);
}

body.home-page .home-mode-block h2 {
  margin: 0 0 10px;
  color: #dce9f7;
  font-size: 1rem;
}

body.home-page .home-build-list {
  gap: 7px;
}

body.home-page .home-build-row {
  min-height: 68px;
  padding: 9px 10px;
  border-color: rgba(88, 122, 158, .28);
  border-left-color: var(--profession-accent, var(--profession-unknown));
  border-radius: 5px;
  background: #0d1928;
  box-shadow: none;
}

body.home-page .home-build-row:hover {
  border-color: rgba(145, 190, 230, .52);
  border-left-color: var(--profession-accent, var(--profession-unknown));
  background: #122238;
}

body.home-page .home-build-copy strong {
  font-size: .94rem;
}

body.home-page .home-build-copy small {
  margin-top: 2px;
}

body.home-page .home-mode-chip {
  min-height: 30px;
  padding-inline: 8px;
  border-color: rgba(88, 122, 158, .3);
  border-radius: 4px;
  background: #07111d;
  font-size: .76rem;
}

body.home-page .home-detail-button,
body.home-page .home-tier-link {
  color: #111822;
  border-color: var(--accent);
  border-radius: 4px;
  background: var(--accent);
  font-weight: 700;
}

body.home-page .home-tier-link {
  margin: 2px 12px 12px;
  width: calc(100% - 24px);
}

body.home-page .community-column,
body.home-page .home-latest-column {
  top: 98px;
}

body.home-page .community-heading,
body.home-page .home-latest-heading {
  min-height: 56px;
  margin-bottom: 0;
  padding: 0 14px;
  border-bottom-color: rgba(88, 122, 158, .26);
}

body.home-page .community-heading {
  margin-inline: -8px;
}

body.home-page .home-latest-heading {
  margin-inline: -12px;
}

body.home-page .community-heading span,
body.home-page .home-latest-heading strong {
  font-size: .98rem;
}

body.home-page .community-composer,
body.home-page .community-login-note,
body.home-page .community-post {
  border-color: rgba(88, 122, 158, .25);
  border-radius: 5px;
  background: #0c1725;
}

body.home-page .community-post > header {
  padding: 10px;
}

body.home-page .home-latest-list {
  gap: 0;
}

body.home-page .home-latest-card {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 9px;
  padding: 12px 0;
  border-bottom-color: rgba(88, 122, 158, .22);
}

body.home-page .home-latest-cover {
  width: 72px;
  border-radius: 5px;
}

body.home-page .home-latest-card b {
  color: #7fd7ff;
  font-size: .88rem;
}

/* Desktop home visual pass: make build identity primary and actions secondary. */
@media (min-width: 901px) {
  body.home-page .home-build-row {
    grid-template-columns: 44px minmax(0, 1fr) 88px 56px 112px;
    min-height: 70px;
    border-left-width: 3px;
    background: linear-gradient(90deg, #0d1b2b 0%, #0a1624 100%);
  }

  body.home-page .home-build-row:hover {
    background: linear-gradient(90deg, #142840 0%, #0d1b2b 100%);
  }

  body.home-page .home-build-icon {
    width: 40px;
    height: 40px;
    border: 1px solid color-mix(in srgb, var(--profession-accent, var(--accent)) 32%, transparent);
    border-radius: 4px;
    background: rgba(3, 10, 17, .34);
  }

  body.home-page .home-build-copy strong {
    color: #f6f9fe;
    font-size: .96rem;
  }

  body.home-page .home-build-copy small {
    color: color-mix(in srgb, var(--profession-accent, #9bb9d7) 72%, #d9ecff);
  }

  body.home-page .home-mode-chip {
    justify-content: center;
    color: #b8cbe0;
    background: rgba(3, 10, 17, .38);
  }

  body.home-page .home-rating {
    width: 56px;
    font-variant-numeric: tabular-nums;
  }

  body.home-page .home-detail-button {
    min-height: 34px;
    color: #c8d9ea;
    border-color: rgba(112, 153, 193, .5);
    background: rgba(5, 15, 25, .48);
    font-weight: 500;
    transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
  }

  body.home-page .home-build-row:hover .home-detail-button {
    color: #101823;
    border-color: var(--accent);
    background: var(--accent);
  }

  body.home-page .community-post {
    border-radius: 4px;
    background: linear-gradient(180deg, #0d1928, #0a1522);
  }

  body.home-page .home-latest-card {
    transition: background 140ms ease, padding-inline 140ms ease;
  }

  body.home-page .home-latest-card:hover {
    padding-inline: 6px;
    background: rgba(20, 40, 63, .38);
  }
}

/* Global design system: shared surfaces and navigation without changing page logic. */
:root {
  --surface-base: #060b13;
  --surface-raised: #0a1624;
  --surface-hover: #102238;
  --border-subtle: rgba(116, 151, 188, .24);
  --border-strong: rgba(123, 174, 219, .48);
  --focus-ring: #78cffb;
  --radius-ui: 6px;
}

body {
  background: var(--surface-base);
}

.topbar {
  min-height: 78px;
  border-bottom-color: rgba(249, 169, 22, .62);
  background: rgba(6, 13, 23, .97);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.main-nav a,
.main-nav button {
  min-height: 42px;
  border-color: var(--border-subtle);
  border-radius: var(--radius-ui);
  background: transparent;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.main-nav a:hover,
.main-nav button:hover,
.main-nav a[aria-current="page"],
.main-nav button[aria-current="page"] {
  color: #f7fbff;
  border-color: var(--accent);
  background: rgba(249, 169, 22, .11);
}

.home-build-board,
.community-column,
.home-latest-column,
.guide-content > .section,
.tier-list-mode,
.tier-list-group,
.account-card,
.admin-card,
.glossary-card {
  border-color: var(--border-subtle);
  border-radius: var(--radius-ui);
  background: var(--surface-raised);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.home-build-row,
.build-row,
.tier-list-variant,
.home-latest-card {
  border-radius: var(--radius-ui);
}

.home-build-row:hover,
.build-row:hover,
.tier-list-variant:hover,
.home-latest-card:hover {
  background-color: var(--surface-hover);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .topbar {
    min-height: var(--mobile-header-height);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .26);
  }

  .main-nav a[aria-current="page"],
  .main-nav button[aria-current="page"] {
    color: var(--accent);
    background: rgba(249, 169, 22, .08);
  }
}

/* Profession listings: denser desktop browse surface, without changing filters or rows. */
@media (min-width: 901px) {
  .site-shell > section:has(+ .two-col) {
    width: min(1460px, calc(100% - 64px));
    margin: 0 auto;
    padding: 30px 34px 24px;
    border: 1px solid rgba(90, 127, 166, .28);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background:
      linear-gradient(108deg, rgba(8, 20, 34, .94), rgba(5, 13, 23, .7)),
      url('https://wiki.guildwars2.com/images/4/42/Verdant_Brink_loading_screen.jpg') center / cover;
  }

  .site-shell > section:has(+ .two-col) .page-title {
    margin: 0 0 8px;
    color: #f1f6fb;
    font-size: clamp(34px, 3.1vw, 48px);
  }

  .site-shell > section:has(+ .two-col) .lead {
    max-width: 720px;
    margin: 0;
    color: #b9cbe0;
  }

  .site-shell > .two-col {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 278px);
    gap: 20px;
    width: min(1460px, calc(100% - 64px));
    margin: 18px auto 0;
  }

  .two-col > .category-grid {
    gap: 18px;
    min-width: 0;
  }

  .two-col .category {
    padding: 16px;
    border: 1px solid rgba(80, 118, 157, .32);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(10, 27, 45, .86), rgba(5, 14, 25, .86));
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
  }

  .two-col .category h2 {
    display: flex;
    align-items: center;
    min-height: 32px;
    margin: 0 0 12px;
    padding: 0 0 10px;
    color: #f0f5fa;
    border-bottom: 1px solid rgba(93, 132, 171, .28);
    font-size: 20px;
  }

  .two-col .build-tier-group + .build-tier-group {
    margin-top: 14px;
  }

  .two-col .build-tier-group h3 {
    margin-bottom: 7px;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .two-col .build-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 70px;
    padding: 10px 14px 10px 10px;
    border-left-width: 4px;
    border-radius: 5px;
  }

  .two-col .build-row:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
  }

  .two-col .ad-space {
    position: sticky;
    top: 98px;
    min-height: 520px;
    border: 1px solid rgba(70, 105, 140, .24);
    border-radius: 8px;
    background: linear-gradient(165deg, rgba(10, 24, 40, .7), rgba(4, 11, 19, .25));
  }
}

/* Tier List: keep the existing filters and expanding variants, refine only the desktop frame. */
@media (min-width: 981px) {
  .site-shell > section.tier-list-header {
    width: min(1460px, calc(100% - 64px));
    margin: 0 auto;
    padding: 30px 34px 24px;
    border: 1px solid rgba(90, 127, 166, .28);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background:
      linear-gradient(108deg, rgba(8, 20, 34, .94), rgba(5, 13, 23, .72)),
      url('https://wiki.guildwars2.com/images/4/42/Verdant_Brink_loading_screen.jpg') center / cover;
  }

  .tier-list-header .page-title {
    margin-bottom: 8px;
    color: #f1f6fb;
    font-size: clamp(34px, 3.1vw, 48px);
  }

  .tier-list-header .lead {
    margin-bottom: 0;
    color: #b9cbe0;
  }

  .tier-list-layout {
    width: min(1460px, calc(100% - 64px));
    margin-top: 18px;
  }

  .tier-list-main {
    max-width: 1220px;
  }

  .tier-list-layout > .ad-space {
    display: none;
  }

  .tier-list-filters {
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(11, 28, 46, .92), rgba(5, 14, 25, .9));
  }

  .tier-list-result-count {
    padding-left: 2px;
  }
}

@media (max-width: 900px) {
  body.home-page .home-community-layout {
    display: block;
    width: min(100% - 20px, 680px);
    padding-top: 0;
  }

  body.home-page .home-intro {
    display: none;
  }

  body.home-page .home-build-board,
  body.home-page .community-column,
  body.home-page .home-latest-column {
    border-radius: 6px;
  }

  body.home-page .home-mode-list {
    padding: 10px;
  }

  body.home-page .home-build-row {
    min-height: 76px;
  }
}

@media (max-width: 480px) {
  body.home-page .home-community-layout {
    width: calc(100% - 16px);
  }

  body.home-page .home-latest-card {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  body.home-page .home-latest-cover {
    width: 68px;
  }
}

.mobile-nav-toggle,
.mobile-menu-backdrop {
  display: none;
}

@media (max-width: 720px) {
  :root {
    --mobile-header-height: 72px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    /* backdrop-filter sabit yan menünün kapsayıcısını header'a indirger. */
    backdrop-filter: none;
    min-height: var(--mobile-header-height);
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 12px;
  }

  .brand,
  .brand-logo {
    width: 168px;
    min-width: 168px;
    height: 56px;
  }

  .mobile-nav-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 5px;
    padding: 0;
    color: var(--text);
    border: 1px solid rgba(105, 142, 181, .48);
    border-radius: 5px;
    background: #0c1827;
    cursor: pointer;
  }

  .mobile-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    background: rgba(1, 5, 10, .62);
  }

  .topbar.mobile-nav-open + .mobile-menu-backdrop {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 7px;
    width: min(310px, 84vw);
    margin: 0;
    padding: calc(var(--mobile-header-height) + 14px) 14px 18px;
    overflow-y: auto;
    border: 0;
    border-left: 1px solid rgba(105, 142, 181, .48);
    border-radius: 0;
    background: #0a1420;
    box-shadow: -18px 0 38px rgba(0, 0, 0, .42);
    transform: translateX(104%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 180ms ease, visibility 180ms ease;
  }

  .topbar.mobile-nav-open .main-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a,
  .main-nav button {
    flex: 0 0 auto;
    width: 100%;
    min-height: 44px;
    padding-inline: 12px;
    border-color: rgba(88, 122, 158, .32);
    background: #0d1928;
    font-size: .9rem;
    text-align: left;
  }

  .dropdown {
    position: static;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    max-height: none;
    margin: 0;
    padding: 6px 0 0 10px;
    overflow: visible;
    border: 0;
    border-left: 1px solid rgba(88, 122, 158, .42);
    background: transparent;
    box-shadow: none;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: none;
  }

  .dropdown.is-open .dropdown-menu {
    display: grid;
  }

  .home-mobile-tabs {
    top: var(--mobile-header-height);
    z-index: 25;
  }

  body:not(.home-page) .mobile-utility-tabs.is-visible {
    top: var(--mobile-header-height);
    z-index: 25;
  }
}

/* Homepage reference-alignment: denser visual hierarchy, unchanged data flow. */
@media (min-width: 901px) {
  body.home-page .topbar {
    min-height: 88px;
    padding-inline: clamp(30px, 4vw, 70px);
  }

  body.home-page .brand {
    flex-basis: 300px;
  }

  body.home-page .brand-logo {
    width: min(292px, 100%);
    height: 62px;
  }

  body.home-page .main-nav {
    gap: 12px;
  }

  body.home-page .main-nav a,
  body.home-page .main-nav button {
    min-height: 46px;
    padding-inline: 18px;
  }

  body.home-page .home-community-layout {
    grid-template-columns: minmax(570px, 1.42fr) minmax(372px, .9fr) minmax(264px, .62fr);
    gap: 12px;
    width: min(1760px, calc(100% - 72px));
    padding-top: 16px;
  }

  body.home-page .home-intro {
    max-width: none;
    margin-bottom: 14px;
    padding: 0 0 12px 2px;
    border-left: 0;
    border-bottom: 1px solid rgba(101, 142, 181, .22);
  }

  body.home-page .home-intro .lead {
    max-width: 800px;
    color: #c0cede;
    font-size: 1rem;
  }

  body.home-page .home-build-board,
  body.home-page .community-column,
  body.home-page .home-latest-column {
    border-color: rgba(112, 153, 193, .4);
    background:
      linear-gradient(180deg, rgba(12, 24, 38, .98), rgba(7, 16, 27, .98));
    box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
  }

  body.home-page .home-mode-list {
    padding: 10px 12px 14px;
  }

  body.home-page .home-mode-block {
    padding: 14px 0 16px;
  }

  body.home-page .home-mode-block h2 {
    gap: 9px;
    margin-bottom: 12px;
    padding: 0 2px;
    color: #e8f2fd;
    font-size: 1.08rem;
  }

  body.home-page .home-build-list {
    gap: 8px;
  }

  body.home-page .home-build-row {
    grid-template-columns: 46px minmax(210px, 1fr) 84px 56px 116px;
    min-height: 78px;
    gap: 13px;
    padding: 10px 12px;
    border-left-width: 5px;
  }

  body.home-page .home-build-icon,
  body.home-page .home-build-icon img {
    width: 42px;
    height: 42px;
  }

  body.home-page .home-build-copy strong {
    font-size: 1rem;
  }

  body.home-page .home-build-copy small {
    font-size: .84rem;
  }

  body.home-page .home-mode-chip {
    min-height: 32px;
    padding-inline: 9px;
  }

  body.home-page .home-detail-button {
    min-height: 38px;
    font-size: .82rem;
  }

  body.home-page .community-column,
  body.home-page .home-latest-column {
    top: 104px;
  }

  body.home-page .community-heading,
  body.home-page .home-latest-heading {
    min-height: 58px;
    padding-inline: 16px;
  }

  body.home-page .community-heading span,
  body.home-page .home-latest-heading strong {
    color: #f1f6fc;
    font-size: 1.04rem;
  }

  body.home-page .community-login-note {
    margin: 10px 0;
    padding: 15px;
  }

  body.home-page .home-latest-column {
    padding-inline: 12px;
  }

  body.home-page .home-latest-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 11px;
    padding: 13px 0;
  }

  body.home-page .home-latest-cover {
    width: 78px;
  }

  body.home-page .home-latest-card b {
    color: #66d2ff;
    font-size: .91rem;
  }
}

@media (min-width: 901px) and (max-width: 1359px) {
  body.home-page .topbar {
    min-height: 78px;
    padding-inline: 30px;
  }

  body.home-page .brand {
    flex-basis: 255px;
  }

  body.home-page .brand-logo {
    width: min(240px, 100%);
    height: 56px;
  }

  body.home-page .main-nav {
    gap: 7px;
  }

  body.home-page .main-nav a,
  body.home-page .main-nav button {
    min-height: 42px;
    padding-inline: 14px;
  }

  body.home-page .home-community-layout {
    grid-template-columns: minmax(476px, 1.25fr) minmax(320px, .86fr) minmax(218px, .58fr);
    gap: 10px;
    width: min(100% - 48px, 1350px);
  }

  body.home-page .home-build-row {
    grid-template-columns: 42px minmax(0, 1fr) 72px 50px 100px;
    min-height: 70px;
    gap: 10px;
    padding-inline: 9px;
    border-left-width: 4px;
  }

  body.home-page .home-build-icon,
  body.home-page .home-build-icon img {
    width: 38px;
    height: 38px;
  }

  body.home-page .home-build-copy strong {
    font-size: .92rem;
  }

  body.home-page .home-mode-chip {
    min-height: 30px;
    padding-inline: 7px;
    font-size: .73rem;
  }

  body.home-page .home-rating {
    width: 50px;
    font-size: .8rem;
  }

  body.home-page .home-detail-button {
    min-height: 34px;
    font-size: .75rem;
  }

  body.home-page .home-latest-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
  }

  body.home-page .home-latest-cover {
    width: 64px;
  }
}

/* Guide detail surface pass: presentation only, TOC and article behavior stay intact. */
@media (min-width: 901px) {
  .site-shell > .guide-hero,
  .site-shell > .guide-layout {
    width: min(1460px, calc(100% - 64px));
  }

  .guide-hero {
    position: relative;
    min-height: 230px;
    padding: 42px 34px 34px;
    overflow: hidden;
    border: 1px solid rgba(112, 153, 193, .32);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background:
      linear-gradient(90deg, rgba(7, 15, 25, .98) 0%, rgba(8, 20, 34, .91) 58%, rgba(7, 16, 27, .74) 100%),
      url('https://wiki.guildwars2.com/images/4/42/Verdant_Brink_loading_screen.jpg') center / cover;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
  }

  .guide-hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    content: '';
    background: linear-gradient(90deg, var(--accent), rgba(249, 169, 22, 0));
  }

  .guide-hero .eyebrow {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    color: #ffc650;
  }

  .guide-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 920px;
    font-size: clamp(38px, 4vw, 58px);
  }

  .guide-hero > p:not(.eyebrow) {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: #d2e0ed;
  }

  .guide-layout {
    grid-template-columns: 196px minmax(0, 900px) minmax(160px, 1fr);
    gap: 20px;
    padding-top: 22px;
  }

  .guide-toc {
    top: 104px;
    gap: 10px;
    max-height: calc(100vh - 126px);
    padding: 14px 10px;
    border: 1px solid rgba(112, 153, 193, .3);
    border-radius: 6px;
    background: #0a1624;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  }

  .guide-toc h2 {
    padding: 0 4px 9px;
    color: #edf5fd;
    border-bottom: 1px solid rgba(112, 153, 193, .23);
    font-size: .96rem;
  }

  .guide-toc a {
    padding: 8px 9px;
    border: 1px solid transparent;
    border-left: 2px solid transparent;
    border-radius: 4px;
    color: #aebfd1;
  }

  .guide-toc a:hover {
    color: #eff7ff;
    border-color: rgba(112, 153, 193, .26);
    border-left-color: var(--accent);
    background: rgba(28, 52, 77, .42);
  }

  .guide-content > .section {
    max-width: none;
    padding: clamp(26px, 3vw, 40px);
    border-color: rgba(112, 153, 193, .32);
    border-radius: 7px;
    background: linear-gradient(180deg, #0c1826, #091421);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .2);
    color: #dbe7f2;
    font-size: 1rem;
    line-height: 1.78;
  }

  .guide-content h3 {
    margin: 2.1em 0 .7em;
    padding-top: 1em;
    color: #f4f8fd;
    border-top: 1px solid rgba(112, 153, 193, .24);
    font-size: 1.42rem;
    line-height: 1.25;
  }

  .guide-content h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .guide-content p {
    max-width: 78ch;
    color: #c8d7e5;
  }

  .guide-content .guide-list {
    max-width: 78ch;
    margin: 1.1em 0 1.6em;
    padding: 14px 18px 14px 36px;
    border: 1px solid rgba(112, 153, 193, .24);
    border-left: 3px solid rgba(249, 169, 22, .78);
    border-radius: 5px;
    background: rgba(4, 12, 21, .38);
  }

  .guide-content .guide-list li + li {
    margin-top: .5em;
  }

  .guide-image {
    margin: 1.8em 0;
    overflow: hidden;
    border: 1px solid rgba(112, 153, 193, .35);
    border-radius: 6px;
    background: #06101a;
  }

  .guide-image img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
  }

  .guide-source-footer {
    margin-top: 48px;
    padding: 16px;
    border: 1px solid rgba(112, 153, 193, .25);
    border-radius: 5px;
    background: rgba(5, 14, 24, .5);
  }

  .ad-rail {
    min-height: 560px;
    border-left: 1px solid rgba(112, 153, 193, .14);
  }
}

/* Community feed surface pass: content stays unchanged while posts gain a clearer reading rhythm. */
body.home-page .community-column {
  padding: 0 10px 92px;
  border-color: rgba(109, 151, 192, .3);
  background:
    linear-gradient(180deg, rgba(12, 27, 44, .98), rgba(6, 14, 24, .98)),
    var(--surface-raised);
}

body.home-page .community-heading {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 58px;
  background: rgba(10, 22, 36, .97);
  backdrop-filter: blur(8px);
}

body.home-page .community-heading span::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 10px rgba(53, 208, 127, .54);
  content: '';
}

body.home-page .community-login-note,
body.home-page .community-composer {
  margin: 10px 0 14px;
  border-color: rgba(109, 151, 192, .32);
  background: rgba(5, 14, 25, .72);
  box-shadow: inset 0 1px 0 rgba(226, 241, 255, .035);
}

body.home-page .community-login-note {
  align-items: flex-start;
  padding: 13px;
}

body.home-page .community-login-note p {
  max-width: 210px;
  line-height: 1.45;
}

body.home-page .community-login-note a,
body.home-page .community-composer button,
body.home-page .community-load-more {
  border-radius: 4px;
  box-shadow: 0 6px 14px rgba(249, 169, 22, .14);
}

body.home-page .community-composer-row {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
}

body.home-page .community-composer .community-avatar {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(249, 169, 22, .55);
}

body.home-page .community-composer-row strong {
  color: #f1f7fd;
  font-size: .88rem;
}

body.home-page .community-composer textarea {
  min-height: 64px;
  margin-top: 4px;
  border-color: rgba(109, 151, 192, .3);
  border-radius: 4px;
  background: rgba(2, 8, 15, .72);
  resize: vertical;
}

body.home-page .community-attachments summary {
  padding-top: 2px;
  color: #8fdcff;
  font-weight: 600;
}

body.home-page .community-post {
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
  border-color: rgba(109, 151, 192, .28);
  background: linear-gradient(180deg, rgba(14, 29, 46, .96), rgba(8, 18, 30, .96));
  box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
}

body.home-page .community-post::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(91, 213, 255, .7), transparent 45%);
  content: '';
}

body.home-page .community-post > header {
  padding: 13px 12px 10px;
}

body.home-page .community-post > header strong {
  color: #eef7ff;
  font-size: .9rem;
}

body.home-page .community-post time {
  color: #8fa5bc;
}

body.home-page .community-post-body {
  padding-bottom: 14px;
  color: #d4e0ec;
  font-size: .9rem;
  line-height: 1.52;
}

body.home-page .community-text-link,
body.home-page .community-link {
  color: #79d5ff;
  text-decoration: underline;
  text-decoration-color: rgba(121, 213, 255, .36);
  text-underline-offset: 2px;
}

body.home-page .community-link-preview {
  border-color: rgba(109, 151, 192, .34);
  border-radius: 5px;
  background: rgba(3, 10, 18, .58);
  transition: border-color 140ms ease, background 140ms ease;
}

body.home-page .community-link-preview:hover {
  border-color: rgba(121, 213, 255, .62);
  background: rgba(13, 32, 51, .86);
}

body.home-page .community-link-preview strong {
  color: #c7ecff;
}

body.home-page .community-link-preview em {
  color: #829ab3;
}

body.home-page .community-post > footer {
  gap: 3px;
  padding: 7px 10px;
  background: rgba(3, 10, 18, .34);
}

body.home-page .community-post > footer button {
  min-height: 34px;
  border-radius: 4px;
  font-size: .82rem;
}

body.home-page .community-post > footer button:hover,
body.home-page .community-post > footer button.active {
  color: #ffcd58;
  background: rgba(249, 169, 22, .1);
}

/* Large uploads should not push post actions below the visible feed area. */
body.home-page .community-image {
  display: block;
  max-height: 260px;
  overflow: hidden;
  background: #03070d;
}

body.home-page .community-image img {
  height: 260px;
  max-height: none;
  object-fit: cover;
}

body.home-page .community-comments {
  background: rgba(3, 10, 18, .24);
}

@media (max-width: 900px) {
  body.home-page .community-column {
    padding: 0 8px 24px;
  }

  body.home-page .community-heading {
    position: static;
    margin-inline: -8px;
  }

  body.home-page .community-login-note p {
    max-width: none;
  }

  body.home-page .community-image,
  body.home-page .community-image img {
    height: 240px;
    max-height: 240px;
  }
}

/* Build detail surface pass: emphasize active build choices without changing data or tooltip behavior. */
.content > .section {
  position: relative;
  margin-bottom: 28px;
  padding-top: 4px;
}

.content > .section > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 11px;
  color: #f2f7fd;
  border-bottom: 1px solid rgba(109, 151, 192, .28);
  font-size: clamp(1.45rem, 2vw, 1.8rem);
}

.content > .section > h2::before {
  width: 3px;
  align-self: stretch;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(249, 169, 22, .26);
  content: '';
}

.content > #skills .skill-group {
  position: relative;
  padding: 15px;
  border-color: rgba(109, 151, 192, .28);
  border-radius: 6px;
  background: linear-gradient(100deg, rgba(12, 29, 47, .92), rgba(7, 16, 27, .92));
  box-shadow: inset 0 1px 0 rgba(226, 241, 255, .025);
}

.content > #skills .skill-group h3 {
  color: #d9e9f7;
  font-size: .95rem;
  font-weight: 700;
}

.content > #skills .mechanic-skill-group {
  border-left-color: var(--accent);
  background: linear-gradient(100deg, rgba(31, 31, 22, .44), rgba(8, 17, 28, .92));
}

.content > #skills .icon-tile {
  border-color: rgba(115, 155, 195, .38);
  background: rgba(2, 8, 14, .66);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .22);
}

.content > #skills .icon-tile:hover {
  border-color: #7bdcff;
  box-shadow: 0 0 0 2px rgba(123, 220, 255, .13), 0 5px 13px rgba(0, 0, 0, .3);
}

.content > #traits .trait-tree-line {
  border-color: rgba(109, 151, 192, .36);
  background: linear-gradient(90deg, rgba(7, 16, 27, .82), rgba(10, 26, 43, .62));
  box-shadow: inset 3px 0 0 rgba(249, 169, 22, .5);
}

.content > #traits .trait-tree-line::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(3, 10, 18, .2), transparent 46%);
  content: '';
}

.content > #traits .trait-tree-line .trait-name {
  color: #f4f8ff;
}

.content > #traits .build-trait-choice.is-selected .icon-tile {
  border-color: #ffd16b;
  background: rgba(249, 169, 22, .11);
  box-shadow: 0 0 0 2px rgba(249, 169, 22, .16), 0 0 14px rgba(255, 195, 77, .4);
}

.content > #traits .build-trait-choice.is-inactive .icon-tile {
  border-color: rgba(106, 135, 164, .28);
}

.content > .equipment-section .equipment-board {
  border-color: rgba(109, 151, 192, .34);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(12, 29, 46, .92), rgba(6, 14, 24, .92));
  box-shadow: inset 0 1px 0 rgba(226, 241, 255, .03);
}

.content > .equipment-section .gear-title {
  color: #eef7ff;
}

.content > .equipment-section .gear-band {
  border-bottom-color: rgba(109, 151, 192, .25);
}

.content > .equipment-section .item-card {
  padding: 5px 3px;
  border-radius: 4px;
  transition: background 140ms ease, transform 140ms ease;
}

.content > .equipment-section .item-card:hover {
  background: rgba(121, 213, 255, .07);
  transform: translateY(-1px);
}

.content > .equipment-section .item-card > strong {
  color: #d8e8f7;
}

.content > .equipment-section .equipment-weapon-type {
  color: #ffcf62;
  font-size: .78rem;
}

@media (max-width: 720px) {
  .content > .section {
    margin-bottom: 20px;
  }

  .content > .section > h2 {
    margin-bottom: 11px;
    padding-bottom: 9px;
    font-size: 1.4rem;
  }

  .content > #skills .skill-group {
    padding: 12px;
  }

  .content > .equipment-section .equipment-board {
    padding: 14px;
  }
}

/* Voice dock surface pass: preserve the existing room flow and compact footprint. */
.voice-dock-compact {
  overflow: hidden;
  border-color: rgba(109, 151, 192, .42);
  border-radius: 5px;
  background: linear-gradient(100deg, rgba(11, 28, 45, .98), rgba(6, 15, 25, .98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(226, 241, 255, .035);
}

.voice-dock-tag {
  min-height: 56px;
  transition: background 140ms ease;
}

.voice-dock-tag:hover,
.voice-dock-tag:focus-visible {
  background: rgba(82, 183, 232, .1);
}

.voice-dock-indicator {
  box-shadow: 0 0 0 3px rgba(53, 208, 127, .1), 0 0 11px rgba(53, 208, 127, .54);
}

.voice-dock-tag-cta {
  border-radius: 3px;
  box-shadow: 0 5px 12px rgba(249, 169, 22, .18);
}

.voice-dock-panel {
  overflow: hidden;
  border-color: rgba(109, 151, 192, .42);
  border-radius: 6px;
  background: linear-gradient(180deg, #0b1a2b, #07111d);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(226, 241, 255, .035);
}

.voice-dock-heading {
  padding: 14px;
  border-bottom-color: rgba(109, 151, 192, .28);
  background: rgba(9, 23, 38, .82);
}

.voice-dock-heading strong {
  color: #f1f7fd;
}

.voice-dock-actions button,
.voice-dock-footer button {
  border-color: rgba(109, 151, 192, .42);
  border-radius: 3px;
  background: rgba(5, 15, 25, .76);
}

.voice-dock-actions button:hover,
.voice-dock-footer button:hover {
  border-color: var(--accent);
  background: rgba(249, 169, 22, .11);
}

.voice-access-form,
.voice-room-picker {
  background: rgba(3, 10, 18, .34);
}

.voice-access-form input {
  border-color: rgba(109, 151, 192, .4);
  border-radius: 4px;
  background: rgba(2, 8, 14, .72);
}

.voice-access-form input:focus {
  border-color: var(--focus-ring);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(120, 207, 251, .12);
}

.voice-room-option {
  min-height: 62px;
  border-color: rgba(109, 151, 192, .3);
  border-radius: 4px;
  background: rgba(8, 21, 34, .8);
  transition: border-color 140ms ease, background 140ms ease;
}

.voice-room-option:hover,
.voice-room-option:focus-visible {
  border-color: rgba(121, 213, 255, .68);
  background: rgba(16, 38, 60, .9);
}

.voice-room-option b {
  min-width: 44px;
  padding: 4px 6px;
  color: #ffcf62;
  border: 1px solid rgba(249, 169, 22, .3);
  border-radius: 3px;
  background: rgba(249, 169, 22, .08);
  text-align: center;
}

@media (max-width: 900px) {
  .site-shell {
    padding-bottom: 96px;
  }
}

/* Admin surface pass: visual hierarchy only; import and agent actions remain untouched. */
.admin-wrap {
  gap: 20px;
  padding-top: 20px;
}

.admin-wrap > .page-title {
  margin-bottom: 0;
}

.admin-layout {
  gap: 20px;
}

.admin-tabs {
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(109, 151, 192, .28);
  border-radius: 6px;
  background: rgba(7, 17, 29, .7);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.admin-tabs button {
  position: relative;
  min-height: 44px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 4px;
  background: transparent;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.admin-tabs button:hover {
  color: #eef7ff;
  border-color: rgba(109, 151, 192, .28);
  border-left-color: #78cffb;
  background: rgba(16, 34, 56, .72);
}

.admin-tabs button.active {
  color: #f3f8fd;
  border-color: rgba(249, 169, 22, .36);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(249, 169, 22, .13), rgba(13, 31, 50, .84));
}

.admin-tab-panel > .admin-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(109, 151, 192, .3);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(12, 29, 46, .96), rgba(7, 16, 27, .96));
  box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
}

.admin-tab-panel > .admin-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 44%);
  content: '';
}

.admin-tab-panel > .admin-card h2 {
  color: #f0f6fc;
  font-size: 1.28rem;
}

.admin-card label {
  color: #c8d9e9;
  font-size: .9rem;
  font-weight: 700;
}

.admin-card input,
.admin-card select,
.admin-card textarea {
  border-color: rgba(109, 151, 192, .34);
  border-radius: 4px;
  background: rgba(3, 10, 17, .72);
}

.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus {
  border-color: var(--focus-ring);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(120, 207, 251, .12);
}

.admin-section-heading {
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(109, 151, 192, .23);
}

.admin-build-options,
.admin-section-heading > div {
  flex-wrap: wrap;
}

.admin-card button.secondary-action,
.admin-build-options a.secondary-action {
  border-color: rgba(109, 151, 192, .46);
  border-radius: 4px;
  background: rgba(6, 17, 29, .72);
}

.admin-card button.secondary-action:hover,
.admin-build-options a.secondary-action:hover {
  color: #eef7ff;
  border-color: #78cffb;
  background: rgba(18, 42, 65, .9);
}

.bulk-import-panel {
  padding: 16px;
  border-color: rgba(109, 151, 192, .28);
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  background: rgba(4, 13, 23, .5);
}

.bulk-import-panel h3 {
  color: #ffcf62;
}

.admin-login-wrap .admin-card {
  padding: 24px;
  border-color: rgba(109, 151, 192, .34);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(12, 29, 46, .94), rgba(7, 16, 27, .94));
}

@media (max-width: 720px) {
  .admin-wrap {
    padding-top: 12px;
  }

  .admin-tabs {
    gap: 5px;
    padding: 6px;
  }

  .admin-tabs button {
    min-height: 42px;
    padding: 8px 6px;
    font-size: .82rem;
  }

  .admin-tab-panel > .admin-card {
    padding: 14px;
  }
}

/* Account surface pass: keeps authentication and profiles focused without changing account actions. */
.site-shell > .auth-page {
  width: min(520px, calc(100% - 32px));
  margin: 42px auto 0;
  gap: 16px;
}

.auth-page .page-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 46px);
}

.auth-page .account-card {
  position: relative;
  gap: 20px;
  padding: 26px;
  overflow: hidden;
  border-color: rgba(116, 151, 188, .34);
  background:
    linear-gradient(135deg, rgba(16, 39, 62, .42), transparent 58%),
    var(--surface-raised);
}

.auth-page .account-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: '';
  background: linear-gradient(90deg, var(--accent), rgba(249, 169, 22, .08) 72%);
}

.auth-page .account-tabs {
  gap: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-page .account-tabs button {
  min-height: 38px;
  padding: 0 16px;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}

.auth-page .account-tabs button[aria-current="page"] {
  color: var(--text);
  border-color: var(--accent);
}

.auth-page .account-card form {
  gap: 14px;
}

.auth-page .account-card label {
  gap: 7px;
  color: #c9d8e8;
  font-size: .92rem;
  font-weight: 700;
}

.auth-page .account-card input {
  min-height: 48px;
  border-color: var(--border-subtle);
  border-radius: 4px;
  background: rgba(3, 9, 16, .78);
}

.auth-page .account-card input:focus {
  border-color: var(--focus-ring);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(120, 207, 251, .13);
}

.auth-page .account-card button[type="submit"] {
  min-height: 48px;
  margin-top: 4px;
  border-radius: 4px;
}

.auth-page .account-card > p:last-child {
  margin: 4px 0 0;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--border-subtle);
}

.auth-page .account-card > p:last-child a {
  color: var(--accent);
  font-weight: 700;
}

.account-wrap:not(.auth-page) .account-card:not(.guest-editor-card) {
  gap: 22px;
  padding: 24px;
}

.account-wrap:not(.auth-page) .profile-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.account-wrap:not(.auth-page) .profile-avatar {
  border: 1px solid rgba(249, 169, 22, .58);
  border-radius: 6px;
  background: #0c1c2f;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}

.account-wrap:not(.auth-page) .profile-identity h2 {
  font-size: 1.45rem;
}

.account-wrap:not(.auth-page) .profile-identity .status {
  margin-top: 3px;
  color: var(--muted);
}

.account-wrap:not(.auth-page) .quota-badge {
  padding: 8px 11px;
  border-color: rgba(249, 169, 22, .42);
  border-radius: 4px;
  background: rgba(249, 169, 22, .08);
}

.account-wrap:not(.auth-page) .profile-form,
.account-wrap:not(.auth-page) .account-builds {
  border-color: var(--border-subtle);
  border-radius: 6px;
  background: rgba(5, 14, 24, .62);
}

.account-wrap:not(.auth-page) .account-builds {
  padding: 18px;
}

.account-wrap:not(.auth-page) .account-builds h3 {
  margin: 0 0 14px;
  font-size: 1.12rem;
}

.account-wrap:not(.auth-page) .profile-form input,
.account-wrap:not(.auth-page) .profile-form textarea {
  border-color: var(--border-subtle);
  border-radius: 4px;
}

@media (max-width: 720px) {
  .build-editor-page {
    width: calc(100% - 20px);
  }

  .build-editor-page-heading {
    margin-bottom: 12px;
    padding: 20px 16px 18px;
  }

  .build-editor-page-heading .page-title {
    font-size: 2rem;
  }

  .site-shell > .auth-page {
    width: calc(100% - 20px);
    margin-top: 20px;
  }

  .auth-page .account-card,
  .account-wrap:not(.auth-page) .account-card:not(.guest-editor-card) {
    padding: 16px;
  }

  .auth-page .account-tabs button {
    flex: 1 1 0;
    justify-content: center;
  }

  .auth-page .page-title {
    font-size: 34px;
  }
}

/* Library surface pass: keep long-form content dense and easy to scan. */
.guides-header .eyebrow,
.glossary-header .eyebrow {
  margin: 0 0 8px;
  color: #ffbd36;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guides-header,
.glossary-header {
  border-bottom: 1px solid rgba(88, 122, 158, .24);
}

.guides-header .page-title,
.glossary-header .page-title {
  margin-bottom: 10px;
}

.guides-header .lead,
.glossary-header .lead {
  max-width: 720px;
  color: #b7c7d9;
}

.guides-layout {
  padding-top: 20px;
}

.guides-layout .category {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-color: rgba(88, 122, 158, .32);
  background: #0a1624;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.guides-layout .category::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #f9a916, rgba(249, 169, 22, 0));
  content: '';
}

.guides-layout .category h2 {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 12px;
  color: #eef6ff;
  font-size: 1.08rem;
}

.guides-layout .build-list {
  display: grid;
  gap: 7px;
}

.guides-layout .guide-row {
  grid-template-columns: 62px minmax(0, 1fr);
  min-height: 76px;
  padding: 7px;
  border-color: rgba(88, 122, 158, .25);
  background: rgba(5, 14, 25, .48);
}

.guides-layout .guide-row:hover {
  border-color: rgba(249, 169, 22, .46);
  background: rgba(15, 34, 54, .78);
}

.guides-layout .guide-cover {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(117, 155, 194, .42);
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(7, 20, 34, .28), rgba(5, 10, 18, .68)),
    url('/assets/buildturk-battlefield-bg.png') center / cover;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .38);
}

.guides-layout .guide-cover::after {
  color: rgba(217, 236, 255, .88);
  font-size: 1.08rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}

.guides-layout .guide-cover[data-guide-category="Fractals"]::after { content: 'F'; }
.guides-layout .guide-cover[data-guide-category="Raids"]::after { content: 'R'; }
.guides-layout .guide-cover[data-guide-category="Mounts"]::after { content: 'M'; }
.guides-layout .guide-cover[data-guide-category="Open World"]::after { content: 'O'; }
.guides-layout .guide-cover[data-guide-category="Yeni Oyuncular"]::after { content: 'N'; }

.guides-layout .guide-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guides-layout .guide-row .build-row-copy strong {
  color: #5cddff;
  font-size: .94rem;
}

.guides-layout .guide-row .build-row-copy small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: #9eb2c9;
  font-size: .8rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.glossary-layout {
  padding-top: 20px;
  padding-bottom: 34px;
}

.glossary-card {
  align-content: start;
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 18px;
  border-color: rgba(88, 122, 158, .32);
  background: #0a1624;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.glossary-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ffbd36, rgba(255, 189, 54, 0));
  content: '';
}

.glossary-card h3 {
  color: #ffbd36;
}

.glossary-items {
  gap: 7px 9px;
}

@media (min-width: 981px) {
  .guides-layout .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .guides-layout .category:first-child {
    grid-column: span 2;
  }

  .guides-layout .category:first-child .build-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .glossary-grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 16px;
  }

  .glossary-card:first-child {
    grid-row: span 2;
  }
}

@media (max-width: 980px) {
  .guides-layout,
  .glossary-layout {
    padding-top: 14px;
  }

  .guides-layout .category,
  .glossary-card {
    padding: 14px;
  }

  .guides-layout .guide-row {
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 70px;
  }

  .guides-layout .guide-cover {
    width: 50px;
    height: 50px;
  }
}

/* Editor surface pass: foreground the import flow without changing editor behavior. */
.guest-editor-card {
  gap: 18px;
  padding: 22px;
  border-color: rgba(88, 122, 158, .36);
  border-radius: 8px;
  background: #0a1624;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.guest-editor-card .account-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(88, 122, 158, .26);
}

.guest-editor-card .account-heading h2 {
  color: #f1f7fd;
}

.guest-editor-card .account-heading .status {
  max-width: 720px;
  margin-top: 5px;
  color: #aebfd3;
}

.guest-editor-card .editor-form-grid {
  padding: 14px;
  border: 1px solid rgba(88, 122, 158, .25);
  border-radius: 6px;
  background: rgba(5, 14, 25, .46);
}

.guest-editor-card .editor-template-import {
  position: relative;
  padding: 16px;
  border-left: 3px solid #f9a916;
  box-shadow: inset 0 1px 0 rgba(255, 235, 180, .06);
}

.guest-editor-card .editor-template-heading strong {
  color: #ffcf62;
  font-size: 1rem;
}

.guest-editor-card .editor-template-output {
  padding: 10px;
  border: 1px solid rgba(88, 122, 158, .26);
  border-radius: 5px;
  background: #060f1a;
}

.guest-editor-card .editor-stage {
  padding: 16px;
  border-color: rgba(88, 122, 158, .3);
  border-radius: 7px;
  background: #0b1827;
  box-shadow: none;
}

.guest-editor-card .editor-stage-heading {
  padding-bottom: 11px;
}

.guest-editor-card .editor-stage-heading h3 {
  color: #eef6ff;
}

.guest-editor-card .editor-stage-heading strong,
.guest-editor-card .editor-stage-heading span {
  color: #ffbd36;
}

.guest-editor-card .editor-bulk-stat {
  margin-bottom: 12px;
  padding: 12px;
  border-left: 3px solid #f9a916;
}

@media (max-width: 980px) {
  .guest-editor-card {
    padding: 14px;
  }

  .guest-editor-card .editor-form-grid,
  .guest-editor-card .editor-template-import,
  .guest-editor-card .editor-stage {
    padding: 12px;
  }
}

/* Final mobile navigation layer: also covers tablet-scale browser emulation. */
@media (max-width: 900px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: var(--mobile-header-height, 72px);
    gap: 10px;
    padding: 6px 12px;
  }

  .brand,
  .brand-logo {
    width: 168px;
    min-width: 0;
    height: 56px;
  }

  .mobile-nav-toggle {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 4px;
    padding: 0;
    border: 1px solid rgba(88, 122, 158, .5);
    border-radius: 3px;
    background: #0d1928;
    cursor: pointer;
  }

  .mobile-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #dcecff;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 42;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 7px;
    width: min(310px, 84vw);
    margin: 0;
    padding: calc(var(--mobile-header-height, 72px) + 14px) 14px 18px;
    overflow-y: auto;
    border: 0;
    border-left: 1px solid rgba(105, 142, 181, .48);
    border-radius: 0;
    background: #0a1420;
    box-shadow: -18px 0 38px rgba(0, 0, 0, .42);
    transform: translateX(104%);
    visibility: hidden;
    pointer-events: none;
  }

  .topbar.mobile-nav-open .main-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a,
  .main-nav button {
    flex: 0 0 auto;
    width: 100%;
    min-height: 44px;
    padding-inline: 12px;
    text-align: left;
  }

  .home-mobile-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-mobile-tabs button {
    min-width: 0;
    padding-inline: 3px;
    overflow: hidden;
    font-size: clamp(.68rem, 3.2vw, .82rem);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Mobile QA hardening: keep long guide, glossary and editor content inside the viewport. */
@media (max-width: 900px) {
  html,
  body {
    overflow-x: clip;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: var(--mobile-header-height, 72px);
    flex-direction: row;
    justify-content: space-between;
    padding: 6px 12px;
  }

  .brand,
  .brand-logo {
    width: 168px;
    min-width: 0;
    height: 56px;
  }

  .mobile-nav-toggle {
    display: grid;
    flex: 0 0 42px;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 42;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 7px;
    width: min(310px, 84vw);
    margin: 0;
    padding: calc(var(--mobile-header-height, 72px) + 14px) 14px 18px;
    overflow-y: auto;
    border: 0;
    border-left: 1px solid rgba(105, 142, 181, .48);
    border-radius: 0;
    background: #0a1420;
    box-shadow: -18px 0 38px rgba(0, 0, 0, .42);
    transform: translateX(104%);
    visibility: hidden;
    pointer-events: none;
  }

  .topbar.mobile-nav-open .main-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a,
  .main-nav button {
    flex: 0 0 auto;
    width: 100%;
    min-height: 44px;
    text-align: left;
  }

  .home-mobile-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-mobile-tabs button {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .guides-layout,
  .glossary-layout,
  .guides-layout .category,
  .glossary-card,
  .build-row,
  .build-row-copy,
  .tier-list-layout,
  .tier-list-main,
  .build-hero,
  .hero-panel,
  .template-code {
    min-width: 0;
    max-width: 100%;
  }

  .guides-layout .build-row {
    overflow: hidden;
  }

  .guides-layout .build-row-copy,
  .guides-layout .build-row-copy > span,
  .guides-layout .build-row-copy strong,
  .guides-layout .build-row-copy small {
    min-width: 0;
    max-width: 100%;
  }

  .guides-layout .build-row-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .glossary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Build detayinin ilk ekrani: oyun bilgisini korur, skill alani daha erken gorunur. */
@media (max-width: 600px) {
  .build-hero {
    gap: 14px;
    padding: 22px 16px 18px;
  }

  .hero-copy .eyebrow {
    margin-bottom: 6px;
  }

  .hero-copy h1 {
    margin-bottom: 10px;
    font-size: clamp(32px, 9vw, 42px);
  }

  .hero-copy p {
    font-size: 15px;
    line-height: 1.46;
  }

  .meta-row {
    gap: 6px;
    margin: 12px 0 0;
  }

  .hero-panel {
    gap: 8px;
    padding: 14px;
  }

  .template-code {
    padding: 9px;
    font-size: 11px;
    line-height: 1.38;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: relative;
    top: auto;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 10px 12px;
  }

  .brand {
    flex: 0 0 auto;
    width: 190px;
    height: 63px;
    min-width: 190px;
  }

  .brand-logo {
    width: 190px;
    height: 63px;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav a,
  .main-nav button {
    flex: 1 1 auto;
  }

  .dropdown-menu {
    top: 100%;
    left: 14px;
    right: 14px;
    width: auto;
    min-width: 0;
    max-height: min(520px, calc(100dvh - 120px));
    overflow-y: auto;
  }

  .dropdown {
    position: static;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: none;
  }

  .dropdown.is-open .dropdown-menu {
    display: grid;
  }

  .profession-ribbon {
    padding-inline: 14px;
  }

  .site-shell > section:not(.build-hero),
  .site-shell > .two-col,
  .site-shell > .category-grid,
  .site-shell > .admin-wrap,
  .site-shell > .guide-hero,
  .site-shell > .guide-layout {
    width: calc(100% - 20px);
    margin-inline: auto;
  }

  .guides-header,
  .glossary-header,
  .guides-layout,
  .glossary-layout,
  .site-shell > .guide-hero {
    width: calc(100% - 20px);
  }

  .guides-header,
  .glossary-header {
    padding: 24px 0 16px;
  }

  .profile-form-main,
  .profile-social-grid {
    grid-template-columns: 1fr;
  }

  .profile-heading {
    align-items: center;
  }

  .profile-avatar {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .build-editor-accordion > summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .build-editor-accordion > summary small {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .trait-line {
    grid-template-columns: 1fr;
  }

  .gear-grid {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    gap: 8px;
  }

  .build-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding-inline: 7px;
  }

  .difficulty-pips {
    display: none;
  }

  .build-row-facts {
    min-width: 34px;
  }

  .account-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .quota-badge {
    align-self: flex-start;
  }

  .account-card {
    padding: 13px;
  }

  .editor-form-grid,
  .editor-weapon-controls {
    grid-template-columns: 1fr;
  }

  .editor-template-field {
    grid-column: auto;
  }

  .editor-template-import,
  .editor-bulk-stat {
    grid-template-columns: 1fr;
  }

  .editor-profession-grid {
    grid-template-columns: repeat(3, minmax(76px, 1fr));
  }

  .editor-specialization-grid {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }

  .editor-attunement-row {
    grid-template-columns: 1fr;
  }

  .editor-weapon-skills {
    grid-template-columns: 1fr;
  }

  .editor-skill-variants {
    padding-left: 0;
  }

  .editor-legend-row {
    grid-template-columns: 1fr;
  }

  .editor-pet-selected {
    grid-template-columns: 1fr;
  }

  .editor-pet-choice {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .editor-trait-line {
    grid-template-columns: 1fr;
  }

  .editor-trait-tree {
    grid-template-columns: repeat(3, minmax(142px, 1fr));
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .editor-equipment-group {
    grid-template-columns: 1fr;
  }

  .editor-equipment-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-card .editor-equipment-slot {
    width: 100%;
    min-width: 0;
  }

  .editor-item-picker-controls {
    grid-template-columns: 1fr;
  }

  .editor-item-picker {
    grid-column: auto;
  }

  .editor-item-results {
    grid-template-columns: 1fr;
  }

  .editor-option-grid,
  .editor-pet-options {
    grid-template-columns: repeat(3, minmax(80px, 1fr));
  }

  .account-build-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .account-build-actions {
    grid-column: 2 / -1;
  }

  .admin-build-options,
  .admin-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-tab-panel > .admin-card {
    min-height: 0;
    padding: 14px;
  }

  #importForm,
  #importForm .admin-build-options {
    grid-template-columns: 1fr;
  }

  .bulk-import-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .bulk-import-list span {
    text-align: left;
  }

  .admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .admin-tabs button {
    text-align: center;
  }

  .editor-data-stats {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
  }

  .member-admin-row {
    grid-template-columns: 1fr 1fr;
  }

  .member-admin-row > span {
    grid-column: 1 / -1;
  }

  .review-admin-row {
    grid-template-columns: 1fr;
  }

  .guide-management-row {
    grid-template-columns: 1fr;
  }

  .build-management-row {
    grid-template-columns: 1fr;
  }

  .guide-management-actions {
    justify-content: flex-start;
  }

  .build-management-actions {
    justify-content: flex-start;
  }

  .review-admin-actions {
    justify-content: flex-start;
  }
}

/* Keep the homepage introduction present without pushing the build board down. */
@media (min-width: 901px) {
  body.home-page .home-intro {
    margin-bottom: 10px;
    padding: 0;
    border-left: 0;
  }

  body.home-page .home-intro .lead {
    margin: 0;
    overflow: hidden;
    color: #aebfd1;
    font-size: .94rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Desktop navigation follows the calmer, game-inspired homepage hierarchy. */
@media (min-width: 721px) {
  .main-nav { gap: 10px; }
  .main-nav a,
  .main-nav button {
    position: relative;
    min-height: 50px;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .main-nav a::after,
  .main-nav button::after {
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 2px;
    content: '';
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
  }
  .main-nav a:hover,
  .main-nav button:hover,
  .main-nav a[aria-current="page"],
  .main-nav button[aria-current="page"] {
    border-color: transparent;
    background: transparent;
    color: #f7fbff;
  }
  .main-nav a:hover::after,
  .main-nav button:hover::after,
  .main-nav a[aria-current="page"]::after,
  .main-nav button[aria-current="page"]::after { transform: scaleX(1); }
  .main-nav a[href="/build"] {
    min-height: 44px;
    margin-left: 8px;
    padding: 0 19px;
    border: 1px solid rgba(249, 169, 22, .74);
    border-radius: 5px;
    background: linear-gradient(180deg, rgba(122, 80, 7, .52), rgba(61, 42, 10, .46));
    color: #ffe2a0;
  }
  .main-nav a[href="/build"]::after,
  #accountNavLink::after { display: none; }
  #accountNavLink {
    min-height: 44px;
    margin-left: 4px;
    padding: 0 16px;
    border: 1px solid rgba(104, 137, 172, .48);
    border-radius: 5px;
    background: rgba(11, 24, 39, .62);
  }
}

/* Homepage composition pass: shared intro, compact three-column desktop rhythm. */
@media (min-width: 901px) {
  .topbar {
    min-height: 92px;
    padding: 10px max(28px, calc((100vw - 1480px) / 2));
  }

  .brand {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    flex-basis: 290px;
  }

  .brand-logo {
    width: 252px;
    height: 62px;
  }

  .brand-tagline {
    display: block;
    margin: -3px 0 0 69px;
    color: #9aaabd;
    font-size: .76rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  body.home-page {
    background-position: center 92px;
    background-size: max(1480px, 100%) auto;
  }

  body.home-page .home-intro {
    width: min(1480px, calc(100% - 64px));
    margin: 0 auto;
    padding: 15px 4px 8px;
    border: 0;
  }

  body.home-page .home-intro .lead {
    max-width: none;
    color: #b7c4d1;
    font-size: 1rem;
  }

  body.home-page .home-community-layout {
    grid-template-columns: minmax(0, 1.34fr) minmax(320px, .92fr) minmax(260px, .66fr);
    gap: 10px;
    width: min(1480px, calc(100% - 64px));
    padding-top: 8px;
  }

  body.home-page .home-mode-list {
    padding: 10px 12px 8px;
  }

  body.home-page .home-mode-block {
    padding: 11px 0 13px;
  }

  body.home-page .home-build-row {
    min-height: 74px;
    grid-template-columns: 46px minmax(0, 1fr) 78px 52px 108px;
  }

  body.home-page .home-build-copy strong {
    font-size: .98rem;
  }

  body.home-page .community-column,
  body.home-page .home-latest-column {
    top: 106px;
  }

  body.home-page .community-heading,
  body.home-page .home-latest-heading {
    min-height: 54px;
  }

  body.home-page .community-composer {
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .brand-tagline {
    display: none;
  }

  body.home-page .home-intro {
    display: block;
    width: calc(100% - 20px);
    margin: 0 auto;
    padding: 12px 0 7px;
    border: 0;
  }

  body.home-page .home-intro .lead {
    overflow: visible;
    font-size: .9rem;
    white-space: normal;
  }
}

/* Reference-home visual language: desktop brand crop and profession-colored build identity. */
@media (min-width: 901px) {
  .topbar {
    border-bottom-color: rgba(84, 112, 141, .38);
    background: rgba(5, 12, 20, .98);
  }

  .brand-reference-logo {
    display: block;
    width: 294px;
    height: 70px;
    background-image: url('/assets/home-reference-design.png');
    background-repeat: no-repeat;
    background-position: -20px -17px;
    background-size: 1352px auto;
  }

  .brand > .brand-logo,
  .brand > .brand-tagline {
    display: none;
  }

  body.home-page .home-community-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(330px, .96fr) minmax(270px, .7fr);
    gap: 12px;
  }

  body.home-page .home-build-board,
  body.home-page .community-column,
  body.home-page .home-latest-column {
    border-color: rgba(78, 108, 139, .45);
    background: linear-gradient(180deg, rgba(10, 20, 32, .98), rgba(6, 13, 22, .98));
    box-shadow: inset 0 1px 0 rgba(214, 233, 250, .025), 0 14px 34px rgba(0, 0, 0, .25);
  }

  body.home-page .home-build-tabs {
    grid-template-columns: repeat(2, minmax(0, 138px));
    border-bottom-color: rgba(78, 108, 139, .45);
  }

  body.home-page .home-build-tabs a {
    min-height: 54px;
    color: #b6c5d4;
    border-right-color: rgba(78, 108, 139, .38);
    font-size: 1rem;
    font-weight: 500;
  }

  body.home-page .home-build-tabs a.active {
    color: #ffcc58;
    box-shadow: inset 0 -3px 0 #ffbd35;
  }

  body.home-page .home-mode-block h2 {
    color: #e6edf5;
    font-size: 1.1rem;
  }

  body.home-page .home-build-row {
    position: relative;
    min-height: 82px;
    border-color: rgba(67, 96, 126, .38);
    border-left: 8px solid var(--profession-accent, var(--profession-unknown));
    background: linear-gradient(90deg, rgba(12, 24, 37, .98), rgba(6, 15, 25, .98));
  }

  body.home-page .home-build-row::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -8px;
    width: 8px;
    content: '';
    background: var(--profession-accent, var(--profession-unknown));
    box-shadow: 3px 0 15px color-mix(in srgb, var(--profession-accent, var(--accent)) 30%, transparent);
  }

  body.home-page .home-build-row:hover {
    border-color: color-mix(in srgb, var(--profession-accent, var(--accent)) 58%, #cedded);
    background: linear-gradient(90deg, rgba(17, 35, 53, .99), rgba(8, 19, 30, .99));
  }

  body.home-page .home-build-icon {
    width: 48px;
    height: 48px;
    border-color: color-mix(in srgb, var(--profession-accent, var(--accent)) 62%, #344c65);
    background: color-mix(in srgb, var(--profession-accent, #091424) 10%, #07111c);
    box-shadow: inset 0 0 14px color-mix(in srgb, var(--profession-accent, var(--accent)) 16%, transparent), 0 0 12px color-mix(in srgb, var(--profession-accent, var(--accent)) 16%, transparent);
  }

  body.home-page .home-build-icon img {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 0 7px color-mix(in srgb, var(--profession-accent, var(--accent)) 65%, transparent));
  }

  body.home-page .community-heading span::before {
    margin-right: 9px;
    color: #b9c9d9;
    content: '♟';
  }

  body.home-page .home-latest-card {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 92px;
  }

  body.home-page .home-latest-cover {
    width: 86px;
  }
}

@media (max-width: 900px) {
  .brand-reference-logo {
    display: none;
  }
}

/* Home feed stability and reference-toned build hierarchy. */
body.home-page {
  background-image:
    linear-gradient(180deg, rgba(4, 10, 17, .88) 0%, rgba(4, 10, 17, .8) 42%, rgba(4, 10, 17, .94) 100%),
    url('/assets/buildturk-battlefield-bg.png');
}

body.home-page .home-latest-list {
  align-content: start;
}

body.home-page .home-latest-card {
  min-height: 104px;
  overflow: hidden;
}

body.home-page .home-latest-card > span:last-child {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 5px;
}

body.home-page .home-latest-card b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #71d2fb;
  line-height: 1.22;
}

body.home-page .home-latest-card small {
  margin: 0;
}

body.home-page .home-latest-card em {
  margin: 0;
  line-height: 1.32;
}

/* Keep each latest-guide card intact while the inner feed scrolls. */
body.home-page .home-latest-list {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 1px;
  overflow-x: hidden;
  grid-auto-flow: row;
  grid-auto-rows: max-content;
}

body.home-page .home-latest-card {
  position: relative;
  isolation: isolate;
  min-height: 122px;
  overflow: hidden;
  background: #0a1420;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body.home-page .home-latest-card b,
body.home-page .home-latest-card em {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-build-row.profession-elementalist { --profession-accent: var(--profession-elementalist); }
.home-build-row.profession-engineer { --profession-accent: var(--profession-engineer); }
.home-build-row.profession-guardian { --profession-accent: var(--profession-guardian); }
.home-build-row.profession-mesmer { --profession-accent: var(--profession-mesmer); }
.home-build-row.profession-necromancer { --profession-accent: var(--profession-necromancer); }
.home-build-row.profession-ranger { --profession-accent: var(--profession-ranger); }
.home-build-row.profession-revenant { --profession-accent: var(--profession-revenant); }
.home-build-row.profession-thief { --profession-accent: var(--profession-thief); }
.home-build-row.profession-warrior { --profession-accent: var(--profession-warrior); }

body.home-page .home-build-row[class*="profession-"] {
  border-left-color: var(--profession-accent, var(--profession-unknown));
}

body.home-page .community-post > header strong,
body.home-page .community-composer-row strong {
  color: #73d5ff;
}

@media (min-width: 901px) {
  body.home-page .home-build-copy strong {
    color: #dce5ed;
    font-weight: 600;
  }

  body.home-page .home-build-copy small {
    color: var(--profession-accent, #aabaca);
  }

  body.home-page .home-build-icon {
    border-color: color-mix(in srgb, var(--profession-accent, var(--accent)) 72%, #243b50);
    background: color-mix(in srgb, var(--profession-accent, #07111c) 13%, #07111c);
  }

  body.home-page .home-build-icon img {
    filter: grayscale(.12) drop-shadow(0 0 7px color-mix(in srgb, var(--profession-accent, var(--accent)) 72%, transparent));
  }
}

@media (max-width: 900px) {
  body.home-page {
    background-image: none;
  }
}

/* Son mobil menü kuralı: eski dar ekran nav düzenini yan panelle değiştirir. */
@media (max-width: 720px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: var(--mobile-header-height);
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 12px;
  }

  .brand,
  .brand-logo {
    width: 168px;
    min-width: 168px;
    height: 56px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 7px;
    width: min(310px, 84vw);
    margin: 0;
    padding: calc(var(--mobile-header-height) + 14px) 14px 18px;
    overflow-y: auto;
    border: 0;
    border-left: 1px solid rgba(105, 142, 181, .48);
    border-radius: 0;
    background: #0a1420;
    box-shadow: -18px 0 38px rgba(0, 0, 0, .42);
    transform: translateX(104%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 180ms ease, visibility 180ms ease;
  }

  .topbar.mobile-nav-open .main-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a,
  .main-nav button {
    flex: 0 0 auto;
    width: 100%;
    min-height: 44px;
    padding-inline: 12px;
    border-color: rgba(88, 122, 158, .32);
    background: #0d1928;
    font-size: .9rem;
    text-align: left;
  }

  .dropdown {
    position: static;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    max-height: none;
    margin: 0;
    padding: 6px 0 0 10px;
    overflow: visible;
    border: 0;
    border-left: 1px solid rgba(88, 122, 158, .42);
    background: transparent;
    box-shadow: none;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: none;
  }

  .dropdown.is-open .dropdown-menu {
    display: grid;
  }

  .home-mobile-tabs {
    top: var(--mobile-header-height);
    z-index: 25;
  }

  body:not(.home-page) .mobile-utility-tabs.is-visible {
    top: var(--mobile-header-height);
    z-index: 25;
  }
}
/* Home Meta list: keep the existing row content, simplify only icon and profession stripe. */
@media (min-width: 901px) {
  body.home-page .home-build-row {
    border-left-width: 3px;
  }

  body.home-page .home-build-row::before {
    display: none;
  }

  body.home-page .home-build-icon {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.home-page .home-build-icon img {
    width: 30px;
    height: 30px;
    filter: none;
  }
}
