:root {
  --bg: #0e0f12;
  --panel: #141622;
  --card: #161a27;
  --text: #e9ecf1;
  --muted: #a7b0c0;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #ff7f00;
  --named-text: #eaa213;
  --perfect-text: #ff953a;
  --color-armor-core: #45618e;
  --color-weapon-damage: #a43b3b;
  --color-skill-tier: #ffd373;
  --color-god-roll: #ff953a;
  --color-faded-skill-yellow: #f7e67a;
  --color-gear-set: #01ff90;
  --color-exotic: #ff6f36;
  --color-named-item: #eaa213;
  --color-high-end: #ffaf10;
  --color-division2-orange: #ff7f00;
  --color-dark-zone: #6d5f98;
  --color-prototype: #8c80de;
  --color-prototype-rgb: 140, 128, 222;
  --color-prototype-bright: #d9d2ff;
  --color-dark-zone-bright: #d8cff3;
  --color-dark-zone-rgb: 109, 95, 152;
  --rarity-default: 255, 255, 255;
  --rarity-highend: 255, 175, 16;
  --rarity-gearset: 1, 255, 144;
  --rarity-named: 255, 132, 19;
  --rarity-exotic: 255, 111, 54;
  --card-min: 10.5rem;
  --card-gap: 8px;
  --card-pad: 8px;
  --card-title-size: 13px;
  --card-subtitle-size: 11px;
  --card-line-size: 11px;
  --card-line-gap: 3px;
  --radius: 10px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --maxw: 1400px;
  --toolbar-control-h: 30px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  height: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans JP", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg) url("./img/division2.png") center center / cover no-repeat;
  opacity: 0.25;
}

.main {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: var(--space-3);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  background: rgba(14, 15, 18, 0.9);
  backdrop-filter: blur(8px);
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  flex: 1 1 auto;
}

.title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__time {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(20, 22, 34, 0.62);
}

/* Shared sizing for compact controls in the header and view toolbars. */
.ui-control {
  min-height: var(--toolbar-control-h);
  height: var(--toolbar-control-h);
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 8px;
}

.topbar__descent {
  max-width: min(46vw, 560px);
}

.topbar__descent .time-value {
  display: inline-block;
  max-width: min(36vw, 460px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  font-weight: 600;
}

.topbar__descent-name {
  color: var(--text);
  font-weight: 700;
}

.topbar__descent-remain {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 500;
}

.topbar__descent:hover {
  color: var(--text);
}

.topbar__descent:hover .time-value {
  color: var(--text);
}

.topbar__descent:not(.topbar__descent--interactive) {
  cursor: default;
}

.topbar__descent:not(.topbar__descent--interactive):hover,
.topbar__descent:not(.topbar__descent--interactive):hover .time-value {
  color: var(--muted);
}

.time-value {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

#worldTime {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.vendor-toolbar-host {
  flex: 1 1 100%;
  order: 10;
}

.vendor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2);
}

.vendor-toolbar .chips {
  flex: 1 1 100%;
}

.vendor-toolbar__group-label {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 2px 0 8px;
  align-self: flex-start;
}

.vendor-toolbar [data-vendor-filter-control="1"][hidden] {
  display: none !important;
}

/* Event */
.event-view {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 0;
}

.event-view .blueprint-table-wrap {
  margin-top: 8px;
}

.event-view .event-table {
  min-width: 0;
  width: 100%;
  table-layout: auto;
}

.event-view .event-table thead th {
  white-space: normal;
}

.event-section {
  margin-bottom: 10px;
}

.event-section__title {
  margin: 0;
  font-size: var(--card-title-size);
}

.event-section__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px 0;
}

.event-weekof {
  margin: 0 0 6px 0;
  color: var(--muted);
  font-size: var(--card-subtitle-size);
}

.event-table td,
.event-table th {
  font-size: 12px;
}

.event-table th:first-child,
.event-table td:first-child {
  width: 1%;
  white-space: nowrap;
}

.event-table td {
  white-space: normal;
  word-break: break-word;
}

.event-targetloot-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-targetloot-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.event-targetloot-empty {
  color: var(--muted);
}

.event-table tbody th {
  width: 1%;
  min-width: 22px;
  max-width: 28px;
  padding: 8px 6px;
  text-align: center;
  font-weight: 700;
  color: rgba(232, 232, 232, 0.95);
  background: rgba(110, 110, 110, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.event-empty {
  margin: 0 0 8px 0;
  color: var(--muted);
}

/* Season MOD */
.seasonmod-view {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
  align-items: start;
  font-size: 11px;
}

.seasonmod-section {
  margin-bottom: 2px;
  min-width: 0;
}

.seasonmod-section--simulator {
  position: static;
  top: auto;
  z-index: auto;
  background: rgba(14, 15, 18, 0.96);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

.seasonmod-section--active,
.seasonmod-section--passive {
  min-height: 0;
}

.seasonmod-section--active .blueprint-table-scroll,
.seasonmod-section--passive .blueprint-table-scroll {
  max-height: none;
  overflow: visible;
}

.seasonmod-section__title {
  margin: 0 0 6px 0;
  font-size: var(--card-title-size);
}

.seasonmod-section__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.seasonmod-section__heading-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seasonmod-share-btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.seasonmod-share-btn__icon {
  width: 16px;
  height: 16px;
  display: block;
}

.seasonmod-section__heading .seasonmod-section__title {
  margin: 0;
}

.descent-copy-btn {
  margin-left: auto;
}

.seasonmod-section--simulator .field,
.seasonmod-section--simulator .field > span,
.seasonmod-section--simulator .seasonmod-select,
.seasonmod-section--simulator .seasonmod-picker__button,
.seasonmod-section--simulator .seasonmod-table th,
.seasonmod-section--simulator .seasonmod-table td {
  font-size: 11px;
}

.seasonmod-table--simple td:nth-child(2),
.seasonmod-table--simple th:nth-child(2) {
  width: auto;
}

.seasonmod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: var(--card-subtitle-size);
}

.seasonmod-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.seasonmod-field {
  gap: 4px;
}

.seasonmod-active-group {
  grid-column: 1 / -1;
}

.seasonmod-active-group__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 180px);
  gap: 8px;
}

.seasonmod-active-level-field > span {
  display: none;
}

.seasonmod-picker-open-btn {
  width: auto;
  min-height: 32px;
}

@media (min-width: 1025px) {
  .seasonmod-active-group {
    position: relative;
  }
}

.seasonmod-passive-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: start;
}

.seasonmod-passive-group > span {
  align-self: start;
  white-space: nowrap;
}

.seasonmod-passive-group__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 8px;
}

.seasonmod-targetpicker[hidden] {
  display: none !important;
}

body.seasonmod-modal-open {
  overflow: hidden;
}

@media (pointer: coarse) {
  body.seasonmod-modal-open {
    position: fixed;
    width: 100%;
  }
}

.seasonmod-targetpicker {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.seasonmod-targetpicker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.seasonmod-targetpicker__dialog {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: min(1200px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  background: rgba(14, 15, 22, 0.98);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 10px;
  overscroll-behavior: contain;
}

.seasonmod-targetpicker__dialog .blueprint-table-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

#seasonModPickerTableWrap {
  min-height: 0;
}

.seasonmod-targetpicker__table-scroll {
  max-height: min(62vh, calc(100vh - 260px));
}

.seasonmod-targetpicker__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.seasonmod-targetpicker__controls {
  padding-right: 34px;
}

.seasonmod-targetpicker__addrow {
  display: flex;
  gap: 6px;
  align-items: center;
}

.seasonmod-targetpicker__chips-wrap {
  display: grid;
  gap: 6px;
}

.seasonmod-targetpicker__chips-title {
  font-size: 11px;
  color: var(--muted);
}

.seasonmod-targetpicker__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.seasonmod-targetpicker__summary {
  color: var(--muted);
  font-size: 11px;
  min-height: 16px;
}

.seasonmod-targetpicker__chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.seasonmod-targetpicker__chipx {
  opacity: 0.9;
  font-weight: 700;
}

.seasonmod-targetpicker__table {
  width: max-content;
}

.seasonmod-targetpicker__table th,
.seasonmod-targetpicker__table td {
  width: auto !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  font-size: 11px !important;
  line-height: 1.15;
}

.seasonmod-targetpicker__table tbody th,
.seasonmod-targetpicker__table tbody td {
  background: transparent !important;
  color: inherit !important;
  font-weight: 400;
}

.seasonmod-targetpicker__table tbody td:first-child {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.seasonmod-targetpicker__table thead {
  display: table-header-group !important;
}

.seasonmod-view .seasonmod-targetpicker__table th:last-child,
.seasonmod-view .seasonmod-targetpicker__table td:last-child,
.seasonmod-view .seasonmod-targetpicker__table th,
.seasonmod-view .seasonmod-targetpicker__table td {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

.seasonmod-targetpicker__row {
  cursor: pointer;
}

.seasonmod-targetpicker__row:hover td {
  background: rgba(255, 255, 255, 0.08);
}

.seasonmod-targetpicker__divider-right {
  border-right: 2px solid rgba(255, 255, 255, 0.18);
}

.seasonmod-targetpicker__divider-after-passive {
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}

.seasonmod-targetpicker__passive-chip {
  display: block;
  margin: 0;
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.seasonmod-targetpicker__passive-chip--offense {
  background: rgba(255, 120, 120, 0.12);
}

.seasonmod-targetpicker__passive-chip--defense {
  background: rgba(120, 150, 255, 0.12);
}

.seasonmod-targetpicker__passive-chip--utility {
  background: rgba(255, 220, 120, 0.12);
}

.seasonmod-targetpicker__passive-chip--wildcard {
  background: rgba(255, 255, 255, 0.06);
}

.seasonmod-targetpicker__divider-left {
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}

.seasonmod-select {
  min-width: 120px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}

.seasonmod-picker {
  position: relative;
}

.seasonmod-picker__button {
  position: relative;
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  font-size: 11px;
  cursor: pointer;
}

.seasonmod-picker__button--offense {
  background: rgba(255, 120, 120, 0.12);
}

.seasonmod-picker__button--defense {
  background: rgba(120, 150, 255, 0.12);
}

.seasonmod-picker__button--utility {
  background: rgba(255, 220, 120, 0.12);
}

.seasonmod-picker__button--wildcard {
  background: transparent;
}

.seasonmod-picker__button::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(233, 236, 241, 0.85);
  border-bottom: 2px solid rgba(233, 236, 241, 0.85);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.seasonmod-picker__button[aria-expanded="true"]::after {
  transform: translateY(-35%) rotate(225deg);
}

.seasonmod-picker__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(20, 22, 34, 0.98);
  padding: 4px;
}

.seasonmod-picker__option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.seasonmod-picker__option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.seasonmod-picker__option--offense {
  background: rgba(255, 120, 120, 0.08);
}

.seasonmod-picker__option--defense {
  background: rgba(120, 150, 255, 0.08);
}

.seasonmod-picker__option--utility {
  background: rgba(255, 220, 120, 0.08);
}

.seasonmod-picker__option--wildcard {
  background: transparent;
}

.seasonmod-picker__option.is-active {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 127, 0, 0.7);
}

.seasonmod-picker__option.is-disabled {
  opacity: 0.45;
}

.seasonmod-picker__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  object-fit: cover;
  flex: 0 0 auto;
}

.seasonmod-picker__icon--empty {
  border-color: transparent;
  background: transparent;
}

.seasonmod-picker__label {
  min-width: 0;
  font-size: 11px;
  line-height: 1.15;
}

.seasonmod-selected-table .seasonmod-selected-desc {
  font-size: 11px;
  line-height: 1.15;
}

.seasonmod-active-desc-cell {
  font-size: 11px;
  line-height: 1.25;
}

.seasonmod-active-desc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.seasonmod-active-desc-icon {
  flex: 0 0 auto;
}

.seasonmod-active-desc-name {
  display: block;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
}

.seasonmod-active-desc-text {
  display: block;
  color: rgba(235, 235, 235, 0.92);
}

.seasonmod-active-desc-extra {
  margin-top: 8px;
  display: grid;
  gap: 0;
}

.seasonmod-active-desc-extra-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
}

.seasonmod-active-desc-extra-value {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: center;
  align-self: center;
}

.seasonmod-active-desc-extra-formula {
  grid-column: 1;
  grid-row: 2;
  color: rgba(235, 235, 235, 0.72);
  font-size: 10px;
  line-height: 1.3;
}

.seasonmod-active-desc-extra-name {
  grid-column: 1;
  grid-row: 1;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.seasonmod-active-desc-extra-sep {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.seasonmod-inline-value {
  display: inline-block;
  padding: 0 4px;
  border-radius: 5px;
  background: rgba(255, 210, 120, 0.16);
  color: rgba(255, 243, 200, 0.98);
  font-weight: 700;
}

.seasonmod-inline-value--offense {
  background: rgba(255, 120, 120, 0.16);
  color: rgba(255, 228, 228, 0.98);
}

.seasonmod-inline-value--defense {
  background: rgba(120, 150, 255, 0.16);
  color: rgba(232, 238, 255, 0.98);
}

.seasonmod-inline-value--utility {
  background: rgba(255, 220, 120, 0.16);
  color: rgba(255, 245, 214, 0.98);
}

.seasonmod-picker__option-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seasonmod-picker__meta {
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.seasonmod-picker__impact {
  min-width: 0;
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 9px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.seasonmod-picker__impact-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.seasonmod-picker__impact-chip--offense {
  background: rgba(255, 120, 120, 0.12);
}

.seasonmod-picker__impact-chip--defense {
  background: rgba(120, 150, 255, 0.12);
}

.seasonmod-picker__impact-chip--utility {
  background: rgba(255, 220, 120, 0.12);
}

.seasonmod-picker__impact-val {
  color: rgba(255, 255, 255, 0.9);
}

.seasonmod-picker__impact-delta {
  opacity: 0.9;
}

.seasonmod-picker__impact-delta.is-plus {
  color: #9be27a;
}

.seasonmod-picker__impact-delta.is-minus {
  color: #ff9a9a;
}

.seasonmod-modcell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
  white-space: nowrap;
  padding: 2px 0;
}

.seasonmod-selected-mod-cell {
  border-radius: 6px;
}

.seasonmod-selected-mod-cell--offense {
  background: rgba(255, 120, 120, 0.12);
}

.seasonmod-selected-mod-cell--defense {
  background: rgba(120, 150, 255, 0.12);
}

.seasonmod-selected-mod-cell--utility {
  background: rgba(255, 220, 120, 0.12);
}

.seasonmod-selected-mod-cell--wildcard {
  background: transparent;
}

.seasonmod-view .seasonmod-selected-table td.seasonmod-selected-mod-cell {
  border-radius: 6px;
}

.seasonmod-view .seasonmod-selected-table td.seasonmod-selected-mod-cell--offense {
  background: rgba(255, 120, 120, 0.12) !important;
}

.seasonmod-view .seasonmod-selected-table td.seasonmod-selected-mod-cell--defense {
  background: rgba(120, 150, 255, 0.12) !important;
}

.seasonmod-view .seasonmod-selected-table td.seasonmod-selected-mod-cell--utility {
  background: rgba(255, 220, 120, 0.12) !important;
}

.seasonmod-view .seasonmod-selected-table td.seasonmod-selected-mod-cell--wildcard {
  background: transparent !important;
}

.seasonmod-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.seasonmod-result-grid .seasonmod-table tbody td {
  min-height: 32px !important;
}

.seasonmod-result {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.seasonmod-accordion__body {
  display: grid;
  gap: 8px;
}

.seasonmod-view .seasonmod-section .blueprint-table-wrap {
  margin-top: 8px;
}

.seasonmod-view .seasonmod-section .blueprint-table-wrap:first-child {
  margin-top: 0;
}

.seasonmod-result-grid > .blueprint-table-wrap {
  margin-top: 0 !important;
}

.seasonmod-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

.seasonmod-view .blueprint-table {
  min-width: 0;
}

.seasonmod-table td,
.seasonmod-table th {
  font-size: 12px;
}

.seasonmod-section--active .seasonmod-table td,
.seasonmod-section--active .seasonmod-table th,
.seasonmod-section--passive .seasonmod-table td,
.seasonmod-section--passive .seasonmod-table th {
  font-size: 11px;
}

.seasonmod-view .seasonmod-table thead th {
  padding-top: 4px;
  padding-bottom: 4px;
  line-height: 1.2;
}

.seasonmod-table th:not(:last-child),
.seasonmod-table td:not(:last-child) {
  white-space: nowrap;
  overflow-wrap: normal;
}

.seasonmod-table th:last-child,
.seasonmod-table td:last-child {
  width: auto;
  white-space: normal;
  overflow-wrap: anywhere;
}

.seasonmod-table th:first-child,
.seasonmod-table td:first-child {
  white-space: nowrap;
}

.seasonmod-table tbody th {
  background: rgba(110, 110, 110, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.seasonmod-icon-cell {
  width: 1%;
  min-width: 42px;
  text-align: center;
  white-space: nowrap;
}

.seasonmod-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.seasonmod-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--card-subtitle-size);
}

.seasonmod-active-derived-table tbody td:first-child {
  color: var(--muted);
}

.seasonmod-result-grid .seasonmod-table td {
  vertical-align: middle;
}

.seasonmod-result-grid .seasonmod-selected-desc {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seasonmod-stack-base {
  color: var(--muted);
  font-size: 11px;
}

.seasonmod-passive-row--offense td {
  background: rgba(255, 120, 120, 0.06);
}

.seasonmod-passive-row--defense td {
  background: rgba(120, 150, 255, 0.06);
}

.seasonmod-passive-row--utility td {
  background: rgba(255, 220, 120, 0.06);
}

.seasonmod-passive-row--wildcard td {
  background: rgba(180, 180, 180, 0.08);
}

.seasonmodpicker-view {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.seasonmodpicker-title {
  margin: 0;
  font-size: var(--card-title-size);
}

.seasonmodpicker-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  align-items: end;
  position: relative;
  z-index: 2;
  margin-bottom: 4px;
}

.seasonmodpicker-controls--inline {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  align-items: end;
}

.seasonmodpicker-field {
  gap: 4px;
}

.seasonmodpicker-summary {
  color: var(--muted);
  font-size: 11px;
}

.seasonmodpicker-view .seasonmod-table {
  table-layout: auto;
  width: max-content;
  min-width: 0;
}

.seasonmodpicker-col {
  width: 1%;
}

.seasonmodpicker-view .seasonmod-table th,
.seasonmodpicker-view .seasonmod-table td {
  white-space: nowrap;
  width: 1%;
  padding: 4px 8px;
  font-size: 11px;
}

.seasonmodpicker-addrow {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.seasonmodpicker-addrow select {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 30px;
  padding: 4px 8px;
  font-size: 11px;
}

.seasonmodpicker-addrow .btn {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 10px;
  line-height: 1;
  white-space: nowrap;
}

.seasonmodpicker-addbtn {
  height: 30px;
  align-self: end;
  white-space: nowrap;
}

.seasonmodpicker-field > input,
.seasonmodpicker-field > select {
  height: 30px;
  min-width: 0;
  width: 100%;
  padding: 4px 8px;
  font-size: 11px;
}

.seasonmodpicker-condbox {
  display: grid;
  gap: 6px;
}

.seasonmodpicker-condbox__title {
  font-size: 11px;
  color: var(--muted);
}

.seasonmodpicker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.seasonmodpicker-chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.seasonmodpicker-chip__x {
  opacity: 0.9;
  font-weight: 700;
}

.seasonmodpicker-divider-right {
  border-right: 2px solid rgba(255, 255, 255, 0.18);
}

.seasonmodpicker-divider-left {
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 768px) {
  .seasonmodpicker-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }
  .seasonmodpicker-controls--inline {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    column-gap: 6px;
  }
  .seasonmodpicker-field {
    min-width: 0;
  }
  .seasonmodpicker-addbtn {
    padding: 0 8px;
  }
}

[data-vendor-filter-control="1"][hidden] {
  display: none !important;
}

.view-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2);
}

.vendor-toolbar .field input,
.vendor-toolbar .field select,
.vendor-toolbar .btn {
  height: var(--toolbar-control-h);
  min-height: var(--toolbar-control-h);
}

.vendor-toolbar .field input,
.vendor-toolbar .field select {
  padding: 5px 8px;
  font-size: 12px;
}

.vendor-toolbar .field--mode > span,
.vendor-toolbar .field--filter > span {
  display: none;
}

.vendor-toolbar .field--mode,
.vendor-toolbar .field--filter {
  gap: 0;
}

.vendor-toolbar .btn {
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.2;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.field--lang {
  flex-direction: row;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.field--lang > span {
  font-size: 12px;
  line-height: 1;
}

.field input,
.field select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.2;
}

.field--lang select.ui-control {
  min-width: 36px;
  width: auto;
  height: var(--toolbar-control-h);
  min-height: var(--toolbar-control-h);
  padding: 5px 8px;
  font-size: 12px;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
}

.field--lang select::-ms-expand {
  display: none;
}

#normalizeToggleBtn[hidden] {
  display: none !important;
}

#normalizeToggleBtn.ui-control {
  order: 5;
  flex: 0 0 auto;
  min-width: 34px;
  width: 34px;
  height: var(--toolbar-control-h);
  min-height: var(--toolbar-control-h);
  white-space: nowrap;
}

.field input:focus,
.field select:focus,
.btn:focus {
  outline: 1px solid rgba(255, 127, 0, 0.55);
  outline-offset: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--toolbar-control-h);
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.btn--ghost {
  background: transparent;
}

.btn.ui-control {
  min-height: var(--toolbar-control-h);
  height: var(--toolbar-control-h);
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 8px;
}

/* Vendor fields use the same control geometry as the other toolbars. */
.vendor-toolbar .field input,
.vendor-toolbar .field select,
.vendor-toolbar .btn {
  min-height: var(--toolbar-control-h);
  height: var(--toolbar-control-h);
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.2;
}

.btn.is-on,
.btn--toggle.is-on {
  border-color: rgba(255, 127, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 127, 0, 0.25);
}

.gearset-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.gearset-desc-mode-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.gearset-desc-mode-select {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: var(--toolbar-control-h);
  height: var(--toolbar-control-h);
  min-width: 4.8em;
  background-color: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  color-scheme: dark;
}

.gearset-desc-mode-select::-ms-expand {
  display: none;
}

.status {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: var(--space-2);
  white-space: pre-line;
}

.status--schedule {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(20, 22, 34, 0.75);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  white-space: normal;
}

.status__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.status__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.status__time {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.status__row + .status__row {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 6px;
}

.status__row--link {
  cursor: pointer;
}

.status__row--link:hover .status__label,
.status__row--link:hover .status__time {
  color: var(--named-text);
}

.content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  overflow: visible;
}

.catgroup {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.catgroup__title {
  margin: 0 0 var(--space-2);
  font-size: 14px;
  font-weight: 700;
}

.vendor {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 6px;
}

.vendor-week-info {
  margin-top: 2px;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.vendor__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.vendor__groups {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.vendor .catgroup {
  border: 0;
  background: transparent;
  padding: 0;
}

.vendor .catgroup__title {
  display: none;
}

.brandset-view.catgroup {
  border: 0;
  background: transparent;
  padding: 0;
}

.brand-trait-filter {
  display: inline-flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  max-width: min(100%, 620px);
}

.brand-trait-filter__field {
  min-width: 190px;
}

.brand-trait-filter__field select.ui-control {
  min-width: 190px;
  height: var(--toolbar-control-h);
  min-height: var(--toolbar-control-h);
  padding: 5px 8px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.2;
}

.brand-trait-filter__add {
  height: var(--toolbar-control-h);
}

.brand-trait-chips {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: var(--toolbar-control-h);
}

.brand-trait-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px 4px 9px;
  border: 1px solid rgba(167, 139, 250, .48);
  border-radius: 999px;
  background: rgba(167, 139, 250, .13);
  color: var(--text);
  font-size: 11px;
  line-height: 1;
}

.brand-trait-chip__remove {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 16px;
}

.brand-trait-chip__remove:hover,
.brand-trait-chip__remove:focus-visible {
  background: rgba(255, 255, 255, .12);
  color: var(--text);
}

.gearset-view.catgroup {
  border: 0;
  background: transparent;
  padding: 0;
}

.vendor-selected-group.catgroup {
  border: 0;
  background: transparent;
  padding: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr));
  gap: var(--card-gap);
}

/* y8s2_talent_diff list layout */
#y8s2DiffList.cards {
  display: grid;
  gap: var(--card-gap);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#y8s2DiffList .card .line__text {
  font-size: var(--card-line-size);
  line-height: 1.35;
}

#y8s2DiffList .card strong {
  font-size: inherit;
  line-height: inherit;
}

#y8s2DiffList .card .line--named .line__text {
  font-size: var(--card-title-size);
}

#y8s2DiffList .card .line--named-meta .line__text {
  font-size: var(--card-line-size);
}

#y8s2DiffList .card .line--talent-desc .line__text {
  font-size: var(--card-line-size);
  line-height: 1.35;
}

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--card-pad);
  min-height: 70px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  --rarity-rgb: var(--rarity-default);
  background:
    linear-gradient(90deg,
      rgba(var(--rarity-rgb), .40) 0 4px,
      rgba(var(--rarity-rgb), .10) 4px 100%),
    rgba(22, 26, 39, 0.74);
}

.card .line__body,
.card .line__text,
.card .card__title-text,
.card .card__meta {
  user-select: text;
  -webkit-user-select: text;
}

.card.rarity-highend { --rarity-rgb: var(--rarity-highend); }
.card.rarity-gearset { --rarity-rgb: var(--rarity-gearset); }
.card.rarity-named { --rarity-rgb: var(--rarity-named); }
.card.rarity-exotic { --rarity-rgb: var(--rarity-exotic); }
.card.rarity-prototype { --rarity-rgb: var(--color-prototype-rgb); }
.card.rarity-offensive { --rarity-rgb: 255, 90, 90; }
.card.rarity-defensive { --rarity-rgb: 90, 140, 255; }
.card.rarity-utility { --rarity-rgb: 255, 210, 90; }

.card.brand-core-weapon { --rarity-rgb: var(--rarity-highend); }
.card.brand-core-armor { --rarity-rgb: var(--rarity-highend); }
.card.brand-core-skill { --rarity-rgb: var(--rarity-highend); }
.card.brand-core-other { --rarity-rgb: var(--rarity-highend); }
.card.rarity-gearset.gearset-core-weapon { --rarity-rgb: var(--rarity-gearset); }
.card.rarity-gearset.gearset-core-armor { --rarity-rgb: var(--rarity-gearset); }
.card.rarity-gearset.gearset-core-skill { --rarity-rgb: var(--rarity-gearset); }
.card.rarity-gearset.gearset-core-other { --rarity-rgb: var(--rarity-gearset); }

.card.cat-cache {
  min-height: 58px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.grid--gear,
.grid--weapon,
.grid--mod,
.grid--cache {
  grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr));
}

.gear-attributes-gearset-grid {
  margin-top: var(--card-gap);
}

.gear-attributes-toolbar .brand-trait-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.gear-attributes-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.gear-attributes-toolbar .brand-trait-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.gear-attributes-toolbar .brand-trait-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: var(--toolbar-control-h);
  min-height: var(--toolbar-control-h);
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
  line-height: 1.2;
}

.gear-attributes-toolbar .brand-trait-chip__remove {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.gear-attributes-view .card__bgimg {
  width: 72px;
  height: 72px;
}

.gear-attributes-view .gear-attribute-trait-line-hit::before {
  background: rgba(255, 132, 19, .78);
}

.gear-attributes-view .gear-attribute-value--hit {
  color: var(--named-text);
  font-weight: 700;
}

.exotic-items-sep {
  grid-column: 1 / -1;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  margin: 8px 2px;
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.card__title-wrap {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}

.ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.ico--talent {
  width: 14px;
  height: 14px;
  margin-top: 0;
}

.ico--brand-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.card__titles {
  min-width: 0;
}

.card__title {
  font-size: var(--card-title-size);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__title.is-named {
  color: var(--named-text);
}

.topbar__toggle.is-on {
  color: var(--named-text);
  border-color: rgba(255, 127, 0, .75);
  background: rgba(255, 127, 0, .14);
}

.topbar__toggle.is-compare {
  color: var(--color-prototype-bright);
  border-color: rgba(167, 139, 250, .78);
  background: rgba(167, 139, 250, .16);
}

.normalize-compare-pvp {
  padding-top: 0;
}

.normalize-pvp-badge {
  display: inline-flex;
  vertical-align: baseline;
}

.normalize-pvp-badge .wt-badge {
  font-size: inherit;
  line-height: inherit;
  padding: 0 4px;
}

.normalize-compare-text {
  display: inline;
}

.normalize-compare-head {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin-bottom: 4px;
}

.normalize-compare-divider {
  display: inline-block;
  flex: 1 1 auto;
  border-top: 1px dashed rgba(167, 139, 250, .48);
}

.gear-talent-diff {
  color: var(--perfect-text);
}

.gear-talent-pvp-diff {
  background: rgba(167, 139, 250, .28);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, .42);
}

.trello-group-toggle .btn:not(.ui-control) {
  min-height: 20px;
  height: 20px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 1;
}

.card__title .exotic-item-type {
  vertical-align: middle;
  margin-right: 4px;
}

.card__subtitle {
  margin-top: 2px;
  font-size: var(--card-subtitle-size);
  line-height: 1.15;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__subtitle-name.is-named {
  color: var(--named-text);
  font-weight: 700;
}

.card__subtitle-sep {
  color: var(--muted);
}

.lines {
  display: flex;
  flex-direction: column;
  gap: var(--card-line-gap);
}

.line {
  position: relative;
  font-size: var(--card-line-size);
  line-height: 1.25;
  color: var(--text);
  opacity: .95;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding-left: 6px;
  cursor: default;
}

.line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 2px;
  background: rgba(180, 180, 180, .25);
}

.line--red::before { background: rgba(255, 90, 90, .75); }
.line--blue::before { background: rgba(90, 140, 255, .75); }
.line--yellow::before { background: rgba(255, 210, 90, .80); }
.line--gray::before { background: rgba(180, 180, 180, .35); }
.line--named::before { background: rgba(255, 132, 19, .78); }
.line--named .line__text { color: var(--named-text); font-weight: 700; }
.line--named-meta::before { background: rgba(255,255,255,.26); }
.line--named-meta .line__text { color: var(--text); opacity: .9; }
.line--named-attr { padding-left: 6px; }
.line--named-attr::before { display: none; }

.vendor-selected-group .card {
  overflow: visible;
  margin-top: 8px;
}

.vendor-selected-group .card::before {
  content: attr(data-vendor);
  position: absolute;
  top: 0;
  right: 8px;
  transform: translateY(-50%);
  font-size: 10px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)), rgb(var(--rarity-rgb));
  border: 1px solid rgb(var(--rarity-rgb));
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  letter-spacing: .04em;
  white-space: nowrap;
  pointer-events: none;
}

.descent-tier-value {
  color: var(--named-text);
  font-weight: 700;
}

.line--core .line__text { font-weight: 700; }
.line--core-attr-weapon .line__text { color: rgba(255, 140, 140, 1); }
.line--core-attr-armor .line__text { color: rgba(170, 200, 255, 1); }
.line--core-attr-skill .line__text { color: rgba(255, 230, 150, 1); }

.line--core .line__text .core-mixed-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}

.line--core .line__text .core-mixed-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.line--core .line__text .core-mixed-row--weapondamage .core-mixed-label {
  color: rgba(255, 140, 140, 1);
}

.line--core .line__text .core-mixed-row--armor .core-mixed-label {
  color: rgba(170, 200, 255, 1);
}

.line--core .line__text .core-mixed-row--skilltier .core-mixed-label {
  color: rgba(255, 230, 150, 1);
}

.line--core .line__text .core-mixed-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ico--core-slot {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.core-mixed-icon--weapondamage,
.core-mixed-icon--armor,
.core-mixed-icon--skilltier {
  filter: none;
  opacity: 1;
}

.card.brand-core-weapon .line--core::before { background: rgba(255, 90, 90, .90); }
.card.brand-core-weapon .line--core .line__text { color: rgba(255, 140, 140, 1); }
.card.brand-core-armor .line--core::before { background: rgba(90, 140, 255, .90); }
.card.brand-core-armor .line--core .line__text { color: rgba(170, 200, 255, 1); }
.card.brand-core-skill .line--core::before { background: rgba(255, 210, 90, .95); }
.card.brand-core-skill .line--core .line__text { color: rgba(255, 230, 150, 1); }
.card.brand-core-other .line--core::before { background: rgba(180,180,180,.55); }
.card.brand-core-other .line--core .line__text { color: var(--text); }

.card.gearset-core-weapon .line--core::before { background: rgba(255, 90, 90, .90); }
.card.gearset-core-weapon .line--core .line__text { color: rgba(255, 140, 140, 1); }
.card.gearset-core-armor .line--core::before { background: rgba(90, 140, 255, .90); }
.card.gearset-core-armor .line--core .line__text { color: rgba(170, 200, 255, 1); }
.card.gearset-core-skill .line--core::before { background: rgba(255, 210, 90, .95); }
.card.gearset-core-skill .line--core .line__text { color: rgba(255, 230, 150, 1); }
.card.gearset-core-other .line--core::before { background: rgba(180,180,180,.55); }
.card.gearset-core-other .line--core .line__text { color: var(--text); }

.line__body {
  flex: 1 1 auto;
  min-width: 0;
}

.line__text {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gauge {
  margin-top: 3px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.gauge__fill {
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.55);
}

.line--red .gauge__fill { background: rgba(255, 90, 90, .75); }
.line--blue .gauge__fill { background: rgba(90, 140, 255, .75); }
.line--yellow .gauge__fill { background: rgba(255, 210, 90, .80); }
.line--gray .gauge__fill { background: rgba(180, 180, 180, .35); }

.line--talent-desc .line__text {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}

.gear-talent-item-name {
  display: inline-block;
  min-width: 0;
}

.card__bg {
  position: absolute;
  pointer-events: none;
  opacity: 0.16;
  filter: saturate(.9) contrast(1.05);
}

.card__bg--tr {
  top: 8px;
  right: 8px;
}

.card__bg--br {
  right: 8px;
  bottom: 8px;
  opacity: 0.12;
}

.card__bg--br .card__bgimg {
  width: 38px;
  height: 38px;
}

.card__bgimg {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.card.is-selected {
  border-color: rgba(255, 127, 0, .55);
  box-shadow: 0 0 0 2px rgba(255, 127, 0, .18) inset;
}

body.only-selected .card.is-selected {
  border-color: var(--border);
  box-shadow: none;
}

.line.is-filter-hit {
  outline: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
}

.brand-named-sep {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin: 6px 0 4px;
}

.line--talent {
  padding-left: 0;
}

.line--talent::before,
.line--talent-desc::before {
  display: none;
}

.line--weapon-types {
  padding-left: 0;
  justify-content: center;
  margin-bottom: 3px;
}

.line--weapon-types::before {
  display: none;
}

.wt-badges {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow: hidden;
  margin: 0 auto;
}

.wt-badges .wt-badge {
  border-radius: 0;
  min-width: 22px;
  height: 13px;
  font-size: 8px;
  padding: 0 3px;
}

.wt-badges .wt-badge + .wt-badge {
  margin-left: -1px;
}

.wt-badges .wt-badge:first-child {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

.wt-badges .wt-badge:last-child {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

.wt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 12px;
  padding: 0 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .24);
  font-size: 8px;
  line-height: 1;
  letter-spacing: .02em;
}

.wt-badge.is-on {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .45);
  color: rgba(255, 255, 255, .96);
}

.wt-badge.is-off {
  background: rgba(255, 255, 255, .03);
  border-color: rgba(255, 255, 255, .16);
  color: rgba(160, 166, 176, .95);
}

.wt-badge.is-filter-hit {
  background: rgba(255, 127, 0, .2);
  border-color: rgba(255, 127, 0, .9);
  color: var(--named-text);
  box-shadow: 0 0 0 1px rgba(255, 127, 0, .35) inset;
}

.wt-inline-badges {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-right: 2px;
}

.card[data-desc-collapsible="1"] [data-desc-line="1"] {
  display: none;
}

.card[data-desc-collapsible="1"].is-desc-open [data-desc-line="1"] {
  display: flex;
}

.card[data-desc-collapsible="1"]:not(.is-desc-open)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
  opacity: .64;
  pointer-events: none;
}

.line__text-pop-trigger {
  display: inline-block;
  width: auto;
  max-width: 100%;
  text-align: inherit;
  white-space: inherit;
  overflow: inherit;
  text-overflow: inherit;
}

.card__title-pop-trigger {
  display: block;
  width: 100%;
  text-align: left;
}

.card__subtitle-pop-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.card__title-pop-trigger .card__title-text,
.line__text-pop-trigger,
.card__subtitle-pop-trigger .card__subtitle-name,
.card__title-pop-trigger:hover .card__title-text,
.card__subtitle-pop-trigger:hover .card__subtitle-name,
.line__text-pop-trigger:hover {
  text-decoration: none;
}

.inline-pop-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(22, 26, 39, 0.72);
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

th {
  background: rgba(20, 22, 34, 0.72);
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.footer {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer__line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.footer__link {
  color: var(--accent);
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
}

.navmenu,
.time-popup {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(20, 22, 34, 0.95);
  backdrop-filter: blur(8px);
}

.navmenu {
  position: fixed;
  top: 58px;
  left: 10px;
  z-index: 40;
  min-width: 180px;
  padding: 6px;
}

.navmenu__btn {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

.navmenu__item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-size: 13px;
}

.navmenu__item:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.time-popup {
  position: fixed;
  z-index: 40;
  min-width: 220px;
  max-width: min(460px, 92vw);
  max-height: 70vh;
  padding: 10px 12px;
  overflow: auto;
}

.time-popup__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.time-popup__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-popup__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.time-popup__row strong {
  color: var(--text);
  font-weight: 700;
}

.time-popup__table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.time-popup__table-head {
  display: grid;
  grid-template-columns: 84px 1fr 84px;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.time-popup__th {
  padding: 6px 8px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.time-popup__table-body {
  max-height: min(46vh, 360px);
  overflow: auto;
  display: grid;
  grid-template-columns: 84px 1fr 84px;
}

.time-popup__table-body > div {
  padding: 5px 8px;
  font-size: 12px;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.time-popup__table-body > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.navmenu[aria-hidden="true"],
.time-popup[aria-hidden="true"] {
  display: none;
}

.floating-info-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(0, 0, 0, 0.32);
}

.floating-info-backdrop[aria-hidden="true"] {
  display: none;
}

.floating-info-card {
  position: fixed;
  z-index: 1200;
  width: min(420px, calc(100vw - 16px));
  max-height: min(80vh, calc(100vh - 16px));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(20, 22, 34, 0.97);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  padding: 10px 12px;
}

.floating-info-card[aria-hidden="true"] {
  display: none;
}

.floating-info-card__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.floating-info-card__body {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
  white-space: pre-wrap;
}

.floating-info-card__body--rich {
  white-space: normal;
}

.floating-info-card--descent-pool {
  width: min(520px, calc(100vw - 16px));
  overflow-x: hidden;
}

.descent-pool-popup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
}

.descent-pool-popup__meta {
  font-size: 12px;
  color: var(--muted);
}

.descent-pool-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.descent-pool-section__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.descent-pool-grid {
  display: grid;
  grid-template-columns: repeat(var(--descent-pool-cols, 3), minmax(0, 1fr));
  gap: 6px;
}

.descent-pool-tile {
  position: relative;
  min-width: 0;
  height: 66px;
  padding: 5px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.descent-pool-tile__bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 46%;
  opacity: 0.18;
  pointer-events: none;
}

.descent-pool-tile__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
}

.descent-pool-tile__name {
  width: 100%;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.descent-pool-tile.rarity-exotic {
  border-color: rgba(255, 110, 56, 0.55);
  background: rgba(255, 110, 56, 0.12);
}

.descent-pool-tile.rarity-offensive {
  border-color: rgba(255, 120, 120, 0.45);
  background: rgba(255, 120, 120, 0.12);
}

.descent-pool-tile.rarity-defensive {
  border-color: rgba(120, 170, 255, 0.45);
  background: rgba(120, 170, 255, 0.12);
}

.descent-pool-tile.rarity-utility {
  border-color: rgba(230, 200, 90, 0.45);
  background: rgba(230, 200, 90, 0.12);
}

@media (max-width: 720px) {
  .topbar {
    padding: var(--space-2);
    gap: 4px;
  }

  .topbar__left {
    order: 1;
    flex: 0 1 auto;
    min-width: 0;
    margin-right: 2px;
  }

  .topbar__time {
    order: 2;
    margin-left: auto;
    padding: 3px 6px;
  }

  .topbar__descent {
    order: 3;
    margin-left: 0;
  }

  .topbar > .field--lang {
    order: 4;
    flex: 0 0 auto;
    margin-left: 0;
  }

  #normalizeToggleBtn.ui-control {
    order: 5;
    min-height: var(--toolbar-control-h);
    height: var(--toolbar-control-h);
  }

  .trello-group-toggle .btn:not(.ui-control) {
    min-height: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 9px;
  }

  .topbar > .field--lang select.ui-control {
    min-width: 36px;
    width: auto;
    height: var(--toolbar-control-h);
    min-height: var(--toolbar-control-h);
    padding: 5px 8px;
    font-size: 12px;
    line-height: 1;
    text-align: center;
  }

  .vendor-toolbar-host {
    order: 10;
    flex: 1 1 100%;
  }

  .main {
    padding: var(--space-2);
  }

  .vendor-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: var(--space-2);
    row-gap: var(--space-2);
  }

  .vendor-toolbar__group-label {
    flex: 0 0 auto;
    margin: 0;
    align-self: center;
    text-align: left;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1;
  }

  .vendor-toolbar .field--date {
    grid-column: 1 / 4;
    grid-row: 1;
    min-width: 0;
    max-width: 300px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .vendor-toolbar .field--date > span {
    margin: 0;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1;
  }

  .vendor-toolbar .field--date input {
    width: 220px;
    max-width: 100%;
  }

  .vendor-toolbar #filterToggleBtn {
    grid-column: 4;
    grid-row: 1;
    width: 100%;
    margin-left: 0;
  }

  .vendor-toolbar .field--mode {
    grid-column: 3;
    grid-row: 3;
    min-width: 0;
  }

  .vendor-toolbar .field--filter {
    grid-column: 2;
    grid-row: 3;
    flex: 0 0 auto;
    min-width: 0;
  }

  .vendor-toolbar #clearFiltersBtn {
    grid-column: 4;
    grid-row: 3;
    width: 100%;
    margin-left: 0;
  }

  .vendor-toolbar #onlySelectedBtn {
    grid-column: 2;
    grid-row: 2;
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
  }

  .vendor-toolbar #recommendSelectedBtn {
    grid-column: 3;
    grid-row: 2;
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
  }

  .vendor-toolbar #clearSelectedBtn {
    grid-column: 4;
    grid-row: 2;
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
  }

  .vendor-toolbar #filterChips {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .vendor-toolbar #selectGroupLabel {
    grid-column: 1;
    grid-row: 2;
  }

  .vendor-toolbar #filterGroupLabel {
    grid-column: 1;
    grid-row: 3;
  }

  .vendor-toolbar .btn {
    white-space: nowrap;
  }

  .topbar__descent {
    max-width: min(56vw, 320px);
    flex: 0 1 auto;
    order: 3;
    text-align: left;
  }

  .topbar__descent .time-value {
    max-width: calc(100vw - 120px);
  }

  .topbar .time-label {
    display: none;
  }

  .topbar__time {
    gap: 4px;
    font-size: 10px;
  }

  .topbar__time .time-value {
    font-size: 10px;
    letter-spacing: 0;
  }

  .topbar__descent {
    max-width: min(52vw, 280px);
  }

  .topbar__descent .time-value,
  .topbar__descent-name,
  .topbar__descent-remain {
    font-size: 10px;
    line-height: 1.1;
  }

  .vendor-toolbar .field {
    min-width: 0;
  }

  .status--schedule {
    padding: 7px 8px;
    gap: 5px;
  }

  .status__label {
    font-size: 10px;
  }

  .status__time {
    font-size: 12px;
  }

  .grid--gear,
  .grid--weapon,
  .grid--mod,
  .grid--cache {
    grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
    gap: 6px;
  }

  #y8s2DiffList.cards {
    gap: 7px;
  }

  .card {
    padding: 7px;
  }
}

.prototype-view {
  display: grid;
  gap: var(--space-2);
}

.prototype-view__meta {
  color: var(--color-prototype-bright);
  font-size: 12px;
}

.prototype-grid {
  grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr));
}

.prototype-attrs {
  margin-top: var(--space-2);
  border-top: 1px solid rgba(var(--color-prototype-rgb), 0.36);
  padding-top: var(--space-2);
}

.prototype-attrs__title {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--color-prototype-bright);
}

.prototype-attrs-table {
  min-width: 840px;
  table-layout: auto;
}

.prototype-attrs-td {
  color: rgba(235, 231, 255, 0.92);
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.prototype-attrs-accent--red { background: rgba(255, 90, 90, .90) !important; }
.prototype-attrs-accent--blue { background: rgba(90, 140, 255, .90) !important; }
.prototype-attrs-accent--yellow { background: rgba(255, 210, 90, .92) !important; }
.prototype-attrs-accent--gray { background: rgba(180, 180, 180, .50) !important; }

.prototype-attr-label--named {
  color: var(--named-text);
  font-weight: 700;
}

.prototype-attrs-row td {
  background: rgba(var(--color-prototype-rgb), 0.06);
}

.prototype-attrs-row:last-child td {
  border-bottom: 0;
}

.prototype-attrs-table th {
  white-space: nowrap;
  font-size: 12px;
}

.prototype-attrs-table th:first-child,
.prototype-attrs-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
  background: rgba(14, 15, 20, 0.98);
}

.prototype-attrs-table th:nth-child(2),
.prototype-attrs-table td:nth-child(2) {
  position: sticky;
  left: 8px;
  z-index: 3;
  background: rgba(14, 15, 20, 0.98);
}

.prototype-attrs-table th:nth-child(5),
.prototype-attrs-table th:nth-child(6),
.prototype-attrs-table td:nth-child(5),
.prototype-attrs-table td:nth-child(6) {
  text-align: right;
}

.prototype-attrs-td--item {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.prototype-cat-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prototype-named-item-btn {
  color: var(--named-text);
  font-weight: 700;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.prototype-value-unknown {
  color: rgba(255, 120, 120, 0.98);
  font-weight: 700;
}

.prototype-card .line--named .line__text {
  font-size: var(--card-title-size);
  font-weight: 800;
  color: var(--color-prototype-bright);
}

.prototype-card .line::before {
  background: rgba(var(--color-prototype-rgb), 0.82);
}

.prototype-card .line--gray::before {
  display: none;
}

.prototype-card .line--core .line__text {
  font-size: 12px;
  color: rgba(232, 227, 255, 0.98);
}

.prototype-card .line--gray {
  padding-left: 0;
}

.prototype-card .line--gray .line__text {
  white-space: normal;
  line-height: 1.5;
  color: rgba(235, 231, 255, 0.9);
}

.prototype-inline-value {
  display: inline-block;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(var(--color-prototype-rgb), 0.24);
  color: var(--color-prototype-bright);
  font-weight: 700;
}

.prototype-card__levels {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(var(--color-prototype-rgb), 0.5);
}

.prototype-card__levels-summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr minmax(0, auto);
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.prototype-card__levels-summary::-webkit-details-marker {
  display: none;
}

.prototype-card__levels-edge {
  font-size: 11px;
  line-height: 1.3;
  color: rgba(236, 232, 255, 0.96);
  white-space: nowrap;
}

.prototype-card__levels-edge--chip {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid rgba(var(--color-prototype-rgb), 0.62);
  border-radius: 999px;
  background: rgba(var(--color-prototype-rgb), 0.2);
}

.prototype-card__levels-edge-label {
  font-size: 9px;
  line-height: 1;
  color: rgba(220, 213, 255, 0.78);
  transform: translateY(-1px);
}

.prototype-card__levels-edge-value {
  font-size: 11px;
  line-height: 1.1;
  color: rgba(236, 232, 255, 0.98);
  font-weight: 700;
}

.prototype-card__levels-range {
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
}

.prototype-card__levels-range-line {
  position: absolute;
  inset: 50% 0 auto 0;
  transform: translateY(-50%);
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--color-prototype-rgb), 0.35), rgba(var(--color-prototype-rgb), 0.9));
}

.prototype-card__levels-step {
  position: relative;
  z-index: 1;
  font-size: 10px;
  line-height: 1;
  color: rgba(236, 232, 255, 0.96);
  white-space: nowrap;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(32, 28, 54, 0.56);
}

.prototype-card__levels-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.prototype-card__lv-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 3px 6px;
  border: 1px solid rgba(var(--color-prototype-rgb), 0.62);
  border-radius: 999px;
  background: rgba(var(--color-prototype-rgb), 0.2);
  font-size: 11px;
  line-height: 1.3;
  color: rgba(236, 232, 255, 0.98);
  opacity: 0.92;
  white-space: nowrap;
}

.blueprint-view {
  display: grid;
  gap: var(--space-3);
}

.blueprint-toolbar {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: end;
  justify-content: start;
}

.blueprint-toolbar .field {
  min-width: 0;
}

.blueprint-view [data-blueprint-filter-control="1"][hidden] {
  display: none !important;
}

.blueprint-toolbar__search {
  min-width: 0;
}

.blueprint-type-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.blueprint-type-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blueprint-type-filter-label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.blueprint-type-filter-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.blueprint-type-btn {
  min-width: 40px;
  min-height: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 10px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}

.blueprint-type-btn--icon {
  min-width: 28px;
  width: 28px;
  height: 20px;
  padding: 0;
}

.blueprint-type-btn--icon .blueprint-slot-ico {
  width: 13px;
  height: 13px;
}

.blueprint-type-btn--icon .blueprint-faction-ico {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.blueprint-type-btn.is-on {
  border-color: rgba(255, 127, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 127, 0, 0.25);
  background: rgba(255, 127, 0, 0.12);
  color: rgba(255, 255, 255, 0.98);
}

.blueprint-table-wrap .catgroup__title {
  margin: 0 0 8px;
}

.blueprint-table-scroll {
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(20, 22, 34, 0.72);
}

.blueprint-table {
  width: 100%;
  min-width: 780px;
  table-layout: fixed;
  border-collapse: collapse;
}

.blueprint-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(14, 15, 20, 0.96);
  text-align: left;
  white-space: nowrap;
}

.blueprint-table td,
.blueprint-table th {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.35;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.blueprint-th-accent,
.blueprint-td-accent {
  width: 8px;
  min-width: 8px;
  max-width: 8px;
  padding: 0 !important;
}

.blueprint-td-accent .blueprint-accent {
  display: block;
  width: 4px;
  height: 100%;
  min-height: 30px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.blueprint-row:last-child td {
  border-bottom: 0;
}

.blueprint-row {
  cursor: pointer;
}

.blueprint-row.is-selected td {
  box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0.07);
}

.blueprint-subhead-row td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.blueprint-subhead {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.02em;
}

.blueprint-row.rarity-highend td {
  background: rgba(var(--rarity-highend), 0.06);
}
.blueprint-row.rarity-highend .blueprint-accent {
  background: rgba(var(--rarity-highend), 0.92);
}
.blueprint-row.rarity-highend .blueprint-tag.is-on,
.blueprint-row.rarity-highend .blueprint-slot-pill.is-on {
  border-color: rgba(var(--rarity-highend), 0.55);
  color: rgba(var(--rarity-highend), 1);
  background: rgba(var(--rarity-highend), 0.14);
}
.blueprint-row.rarity-highend .wt-badge.is-on {
  border-color: rgba(var(--rarity-highend), 0.55);
  color: rgba(var(--rarity-highend), 1);
  background: rgba(var(--rarity-highend), 0.14);
}

.blueprint-row.rarity-named td {
  background: rgba(var(--rarity-named), 0.07);
}
.blueprint-row.rarity-named .blueprint-accent {
  background: rgba(var(--rarity-named), 0.92);
}
.blueprint-row.rarity-named .blueprint-tag.is-on,
.blueprint-row.rarity-named .blueprint-slot-pill.is-on {
  border-color: rgba(var(--rarity-named), 0.58);
  color: rgba(var(--rarity-named), 1);
  background: rgba(var(--rarity-named), 0.16);
}
.blueprint-row.rarity-named .wt-badge.is-on {
  border-color: rgba(var(--rarity-named), 0.58);
  color: rgba(var(--rarity-named), 1);
  background: rgba(var(--rarity-named), 0.16);
}

.blueprint-row.rarity-gearset td {
  background: rgba(var(--rarity-gearset), 0.06);
}
.blueprint-row.rarity-gearset .blueprint-accent {
  background: rgba(var(--rarity-gearset), 0.92);
}
.blueprint-row.rarity-gearset .blueprint-tag.is-on,
.blueprint-row.rarity-gearset .blueprint-slot-pill.is-on {
  border-color: rgba(var(--rarity-gearset), 0.58);
  color: rgba(var(--rarity-gearset), 1);
  background: rgba(var(--rarity-gearset), 0.16);
}
.blueprint-row.rarity-gearset .wt-badge.is-on {
  border-color: rgba(var(--rarity-gearset), 0.58);
  color: rgba(var(--rarity-gearset), 1);
  background: rgba(var(--rarity-gearset), 0.16);
}

.blueprint-row.rarity-exotic td {
  background: rgba(var(--rarity-exotic), 0.08);
}
.blueprint-row.rarity-exotic .blueprint-accent {
  background: rgba(var(--rarity-exotic), 0.94);
}
.blueprint-row.rarity-exotic .blueprint-tag.is-on,
.blueprint-row.rarity-exotic .blueprint-slot-pill.is-on {
  border-color: rgba(var(--rarity-exotic), 0.6);
  color: rgba(var(--rarity-exotic), 1);
  background: rgba(var(--rarity-exotic), 0.18);
}
.blueprint-row.rarity-exotic .blueprint-reconfigure-pill.is-on {
  border-color: rgba(var(--rarity-exotic), 0.6);
  color: rgba(var(--rarity-exotic), 1);
  background: rgba(var(--rarity-exotic), 0.18);
}
.blueprint-row.rarity-exotic .wt-badge.is-on {
  border-color: rgba(var(--rarity-exotic), 0.6);
  color: rgba(var(--rarity-exotic), 1);
  background: rgba(var(--rarity-exotic), 0.18);
}

.blueprint-td-name {
  font-weight: 700;
  width: 24%;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blueprint-td-rarity {
  white-space: nowrap;
}

.blueprint-td-source {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Item Source keeps the Blueprint table shell, but lets each column size from
   its contents.  The table itself may become wider than the viewport; only
   .blueprint-table-scroll is allowed to scroll horizontally. */
.item-sources-view {
  min-width: 0;
  max-width: 100%;
}

.item-sources-view .blueprint-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.item-sources-view .blueprint-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.item-sources-view .blueprint-table th:nth-child(2),
.item-sources-view .blueprint-table td:nth-child(2) {
  width: auto;
  min-width: 180px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.item-sources-view .blueprint-table th:nth-child(3),
.item-sources-view .blueprint-table td:nth-child(3),
.item-sources-view .blueprint-table th:nth-child(4),
.item-sources-view .blueprint-table td:nth-child(4) {
  width: auto;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.item-sources-view .blueprint-table th:nth-child(5),
.item-sources-view .blueprint-table td:nth-child(5) {
  width: auto;
  min-width: 280px;
  max-width: 520px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.blueprint-th-sort {
  cursor: pointer;
  user-select: none;
}

.blueprint-td-status {
  white-space: nowrap;
}

.blueprint-source-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.blueprint-source-status-inline__source {
  color: var(--text);
}

.blueprint-source-status-inline__sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.blueprint-source-status-inline__status {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.blueprint-slot-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.blueprint-slot-type__badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  line-height: 1.2;
  color: var(--text);
}

.blueprint-weapon-sections {
  display: grid;
  gap: 10px;
}

.blueprint-slot-pack {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}

.blueprint-slot-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.blueprint-reconfigure-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.blueprint-reconfigure-ico {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.blueprint-reconfigure-pill.is-off {
  opacity: 0.45;
}

.blueprint-slot-inline-name {
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.blueprint-slot-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 4px;
}

.blueprint-slot-pill.is-off {
  opacity: 0.45;
}

.blueprint-slot-pill.has-season {
  box-shadow: inset 0 0 0 1px rgba(var(--color-dark-zone-rgb), 0.6);
}

.blueprint-slot-ico {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.blueprint-slot-text {
  font-size: 10px;
  line-height: 1;
  color: var(--text);
}

.blueprint-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 10px;
  line-height: 1.3;
  margin-right: 4px;
}

.blueprint-tag.is-off {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.blueprint-tag.is-season {
  border-color: rgba(var(--color-dark-zone-rgb), 0.62);
  color: rgba(216, 207, 243, 0.98);
  background: rgba(var(--color-dark-zone-rgb), 0.2);
}

.grade-cost-view {
  display: grid;
  gap: 12px;
}

.grade-cost-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.grade-cost-switch__label {
  font-size: 12px;
  color: var(--muted);
}

.grade-cost-switch__select {
  min-width: 140px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}

.grade-cost-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(20, 22, 34, 0.72);
  overflow: hidden;
}

.grade-cost-table__title {
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.grade-cost-calc {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 6px 10px;
  align-items: center;
}

.grade-cost-calc__field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.grade-cost-calc__select {
  min-width: 72px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 12px;
}

.grade-cost-calc__rule {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.9;
}

.grade-cost-total {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.grade-cost-total-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--text);
}

.grade-cost-col--grade {
  color: var(--text);
}

.grade-cost-col--basic {
  color: var(--text);
}

.grade-cost-col--normal {
  color: var(--text);
}

.grade-cost-col--uncommon {
  color: var(--text);
}

.grade-cost-col--rare {
  color: var(--text);
}

.grade-cost-col--highend {
  color: var(--text);
}

.grade-cost-col--exotic {
  color: var(--text);
}

.grade-cost-table__grid thead .grade-cost-col--basic { background: rgba(200, 206, 220, 0.24); }
.grade-cost-table__grid thead .grade-cost-col--normal { background: rgba(127, 174, 73, 0.24); }
.grade-cost-table__grid thead .grade-cost-col--uncommon { background: rgba(75, 99, 184, 0.24); }
.grade-cost-table__grid thead .grade-cost-col--rare { background: rgba(154, 90, 167, 0.24); }
.grade-cost-table__grid thead .grade-cost-col--highend { background: rgba(var(--rarity-highend), 0.22); }
.grade-cost-table__grid thead .grade-cost-col--exotic { background: rgba(var(--rarity-exotic), 0.24); }

.grade-cost-total-chip.grade-cost-col--basic {
  border-color: rgba(200, 206, 220, 0.7);
  background: rgba(200, 206, 220, 0.24);
  color: var(--text);
}

.grade-cost-total-chip.grade-cost-col--normal {
  border-color: rgba(127, 174, 73, 0.72);
  background: rgba(127, 174, 73, 0.24);
  color: var(--text);
}

.grade-cost-total-chip.grade-cost-col--uncommon {
  border-color: rgba(75, 99, 184, 0.72);
  background: rgba(75, 99, 184, 0.24);
  color: var(--text);
}

.grade-cost-total-chip.grade-cost-col--rare {
  border-color: rgba(154, 90, 167, 0.72);
  background: rgba(154, 90, 167, 0.24);
  color: var(--text);
}

.grade-cost-total-chip.grade-cost-col--highend {
  border-color: rgba(var(--rarity-highend), 0.72);
  background: rgba(var(--rarity-highend), 0.22);
  color: var(--text);
}

.grade-cost-total-chip.grade-cost-col--exotic {
  border-color: rgba(var(--rarity-exotic), 0.72);
  background: rgba(var(--rarity-exotic), 0.24);
  color: var(--text);
}

.grade-cost-table__wrap {
  overflow: auto;
}

.grade-cost-table__grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.grade-cost-table__grid th,
.grade-cost-table__grid td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: right;
  white-space: nowrap;
}

.grade-cost-table__grid th:first-child,
.grade-cost-table__grid td:first-child {
  text-align: center;
}

.grade-cost-table__grid thead th {
  position: sticky;
  top: 0;
  background: rgba(14, 15, 20, 0.95);
  z-index: 1;
  white-space: normal;
  line-height: 1.2;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 720px) {
  .blueprint-toolbar {
    grid-template-columns: auto 1fr;
  }

  .blueprint-table {
    min-width: 760px;
    table-layout: fixed;
  }

  .blueprint-type-filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: stretch;
  }

  .blueprint-type-filter-group {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 6px;
  }

  .blueprint-type-filter-buttons {
    min-width: 0;
  }

  /* Keep page width stable; scroll only inside the Blueprint table area. */
  .blueprint-view,
  .blueprint-table-wrap,
  .blueprint-table-scroll {
    min-width: 0;
    max-width: 100%;
  }

  .blueprint-table-wrap {
    overflow: hidden;
  }

  .blueprint-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* Keep the accent/name columns visible while the table scrolls internally. */
  .blueprint-view .blueprint-table th:first-child,
  .blueprint-view .blueprint-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 4;
    background: rgba(14, 15, 20, 0.98);
  }

  .blueprint-view .blueprint-table th:nth-child(2),
  .blueprint-view .blueprint-table td:nth-child(2) {
    position: sticky;
    left: 8px;
    z-index: 3;
    min-width: 170px;
    max-width: 170px;
    width: 170px;
    background: rgba(14, 15, 20, 0.98);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .blueprint-view .blueprint-table th:nth-child(3),
  .blueprint-view .blueprint-table td:nth-child(3),
  .blueprint-view .blueprint-table th:nth-child(4),
  .blueprint-view .blueprint-table td:nth-child(4) {
    min-width: 220px;
    max-width: 220px;
  }

  .blueprint-subhead-row .blueprint-subhead {
    position: sticky;
    left: 0;
    z-index: 2;
    background: rgba(20, 22, 34, 0.96);
  }

  /* season_mod: disable blueprint sticky-column behavior */
  .seasonmod-view .blueprint-table th,
  .seasonmod-view .blueprint-table td {
    position: static !important;
    left: auto !important;
    z-index: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    background: transparent;
  }

  .seasonmod-view .seasonmod-table th:last-child,
  .seasonmod-view .seasonmod-table td:last-child {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .seasonmod-view .seasonmod-table thead th {
    position: sticky !important;
    top: 0;
    z-index: 1 !important;
    background: rgba(14, 15, 20, 0.96);
    white-space: nowrap !important;
    padding-top: 3px;
    padding-bottom: 3px;
    line-height: 1.15;
  }

  .seasonmod-view .seasonmod-table tbody th {
    background: rgba(110, 110, 110, 0.35);
  }

  .seasonmod-view .seasonmod-result-table thead {
    display: none;
  }

  .seasonmod-section--active .blueprint-table-scroll,
  .seasonmod-section--passive .blueprint-table-scroll {
    max-height: none;
    overflow: visible;
  }

  .seasonmod-section--active .seasonmod-table thead,
  .seasonmod-section--passive .seasonmod-table thead {
    display: none;
  }

  .seasonmod-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seasonmod-result-grid .seasonmod-selected-desc {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .seasonmod-section--active .seasonmod-table td:nth-child(3),
  .seasonmod-section--active .seasonmod-table th:nth-child(3) {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .seasonmod-passive-group {
    display: block;
  }

  .seasonmod-active-group__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seasonmod-passive-group__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seasonmod-modcell {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .seasonmod-picker__button {
    font-size: 10px;
    padding: 6px 24px 6px 8px;
  }

  .seasonmod-picker__label {
    font-size: 10px;
    line-height: 1.1;
  }

  .seasonmod-selected-table .seasonmod-selected-desc {
    font-size: 10px;
    line-height: 1.1;
  }
}

@media (max-width: 1400px) {
  .seasonmod-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .seasonmod-result-grid {
    grid-template-columns: 1fr;
  }
}

/* Target-picker modal table: do not inherit mobile wrapping/hide rules */
.seasonmod-view .seasonmod-targetpicker__table.seasonmod-result-table thead {
  display: table-header-group !important;
}

.seasonmod-view .seasonmod-targetpicker__table th,
.seasonmod-view .seasonmod-targetpicker__table td,
.seasonmod-view .seasonmod-targetpicker__table th:last-child,
.seasonmod-view .seasonmod-targetpicker__table td:last-child {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}
