:root {
  color-scheme: dark;
  --background: #0b100f;
  --surface: #111a18;
  --surface-raised: #16211e;
  --surface-soft: #0f1715;
  --border: #263a34;
  --border-strong: #35584e;
  --text: #e6f0ec;
  --muted: #91a49d;
  --muted-strong: #b5c5bf;
  --jade: #50cba5;
  --jade-soft: rgba(80, 203, 165, 0.12);
  --jade-bright: #7be0c0;
  --danger: #ef7777;
  --stat-crit: #ef7777;
  --stat-haste: #68d69d;
  --stat-mastery: #72adf0;
  --stat-versatility: #e5c765;
  --stat-tertiary: #d3a9ef;
  --stat-primary: #f0a45d;
  --theoretical: #d6a7ff;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --radius: 12px;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 48% 0%, rgba(59, 117, 97, 0.11), transparent 34rem),
    var(--background);
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="checkbox"] {
  cursor: pointer;
}

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

img {
  display: block;
}

.icon--fallback {
  object-fit: contain !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 7px 10px;
  border: 2px solid var(--jade-bright);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface-raised);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(80, 203, 165, 0.14);
  background: rgba(11, 16, 15, 0.92);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(1720px, calc(100% - 32px));
  min-height: 50px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand__name {
  color: var(--jade-bright);
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand__tagline,
.site-nav,
.build-chip {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted-strong);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav span {
  color: var(--jade-bright);
}

.build-chip {
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

.page-shell {
  width: min(1880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 2px;
}

.module-masthead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 10px;
}

.module-masthead > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.module-masthead .eyebrow {
  display: none;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--jade);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: 12px;
}

.masthead-facts {
  display: flex;
  gap: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.masthead-facts strong {
  color: var(--text);
  font-size: 16px;
}

.planner-toolbar,
.catalog-notice {
  border: 1px solid var(--border);
  background: rgba(17, 26, 24, 0.86);
}

.planner-toolbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.identity-fields {
  flex: 1 1 1220px;
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  max-width: 1320px;
  gap: 14px;
}

.identity-fields .field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.identity-fields .field > span {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

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

.identity-field {
  position: relative;
}

.identity-picker {
  position: relative;
  min-width: 0;
}

.identity-picker > summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 8px 38px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  background: #0c1412;
  cursor: pointer;
  list-style: none;
}

.identity-picker > summary::-webkit-details-marker {
  display: none;
}

.identity-picker > summary::after {
  position: absolute;
  right: 12px;
  color: var(--jade);
  content: "▾";
  font-size: 14px;
}

.identity-picker[open] > summary {
  border-color: var(--jade);
}

.identity-picker > summary:focus-visible {
  outline: 2px solid var(--jade-bright);
  outline-offset: 2px;
}

.identity-picker__summary-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.identity-picker__summary-copy > img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 9px;
  object-fit: cover;
}

.identity-picker__summary-copy > span,
.identity-picker__summary-copy strong,
.identity-picker__summary-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-picker__summary-copy strong {
  font-size: 16px;
}

.identity-picker__summary-copy small {
  color: var(--muted);
  font-size: 12px;
}

.identity-picker__panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  max-height: min(68vh, 650px);
  padding: 9px;
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: rgba(10, 18, 16, 0.99);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.58);
}

.identity-picker__panel--specs {
  width: min(760px, 86vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.identity-picker__panel--icons {
  width: min(520px, 72vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.identity-field:nth-child(3) .identity-picker__panel {
  right: 0;
  left: auto;
}

.identity-class-group {
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(20, 31, 28, 0.68);
}

.identity-class-group > header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--jade-bright);
  font-size: 11px;
}

.identity-class-group > header img {
  width: 26px;
  height: 26px;
  border-radius: 5px;
}

.identity-class-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.identity-option {
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted-strong);
  text-align: left;
  background: #0b1311;
}

.identity-option:hover,
.identity-option--active {
  border-color: var(--jade);
  color: var(--text);
  background: var(--jade-soft);
}

.identity-option > img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 6px;
  object-fit: cover;
}

.identity-option > span,
.identity-option strong,
.identity-option small {
  display: block;
  min-width: 0;
}

.identity-option strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-option small {
  color: var(--muted);
  font-size: 9px;
}

.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.field > span,
.rank-control {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

select,
input[type="search"] {
  width: 100%;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: #0c1412;
}

select:hover,
input[type="search"]:hover {
  border-color: var(--border-strong);
}

.toolbar-actions,
.picker-footer__right {
  display: flex;
  gap: 8px;
}

.toolbar-actions {
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.toolbar-actions .button {
  min-height: 42px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 650;
  flex: 0 0 auto;
  white-space: nowrap;
}

.button,
.icon-button {
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface-raised);
}

.button:hover,
.icon-button:hover {
  border-color: var(--jade);
  color: var(--jade-bright);
}

.button--primary {
  border-color: #3e9e81;
  color: #07120f;
  background: var(--jade);
  font-weight: 750;
}

.button--danger {
  color: #ffadad;
}

.catalog-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 14px;
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--muted-strong);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 12px rgba(80, 203, 165, 0.6);
}

.catalog-notice__detail {
  margin-left: auto;
  color: var(--muted);
}

.equipment-board {
  display: grid;
  grid-template-columns: minmax(470px, 1fr) minmax(400px, 440px) minmax(470px, 1fr);
  grid-template-areas:
    "left summary right"
    "left modifiers right";
  align-items: start;
  gap: 10px;
  margin-top: 10px;
}

.slot-column {
  display: grid;
  gap: 5px;
}

.left-gear-stack {
  grid-area: left;
  display: grid;
  align-content: start;
  gap: 5px;
}

.slot-column--right {
  grid-area: right;
}

.weapon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  width: 100%;
  margin: 0;
}

.slot-card-wrap {
  position: relative;
  min-width: 0;
  width: 100%;
}

.slot-card {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 88px;
  min-height: 88px;
  display: grid;
  grid-template-columns: 48px minmax(116px, 0.78fr) minmax(92px, 0.62fr) minmax(154px, 1.2fr);
  grid-template-rows: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(100deg, rgba(80, 203, 165, 0.055), transparent 42%),
    var(--surface);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.12);
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.slot-card:hover {
  border-color: var(--border-strong);
  background-color: var(--surface-raised);
  transform: translateY(-1px);
}

.slot-card--weapon {
  height: 96px;
  min-height: 96px;
  border-color: rgba(229, 199, 101, 0.62);
  box-shadow: inset 3px 0 0 rgba(229, 199, 101, 0.38), 0 7px 20px rgba(0, 0, 0, 0.12);
}

.slot-card--weapon:hover {
  border-color: var(--stat-versatility);
}

.slot-card--trinket {
  border-color: rgba(211, 169, 239, 0.62);
  box-shadow: inset -3px 0 0 rgba(211, 169, 239, 0.36), 0 7px 20px rgba(0, 0, 0, 0.12);
}

.slot-card--trinket:hover {
  border-color: var(--stat-tertiary);
}

.slot-card--empty {
  height: 58px;
  min-height: 58px;
  grid-template-columns: 38px 1fr;
  grid-template-rows: 1fr;
  padding-bottom: 7px;
  color: var(--muted);
  border-style: dashed;
  box-shadow: none;
}

.slot-card--empty strong,
.slot-card--empty small {
  display: block;
}

.slot-card--empty small {
  margin-top: 1px;
  font-size: 10px;
}

.slot-empty-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  object-fit: contain;
  background: #111b18;
}

.slot-icon-wrap {
  position: relative;
  width: 46px;
  height: 46px;
}

.slot-icon-wrap,
.slot-identity,
.card-source,
.slot-facts {
  grid-row: 1;
}

.slot-icon {
  width: 46px;
  height: 46px;
  border: 1px solid #8f4dcc;
  border-radius: 6px;
  object-fit: cover;
}

.slot-icon--missing {
  display: block;
  color: var(--muted-strong);
  background: #111b18;
}

.slot-icon--placeholder,
.result-icon.slot-icon--placeholder,
.detail-icon.slot-icon--placeholder {
  box-sizing: border-box;
  padding: 3px;
  object-fit: contain;
  background: #111b18;
}

.slot-quality {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: #a85be0;
}

.slot-identity,
.slot-facts,
.card-source {
  min-width: 0;
}

.slot-identity > span,
.slot-identity > strong {
  display: block;
}

.slot-kicker,
.slot-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-name {
  margin: 2px 0;
  overflow: hidden;
  color: #d8a6ff;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-source {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-strong);
}

.card-source--empty {
  min-height: 1px;
}

.card-source img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}

.card-source > span,
.card-source strong,
.card-source small {
  display: block;
  min-width: 0;
}

.card-source strong,
.card-source small {
  overflow: hidden;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-source strong {
  color: #cad8d3;
  font-size: 12px;
  font-weight: 750;
}

.card-source small {
  margin-top: 2px;
  overflow: visible;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.card-source small b {
  display: inline-block;
  color: var(--jade-bright);
  font-weight: 750;
  white-space: nowrap;
}

.slot-facts,
.result-facts {
  display: grid;
  grid-template-columns: minmax(96px, 0.92fr) repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.detail-item-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.item-stat-column {
  min-width: 0;
}

.item-stat-column__label {
  display: block;
  margin-bottom: 1px;
  color: #677c74;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.slot-card .item-stat-column__label {
  display: none;
}

.item-stat-column__values,
.item-stat {
  display: block;
}

.item-stat-column--secondary.item-stat-column--matrix {
  grid-column: span 2;
}

.slot-facts > .item-stat-column--permanent.item-stat-column--matrix,
.result-facts > .item-stat-column--permanent.item-stat-column--matrix {
  grid-column: span 2;
}

.item-stat-column--matrix .item-stat-column__values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 8px;
}

.slot-facts > .item-stat-column--permanent.item-stat-column--matrix .item-stat-column__values,
.result-facts > .item-stat-column--permanent.item-stat-column--matrix .item-stat-column__values {
  column-gap: 4px;
}

.item-stat {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-stat-column--permanent .item-stat {
  overflow: visible;
  color: #f0f4f2;
  text-overflow: clip;
}

.item-stat strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.item-stat--32 {
  color: var(--stat-crit);
}

.item-stat--36 {
  color: var(--stat-haste);
}

.item-stat--49 {
  color: var(--stat-mastery);
}

.item-stat--40 {
  color: var(--stat-versatility);
}

.item-stat-column--permanent .item-stat--intellect,
.item-stat-column--permanent .item-stat--strength,
.item-stat-column--permanent .item-stat--agility {
  color: var(--stat-primary);
}

.item-stat--block {
  color: #d7e8e1;
}

.item-stat--61,
.item-stat--62,
.item-stat--63,
.item-stat--64,
.item-stat-column--tertiary .item-stat {
  color: var(--stat-tertiary);
}

.item-facts-empty {
  color: var(--muted);
  font-size: 11.5px;
}

.slot-badges {
  position: static;
  grid-column: 2 / 3;
  grid-row: 2;
  display: flex;
  align-items: end;
  gap: 3px;
  min-width: 0;
}

.slot-badges span,
.result-badges span,
.detail-tag {
  padding: 1px 4px;
  border: 1px solid rgba(80, 203, 165, 0.23);
  border-radius: 999px;
  color: var(--jade-bright);
  background: rgba(80, 203, 165, 0.08);
  font-size: 9.5px;
  font-weight: 700;
}

.slot-badges .item-badge--catalyst,
.result-badges .item-badge--catalyst,
.detail-tag--catalyst {
  padding: 2px 7px;
  border-color: rgba(132, 174, 255, 0.72);
  color: #d3e2ff;
  background: linear-gradient(135deg, rgba(55, 103, 195, 0.46), rgba(101, 70, 167, 0.44));
  box-shadow: 0 0 0 1px rgba(155, 192, 255, 0.12), 0 0 12px rgba(84, 133, 227, 0.24);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.item-badge--imported {
  border-color: rgba(229, 199, 101, 0.42) !important;
  color: #f0dc88 !important;
  background: rgba(229, 199, 101, 0.1) !important;
}

.slot-augmentations {
  position: static;
  grid-column: 3 / -1;
  grid-row: 2;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
  pointer-events: none;
}

.slot-card-wrap--rollback .slot-augmentations {
  padding-right: 44px;
}

.slot-rollback {
  position: absolute;
  right: 6px;
  bottom: 4px;
  z-index: 2;
  min-width: 38px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid rgba(229, 199, 101, 0.42);
  border-radius: 4px;
  color: #efda83;
  background: rgba(26, 24, 13, 0.94);
  font-size: 9.5px;
  font-weight: 800;
}

.slot-rollback:hover {
  border-color: #f0d66e;
  background: rgba(69, 57, 17, 0.96);
}

.augmentation-chip {
  max-width: 46%;
  padding: 0 4px;
  overflow: hidden;
  border-radius: 3px;
  color: #c8d7d2;
  background: rgba(6, 11, 10, 0.86);
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.augmentation-chip__name {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.augmentation-chip__name > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.gem-quality-icon {
  width: 13px;
  height: 13px;
  margin: 0 2px;
  flex: 0 0 13px;
  object-fit: contain;
}

.augmentation-chip__separator,
.augmentation-token__join {
  color: #6f837b;
}

.augmentation-token--crit,
.augmentation-token--crit-effect {
  color: var(--stat-crit);
}

.augmentation-token--haste {
  color: var(--stat-haste);
}

.augmentation-token--mastery {
  color: var(--stat-mastery);
}

.augmentation-token--versatility {
  color: var(--stat-versatility);
}

.augmentation-token--tertiary {
  color: var(--stat-tertiary);
}

.augmentation-token--primary,
.augmentation-token--intellect,
.augmentation-token--strength,
.augmentation-token--agility {
  color: var(--stat-primary);
}

.augmentation-token--mana,
.augmentation-token--stamina,
.augmentation-token--armor,
.augmentation-token--utility {
  color: #d7e8e1;
}

.loadout-summary,
.modifier-dock {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24, 37, 33, 0.96), rgba(13, 21, 19, 0.96));
  box-shadow: var(--shadow);
}

.loadout-summary {
  grid-area: summary;
  padding: 11px;
}

.identity-emblems {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: end;
  gap: 7px;
  margin-bottom: 8px;
}

.identity-emblem {
  margin: 0;
  text-align: center;
}

.identity-emblem img {
  width: 76px;
  height: 76px;
  margin: 0 auto 3px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  object-fit: cover;
  background: #0b1210;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.26);
}

.identity-emblem--spec img {
  width: 92px;
  height: 92px;
  border-color: var(--jade);
}

.identity-emblem figcaption {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-identity {
  text-align: center;
}

.summary-identity h2 {
  margin-bottom: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 24px;
}

.summary-identity > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.2;
}

.summary-primary {
  width: min(224px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 2px auto 0;
}

.summary-primary > div {
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-soft);
}

.summary-primary span,
.summary-primary strong {
  display: block;
}

.summary-primary span {
  color: var(--muted);
  font-size: 10px;
}

.summary-primary strong {
  margin-top: 1px;
  font-size: 16px;
}

.summary-section {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.summary-section__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.summary-section__heading h3,
.modifier-dock h2 {
  margin: 0;
  font-size: 13px;
}

.summary-section__heading span {
  color: var(--muted);
  font-size: 10px;
}

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

.secondary-stat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 2px 8px;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid rgba(38, 58, 52, 0.72);
  border-radius: 6px;
  background: rgba(5, 10, 9, 0.38);
  line-height: 1.2;
}

.secondary-stat-name {
  font-size: 13px;
  font-weight: 700;
}

.secondary-stat-card--32 .secondary-stat-name {
  color: var(--stat-crit);
}

.secondary-stat-card--36 .secondary-stat-name {
  color: var(--stat-haste);
}

.secondary-stat-card--49 .secondary-stat-name {
  color: var(--stat-mastery);
}

.secondary-stat-card--40 .secondary-stat-name {
  color: var(--stat-versatility);
}

.secondary-rating {
  text-align: right;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.stat-percent-label {
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.stat-percent {
  color: var(--muted-strong);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 17px;
}

.stat-boosted {
  color: var(--muted);
  text-align: right;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.stat-boosted--active {
  color: var(--theoretical);
  font-weight: 700;
}

.set-list {
  display: grid;
  gap: 4px;
}

.set-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(7, 13, 11, 0.55);
}

.set-name {
  overflow: hidden;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.set-triggers {
  display: flex;
  gap: 3px;
}

.set-trigger {
  position: relative;
  padding: 1px 5px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  background: #0b1311;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.set-trigger--active {
  border-color: rgba(80, 203, 165, 0.72);
  color: var(--jade-bright);
  background: var(--jade-soft);
}

.set-trigger:focus-visible {
  outline: 2px solid var(--jade-bright);
  outline-offset: 2px;
}

.set-trigger::after {
  position: absolute;
  z-index: 30;
  bottom: calc(100% + 7px);
  right: 0;
  width: min(290px, 72vw);
  padding: 8px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text);
  background: #0a1210;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: normal;
}

.set-trigger:hover::after,
.set-trigger:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.set-count {
  color: var(--muted-strong);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.summary-empty {
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
}

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

.composition-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 10px;
  margin: 0;
}

.composition-list > div {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  color: var(--muted);
  font-size: 10.5px;
}

.composition-list dd {
  margin: 0;
  color: var(--text);
}

.modifier-dock {
  grid-area: modifiers;
  padding: 8px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.modifier-dock__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modifier-dock__heading .eyebrow {
  display: none;
}

.switch-control {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 10px;
  white-space: nowrap;
}

.switch-control input,
.modifier-check {
  width: 15px;
  height: 15px;
  accent-color: var(--jade);
}

.modifier-note {
  display: none;
}

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

.modifier-row {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: 15px 32px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(7, 13, 11, 0.55);
}

.modifier-row--selected {
  border-color: rgba(80, 203, 165, 0.42);
  background: var(--jade-soft);
}

.modifier-row > img {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  object-fit: cover;
}

.modifier-auto {
  width: 16px;
  height: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: transparent;
  font-size: 0;
}

.modifier-auto--active {
  border: 4px solid #18342b;
  background: var(--jade);
}

.modifier-copy {
  min-width: 0;
}

.modifier-copy > span,
.modifier-copy > strong {
  display: block;
}

.modifier-copy > span {
  color: var(--muted);
  font-size: 10px;
}

.modifier-copy > strong {
  margin: 1px 0;
  font-size: 12.5px;
}

.modifier-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}

.modifier-meta small {
  color: var(--jade-bright);
  font-size: 11.5px;
  font-weight: 800;
}

.modifier-meta a {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9.5px;
  text-decoration: none;
}

.modifier-meta a:hover {
  color: var(--jade-bright);
}

.modifier-row::after {
  position: absolute;
  z-index: 70;
  right: 0;
  bottom: calc(100% + 7px);
  width: min(330px, 72vw);
  padding: 8px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text);
  background: #0a1210;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  content: attr(data-tooltip);
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.modifier-row:hover::after,
.modifier-row:focus-visible::after,
.modifier-row:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

.review-mark {
  margin-left: 5px;
  color: var(--stat-versatility);
  font-size: 8px;
  font-style: normal;
}

.rank-control {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 0;
}

.modifier-row--ranked .modifier-copy {
  padding-right: 36px;
}

.rank-control select {
  width: 34px;
  min-width: 34px;
  min-height: 24px;
  padding: 1px 3px;
  font-size: 9px;
}

.phase-control {
  display: flex;
  gap: 3px;
  margin-top: 3px;
}

.phase-control button {
  min-height: 22px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  background: #0b1311;
  font-size: 9px;
}

.phase-control button[aria-pressed="true"] {
  border-color: var(--jade);
  color: var(--jade-bright);
  background: var(--jade-soft);
}

.modifier-empty {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.evidence-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(13, 21, 19, 0.7);
}

.evidence-note h2 {
  margin-bottom: 4px;
  color: var(--muted-strong);
  font-size: 12px;
}

.evidence-note p {
  margin-bottom: 0;
  font-size: 10px;
}

.item-picker {
  width: min(1380px, calc(100% - 28px));
  max-height: 94vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.65);
}

.item-picker::backdrop {
  background: rgba(2, 6, 5, 0.78);
  backdrop-filter: blur(5px);
}

.picker-shell {
  max-height: 94vh;
  overflow: auto;
}

.picker-header,
.picker-footer {
  position: sticky;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  background: rgba(17, 26, 24, 0.97);
}

.picker-header {
  top: 0;
  border-bottom: 1px solid var(--border);
}

.picker-header h2 {
  margin: 0;
  font-size: 18px;
}

.picker-footer {
  bottom: 0;
  border-top: 1px solid var(--border);
}

.picker-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 220px);
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.picker-content {
  display: grid;
  grid-template-columns: minmax(610px, 1.12fr) minmax(460px, 0.88fr);
  min-height: 560px;
}

.picker-results,
.picker-detail {
  min-width: 0;
  padding: 12px;
}

.picker-results {
  border-right: 1px solid var(--border);
}

.result-count {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.result-list {
  display: grid;
  gap: 5px;
}

.result-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(132px, 0.82fr) minmax(100px, 0.62fr) minmax(170px, 1.2fr);
  grid-template-rows: minmax(0, 1fr) 17px;
  align-items: center;
  gap: 8px;
  min-height: 88px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  text-align: left;
  background: #0d1513;
}

.result-card:hover,
.result-card--active {
  border-color: var(--jade);
  background: var(--jade-soft);
}

.result-card > img,
.result-card > .result-icon {
  width: 48px;
  height: 48px;
  border: 1px solid #8f4dcc;
  border-radius: 5px;
}

.result-card > img,
.result-card > .result-icon,
.result-identity,
.result-card > .card-source,
.result-facts {
  grid-row: 1;
}

.result-identity,
.result-identity > strong,
.result-identity > small {
  display: block;
  min-width: 0;
}

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

.result-identity > strong {
  color: #d8a6ff;
  font-size: 15px;
}

.result-identity > small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
}

.result-badges {
  position: static;
  grid-column: 2 / -1;
  grid-row: 2;
  display: flex;
  align-items: end;
  gap: 2px;
}

.result-empty,
.detail-empty {
  color: var(--muted);
  text-align: center;
}

.detail-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 1px solid #8f4dcc;
  border-radius: 7px;
  object-fit: cover;
}

.detail-identity h3 {
  margin-bottom: 2px;
  color: #d8a6ff;
  font-size: 17px;
}

.detail-identity p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.detail-item-facts {
  margin-top: 12px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-soft);
}

.detail-item-facts .item-stat,
.detail-item-facts .item-stat-column__label {
  font-size: 16px;
}

.detail-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.crafted-fields,
.augmentation-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.crafted-fields h4 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 11px;
}

.augmentation-preview {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 7px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 9px;
}

.augmentation-preview > div {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.augmentation-preview .augmentation-chip {
  max-width: 180px;
}

.augmentation-field select {
  min-height: 38px;
  font-size: 14px;
}

.augmentation-select-shell {
  position: relative;
  display: block;
}

.augmentation-select-shell select {
  width: 100%;
}

.augmentation-select-shell select.has-quality-icon {
  padding-left: 31px;
}

.gem-quality-icon--select {
  position: absolute;
  left: 9px;
  top: 50%;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.field-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
}

.field-note--warning {
  color: var(--stat-versatility);
}

.field-note--intrinsic {
  padding: 8px 9px;
  border: 1px solid rgba(229, 199, 101, 0.28);
  border-radius: 6px;
  color: #d9c982;
  background: rgba(229, 199, 101, 0.07);
}

.field-note--intrinsic strong {
  color: #f0df9c;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.special-link {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted-strong);
  text-decoration: none;
  font-size: 11px;
}

.special-link strong {
  color: var(--jade-bright);
}

.source-list {
  margin-top: 12px;
}

.source-list h4 {
  margin-bottom: 5px;
  font-size: 11px;
}

.source-record {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 10.5px;
}

.source-record img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.detail-tag--intrinsic {
  border-color: rgba(229, 199, 101, 0.34);
  color: #ead77f;
  background: rgba(229, 199, 101, 0.08);
}

.detail-tag--catalyst {
  border-color: rgba(132, 174, 255, 0.72);
  color: #d3e2ff;
  background: linear-gradient(135deg, rgba(55, 103, 195, 0.46), rgba(101, 70, 167, 0.44));
}

.catalyst-field {
  padding: 9px;
  border: 1px solid rgba(126, 170, 255, 0.3);
  border-radius: 7px;
  background: rgba(70, 101, 159, 0.08);
}

.catalyst-field label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.catalyst-field input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  accent-color: #7eaaff;
}

.catalyst-field strong,
.catalyst-field small {
  display: block;
}

.catalyst-field strong {
  color: #bad0ff;
  font-size: 12px;
}

.catalyst-field small,
.catalyst-evidence {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.catalyst-evidence {
  display: block;
  margin: 5px 0 0 26px;
}

.special-description {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(80, 203, 165, 0.07), rgba(13, 21, 19, 0.92));
}

.special-description__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.special-description__heading h4 {
  margin: 0;
  color: var(--jade-bright);
  font-size: 13px;
}

.special-description__heading span {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.special-description__block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.special-trigger {
  padding: 2px 6px;
  border: 1px solid rgba(80, 203, 165, 0.28);
  border-radius: 999px;
  color: var(--jade-bright);
  background: rgba(80, 203, 165, 0.08);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.special-description__block p {
  margin: 0;
  color: #d4dfdb;
  font-size: 12px;
  line-height: 1.62;
}

.special-description > a {
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
}

.special-description > a:hover {
  color: var(--jade-bright);
}

.character-import {
  width: min(920px, calc(100% - 28px));
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.65);
}

.character-import::backdrop {
  background: rgba(2, 6, 5, 0.78);
  backdrop-filter: blur(5px);
}

.import-shell {
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.import-header,
.import-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(17, 26, 24, 0.97);
}

.import-header {
  border-bottom: 1px solid var(--border);
}

.import-header h2 {
  margin: 0;
  font-size: 19px;
}

.import-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}

.import-body {
  min-height: 0;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  overflow: auto;
}

.import-source-panel {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.import-source-panel[hidden] {
  display: none;
}

.import-source-panel textarea {
  min-height: 112px;
  resize: vertical;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.import-source-panel p,
.import-status {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.import-source-panel code {
  color: var(--jade-bright);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.import-inspect {
  justify-self: start;
}

.import-preview {
  display: grid;
  gap: 9px;
}

.import-issues {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.import-issue,
.import-ok,
.import-failure {
  margin: 0;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted-strong);
  background: rgba(6, 11, 10, 0.5);
  font-size: 11.5px;
}

.import-issue--error,
.import-failure {
  border-color: rgba(227, 96, 96, 0.4);
  color: #f1aaaa;
}

.import-issue--warning {
  border-color: rgba(229, 199, 101, 0.36);
  color: #ead77f;
}

.import-ok {
  border-color: rgba(80, 203, 165, 0.35);
  color: var(--jade-bright);
}

.import-entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.import-entry {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 2px 8px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #0c1412;
}

.import-entry > span {
  grid-row: 1 / span 2;
  color: var(--jade-bright);
  font-size: 11px;
  font-weight: 800;
}

.import-entry strong,
.import-entry small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-entry__augmentations {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
}

.import-entry__augmentations .augmentation-chip {
  max-width: 100%;
}

.import-entry strong {
  color: #d8a6ff;
  font-size: 13px;
}

.import-entry small {
  color: var(--muted);
  font-size: 10.5px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100% - 40px));
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  background: #15221e;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1460px) {
  .planner-toolbar {
    align-items: stretch;
    flex-direction: column;
    flex-wrap: wrap;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .equipment-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "left right"
      "summary modifiers";
  }

  .loadout-summary {
    align-self: start;
  }

  .identity-fields {
    flex-basis: auto;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }

  .toolbar-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 860px) {
  .site-nav,
  .brand__tagline,
  .catalog-notice__detail {
    display: none;
  }

  .site-header__inner,
  .page-shell {
    width: min(100% - 20px, 760px);
  }

  .module-masthead,
  .planner-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .masthead-facts {
    white-space: normal;
  }

  .identity-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toolbar-actions {
    justify-content: flex-end;
  }

  .equipment-board {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right"
      "summary"
      "modifiers";
  }

  .weapon-row {
    width: 100%;
  }

  .picker-content {
    grid-template-columns: 1fr;
  }

  .picker-results {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 660px) {
  .toolbar-actions {
    flex-wrap: wrap;
  }

  .page-shell {
    padding-top: 14px;
  }

  .module-masthead {
    gap: 12px;
  }

  .module-masthead > div:first-child {
    display: block;
  }

  .module-masthead .eyebrow {
    display: block;
  }

  .masthead-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .masthead-facts span {
    display: grid;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
  }

  .identity-fields,
  .picker-filters,
  .crafted-fields,
  .augmentation-fields,
  .weapon-row,
  .import-entry-list {
    grid-template-columns: 1fr;
  }

  .identity-fields .field {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .identity-picker__panel--specs {
    grid-template-columns: 1fr;
  }

  .identity-picker__panel--icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar-actions .button {
    flex: 1;
  }

  .slot-card {
    grid-template-columns: 48px minmax(108px, 0.78fr) minmax(88px, 0.62fr) minmax(138px, 1.2fr);
  }

  .slot-facts {
    gap: 3px;
  }

  .item-stat-column__label {
    display: none;
  }

  .slot-badges {
    display: none;
  }

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

  .picker-content {
    min-height: 0;
  }

  .result-card {
    grid-template-columns: 48px minmax(118px, 0.82fr) minmax(92px, 0.62fr) minmax(145px, 1.2fr);
  }

  .augmentation-preview,
  .field-note,
  .crafted-fields h4 {
    grid-column: 1;
  }

  .picker-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .picker-footer__right .button {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .slot-card,
  .result-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .slot-card {
    height: auto;
    min-height: 154px;
    grid-template-rows: auto auto auto auto;
    align-items: start;
  }

  .slot-card .slot-icon-wrap {
    grid-column: 1;
    grid-row: 1;
  }

  .slot-card .slot-identity {
    grid-column: 2;
    grid-row: 1;
  }

  .slot-card .card-source {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-left: 56px;
  }

  .slot-facts,
  .result-facts {
    grid-column: 1 / -1;
    padding-left: 56px;
  }

  .slot-card .slot-facts {
    grid-row: 3;
  }

  .slot-card .slot-augmentations {
    grid-column: 1 / -1;
    grid-row: 4;
    padding-left: 56px;
  }

  .slot-augmentations {
    left: 64px;
  }

  .slot-card-wrap--rollback .slot-card {
    padding-bottom: 25px;
  }

  .result-card {
    min-height: 126px;
  }

  .modifier-row {
    grid-template-columns: 15px 26px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.gear-export-stage,
.gear-export-render {
  --background: #0b100f;
  --surface: #111a18;
  --surface-raised: #16211e;
  --surface-soft: #0f1715;
  --border: #263a34;
  --border-strong: #35584e;
  --text: #e6f0ec;
  --muted: #91a49d;
  --muted-strong: #b5c5bf;
  --jade: #50cba5;
  --jade-soft: rgba(80, 203, 165, 0.12);
  --jade-bright: #7be0c0;
  --stat-crit: #ef7777;
  --stat-haste: #68d69d;
  --stat-mastery: #72adf0;
  --stat-versatility: #e5c765;
  --stat-tertiary: #d3a9ef;
  --stat-primary: #f0a45d;
  --theoretical: #d6a7ff;
  width: 1920px;
  margin: 0;
  padding: 20px;
  color: var(--text);
  background:
    radial-gradient(circle at 48% 0%, rgba(59, 117, 97, 0.11), transparent 34rem),
    var(--background);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  line-height: 21px;
  color-scheme: dark;
}

.gear-export-stage {
  position: fixed;
  z-index: -2147483647;
  top: 0;
  left: 0;
  overflow: visible;
  pointer-events: none;
}

.gear-export-stage > .page-shell,
.gear-export-render > .page-shell {
  width: 1880px !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gear-export-stage .planner-toolbar,
.gear-export-render .planner-toolbar {
  align-items: end !important;
  flex-direction: row !important;
}

.gear-export-stage .identity-fields,
.gear-export-render .identity-fields {
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.gear-export-stage .identity-fields .field,
.gear-export-render .identity-fields .field {
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
}

.gear-export-stage .equipment-board,
.gear-export-render .equipment-board {
  grid-template-columns: minmax(470px, 1fr) minmax(400px, 440px) minmax(470px, 1fr) !important;
  grid-template-areas:
    "left summary right"
    "left modifiers right" !important;
}

.gear-export-stage .catalog-notice__detail,
.gear-export-render .catalog-notice__detail {
  display: inline;
}

.gear-export-stage .slot-card,
.gear-export-render .slot-card {
  height: auto;
  min-height: 108px;
  grid-template-columns: 48px minmax(116px, 0.78fr) minmax(92px, 0.62fr) minmax(154px, 1.2fr) !important;
  grid-template-rows: minmax(64px, auto) minmax(24px, auto) !important;
  align-items: center !important;
  overflow: visible;
}

.gear-export-stage .slot-card--weapon,
.gear-export-render .slot-card--weapon {
  min-height: 116px;
  border-color: var(--stat-versatility);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.12);
}

.gear-export-stage .slot-card--trinket,
.gear-export-render .slot-card--trinket {
  border-color: var(--stat-tertiary);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.12);
}

.gear-export-stage .slot-facts,
.gear-export-render .slot-facts,
.gear-export-stage .card-source,
.gear-export-render .card-source {
  grid-row: 1 !important;
  padding-left: 0 !important;
}

.gear-export-stage .slot-icon-wrap,
.gear-export-render .slot-icon-wrap {
  grid-column: 1 !important;
}

.gear-export-stage .slot-identity,
.gear-export-render .slot-identity {
  grid-column: 2 !important;
}

.gear-export-stage .card-source,
.gear-export-render .card-source {
  grid-column: 3 !important;
}

.gear-export-stage .slot-facts,
.gear-export-render .slot-facts {
  grid-column: 4 !important;
}

.gear-export-stage .identity-picker > summary,
.gear-export-render .identity-picker > summary {
  height: auto;
  min-height: 68px;
  overflow: visible;
}

.gear-export-stage .identity-picker__summary-copy strong,
.gear-export-stage .identity-picker__summary-copy small,
.gear-export-render .identity-picker__summary-copy strong,
.gear-export-render .identity-picker__summary-copy small,
.gear-export-stage .slot-kicker,
.gear-export-stage .slot-meta,
.gear-export-stage .slot-name,
.gear-export-stage .card-source strong,
.gear-export-stage .card-source small,
.gear-export-render .slot-kicker,
.gear-export-render .slot-meta,
.gear-export-render .slot-name,
.gear-export-render .card-source strong,
.gear-export-render .card-source small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.gear-export-stage .identity-picker__summary-copy strong,
.gear-export-render .identity-picker__summary-copy strong,
.gear-export-stage .slot-name,
.gear-export-render .slot-name {
  line-height: 20px;
}

.gear-export-stage .identity-picker__summary-copy small,
.gear-export-render .identity-picker__summary-copy small,
.gear-export-stage .slot-kicker,
.gear-export-stage .slot-meta,
.gear-export-render .slot-kicker,
.gear-export-render .slot-meta {
  line-height: 16px;
}

.gear-export-stage .card-source strong,
.gear-export-render .card-source strong {
  line-height: 17px;
}

.gear-export-stage .card-source small,
.gear-export-render .card-source small {
  line-height: 15px;
}

.gear-export-stage .item-stat-column__label,
.gear-export-render .item-stat-column__label {
  line-height: 15px;
}

.gear-export-stage .item-stat,
.gear-export-render .item-stat {
  min-height: 22px;
  overflow: visible;
  line-height: 22px;
  text-overflow: clip;
}

.gear-export-stage .item-stat-column__values,
.gear-export-render .item-stat-column__values {
  grid-auto-rows: minmax(22px, auto);
  row-gap: 1px;
  overflow: visible;
}

.gear-export-stage .slot-icon-wrap,
.gear-export-render .slot-icon-wrap,
.gear-export-stage .slot-identity,
.gear-export-render .slot-identity {
  grid-row: 1 !important;
}

.gear-export-stage .slot-augmentations,
.gear-export-render .slot-augmentations {
  grid-column: 3 / -1 !important;
  grid-row: 2 !important;
  padding-left: 0 !important;
  align-items: center;
  flex-wrap: wrap;
}

.gear-export-stage .augmentation-chip,
.gear-export-render .augmentation-chip {
  min-height: 20px;
  max-width: calc(50% - 2px);
  padding: 2px 5px;
  overflow: visible;
  line-height: 16px;
  text-overflow: clip;
  white-space: normal;
}

.gear-export-stage .augmentation-chip__name,
.gear-export-stage .augmentation-chip__name > span:last-child,
.gear-export-render .augmentation-chip__name,
.gear-export-render .augmentation-chip__name > span:last-child {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.gear-export-stage .slot-card-wrap--rollback .slot-card,
.gear-export-render .slot-card-wrap--rollback .slot-card {
  padding-bottom: 5px;
}

.gear-export-stage .item-stat-column__label,
.gear-export-render .item-stat-column__label {
  display: block;
}

.gear-export-stage .slot-badges,
.gear-export-render .slot-badges {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
}

.gear-export-stage .slot-badges span,
.gear-export-render .slot-badges span,
.gear-export-stage .detail-tag,
.gear-export-render .detail-tag {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  line-height: 15px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.gear-export-stage .slot-rollback,
.gear-export-render .slot-rollback {
  display: none;
}
