/* Owner: equipment. Component states and responsive rules live here. See AGENTS.md. */

.mastery-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mastery-title-line h2 {
  margin: 0;
}

.amp-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.amp-title-line h2 {
  margin: 0;
}

.amp-summary-slot {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #2b3542;
  border-radius: 6px;
  background: rgba(32, 50, 70, 0.34);
  padding: 8px 10px;
}

.amp-summary-slot.signature {
  border-color: rgba(201, 167, 255, 0.34);
  background: rgba(112, 69, 156, 0.12);
}

.amp-summary-slot span {
  color: #8fa0b4;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.amp-summary-slot strong {
  overflow: hidden;
  color: #d7e8fa;
  font-size: 0.7rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amp-summary-slot.empty strong {
  color: #758296;
}

.amp-summary-slot.signature small {
  color: #8d9bad;
  font-size: 0.6rem;
  font-weight: 900;
}

.amp-summary-slot.signature.affinity-active {
  border-color: rgba(255, 130, 207, 0.55);
  box-shadow: inset 0 0 18px rgba(255, 91, 192, 0.08);
}

.amp-summary-slot.signature.affinity-active small {
  color: #ff82cf;
}

.perk-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.perk-chip {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 34px;
  border: 1px solid var(--green);
  padding: 8px 12px;
  color: var(--text);
  cursor: help;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: left;
}

.perk-chip:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.perk-range {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.1;
}

.perk-chip.specialization-perk {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--green);
}

.perk-chip.specialization-perk .perk-range {
  color: currentColor;
}

.signature-perk-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: none;
  box-sizing: border-box;
  width: min(384px, 120%, calc(100vw - 32px));
  gap: 8.4px;
  border: 1px solid rgba(var(--accent-rgb), 0.62);
  padding: 14.4px 16.8px;
  font-size: 0.888rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  pointer-events: none;
}

.perk-chip:focus-visible:not([data-perk-tooltip-dismissed="true"]) .signature-perk-tooltip,
.perk-chip[aria-expanded="true"] .signature-perk-tooltip {
  display: grid;
}

@media (hover: hover) and (pointer: fine) {
  .perk-chip:hover:not([data-perk-tooltip-dismissed="true"]) .signature-perk-tooltip {
    display: grid;
  }
}

.signature-perk-tooltip-title {
  font-size: 1.008rem;
  font-weight: 950;
}

.signature-perk-tooltip-range {
  display: flex;
  justify-content: space-between;
  gap: 14.4px;
  margin-top: 2.4px;
  border-top: 1px solid var(--line);
  padding-top: 8.4px;
  color: var(--muted);
  font-size: 0.816rem;
}

.signature-perk-tooltip-range strong {
  color: var(--text);
  font-weight: 900;
}

.signature-perk-tooltip-range span {
  color: var(--green);
  font-weight: 900;
  text-align: right;
}

.budget-option-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.budget-option-button {
  border: 1px solid var(--line);
  font-weight: 900;
  cursor: pointer;
}

.budget-option-button:hover,
.budget-option-button:focus-visible {
  border-color: var(--green);
  color: var(--green);
  outline: none;
}

.budget-option-button.active {
  border-color: var(--green);
}

.spec-button {
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--text);
  position: relative;
}

.diamond {
  display: grid;
  width: 68px;
  height: 58px;
  place-items: center;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--gold);
  color: #030303;
}

.diamond svg {
  width: 31px;
  height: 31px;
  stroke-width: 2.5;
}

.diamond img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.spec-button .specialization-diamond {
  width: 49px;
  height: 42px;
  clip-path: polygon(24% 0, 76% 0, 100% 42%, 50% 100%, 0 42%);
}

.silver-slot {
  border-color: #6f6f6f;
  background: rgba(255, 255, 255, 0.01);
  transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, background 140ms ease;
}

.silver-slot:hover,
.silver-slot:focus-visible {
  border-color: var(--green);
  background: rgba(var(--accent-rgb), 0.04);
  color: var(--green);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.22), 0 0 24px rgba(var(--accent-rgb), 0.42);
  outline: none;
}

.silver-slot.locked {
  opacity: 0.32;
  cursor: not-allowed;
}

.silver-slot.locked:hover,
.silver-slot.locked:focus-visible {
  border-color: #6f6f6f;
  background: rgba(255, 255, 255, 0.01);
  color: var(--muted);
  box-shadow: none;
}

.silver-slot.selected {
  border: 0;
  background: transparent;
  transform: none;
}

.silver-slot.selected:hover,
.silver-slot.selected:focus-visible {
  background: transparent;
  box-shadow: none;
}

.silver-icon-shape {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  background: #eeeeee;
  color: #050505;
  transform: rotate(45deg);
}

.silver-icon-shape img,
.silver-icon-shape svg {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  transform: rotate(-45deg) translate(0, 2px);
  transform-origin: center;
}

.silver-slot.selected:hover .silver-icon-shape,
.silver-slot.selected:focus-visible .silver-icon-shape {
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 0 24px rgba(var(--accent-rgb), 0.34);
}

.silver-slot-name {
  display: block;
  width: max-content;
  max-width: 96px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.facility-playstyle-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 118px;
  padding: 24px 0 4px;
}

.facility-playstyle-row[hidden] {
  display: none;
}

.spec-button > .spec-name {
  max-width: 92px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  border: 1px solid transparent;
  padding: 4px 8px;
}

.amp-playstyle-row {
  border-bottom: 1px solid rgba(255, 130, 207, 0.16);
}

.amp-playstyle-card > span:last-child {
  color: #ffb4e4;
}

.facility-playstyle-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 0;
}

.facility-playstyle-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 72px;
  text-align: center;
}

.facility-playstyle-card > span:last-child {
  max-width: 92px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
}

.facility-playstyle-card .silver-icon-shape.facility-playstyle-icon {
  width: 29.7px;
  height: 29.7px;
}

.facility-playstyle-card .silver-icon-shape.facility-playstyle-icon img,
.facility-playstyle-card .silver-icon-shape.facility-playstyle-icon svg {
  width: 28px;
  height: 28px;
}

.facility-playstyle-card .gold-icon-shape.facility-playstyle-icon {
  width: 44.3px;
  height: 38px;
}

.facility-playstyle-card .gold-icon-shape.facility-playstyle-icon img,
.facility-playstyle-card .gold-icon-shape.facility-playstyle-icon svg {
  width: 31px;
  height: 31px;
}

.specialization-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 18px;
}

.spec-button.active > .spec-name {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.sticky-playstyles {
  display: grid;
  grid-template-columns: repeat(4, 34px);
  align-items: center;
  justify-content: start;
  gap: 12px;
  min-width: 0;
  padding: 12px 16px;
}

.sticky-playstyle-slot {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  justify-self: center;
  border: 2px solid #595959;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transform: rotate(45deg);
}

.sticky-playstyle-slot.empty:not(.selected) {
  position: relative;
  width: 24px;
  height: 24px;
}

.sticky-playstyle-slot.empty:not(.selected) > svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
}

.sticky-playstyle-slot.filled {
  border-color: #f2cb53;
  background: var(--gold);
  color: #050505;
}

.sticky-playstyle-slot.filled.gold {
  width: 39.6667px;
  clip-path: polygon(24% 0, 76% 0, 100% 42%, 50% 100%, 0 42%);
  border: 0;
  transform: none;
}

.sticky-playstyle-slot.filled.gold > svg,
.sticky-playstyle-slot.filled.gold > img {
  width: 27.5px;
  height: 27.5px;
  transform: none;
}

.sticky-playstyle-slot.filled.silver-signature {
  border: 0;
  background: transparent;
  color: #050505;
  transform: none;
}

.sticky-playstyle-slot.filled.silver-signature .silver-icon-shape {
  width: 24px;
  height: 24px;
}

.sticky-playstyle-slot.filled.silver-signature .silver-icon-shape img,
.sticky-playstyle-slot.filled.silver-signature .silver-icon-shape svg {
  width: 19px;
  height: 19px;
  transform: rotate(-45deg) translate(0, 1px);
}

.sticky-playstyle-slot.gold-empty {
  border-color: rgba(255, 220, 99, 0.5);
}

.sticky-playstyle-slot.silver-empty {
  border-color: #6f6f6f;
}

.sticky-playstyle-slot.silver-empty:hover,
.sticky-playstyle-slot.silver-empty:focus-visible {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.22), 0 0 18px rgba(var(--accent-rgb), 0.38);
  outline: none;
}

.sticky-playstyle-slot.locked {
  opacity: 0.32;
  cursor: not-allowed;
}

.sticky-playstyle-slot.locked:hover,
.sticky-playstyle-slot.locked:focus-visible {
  border-color: #6f6f6f;
  color: var(--muted);
  box-shadow: none;
}

.sticky-playstyle-slot.selected {
  border: 0;
  background: transparent;
  transform: none;
}

.sticky-playstyle-slot.selected:hover,
.sticky-playstyle-slot.selected:focus-visible {
  box-shadow: none;
}

.sticky-playstyle-slot.selected .silver-icon-shape {
  width: 24px;
  height: 24px;
}

.sticky-playstyle-slot.selected .silver-icon-shape img,
.sticky-playstyle-slot.selected .silver-icon-shape svg {
  width: 19px;
  height: 19px;
  transform: rotate(-45deg) translate(0, 1px);
}

.sticky-playstyle-slot > svg,
.sticky-playstyle-slot > img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  stroke-width: 2.5;
  transform: rotate(-45deg);
}

.playstyle-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}

.facility-modal,
.mastery-modal,
.amp-modal {
  position: fixed;
  inset: 0;
  display: none;
}

.playstyle-modal.open,
.facility-modal.open,
.mastery-modal.open,
.amp-modal.open {
  display: block;
}

.playstyle-modal-backdrop {
  position: absolute;
  inset: 0;
}

.playstyle-modal-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.playstyle-modal-header {
  position: relative;
  z-index: 2;
}

.playstyle-modal-header h2 {
  margin-bottom: 8px;
}

.playstyle-modal-header p {
  margin-bottom: 8px;
  font-weight: 800;
}

.playstyle-modal-header span {
  color: var(--muted);
  font-size: 0.86rem;
}

.playstyle-modal-content {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 28px;
  overflow-y: auto;
}

.playstyle-availability-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  grid-column: 1 / -1;
  font-size: 0.75rem;
}

.equipment-catalog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 18px 0;
}

.equipment-catalog-search-field {
  display: grid;
  min-width: 0;
}

.equipment-catalog-search-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 10px 12px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  outline: none;
}

.equipment-catalog-search-field input:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 24%, transparent);
}

.equipment-catalog-search-field input::placeholder {
  color: var(--muted);
}

.equipment-catalog-search-status {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.equipment-catalog-search-status[hidden] {
  display: none;
}

.equipment-search-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.mastery-modal {
  z-index: 100;
}

.mastery-modal-backdrop {
  position: absolute;
  inset: 0;
}

.mastery-modal-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  overflow: hidden;
}

.mastery-modal-actions {
  flex: 0 0 auto;
}

.mastery-max-button:hover,
.mastery-max-button:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.72);
  background: rgba(var(--accent-rgb), 0.15);
  color: #72ffba;
}

.mastery-modal-content {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  overflow-y: auto;
}

.mastery-row {
  display: grid;
  align-items: center;
}

.mastery-archetype {
  display: flex;
  min-width: 0;
  align-items: center;
}

.mastery-archetype-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
}

.mastery-archetype-icon img,
.mastery-archetype-icon svg {
  object-fit: contain;
}

.mastery-archetype > div {
  display: grid;
  min-width: 0;
}

.mastery-archetype strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mastery-archetype span:not(.mastery-archetype-icon) {
  line-height: 1.35;
}

.mastery-milestones {
  display: grid;
}

.mastery-milestones > span {
  display: grid;
  line-height: 1.35;
}

.mastery-level-options {
  display: inline-flex;
}

.mastery-level-button {
  border: 0;
  border-right: 1px solid #303844;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.mastery-level-button:last-child {
  border-right: 0;
}

.mastery-level-button:hover,
.mastery-level-button:focus-visible {
  outline: none;
}

.amp-modal {
  z-index: 105;
}

.amp-modal-backdrop {
  position: absolute;
  inset: 0;
}

.amp-modal-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

.amp-modal-actions {
  flex: 0 0 auto;
}

.amp-modal-note {
  display: flex;
  align-items: flex-start;
  border: 1px solid rgba(126, 215, 255, 0.34);
}

.amp-modal-note svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.amp-modal-content {
  display: grid;
  align-content: start;
  overflow-y: auto;
}

.amp-slot-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.amp-slot-tab {
  display: grid;
  min-width: 0;
  align-content: center;
  border: 1px solid #2b3542;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.amp-slot-tab span {
  font-weight: 950;
  text-transform: uppercase;
}

.amp-slot-tab strong {
  overflow: hidden;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.amp-slot-tab:hover,
.amp-slot-tab:focus-visible,
.amp-slot-tab.active {
  outline: none;
}

.amp-catalog-count {
  font-weight: 800;
  text-align: right;
}

.amp-standard-editor {
  display: grid;
  border: 1px solid #252d38;
}

.signature-amp-preview {
  display: grid;
}

.amp-standard-editor > p,
.signature-amp-preview > p {
  margin: 0;
  line-height: 1.5;
}

.amp-tier-tabs {
  display: inline-flex;
  justify-self: start;
}

.amp-tier-tab {
  border: 0;
  border-right: 1px solid #344252;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.amp-tier-tab:last-child {
  border-right: 0;
}

.amp-tier-tab:hover,
.amp-tier-tab:focus-visible,
.amp-tier-tab.active {
  outline: none;
}

.amp-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amp-picker-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.amp-picker-grid label,
.amp-picker-field {
  display: grid;
  align-content: start;
  font-weight: 900;
}

.amp-picker-grid select,
.amp-attribute-trigger {
  width: 100%;
  border: 1px solid #334154;
  outline: 0;
  font: inherit;
  font-weight: 800;
}

.amp-attribute-picker {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 6px;
}

.amp-attribute-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-color: var(--pencil-soft);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.amp-attribute-trigger svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.amp-attribute-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.custom-amp-workspace {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.custom-amp-library,
.custom-amp-list,
.custom-amp-form,
.custom-amp-section,
.custom-amp-field {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 10px;
}

.custom-amp-toolbar,
.custom-amp-library-actions,
.custom-amp-save-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.custom-amp-toolbar,
.custom-amp-library-actions {
  flex-wrap: wrap;
  font-size: 13px;
}

.custom-amp-toolbar .outline-button,
.custom-amp-library-actions .outline-button {
  width: auto;
}

.custom-amp-library-actions {
  justify-content: flex-start;
}

.custom-amp-library-actions .outline-button {
  min-width: 0;
  padding: 8px;
  font-size: 12px;
}

.custom-amp-list {
  max-height: min(60vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.custom-amp-transfer {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  overflow-wrap: anywhere;
  font-size: 13px;
}

.custom-amp-transfer input {
  min-width: 0;
  width: 100%;
  padding: 8px;
  font: inherit;
}

.custom-amp-import-list {
  margin: 0;
  padding-left: 20px;
  max-height: 160px;
  overflow-y: auto;
}

.custom-amp-selection {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.custom-amp-selection input {
  flex: none;
  margin-top: 2px;
  accent-color: var(--green);
}

.custom-amp-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--input-bg);
  overflow-wrap: anywhere;
}

.custom-amp-card.equipped {
  border-color: var(--green);
}

.custom-amp-card.selected {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.custom-amp-card > :is(span, small) {
  font-size: 12px;
  color: var(--muted);
}

.custom-amp-card.equipped > small {
  color: var(--green);
}

.custom-amp-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.custom-amp-card-actions .outline-button {
  min-width: 0;
  padding: 6px 4px;
  font-size: 11px;
}

.custom-amp-section {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.custom-amp-section legend,
.custom-amp-field {
  font-size: 13px;
  font-weight: 800;
}

.custom-amp-section legend {
  padding: 0 4px;
}

.custom-amp-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.custom-amp-form :is(input:not([type=checkbox]), select, textarea) {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font: inherit;
}

.custom-amp-form textarea {
  resize: vertical;
}

.custom-amp-boost-list {
  display: grid;
  gap: 8px;
}

.custom-amp-boost-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 36px;
  align-items: start;
  gap: 6px;
}

.custom-amp-boost-row .custom-amp-bonus,
.custom-amp-remove {
  height: 44px;
}

.custom-amp-remove {
  padding: 0;
}

.custom-amp-affinity-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.custom-amp-affinity-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.custom-amp-playstyle-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 8px;
}

@media (max-width: 800px) {
  .custom-amp-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 480px) {
  .custom-amp-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.amp-editor-actions {
  display: flex;
  justify-content: flex-end;
}

.amp-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.amp-search-result {
  display: grid;
  min-width: 0;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  background: var(--input-bg);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.amp-search-result:hover:not(:disabled),
.amp-search-result:focus-visible:not(:disabled),
.amp-search-result.selected {
  border-color: var(--green);
  outline: none;
}

.amp-search-result:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.amp-search-result strong {
  color: var(--muted);
  font-size: 0.76rem;
}

.amp-search-result span {
  overflow-wrap: anywhere;
  font-weight: 850;
}

.signature-amp-grid {
  display: grid;
}

.signature-amp-card {
  position: relative;
  display: grid;
  align-content: start;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.signature-amp-card:hover,
.signature-amp-card:focus-visible {
  outline: none;
}

.signature-amp-tier {
  position: absolute;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.signature-amp-selected {
  position: absolute;
  border: 1px solid rgba(126, 215, 255, 0.55);
  padding: 4px 7px;
  font-size: 0.55rem;
  font-weight: 950;
}

.signature-amp-name {
  line-height: 1.3;
  text-align: center;
}

.signature-amp-boost {
  display: grid;
  border: 1px solid rgba(255, 170, 51, 0.2);
  font-weight: 900;
  line-height: 1.3;
}

.signature-amp-boost small,
.signature-amp-affinity-label {
  font-weight: 900;
  text-transform: uppercase;
}

.signature-amp-affinity-icons {
  display: flex;
  align-items: center;
}

.signature-amp-affinity-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.signature-amp-affinity-icon img,
.signature-amp-affinity-icon svg {
  object-fit: contain;
}

.signature-amp-affinity-status {
  margin-top: auto;
  font-weight: 950;
}

.signature-amp-card.affinity-active .signature-amp-affinity-status {
  color: #ff82cf;
}

.facility-modal {
  z-index: 90;
}

.facility-modal-backdrop {
  position: absolute;
  inset: 0;
}

.facility-modal-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

.facility-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
}

.facility-modal-header h2 {
  margin-bottom: 8px;
}

.facility-modal-budget .facility-budget-field {
  margin: 0;
}

.facility-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.facility-tab {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--muted);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.facility-tab:hover {
  color: var(--text);
}

.facility-tab.active {
  background: var(--highlighter-yellow-soft);
  color: var(--text);
}

.facility-tab:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
}

.facility-application-note[hidden],
#facility-filter-group-field[hidden] {
  display: none;
}

.facility-filter-bar {
  display: grid;
}

.facility-filter-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.facility-filter-search {
  position: relative;
  display: block;
  min-width: 0;
}

.facility-filter-search > svg {
  position: absolute;
  top: 50%;
  pointer-events: none;
  transform: translateY(-50%);
}

.facility-filter-search input {
  width: 100%;
  font: inherit;
  font-weight: 750;
  outline: none;
}

.facility-filter-select-row select {
  width: 100%;
  font: inherit;
  font-weight: 750;
  outline: none;
  cursor: pointer;
  padding: 7px 10px;
}

.facility-filter-search input::placeholder {
  color: #767e89;
}

.facility-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  font-weight: 850;
}

.facility-filter-clear > svg {
  width: 15px;
  height: 15px;
}

.facility-filter-clear:hover:not(:disabled),
.facility-filter-clear:focus-visible:not(:disabled) {
  color: var(--text);
}

.facility-filter-clear:disabled {
  cursor: default;
  opacity: 0.38;
}

.facility-filter-select-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.facility-filter-select-row.has-ai-group {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.facility-application-note {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.facility-type-label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.facility-filter-select-row option {
  background: #121317;
  color: var(--text);
}

.facility-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.facility-filter-toggles {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.facility-filter-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.facility-filter-toggle input {
  margin: 0;
}

.facility-filter-count {
  white-space: nowrap;
}

.facility-modal-content {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  overflow-y: auto;
}

.facility-filter-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #8e97a3;
  text-align: center;
}

.facility-filter-empty > svg {
  width: 34px;
  height: 34px;
}

.facility-filter-empty strong {
  font-size: 0.86rem;
  font-weight: 850;
}

@media (max-width: 520px) {
  .facility-filter-search-row,
  .facility-filter-select-row,
  .facility-filter-select-row.has-ai-group {
    grid-template-columns: 1fr;
  }

  .facility-filter-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .facility-filter-toggles {
    flex-wrap: wrap;
  }
}

.facility-item {
  overflow: hidden;
}

.facility-row {
  display: grid;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.facility-row:hover,
.facility-row:focus-visible {
  outline: none;
}

.facility-copy {
  display: grid;
  min-width: 0;
}

.facility-copy .facility-price-range {
  display: inline-flex;
  align-items: center;
  width: max-content;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.facility-copy .facility-price-range > svg {
  display: none;
  stroke-width: 2.2;
}

.facility-copy .facility-affected-attributes {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facility-row-right {
  display: inline-grid;
  align-items: center;
  justify-items: center;
}

.facility-playstyle-icon {
  flex: none;
}

.facility-row-right .silver-icon-shape.facility-playstyle-icon {
  width: 29.7px;
  height: 29.7px;
}

.facility-row-right .silver-icon-shape.facility-playstyle-icon img,
.facility-row-right .silver-icon-shape.facility-playstyle-icon svg {
  width: 28px;
  height: 28px;
}

.facility-row-right .gold-icon-shape.facility-playstyle-icon {
  width: 44.3px;
  height: 38px;
}

.facility-row-right .gold-icon-shape.facility-playstyle-icon img,
.facility-row-right .gold-icon-shape.facility-playstyle-icon svg {
  width: 31px;
  height: 31px;
}

.facility-level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.facility-level-card {
  display: grid;
  align-content: start;
  justify-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  text-align: center;
}

.facility-level-card:hover,
.facility-level-card:focus-visible {
  outline: none;
}

.facility-level-card:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.facility-level-card > strong {
  font-weight: 900;
}

.facility-boost-list {
  display: grid;
  font-weight: 700;
}

.facility-boost-list strong {
  font-weight: 950;
}

.facility-level-cost {
  display: grid;
  margin-top: 2px;
  font-weight: 700;
}

.facility-level-cost strong {
  font-weight: 950;
}

.facility-level-playstyle {
  display: grid;
  min-height: 44px;
  place-items: center;
}

.facility-level-playstyle .silver-icon-shape.facility-playstyle-icon {
  width: 26.87px;
  height: 26.87px;
}

.facility-level-playstyle .silver-icon-shape.facility-playstyle-icon img,
.facility-level-playstyle .silver-icon-shape.facility-playstyle-icon svg {
  width: 25px;
  height: 25px;
}

.facility-level-playstyle .gold-icon-shape.facility-playstyle-icon {
  width: 40.3px;
  height: 34px;
}

.facility-level-playstyle .gold-icon-shape.facility-playstyle-icon img,
.facility-level-playstyle .gold-icon-shape.facility-playstyle-icon svg {
  width: 28px;
  height: 28px;
}

.playstyle-category {
  display: grid;
  gap: 16px;
}

.playstyle-category h3 {
  margin: 0;
  color: #b9c0ca;
  font-size: 0.96rem;
}

.playstyle-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 18px 12px;
}

.playstyle-option {
  position: relative;
  display: grid;
  min-height: 92px;
  place-items: start center;
  gap: 8px;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.playstyle-option.unavailable {
  color: #595f67;
  cursor: not-allowed;
}

.playstyle-option .option-icon {
  width: 42px;
  height: 42px;
  background: #f1f1f1;
  transition: background 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.gold-icon-shape {
  display: grid;
  width: 49px;
  height: 42px;
  place-items: center;
  clip-path: polygon(24% 0, 76% 0, 100% 42%, 50% 100%, 0 42%);
  background: var(--gold);
  color: #050505;
}

.gold-icon-shape img,
.gold-icon-shape svg {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.playstyle-option .gold-icon-shape.option-icon {
  width: 49px;
  height: 42px;
  background: var(--gold);
}

.playstyle-option.unavailable .option-icon {
  background: #555;
  opacity: 0.7;
}

.playstyle-option.silver-option {
  color: #737981;
}

.playstyle-option.silver-option.available .option-icon {
  background: #555;
  box-shadow: 0 0 0 2px var(--green), 0 0 16px rgba(var(--accent-rgb), 0.18);
  opacity: 1;
}

.playstyle-option.silver-option.ap-shortage {
  cursor: not-allowed;
}

.playstyle-option.silver-option.ap-shortage .option-icon {
  background: #555;
  box-shadow: 0 0 0 2px var(--red), 0 0 16px rgba(255, 82, 82, 0.2);
  opacity: 1;
}

.playstyle-option.silver-option.ap-shortage:hover .option-icon,
.playstyle-option.silver-option.ap-shortage:focus-visible .option-icon {
  box-shadow: 0 0 0 2px #ff6b6b, 0 0 24px rgba(255, 82, 82, 0.34);
}

.playstyle-option.silver-option.available:hover .option-icon,
.playstyle-option.silver-option.available:focus-visible .option-icon {
  background: #555;
  box-shadow: 0 0 0 2px var(--accent-bright), 0 0 24px rgba(var(--accent-rgb), 0.42);
}

.playstyle-option.silver-option.selected:hover .option-icon,
.playstyle-option.silver-option.selected:focus-visible .option-icon {
  box-shadow: 0 0 0 2px var(--accent-bright), 0 0 24px rgba(var(--accent-rgb), 0.42);
  background: #fff;
}

.playstyle-option.silver-option.available .playstyle-option-name {
  color: #737981;
}

.playstyle-option.silver-option.selected .option-icon {
  background: #fff;
  box-shadow: 0 0 0 2px var(--green), 0 0 16px rgba(var(--accent-rgb), 0.18);
  opacity: 1;
}

.playstyle-option.silver-option.selected .playstyle-option-name {
  color: var(--text);
}

.playstyle-option.locked-plus {
  opacity: 0.48;
}

.playstyle-option.locked-plus .gold-icon-shape.option-icon {
  background: #6f6336;
}

.playstyle-option.unlocked-plus {
  opacity: 1;
}

.playstyle-option.unlocked-plus .gold-icon-shape.option-icon {
  background: var(--gold);
}

.playstyle-option.available:hover .option-icon,
.playstyle-option.available:focus-visible .option-icon,
.playstyle-option.selected .option-icon {
  background: #fff;
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.28);
}

.playstyle-option.unlocked-plus:hover .gold-icon-shape.option-icon,
.playstyle-option.unlocked-plus:focus-visible .gold-icon-shape.option-icon {
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 220, 99, 0.24), 0 0 24px rgba(255, 220, 99, 0.38);
}

.playstyle-option:focus-visible {
  outline: none;
}

.playstyle-option-name {
  max-width: 86px;
  color: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
}

.playstyle-option.available .playstyle-option-name,
.playstyle-option.selected .playstyle-option-name {
  color: var(--text);
}

.playstyle-option-status {
  color: #555;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.playstyle-option.selected .playstyle-option-status {
  color: var(--green);
}

.playstyle-tooltip {
  position: absolute;
  left: 50%;
  top: -10px;
  z-index: 5;
  display: none;
  width: max-content;
  max-width: 300px;
  gap: 4px;
  padding: 10px 12px;
  font-size: 0.73rem;
  line-height: 1.3;
  text-align: left;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.playstyle-tooltip::after {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.playstyle-modal .playstyle-tooltip.tooltip-below {
  top: calc(100% + 10px);
  transform: translate(-50%, 0);
}

.playstyle-modal .playstyle-tooltip.tooltip-below::after {
  top: -6px;
  bottom: auto;
}

.playstyle-tooltip strong {
  font-weight: 900;
}

.playstyle-tooltip-breakdown {
  display: grid;
  gap: 4px;
  margin-top: 3px;
  padding-top: 6px;
  border-top: 1px solid #d7d7d7;
}

.playstyle-tooltip-breakdown-title {
  font-size: 0.68rem;
}

.playstyle-cost-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.playstyle-cost-route {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
}

.playstyle-cost-route > strong {
  min-width: 28px;
}

.playstyle-cost-route small {
  border-radius: 3px;
  background: #d9f7e8;
  color: #07683d;
  padding: 1px 4px;
  font-size: 0.59rem;
  font-weight: 900;
}

.playstyle-cost-route small.max-value {
  background: #ffe2e5;
  color: #a51d32;
}

.playstyle-cost-row > b {
  color: #087c49;
  font-size: 0.7rem;
  font-weight: 950;
  white-space: nowrap;
}

.playstyle-cost-row > b.unavailable {
  color: #a51d32;
}

.playstyle-tooltip-ap {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px;
  padding-top: 5px;
  border-top: 1px solid #d7d7d7;
}

.playstyle-tooltip-ap b {
  color: #087c49;
  font-weight: 950;
}

.playstyle-tooltip em {
  font-style: normal;
}

.playstyle-option:hover .playstyle-tooltip,
.playstyle-option:focus-visible .playstyle-tooltip,
.spec-button:hover .specialization-tooltip,
.spec-button:focus-visible .specialization-tooltip {
  display: grid;
}

@media (max-width: 1180px) {
  .sticky-playstyles {
    grid-template-columns: repeat(4, 34px);
    justify-content: start;
    gap: 10px;
  }

  .playstyle-option-grid {
    grid-template-columns: repeat(4, minmax(74px, 1fr));
  }
}

@media (max-width: 860px) {
  .sticky-playstyles {
    grid-template-columns: repeat(4, 38px);
    justify-content: center;
    padding: 12px;
  }

  .facility-playstyle-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }

  .facility-playstyle-list {
    flex-wrap: wrap;
  }

  .playstyle-modal-panel,
.facility-modal-panel {
    width: 100%;
  }

  .mastery-modal-header,
.amp-modal-header {
    align-items: stretch;
    flex-direction: column;
  }

  .mastery-modal-actions,
.amp-modal-actions {
    justify-content: space-between;
  }

  .mastery-row {
    gap: 12px;
  }

  .mastery-level-options {
    justify-self: stretch;
  }

  .mastery-level-button {
    flex: 1 1 0;
  }

  .facility-level-grid {
    grid-template-columns: 1fr;
  }

  .facility-level-card {
    min-height: 190px;
  }

  .playstyle-modal-header,
.playstyle-modal-content,
.facility-modal-header,
.facility-modal-content,
.mastery-modal-header,
.mastery-modal-content,
.amp-modal-header,
.amp-modal-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .equipment-catalog-search {
    padding-right: 18px;
    padding-left: 18px;
  }

  .amp-modal-note {
    margin-right: 18px;
    margin-left: 18px;
  }

  .amp-slot-tabs,
.signature-amp-grid,
.amp-picker-grid,
.amp-search-results {
    grid-template-columns: 1fr;
  }

  .signature-amp-card {
    min-height: 350px;
  }

  .playstyle-option-grid {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    gap: 28px 14px;
  }
}

.live-granted-playstyles {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin-top: 10px;
  border-top: 1px solid var(--shell-line);
  padding-top: 10px;
}

.live-granted-playstyles[hidden],
.live-granted-playstyles > .facility-playstyle-row[hidden] {
  display: none !important;
}

.live-granted-playstyles > .facility-playstyle-row {
  display: grid;
  min-height: 0;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left-width: 3px;
  border-radius: 8px;
  padding: 9px;
}

.live-granted-playstyles > .amp-playstyle-row {
  border-color: rgba(255, 171, 97, 0.22);
  border-left-color: var(--orange);
  background: rgba(255, 171, 97, 0.055);
}

.live-granted-playstyles > .live-facility-playstyle-row {
  border-color: rgba(80, 191, 255, 0.2);
  border-left-color: #50bfff;
  background: rgba(80, 191, 255, 0.05);
}

.live-granted-playstyles .amp-playstyle-card > span:last-child {
  color: #ffc18c;
}

.live-granted-playstyles .facility-playstyle-list {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.live-granted-playstyles .facility-playstyle-card {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  padding: 5px 7px;
  text-align: left;
}

.live-granted-playstyles .facility-playstyle-icon {
  justify-self: center;
}

.live-granted-playstyles .facility-playstyle-card > span:last-child {
  max-width: none;
  color: #dcecf4;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .live-granted-playstyles > .facility-playstyle-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }
}

html:is([data-theme="light"],[data-theme="dark"]) .live-playstyle-panel,
html:is([data-theme="light"],[data-theme="dark"]) .build-summary-rail > .sticky-build-bar,
html:is([data-theme="light"],[data-theme="dark"]) .build-settings-summary-panel {
  background: var(--custom-tab-bg);
}

html:root .builder-stage > .build-summary-rail {
  grid-area: summary;
  position: static;
  min-width: 0;
  max-height: none;
  overflow: visible;
}

html:root .mastery-modal-panel,
html:root .amp-modal-panel,
html:root .playstyle-modal-panel,
html:root .facility-modal-panel {
  border: 1px solid var(--line-strong);
  font-size: 14px;
}

html:root .mastery-modal-header,
html:root .amp-modal-header,
html:root .playstyle-modal-header,
html:root .facility-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

html:root .mastery-modal-header h2,
html:root .amp-modal-header h2,
html:root .playstyle-modal-header h2,
html:root .facility-modal-header h2 {
  position: relative;
  isolation: isolate;
  width: fit-content;
  margin: 0;
  padding: 6px 14px 8px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.05em;
}

html:root .mastery-modal-header h2::before,
html:root .amp-modal-header h2::before,
html:root .playstyle-modal-header h2::before,
html:root .facility-modal-header h2::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: auto 9px 5px;
  height: .65em;
  background: var(--highlighter-yellow-soft);
  clip-path: none;
}

html:root .mastery-modal-header p,
html:root .amp-modal-header p,
html:root .playstyle-modal-header p,
html:root .facility-modal-header p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}

html:root .mastery-modal-actions,
html:root .amp-modal-actions,
html:root .facility-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

html:root .mastery-modal-content,
html:root .amp-modal-content,
html:root .playstyle-modal-content,
html:root .facility-modal-content {
  padding: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

html:root .amp-card,
html:root .playstyle-option,
html:root .amp-standard-editor {
  background: var(--surface-card);
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

html:root .amp-card:hover,
html:root .playstyle-option:hover {
  border-color: var(--line-strong);
}

html:root .amp-card.selected,
html:root .playstyle-option.selected,
html:root .amp-slot-tab.selected {
  border-color: var(--green);
  background: color-mix(in srgb,var(--green) 7%,var(--panel));
}

html:root .mastery-level-button {
  border-radius: 4px;
}

html:root .budget-option-button {
  min-height: 34px;
  border-radius: 4px;
}

html:root .amp-tier-tab {
  border-radius: 4px;
}

html:root .amp-slot-tab {
  border-radius: 4px;
  font-size: 12px;
}

html:root .amp-modal-note,
html:root .facility-modal-budget,
html:root .facility-filter-bar {
  background: var(--surface-board);
  border-color: var(--line);
  box-shadow: none;
}

html:root .amp-modal-note {
  padding: 12px 18px;
  font-size: 12px;
}

html:root .mastery-modal-panel,
html:root .amp-modal-panel {
  inset: 18px;
  margin: auto;
  width: min(960px,calc(100% - 36px));
  height: calc(100dvh - 36px);
  max-height: 1000px;
}

html:root .facility-modal-panel,
html:root .playstyle-modal-panel {
  inset: 18px;
  margin: auto;
  height: calc(100dvh - 36px);
  max-height: 1000px;
}

html:root .mastery-modal-panel {
  grid-template-rows: auto minmax(0,1fr);
}

html:root .facility-modal-panel {
  width: min(780px,calc(100% - 36px));
}

html:root .playstyle-modal-panel {
  width: min(1025px,calc(100% - 36px));
}

html:root .mastery-modal-content,
html:root .amp-modal-content,
html:root .facility-modal-content {
  gap: 12px;
  min-height: 0;
}

html:root .mastery-row,
html:root .facility-item,
html:root .signature-amp-card,
html:root .signature-amp-preview {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-card);
  box-shadow: none;
  color: var(--text);
}

html:root .mastery-row {
  grid-template-columns: minmax(170px,.8fr) minmax(210px,1.2fr) auto;
  gap: 18px;
  min-height: 90px;
  padding: 14px;
}

html:root .mastery-archetype {
  gap: 12px;
}

html:root .mastery-archetype-icon {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
}

html:root .mastery-archetype-icon :is(img,svg) {
  width: 36px;
  height: 36px;
}

html:root .mastery-archetype strong {
  font-size: 14px;
}

html:root .mastery-archetype span:not(.mastery-archetype-icon) {
  color: var(--muted);
  font-size: 11px;
}

html:root .mastery-row:has([data-mastery-archetype="shotStopper"]) .mastery-archetype span:not(.mastery-archetype-icon) {
  white-space: nowrap;
}

html:root .mastery-milestones {
  gap: 7px;
  padding-inline-start: 12px;
}

html:root .mastery-milestones > span {
  grid-template-columns: 40px minmax(0,1fr);
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

html:root .mastery-row:has(.mastery-level-button.active[data-mastery-level="10"]) .mastery-milestones > span:first-child,
html:root .mastery-row:has(.mastery-level-button.active[data-mastery-level="30"]) .mastery-milestones > span:nth-child(-n+2),
html:root .mastery-row:has(.mastery-level-button.active[data-mastery-level="55"]) .mastery-milestones > span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  color: var(--green);
}

html:root .mastery-row:has(.mastery-level-button.active[data-mastery-level="10"]) .mastery-milestones > span:first-child strong,
html:root .mastery-row:has(.mastery-level-button.active[data-mastery-level="30"]) .mastery-milestones > span:nth-child(-n+2) strong,
html:root .mastery-row:has(.mastery-level-button.active[data-mastery-level="55"]) .mastery-milestones > span strong {
  flex: 0 0 40px;
}

html:root .mastery-row:has(.mastery-level-button.active[data-mastery-level="10"]) .mastery-milestones > span:first-child::after,
html:root .mastery-row:has(.mastery-level-button.active[data-mastery-level="30"]) .mastery-milestones > span:nth-child(-n+2)::after,
html:root .mastery-row:has(.mastery-level-button.active[data-mastery-level="55"]) .mastery-milestones > span::after {
  content: "✓";
  flex: 0 0 auto;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

html:root .mastery-milestones strong {
  color: var(--paper);
  font-size: 11px;
}

html:root .mastery-level-options,
html:root .amp-tier-tabs {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: visible;
}

html:root .mastery-level-button,
html:root .amp-tier-tab {
  min-height: 38px;
  padding: 8px 12px;
  background: var(--input-bg);
  color: var(--muted);
  border-right-color: var(--line);
  font-size: 12px;
}

html:root .mastery-level-button.active,
html:root .amp-tier-tab.active,
html:root .amp-slot-tab.active,
html:root .budget-option-button.active {
  background: color-mix(in srgb,var(--green) 12%,var(--panel));
  color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}

html:root .amp-modal-note {
  margin: 12px 18px 0;
  gap: 8px;
  border-radius: 4px;
}

html:root .amp-modal-note svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

html:root .amp-slot-tabs {
  gap: 10px;
}

html:root .amp-slot-tab {
  min-height: 76px;
  gap: 7px;
  padding: 12px;
  background: var(--surface-card);
  color: var(--text);
  border-color: var(--line);
}

html:root .amp-slot-tab span {
  font-size: 12px;
}

html:root .amp-slot-tab strong {
  font-size: 11px;
  color: var(--muted);
  white-space: normal;
  overflow-wrap: anywhere;
}

html:root .amp-catalog-count {
  font-size: 11px;
  color: var(--muted);
}

html:root .amp-standard-editor,
html:root .signature-amp-preview {
  gap: 18px;
  padding: 18px;
}

html:root .amp-standard-editor > p,
html:root .signature-amp-preview > p {
  font-size: 12px;
  color: var(--muted);
}

html:root .amp-picker-grid {
  gap: 14px;
}

html:root .amp-picker-grid label,
html:root .amp-picker-field {
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

html:root .amp-picker-grid select,
html:root .amp-attribute-trigger {
  min-height: 44px;
  padding: 9px 12px;
  font-size: 14px;
}

html:root .amp-attribute-picker select {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10;
  height: min(390px, 66dvh);
  min-height: 180px;
  padding: 6px;
  box-shadow: var(--shadow-popover);
}

html:root .amp-editor-actions {
  gap: 8px;
}

html:root .amp-equip-button {
  background: var(--green);
  color: var(--accent-contrast);
  border-color: var(--green);
}

html:root .signature-amp-grid {
  gap: 12px;
  grid-template-columns: repeat(3,minmax(0,1fr));
}

html:root .signature-amp-card {
  min-height: 320px;
  gap: 9px;
  padding: 14px;
  transform: none;
}

html:root .signature-amp-portrait {
  display: block;
  width: 75%;
  aspect-ratio: 1 / 1;
  margin-top: 18px;
  margin-inline: auto;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
}

html:root .signature-amp-portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

html:root .signature-amp-card.selected {
  border-color: var(--green);
  background: color-mix(in srgb,var(--green) 7%,var(--panel));
}

html:root .signature-amp-tier {
  top: 12px;
  left: 12px;
  font-size: 10px;
  color: var(--muted);
}

html:root .signature-amp-selected {
  top: 10px;
  right: 10px;
  background: var(--input-bg);
  color: var(--green);
  border-color: var(--green);
}

html:root .signature-amp-name {
  min-height: 36px;
  font-size: 13px;
}

html:root .signature-amp-boost {
  gap: 4px;
  padding: 8px;
  border-color: var(--line);
  background: var(--input-bg);
  color: var(--number);
  font-size: 12px;
}

html:root :is(.signature-amp-boost small,.signature-amp-affinity-label,.signature-amp-affinity-status) {
  font-size: 10px;
  color: var(--muted);
}

html:root .signature-amp-affinity-icons {
  gap: 6px;
}

html:root .signature-amp-affinity-icon {
  width: 32px;
  height: 32px;
  background: var(--input-bg);
  border-color: var(--line);
}

html:root .signature-amp-affinity-icon.current {
  border-color: var(--green);
}

html:root .signature-amp-affinity-icon :is(img,svg) {
  width: 25px;
  height: 25px;
}

html:root .facility-modal-budget {
  padding: 14px 18px;
}

html:root .facility-budget-field > span {
  font-size: 12px;
  color: var(--muted);
}

html:root .budget-option-grid {
  gap: 6px;
}

html:root .budget-option-button {
  background: var(--input-bg);
  border-color: var(--line);
  color: var(--number);
  font-size: 12px;
}

html:root .facility-filter-bar {
  padding: 14px 18px;
  gap: 10px;
}

html:root .facility-filter-search-row,
html:root .facility-filter-select-row {
  gap: 8px;
}

html:root .facility-filter-search > svg {
  width: 16px;
  height: 16px;
  left: 10px;
  color: var(--muted);
}

html:root .facility-filter-search input {
  min-height: 38px;
  padding: 8px 10px 8px 34px;
  font-size: 12px;
}

html:root :is(.facility-filter-select-row select,.facility-filter-clear) {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 12px;
}

html:root .facility-filter-clear {
  padding: 8px 10px;
}

html:root .facility-filter-toggle {
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

html:root .facility-filter-count {
  font-size: 11px;
  color: var(--muted);
}

html:root .facility-row {
  grid-template-columns: minmax(0,1fr) auto;
  min-height: 84px;
  gap: 12px;
  padding: 12px;
}

html:root .facility-copy {
  gap: 4px;
}

html:root .facility-copy strong {
  font-size: 14px;
}

html:root .facility-price-range {
  font-size: 11px;
  color: var(--muted);
}

html:root .facility-price-range svg {
  width: 12px;
  height: 12px;
}

html:root .facility-affected-attributes {
  font-size: 11px;
  color: var(--muted);
}

html:root .facility-row-right {
  grid-template-columns: 40px 14px;
  gap: 7px;
}

html:root .facility-row-right.attributes-only {
  grid-template-columns: 14px;
}

html:root .facility-row-right > svg {
  width: 14px;
  height: 14px;
}

html:root .facility-level-grid {
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

html:root .facility-level-card {
  min-height: 180px;
  padding: 12px 6px;
  gap: 9px;
  background: var(--input-bg);
  border-radius: 4px;
}

html:root .facility-level-card.selected {
  border-color: var(--green);
}

html:root .facility-level-card > strong {
  font-size: 13px;
}

html:root .facility-boost-list,
html:root .facility-level-cost {
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

html:root .facility-boost-list strong {
  font-size: 17px;
  color: var(--green);
}

html:root .facility-level-cost strong {
  font-size: 14px;
  color: var(--number);
}

@media (max-width: 800px) {
  html:root .mastery-modal-panel,
html:root .amp-modal-panel,
html:root .playstyle-modal-panel,
html:root .facility-modal-panel {
    max-width: calc(100vw - 16px);
    border-radius: 5px;
  }

  html:root .mastery-modal-header,
html:root .amp-modal-header,
html:root .playstyle-modal-header,
html:root .facility-modal-header {
    padding: 14px;
    gap: 10px;
  }

  html:root .mastery-modal-header h2,
html:root .amp-modal-header h2,
html:root .playstyle-modal-header h2,
html:root .facility-modal-header h2 {
    font-size: 21px;
    padding: 6px 12px;
  }

  html:root .mastery-modal-content,
html:root .amp-modal-content,
html:root .playstyle-modal-content,
html:root .facility-modal-content {
    padding: 12px;
  }

  html:root .mastery-modal-panel,
html:root .amp-modal-panel,
html:root .facility-modal-panel,
html:root .playstyle-modal-panel {
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100dvh - 16px);
    max-height: none;
  }

  html:root .mastery-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  html:root .mastery-level-options {
    justify-self: start;
  }

  html:root .signature-amp-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  html:root .amp-slot-tabs {
    gap: 6px;
  }

  html:root .amp-slot-tab {
    padding: 10px 8px;
  }

  html:root .facility-filter-bar,
html:root .facility-modal-budget {
    padding: 10px 12px;
  }

  html:root .facility-row {
    gap: 8px;
    grid-template-columns: minmax(0,1fr) 50px;
    padding: 10px 8px;
  }

  html:root .facility-copy strong {
    font-size: 13px;
  }

  html:root .facility-filter-clear {
    min-height: 32px;
  }
}

@media (max-width: 480px) {
  html:root .signature-amp-grid {
    grid-template-columns: 1fr;
  }

  html:root .facility-modal-panel {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  html:root .facility-modal-panel > * {
    flex: 0 0 auto;
  }

  html:root .facility-modal-content {
    overflow: visible;
  }

  html:root .facility-filter-select-row,
  html:root .facility-filter-select-row.has-ai-group {
    grid-template-columns: 1fr;
  }
}

html:root #equipment-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  --patch-angle: -1deg;
  background: var(--paper-main);
  border-color: var(--pencil-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-paper);
  transition: grid-template-columns .28s cubic-bezier(.2,.75,.25,1), padding .28s ease, gap .28s ease;
}

html:root #equipment-summary > .rail-heading {
  display: block;
  min-height: 81px;
  padding: 0 0 18px;
  margin: 0 0 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

html:root #equipment-summary > .rail-heading h2 {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -.055em;
}

html:root #equipment-summary > .rail-heading p {
  margin: 9px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

html:root #equipment-summary > .panel {
  position: relative;
  margin: 0;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

html:root #equipment-summary > .panel::before {
  position: absolute;
  top: 15px;
  left: -1px;
  width: 3px;
  height: 24px;
  border-radius: 1px 3px 3px 1px;
  background: var(--green);
  pointer-events: none;
}

html:root #equipment-summary .panel-title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

html:root #equipment-summary .sticky-build-bar {
  position: static;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: start;
  gap: 8px 6px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

html:root #equipment-summary :is(.panel h2,.settings-summary-copy > strong) {
  font-size: 15px;
  font-weight: 800;
}

html:root #equipment-summary .equipment-reset-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  font-size: 11px;
  white-space: nowrap;
}

html:root #equipment-summary .equipment-reset-action svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

html:root #sticky-playstyles {
  --ps-sticker-display-label-width: 100%;
  --ps-sticker-display-label-min-width: 48px;
  display: contents;
}

html:root #equipment-summary .sticky-playstyle-slot,
html:root #equipment-summary .amp-mini-slot {
  --patch-filter: none;
}

html:root #equipment-summary .sticky-playstyle-slot.gold,
html:root #equipment-summary .sticky-playstyle-slot.gold-empty {
  --patch-filter: sepia(1) saturate(2.1);
  --rarity-color: #dfbf6a;
}

html:root #equipment-summary .sticky-playstyle-slot.selected,
html:root #equipment-summary .sticky-playstyle-slot.silver-signature,
html:root #equipment-summary .sticky-playstyle-slot.silver-empty {
  --rarity-color: #d5dcdf;
}

html:root #sticky-playstyles .sticky-playstyle-slot,
html:root #equipment-summary .spec-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 0;
  border: 0;
  background: transparent;
  border-radius: 7px;
  box-shadow: none;
  transform: none;
  clip-path: none;
}

html:root #sticky-playstyles .sticky-playstyle-slot::before,
html:root #equipment-summary .spec-button::before {
  display: none;
}

html:root #equipment-summary .sticker-emblem {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 90px;
  height: 90px;
  padding: 22px;
  border: 0;
  border-radius: 0;
  clip-path: none;
  overflow: visible;
  background: transparent;
  color: #eeeae0;
  transform: rotate(var(--patch-angle,-3deg));
}

html:root #equipment-summary .specialization-diamond {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  clip-path: none;
  overflow: visible;
  background: transparent;
  color: #eeeae0;
  transform: rotate(var(--patch-angle,-3deg));
}

html:root #equipment-summary .settings-summary-icon {
  position: relative;
  isolation: isolate;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  clip-path: none;
  overflow: visible;
}

html:root #equipment-summary .sticker-emblem::before,
html:root #equipment-summary .specialization-diamond::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: var(--patch-filter,none);
  pointer-events: none;
}

html:root #equipment-summary .settings-summary-icon::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: var(--patch-filter,none);
  pointer-events: none;
}

html:root #equipment-summary .sticker-emblem::after,
html:root #equipment-summary .specialization-diamond::after {
  display: none;
}

html:root #equipment-summary .sticker-emblem :is(img,svg) {
  position: relative;
  width: 50px;
  height: 50px;
  object-fit: contain;
  transform: none;
  color: #f2f0e8;
  filter: brightness(0) invert(1) drop-shadow(1px 2px 0 #444);
}

html:root #equipment-summary .specialization-diamond :is(img,svg) {
  position: relative;
  object-fit: contain;
  transform: none;
  color: #f2f0e8;
  filter: brightness(0) invert(1) drop-shadow(1px 2px 0 #444);
}

html:root #equipment-summary .sticker-emblem .silver-icon-shape {
  display: contents;
}

html:root #equipment-summary .spec-name {
  position: relative;
  z-index: 2;
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: -8px;
  padding: 5px 7px;
  font: 900 11px/1.4 'Noto Sans KR',sans-serif;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  transform: rotate(calc(var(--patch-angle) * .4));
}

html:root #equipment-summary .sticker-caption {
  position: relative;
  z-index: 2;
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 5px 7px;
  font: 900 11px/1.4 'Noto Sans KR',sans-serif;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  transform: rotate(calc(var(--patch-angle) * .4));
}

html:root #sticky-playstyles .sticky-playstyle-slot.empty:not(.selected) {
  justify-content: center;
  min-height: 116px;
  border: 1px dashed var(--line-strong);
  background: var(--input-bg);
  color: var(--rarity-color,var(--muted));
}

html:root #equipment-summary .specialization-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  padding: 0;
  border: 0;
}

html:root #equipment-summary .spec-button {
  --patch-filter: sepia(1) saturate(1.5);
}

html:root #equipment-summary .specialization-diamond {
  width: 70px;
  height: 70px;
  padding: 17px;
}

html:root #equipment-summary .specialization-diamond :is(img,svg) {
  width: 36px;
  height: 36px;
}

html:root #equipment-summary .spec-button.active::after {
  top: 3px;
  right: 3px;
}

html:root #equipment-summary > .build-settings-summary-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html:root #equipment-summary > .build-settings-summary-panel::before {
  display: none;
}

html:root #equipment-summary .settings-summary-list {
  display: grid;
  gap: 10px;
}

html:root #equipment-summary .settings-summary-entry {
  display: grid;
  grid-template-columns: minmax(0,1fr) 36px;
  align-items: center;
  gap: 6px;
}

html:root .equipment-reset-lock-button {
  display: grid;
  width: 36px;
  min-height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--pencil-soft);
  border-radius: 4px;
  background: var(--paper-raised);
  color: var(--muted);
}

html:root .equipment-reset-lock-button svg {
  width: 18px;
  height: 18px;
}

html:root .equipment-reset-lock-button[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

html:root .equipment-reset-lock-button:hover {
  border-color: var(--green);
  color: var(--green);
}

html:root .equipment-reset-lock-button:focus-visible {
  outline: 2px solid var(--focus-blue);
  outline-offset: 2px;
}

html:root #equipment-summary .settings-summary-row {
  display: grid;
  min-width: 0;
  align-items: center;
  text-align: left;
  color: var(--text);
  grid-template-columns: 54px minmax(0,1fr) auto 12px;
  gap: 9px;
  padding: 10px 10px 10px 7px;
  min-height: 78px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 4px;
}

html:root #equipment-summary .settings-summary-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

html:root #equipment-summary .settings-summary-value {
  white-space: nowrap;
}

html:root #equipment-summary .settings-summary-chevron {
  width: 12px;
  height: 16px;
  color: var(--muted);
}

html:root #equipment-summary .settings-summary-icon {
  display: grid;
  width: 54px;
  height: 54px;
  padding: 15px;
  --patch-filter: sepia(1) saturate(1.5);
}

html:root #equipment-summary .settings-summary-icon svg {
  display: block;
  width: 25px;
  height: 25px;
  margin: 0;
}

html:root #equipment-summary .settings-summary-copy small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

html:root #equipment-summary .settings-summary-value {
  font-size: 13.75px;
  font-variant-numeric: tabular-nums;
}

html:root #equipment-summary #amp-button {
  grid-template-columns: 54px minmax(0,1fr) 12px;
  row-gap: 6px;
}

html:root #amp-summary-slots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  width: 100%;
  gap: 8px;
  padding: 3px 0 5px;
}

html:root #equipment-summary .amp-mini-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
  min-width: 0;
  gap: 0;
  border: 0;
  background: transparent;
  transform: none;
  box-shadow: none;
}

html:root #equipment-summary .amp-mini-slot .sticker-emblem {
  width: 72px;
  height: 72px;
  padding: 19px;
  --patch-filter: sepia(1) saturate(2) hue-rotate(155deg);
}

html:root #equipment-summary .amp-mini-slot.signature .sticker-emblem {
  --patch-filter: sepia(1) saturate(2) hue-rotate(220deg);
}

html:root #equipment-summary .amp-mini-slot .sticker-emblem svg {
  width: 33px;
  height: 33px;
}

html:root #equipment-summary .amp-mini-slot > strong {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  padding: 2px 4px;
  border: 1px solid #c3cad1;
  font-size: 10px;
  border-radius: 3px;
  transform: none;
}

html:root #equipment-summary .amp-mini-slot.empty .sticker-caption {
  background: transparent;
  font-weight: 500;
  transform: none;
}

html:root #equipment-summary .sticker-caption {
  font-size: 10px;
  margin-top: -3px;
}

html:root #equipment-summary .perk-chip {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: center;
  justify-items: start;
  padding: 8px;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: left;
}

html:root #equipment-summary .perk-chip-name {
  font-size: 18.2px;
  font-weight: 700;
}

html:root #equipment-summary .perk-range {
  grid-column: 1;
  margin: 0;
  font-size: 14px;
}

html:root #equipment-summary .perk-row {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 8px;
}

html:root #equipment-summary .signature-perk-tooltip {
  top: auto;
  bottom: calc(100% + 10px);
}

html:root #equipment-summary > .rail-heading {
  border-bottom-color: var(--pencil-soft);
}

html:root #equipment-summary > .rail-heading h2 {
  position: relative;
  isolation: isolate;
  color: var(--text);
}

html:root #equipment-summary > .rail-heading h2::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto 8px var(--title-marker-bottom);
  height: var(--title-marker-height);
  background: var(--title-marker-color);
  transform: rotate(var(--title-marker-angle));
  pointer-events: none;
  display: none;
}

html:root #equipment-summary > .panel {
  background: transparent;
  border-color: var(--pencil-soft);
  box-shadow: none;
}

html:root #equipment-summary > .panel::before {
  content: none;
}

html:root #equipment-summary .sticky-playstyle-slot,
html:root #equipment-summary .spec-button,
html:root #equipment-summary .amp-mini-slot {
  position: relative;
  --patch-angle: -1deg;
}

html:root #equipment-summary .sticky-playstyle-slot:nth-child(2n),
html:root #equipment-summary .spec-button:nth-child(2n),
html:root #equipment-summary .amp-mini-slot:nth-child(2n) {
  --patch-angle: 1deg;
}

html:root #equipment-summary .sticky-playstyle-slot:nth-child(3n),
html:root #equipment-summary .spec-button:nth-child(3n),
html:root #equipment-summary .amp-mini-slot:nth-child(3n) {
  --patch-angle: -.75deg;
}

html:root #equipment-summary .sticker-emblem,
html:root #equipment-summary .specialization-diamond {
  filter: drop-shadow(0 1px 1px rgba(65,52,35,.22));
}

html:root #equipment-summary .spec-name,
html:root #equipment-summary .sticker-caption {
  background: var(--paper-raised);
  color: var(--text);
  clip-path: none;
  border-radius: var(--radius-xs);
}

html:root #equipment-summary .sticky-playstyle-slot.filled::after,
html:root #equipment-summary .sticky-playstyle-slot.selected::after {
  content: '';
  position: absolute;
  inset: auto 40% 0;
  height: 2px;
  background: var(--green);
  pointer-events: none;
}

html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot.empty:not(.selected) {
  border-radius: var(--radius-sm);
  box-shadow: none;
}

html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot.empty:not(.selected) > svg {
  position: static;
  color: var(--ink-muted);
  stroke: currentColor;
  fill: none;
  filter: none;
  transform: none;
  width: 18px;
  height: 18px;
}

html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot:disabled {
  opacity: .45;
  color: var(--ink-muted);
  box-shadow: none;
}

html:root #equipment-summary .sticky-playstyle-slot:hover:not(:disabled) {
  background: var(--paper-raised);
  box-shadow: inset 0 0 0 1px var(--pencil-soft);
  filter: none;
}

html:root #equipment-summary .spec-button:hover:not(:disabled) {
  filter: none;
}

html:root #equipment-summary .settings-summary-row {
  border-color: var(--pencil-soft);
  border-left-width: 1px;
  background: transparent;
  box-shadow: none;
}

html:root #equipment-summary .settings-summary-icon {
  background: transparent;
  color: var(--ink);
  transform: none;
  filter: none;
}

html:root #equipment-summary .settings-summary-icon::before {
  content: none;
}

html:root #equipment-summary .settings-summary-icon svg {
  color: var(--ink);
}

html:root #equipment-summary .settings-summary-value {
  color: var(--green);
}

html:root #equipment-summary .amp-mini-slot > strong {
  background: var(--paper-raised);
  border-color: var(--pencil-soft);
  color: var(--ink);
}

html:root #equipment-summary .amp-mini-slot.empty .sticker-emblem {
  opacity: 1;
  border: 1px dashed var(--pencil-strong);
  border-radius: var(--radius-xs);
  background: transparent;
  transform: none;
  filter: none;
}

html:root #equipment-summary .amp-mini-slot.empty .sticker-emblem::before {
  content: none;
}

html:root #equipment-summary .amp-mini-slot.empty .sticker-emblem svg {
  visibility: hidden;
}

html:root #equipment-summary .amp-mini-slot.empty > strong {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink-muted);
}

html:root #equipment-summary .amp-mini-slot.empty .sticker-caption {
  color: var(--ink-muted);
}

html:root #equipment-summary .amp-mini-slot.equipped .sticker-caption {
  background-color: var(--highlighter-yellow-soft);
}

html:root #equipment-summary .amp-mini-slot.equipped::after {
  content: '';
  position: absolute;
  inset: auto 35% 0;
  height: 2px;
  background: var(--green);
}

html:root #equipment-summary .perk-chip {
  background: transparent;
  border-color: var(--pencil-soft);
  box-shadow: none;
}

html:root #equipment-summary .perk-chip-name {
  color: var(--text);
}

html:root #equipment-summary .perk-range {
  color: var(--ink-muted);
}

html:root #equipment-summary :is(button,[tabindex]):focus-visible {
  outline: 2px solid var(--focus-blue);
  outline-offset: 2px;
}

html:root :is(#equipment-summary,#playstyle-modal,#facility-modal) {
  --ps-gold-frame: #B58B31;
  --ps-gold-highlight: #E3C367;
  --ps-gold-shadow: #74551F;
  --ps-gold-core: #211D16;
  --ps-silver-frame: #A7A8A4;
  --ps-silver-highlight: #D7D8D4;
  --ps-silver-shadow: #686A68;
  --ps-silver-core: #222423;
  --ps-sticker-edge: #ece5d7;
  --ps-gold-cut: polygon(13% 5%,34% 2%,56% 4%,86% 2%,98% 39%,96% 46%,53% 98%,48% 96%,3% 46%,2% 39%);
  --ps-gold-frame-cut: polygon(13% 4%,35% 2%,57% 4%,87% 3%,98% 41%,95% 46%,52% 99%,48% 97%,2% 44%,3% 39%);
  --ps-gold-core-cut: polygon(14% 5%,85% 3%,97% 42%,51% 98%,3% 43%);
  --ps-silver-cut: polygon(48% 2%,53% 1%,98% 47%,99% 52%,54% 98%,48% 99%,2% 55%,1% 49%);
  --ps-silver-frame-cut: polygon(48% 1%,53% 2%,99% 48%,98% 53%,53% 99%,47% 98%,1% 53%,2% 48%);
  --ps-silver-core-cut: polygon(49% 1%,99% 49%,51% 99%,1% 51%);
  --ps-label-cut: polygon(1% 8%,17% 2%,35% 5%,54% 1%,73% 4%,99% 2%,98% 31%,100% 58%,97% 95%,82% 92%,66% 98%,49% 94%,30% 100%,14% 95%,1% 98%,3% 70%,0 44%);
}

html:root #sticky-playstyles .sticky-playstyle-slot {
  height: auto;
  min-height: 82px;
  padding: 2px 0 6px;
  overflow: visible;
  transition: transform .14s ease;
}

html:root #sticky-playstyles .sticky-playstyle-slot.filled {
  --ps-frame: var(--ps-silver-frame);
  --ps-highlight: var(--ps-silver-highlight);
  --ps-shadow: var(--ps-silver-shadow);
  --ps-core: var(--ps-silver-core);
}

html:root #sticky-playstyles .sticky-playstyle-slot.selected {
  box-shadow: none;
  border: 0;
  --ps-frame: var(--ps-silver-frame);
  --ps-highlight: var(--ps-silver-highlight);
  --ps-shadow: var(--ps-silver-shadow);
  --ps-core: var(--ps-silver-core);
}

html:root #sticky-playstyles .sticky-playstyle-slot:disabled {
  opacity: .48;
  border-style: solid;
  background: transparent;
  cursor: not-allowed;
}

html:root #equipment-summary .settings-summary-row:hover {
  border-color: var(--pencil-strong);
  background: var(--paper-raised);
}

html:root #sticky-playstyles .sticky-playstyle-slot.gold {
  --ps-frame: var(--ps-gold-frame);
  --ps-highlight: var(--ps-gold-highlight);
  --ps-shadow: var(--ps-gold-shadow);
  --ps-core: var(--ps-gold-core);
}

html:root #sticky-playstyles .sticky-playstyle-slot .sticker-emblem {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #f4f1e9;
  transform: rotate(var(--patch-angle,-1deg));
  filter: drop-shadow(0 3px 2px rgba(46,37,26,.24));
  transition: filter .14s ease;
}

html:root #sticky-playstyles .sticky-playstyle-slot.gold .sticker-emblem {
  clip-path: var(--ps-gold-cut);
}

html:root #sticky-playstyles .sticky-playstyle-slot.silver-signature .sticker-emblem,
html:root #sticky-playstyles .sticky-playstyle-slot.selected .sticker-emblem {
  clip-path: var(--ps-silver-cut);
}

html:root #sticky-playstyles .sticky-playstyle-slot .sticker-emblem::before,
html:root #sticky-playstyles .sticky-playstyle-slot .sticker-emblem::after {
  content: '';
  position: absolute;
  display: block;
  pointer-events: none;
}

html:root #sticky-playstyles .sticky-playstyle-slot .sticker-emblem::before {
  inset: 3px;
  z-index: 0;
}

html:root #sticky-playstyles .sticky-playstyle-slot .sticker-emblem::after {
  inset: 10px;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 2px 3px 5px rgba(0,0,0,.38);
}

html:root #sticky-playstyles .sticky-playstyle-slot.gold .sticker-emblem::before {
  clip-path: var(--ps-gold-frame-cut);
}

html:root #sticky-playstyles .sticky-playstyle-slot.gold .sticker-emblem::after {
  clip-path: var(--ps-gold-core-cut);
}

html:root #sticky-playstyles .sticky-playstyle-slot.silver-signature .sticker-emblem::before,
html:root #sticky-playstyles .sticky-playstyle-slot.selected .sticker-emblem::before {
  clip-path: var(--ps-silver-frame-cut);
}

html:root #sticky-playstyles .sticky-playstyle-slot.silver-signature .sticker-emblem::after,
html:root #sticky-playstyles .sticky-playstyle-slot.selected .sticker-emblem::after {
  clip-path: var(--ps-silver-core-cut);
}

html:root #sticky-playstyles .sticky-playstyle-slot .sticker-emblem :is(img,svg) {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  object-fit: contain;
  color: #f4f1e9;
  transform: none;
  filter: brightness(0) invert(1) drop-shadow(0 1px 0 rgba(0,0,0,.45));
}

html:root #sticky-playstyles .sticker-emblem img[src$="icontrait16.png"] {
  transform: translateY(2px);
}

html:root #equipment-summary .spec-button .spec-name {
  z-index: 4;
  width: max-content;
  min-width: 48px;
  max-width: 66px;
  min-height: 18px;
  margin-top: -13px;
  padding: 3px 6px;
  border: 1px solid color-mix(in srgb,var(--pencil-soft) 75%,transparent);
  border-radius: 2px;
  background: var(--ps-label-mark,linear-gradient(transparent,transparent)),
    var(--paper-raised) var(--paper-grain);
  background-blend-mode: normal,normal;
  box-shadow: 0 1px 0 rgba(255,255,255,.65),0 3px 3px rgba(59,48,33,.22);
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.25;
  transform: rotate(calc(var(--patch-angle) * .35));
  clip-path: var(--ps-label-cut);
}

html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot.filled::after,
html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot.selected::after {
  position: absolute;
  z-index: 5;
  inset: 2px 5px auto auto;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid color-mix(in srgb,var(--brand-green-dark) 35%,var(--paper-raised));
  border-radius: 50%;
  background: var(--paper-raised);
  box-shadow: 0 1px 1px rgba(55,45,31,.18);
  color: var(--brand-green-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  content: none;
}

html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot:hover:not(:disabled) {
  background: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}

html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot:hover:not(:disabled) .sticker-emblem {
  filter: drop-shadow(0 4px 3px rgba(46,37,26,.29));
}

html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot:active:not(:disabled) {
  transform: translateY(1px);
}

html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot:active:not(:disabled) .sticker-emblem {
  filter: drop-shadow(0 1px 1px rgba(46,37,26,.2));
}

html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot.empty:not(.selected) {
  width: 62px;
  height: 62px;
  min-height: 62px;
  align-self: flex-start;
  gap: 0;
  margin-top: 2px;
  padding: 0;
  border: 1px dashed var(--pencil-strong);
  background: transparent;
  color: var(--ink-muted);
}

html:root #equipment-summary .specialization-list {
  gap: 8px;
}

html:root #equipment-summary .spec-button {
  height: 96px;
  min-height: 96px;
  padding: 2px 0 6px;
  overflow: visible;
  transition: transform .14s ease;
}

html:root #equipment-summary .spec-button .specialization-diamond {
  --ps-frame: var(--ps-gold-frame);
  --ps-highlight: var(--ps-gold-highlight);
  --ps-shadow: var(--ps-gold-shadow);
  --ps-core: var(--ps-gold-core);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: var(--ps-sticker-display-size,var(--ps-sticker-size));
  height: var(--ps-sticker-display-size,var(--ps-sticker-size));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  clip-path: var(--ps-gold-cut);
  color: #f4f1e9;
  transform: rotate(var(--patch-angle,-1deg));
  filter: drop-shadow(0 3px 2px rgba(46,37,26,.24));
  transition: filter .14s ease;
}

html:root #equipment-summary .spec-button .specialization-diamond::before,
html:root #equipment-summary .spec-button .specialization-diamond::after {
  content: '';
  position: absolute;
  display: block;
  pointer-events: none;
}

html:root #equipment-summary .spec-button .specialization-diamond::before {
  inset: var(--ps-sticker-frame-inset);
  z-index: 0;
  clip-path: var(--ps-gold-frame-cut);
}

html:root #equipment-summary .spec-button .specialization-diamond::after {
  inset: var(--ps-sticker-display-core-inset,var(--ps-sticker-core-inset));
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1),inset 2px 3px 5px rgba(0,0,0,.38);
  clip-path: var(--ps-gold-core-cut);
}

html:root #equipment-summary .spec-button .specialization-diamond :is(img,svg) {
  position: relative;
  z-index: 2;
  width: var(--ps-sticker-display-icon-size,var(--ps-sticker-icon-size));
  height: var(--ps-sticker-display-icon-size,var(--ps-sticker-icon-size));
  padding: 0;
  object-fit: contain;
  color: #f4f1e9;
  transform: none;
  filter: brightness(0) invert(1) drop-shadow(0 1px 0 rgba(0,0,0,.45));
}

html:root #equipment-summary .spec-button.active::after {
  content: '✓';
  position: absolute;
  z-index: 5;
  inset: 2px 5px auto auto;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid color-mix(in srgb,var(--brand-green-dark) 35%,var(--paper-raised));
  border-radius: 50%;
  background: var(--paper-raised);
  box-shadow: 0 1px 1px rgba(55,45,31,.18);
  color: var(--brand-green-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

html:root #equipment-summary .spec-button:hover:not(:disabled) {
  background: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}

html:root #equipment-summary .spec-button:hover:not(:disabled) .specialization-diamond {
  filter: drop-shadow(0 4px 3px rgba(46,37,26,.29));
}

html:root #equipment-summary .spec-button:active:not(:disabled) {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  transform: translateY(1px);
}

html:root #equipment-summary .spec-button:active:not(:disabled) .specialization-diamond {
  filter: drop-shadow(0 1px 1px rgba(46,37,26,.2));
}

html:root #equipment-summary .specialization-list {
  position: relative;
  overflow: visible;
}

html:root #equipment-summary .spec-button {
  z-index: 0;
}

html:root #equipment-summary .spec-button:is(:hover,:focus-visible,:focus-within) {
  z-index: 2101;
}

html:root #equipment-summary .summary-specialization-panel:has(.spec-button:is(:hover,:focus-visible,:focus-within)) {
  z-index: 2100;
}

html:root #equipment-summary:has(.spec-button:is(:hover,:focus-visible,:focus-within)) {
  position: relative;
  z-index: 2100;
}

html:root #equipment-summary .specialization-tooltip {
  z-index: 2102;
}

html:root #equipment-summary .live-granted-playstyles {
  display: contents;
}

html:root #equipment-summary .live-granted-playstyles[hidden],
html:root #equipment-summary .live-granted-playstyles > .facility-playstyle-row[hidden] {
  display: none !important;
}

html:root #equipment-summary .live-granted-playstyles > .facility-playstyle-row,
html:root #equipment-summary .live-granted-playstyles .facility-playstyle-list {
  display: contents;
}

html:root #equipment-summary .live-granted-playstyles .facility-playstyle-card {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 66px;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 0;
  padding: 0 1px 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

html:root #equipment-summary .live-granted-playstyles .grant-source-amp.amp-tier-3 {
  --grant-label-color: #e5d7f4;
}

html:root #equipment-summary .live-granted-playstyles .grant-source-amp.amp-tier-4 {
  --grant-label-color: #f3c184;
}

html:root #equipment-summary .live-granted-playstyles .grant-source-facility {
  --grant-label-color: #cdeaf7;
}

html:root :is(#equipment-summary .live-granted-playstyles,#facility-modal) .facility-playstyle-icon {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #f4f1e9;
  transform: rotate(-.75deg);
  filter: drop-shadow(0 3px 2px rgba(46,37,26,.24));
}

html:root :is(#equipment-summary .live-granted-playstyles,#facility-modal) .gold-icon-shape.facility-playstyle-icon {
  --ps-frame: var(--ps-gold-frame);
  --ps-highlight: var(--ps-gold-highlight);
  --ps-shadow: var(--ps-gold-shadow);
  --ps-core: var(--ps-gold-core);
  clip-path: var(--ps-gold-cut);
}

html:root :is(#equipment-summary .live-granted-playstyles,#facility-modal) .silver-icon-shape.facility-playstyle-icon {
  --ps-frame: var(--ps-silver-frame);
  --ps-highlight: var(--ps-silver-highlight);
  --ps-shadow: var(--ps-silver-shadow);
  --ps-core: var(--ps-silver-core);
  --ps-silver-cut: polygon(50% 0,100% 50%,50% 100%,0 50%);
  --ps-silver-frame-cut: var(--ps-silver-cut);
  --ps-silver-core-cut: var(--ps-silver-cut);
  clip-path: var(--ps-silver-cut);
  transform: none;
}

html:root :is(#equipment-summary .live-granted-playstyles,#facility-modal) .facility-playstyle-icon::before,
html:root :is(#equipment-summary .live-granted-playstyles,#facility-modal) .facility-playstyle-icon::after {
  content: '';
  position: absolute;
  display: block;
  pointer-events: none;
}

html:root :is(#equipment-summary .live-granted-playstyles,#facility-modal) .facility-playstyle-icon::before {
  inset: 3px;
  z-index: 0;
}

html:root :is(#equipment-summary .live-granted-playstyles,#facility-modal) .facility-playstyle-icon::after {
  inset: 8px;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1),inset 2px 3px 5px rgba(0,0,0,.38);
}

html:root :is(#equipment-summary .live-granted-playstyles,#facility-modal) .gold-icon-shape.facility-playstyle-icon::before {
  clip-path: var(--ps-gold-frame-cut);
}

html:root :is(#equipment-summary .live-granted-playstyles,#facility-modal) .gold-icon-shape.facility-playstyle-icon::after {
  clip-path: var(--ps-gold-core-cut);
}

html:root :is(#equipment-summary .live-granted-playstyles,#facility-modal) .silver-icon-shape.facility-playstyle-icon::before {
  clip-path: var(--ps-silver-frame-cut);
}

html:root :is(#equipment-summary .live-granted-playstyles,#facility-modal) .silver-icon-shape.facility-playstyle-icon::after {
  clip-path: var(--ps-silver-core-cut);
}

html:root :is(#equipment-summary .live-granted-playstyles,#facility-modal) .facility-playstyle-icon :is(img,svg) {
  position: relative;
  z-index: 2;
  display: block;
  width: 28px;
  height: 28px;
  padding: 0;
  object-fit: contain;
  color: #f4f1e9;
  transform: none;
  filter: brightness(0) invert(1) drop-shadow(0 1px 0 rgba(0,0,0,.45));
}

html:root #equipment-summary .live-granted-playstyles .facility-playstyle-card > span:last-child {
  position: relative;
  z-index: 4;
  display: block;
  width: max-content;
  min-width: 44px;
  max-width: 64px;
  min-height: 17px;
  margin-top: -10px;
  padding: 2px 4px;
  border: 1px solid color-mix(in srgb,var(--pencil-soft) 75%,transparent);
  border-radius: 2px;
  background: var(--grant-label-color,var(--paper-raised)) var(--paper-grain);
  background-blend-mode: normal;
  box-shadow: 0 1px 0 rgba(255,255,255,.65),0 3px 3px rgba(59,48,33,.22);
  clip-path: var(--ps-label-cut);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

html:root #equipment-summary .live-granted-playstyles .facility-playstyle-card::after {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 3px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid color-mix(in srgb,var(--brand-green-dark) 35%,var(--paper-raised));
  border-radius: 50%;
  background: var(--paper-raised);
  color: var(--brand-green-dark);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

html:root #facility-modal .facility-row-right .facility-playstyle-icon {
  width: 46px;
  height: 46px;
  transform: none;
}

html:root #facility-modal .facility-row-right .facility-playstyle-icon :is(img,svg) {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transform: translateY(1px);
}

html:root #facility-modal .facility-level-playstyle {
  min-height: 52px;
}

html:root #facility-modal .facility-level-playstyle .facility-playstyle-icon {
  width: 46px;
  height: 46px;
  transform: none;
}

html:root #facility-modal .facility-level-playstyle .facility-playstyle-icon :is(img,svg) {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transform: translateY(1px);
}

html:root #playstyle-modal .playstyle-option {
  position: relative;
  min-height: 132px;
  padding: 8px 4px;
  gap: 4px;
  border: 0;
  border-radius: 4px;
  color: var(--text);
  background: var(--surface-card);
  transition: transform .14s ease,background-color .14s ease,border-color .14s ease;
}

html:root #playstyle-modal.playstyle-modal .playstyle-option.selected {
  border-color: var(--pencil-strong);
  background: var(--surface-card);
  box-shadow: none;
}

html:root #playstyle-modal .playstyle-option.selected::after {
  content: '✓';
  position: absolute;
  z-index: 5;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid color-mix(in srgb,var(--brand-green-dark) 35%,var(--paper-raised));
  border-radius: 50%;
  background: var(--paper-raised);
  color: var(--brand-green-dark);
  font-size: 11px;
  font-weight: 900;
}

html:root #playstyle-modal .playstyle-option:not(.unavailable):hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  transform: translateY(-1px);
}

html:root #playstyle-modal .playstyle-option:not(.unavailable):active {
  transform: translateY(1px);
}

html:root #playstyle-modal .option-icon {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #f4f1e9;
  transform: none;
  box-shadow: none;
  filter: drop-shadow(0 3px 2px rgba(46,37,26,.24));
  opacity: 1;
}

html:root #playstyle-modal .plus-option .option-icon {
  --ps-frame: var(--ps-gold-frame);
  --ps-highlight: var(--ps-gold-highlight);
  --ps-shadow: var(--ps-gold-shadow);
  --ps-core: var(--ps-gold-core);
  clip-path: var(--ps-gold-cut);
}

html:root #playstyle-modal .silver-option .option-icon {
  --ps-frame: var(--ps-silver-frame);
  --ps-highlight: var(--ps-silver-highlight);
  --ps-shadow: var(--ps-silver-shadow);
  --ps-core: var(--ps-silver-core);
  clip-path: var(--ps-silver-cut);
}

html:root #playstyle-modal .option-icon::before,
html:root #playstyle-modal .option-icon::after {
  content: '';
  position: absolute;
  display: block;
  pointer-events: none;
}

html:root #playstyle-modal .option-icon::before {
  inset: 3px;
  z-index: 0;
  filter: none;
}

html:root #playstyle-modal .option-icon::after {
  inset: 10px;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 2px 3px 5px rgba(0,0,0,.38);
}

html:root #playstyle-modal .plus-option .option-icon::before {
  clip-path: var(--ps-gold-frame-cut);
}

html:root #playstyle-modal .plus-option .option-icon::after {
  clip-path: var(--ps-gold-core-cut);
}

html:root #playstyle-modal .silver-option .option-icon::before {
  clip-path: var(--ps-silver-frame-cut);
}

html:root #playstyle-modal .silver-option .option-icon::after {
  clip-path: var(--ps-silver-core-cut);
}

html:root #playstyle-modal .option-icon :is(img,svg) {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  object-fit: contain;
  transform: none;
  filter: brightness(0) invert(1) drop-shadow(0 1px 0 rgba(0,0,0,.45));
}

html:root #playstyle-modal :is([data-select-silver-playstyle="16"],[data-select-gold-playstyle="16"]) .option-icon :is(img,svg) {
  transform: translateY(3px);
}

html:root #playstyle-modal.playstyle-modal .playstyle-option-name {
  position: relative;
  z-index: 3;
  min-width: 48px;
  min-height: 18px;
  margin-top: -12px;
  padding: 3px 6px;
  border: 1px solid color-mix(in srgb,var(--pencil-soft) 75%,transparent);
  border-radius: 2px;
  background: var(--ps-label-mark,linear-gradient(transparent,transparent)),
    var(--paper-raised) var(--paper-grain);
  background-blend-mode: normal,normal;
  box-shadow: 0 1px 0 rgba(255,255,255,.65),0 3px 3px rgba(59,48,33,.22);
  clip-path: var(--ps-label-cut);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
}

html:root #playstyle-modal.playstyle-modal .playstyle-option.selected .playstyle-option-name {
  --ps-label-mark: linear-gradient(transparent 46%,var(--highlighter-yellow-soft) 46% 88%,transparent 88%);
}

html:root #playstyle-modal .playstyle-option-status {
  font-size: 11px;
  color: var(--muted);
}

html:root #playstyle-modal .playstyle-option {
  z-index: 0;
}

html:root #playstyle-modal .playstyle-option:is(:hover,:focus-visible,:focus-within) {
  z-index: 1000;
}

html:root #playstyle-modal .playstyle-tooltip {
  z-index: 1001;
  max-width: min(300px,var(--playstyle-tooltip-available-width,300px));
  max-height: var(--playstyle-tooltip-available-height,none);
  overflow-y: var(--playstyle-tooltip-overflow,visible);
  overscroll-behavior: contain;
  pointer-events: auto;
}

@media (max-width: 1200px) and (min-width: 801px) {
  html:root #equipment-summary {
    padding: 15px 10px;
  }

  html:root #equipment-summary > .panel {
    padding: 12px 8px;
  }

  html:root #equipment-summary .sticker-emblem {
    width: 82px;
    height: 82px;
    padding: 20px;
  }

  html:root #equipment-summary .sticker-emblem :is(img,svg) {
    width: 43px;
    height: 43px;
  }

  html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot {
    height: auto;
    min-height: 82px;
  }

  html:root #equipment-summary #sticky-playstyles .sticker-emblem {
    width: 62px;
    height: 62px;
    padding: 0;
  }

  html:root #equipment-summary #sticky-playstyles .sticker-emblem :is(img,svg) {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 800px) {
  html:root #equipment-summary {
    width: 100%;
    max-width: none;
    padding: 16px 12px;
  }
}

@media (max-width: 400px) {
  html:root #equipment-summary .sticky-playstyle-slot .sticker-emblem {
    width: 78px;
    height: 78px;
    padding: 18px;
  }

  html:root #equipment-summary .sticky-playstyle-slot .sticker-emblem :is(img,svg) {
    width: 42px;
    height: 42px;
  }

  html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot .sticker-emblem {
    width: 62px;
    height: 62px;
    padding: 0;
  }

  html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot .sticker-emblem :is(img,svg) {
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 1220px) {
  html:root #equipment-summary {
    gap: 6px;
    padding: 10px;
  }

  html:root #equipment-summary > .rail-heading {
    min-height: 0;
    margin-bottom: 2px;
    padding-bottom: 8px;
  }

  html:root #equipment-summary > .rail-heading h2 {
    padding: 4px 11px 5px;
    font-size: 19px;
  }

  html:root #equipment-summary > .rail-heading p {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.35;
  }

  html:root #equipment-summary > .panel {
    padding: 8px 7px;
  }

  html:root #equipment-summary .panel-title-row {
    margin-bottom: 5px;
    gap: 5px;
  }

  html:root #equipment-summary :is(.panel h2,.settings-summary-copy > strong) {
    font-size: 12px;
  }

  html:root #equipment-summary .equipment-reset-action {
    min-height: 27px;
    padding: 4px 6px;
    gap: 4px;
    font-size: 10px;
  }

  html:root #equipment-summary :is(#sticky-playstyles,#specialization-list) {
    --ps-sticker-display-size: 52px;
    --ps-sticker-display-icon-size: 28px;
    --ps-sticker-display-core-inset: 9px;
  }

  html:root #sticky-playstyles {
    --ps-sticker-display-label-min-height: 17px;
    --ps-sticker-display-label-overlap: 11px;
    --ps-sticker-display-label-padding-x: 4px;
    --ps-sticker-display-label-padding-y: 2px;
    --ps-sticker-display-label-font-size: 10.5px;
    gap: 3px;
    padding: 1px 0;
  }

  html:root #sticky-playstyles .sticky-playstyle-slot {
    min-height: 58px;
    padding: 0 0 3px;
  }

  html:root #equipment-summary .sticker-emblem,
html:root #equipment-summary .specialization-diamond {
    width: 46px;
    height: 46px;
    padding: 11px;
  }

  html:root #equipment-summary .sticker-emblem :is(img,svg),
html:root #equipment-summary .specialization-diamond :is(img,svg) {
    width: 25px;
    height: 25px;
  }

  html:root #equipment-summary .spec-name,
  html:root #equipment-summary .sticker-caption {
    margin-top: -5px;
    padding: 2px 4px;
    font-size: 9px;
    line-height: 1.25;
  }

  html:root #sticky-playstyles .sticky-playstyle-slot.empty:not(.selected) {
    min-height: 58px;
  }

  html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot {
    height: auto;
    min-height: 70px;
    padding: 0 0 4px;
  }

  html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot .sticker-emblem {
    width: 52px;
    height: 52px;
    padding: 0;
  }

  html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot .sticker-emblem :is(img,svg) {
    width: 28px;
    height: 28px;
  }

  html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot .sticker-emblem::after {
    inset: 9px;
  }

  html:root #equipment-summary #sticky-playstyles .sticky-playstyle-slot.empty:not(.selected) {
    width: 52px;
    height: 52px;
    min-height: 52px;
    margin-top: 0;
    padding: 0;
  }

  html:root #equipment-summary .specialization-list {
    gap: 4px;
  }

  html:root #equipment-summary .spec-button {
    height: 84px;
    min-height: 84px;
    padding: 0 0 4px;
  }

  html:root #equipment-summary .spec-button .spec-name {
    min-width: 48px;
    max-width: 66px;
    min-height: 17px;
    margin-top: -11px;
    padding: 2px 4px;
    font-size: 10.5px;
    line-height: 1.25;
  }

  html:root #equipment-summary .settings-summary-list {
    gap: 5px;
  }

  html:root #equipment-summary .settings-summary-row {
    grid-template-columns: 34px minmax(0,1fr) auto 10px;
    gap: 5px;
    min-height: 44px;
    padding: 4px 5px 4px 3px;
  }

  html:root #equipment-summary .settings-summary-icon {
    width: 34px;
    height: 34px;
    padding: 8px;
  }

  html:root #equipment-summary .settings-summary-icon svg {
    width: 18px;
    height: 18px;
  }

  html:root #equipment-summary .settings-summary-copy {
    gap: 1px;
  }

  html:root #equipment-summary .settings-summary-copy small {
    font-size: 9px;
    line-height: 1.25;
  }

  html:root #equipment-summary .settings-summary-value {
    font-size: 12.5px;
  }

  html:root #equipment-summary #amp-button {
    grid-template-columns: 34px minmax(0,1fr) auto 10px;
    row-gap: 0;
  }

  html:root #amp-summary-slots {
    grid-column: 3;
    grid-row: 1;
    grid-template-columns: repeat(3,26px);
    width: auto;
    gap: 2px;
    padding: 0;
  }

  html:root #equipment-summary .amp-mini-slot .sticker-emblem {
    width: 26px;
    height: 26px;
    padding: 6px;
  }

  html:root #equipment-summary .amp-mini-slot .sticker-emblem svg {
    width: 14px;
    height: 14px;
  }

  html:root #equipment-summary .amp-mini-slot > strong {
    top: -3px;
    right: -3px;
    padding: 0 2px;
    font-size: 7px;
  }

  html:root #equipment-summary .amp-mini-slot .sticker-caption {
    display: none;
  }

  html:root #equipment-summary .perk-row {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 5px;
  }

  html:root #equipment-summary .perk-chip {
    grid-template-columns: minmax(0,1fr);
    min-height: 44px;
    padding: 4px;
  }

  html:root #equipment-summary .perk-chip-name {
    font-size: 14px;
  }

  html:root #equipment-summary .perk-range {
    font-size: 11.2px;
  }
}

html:root[data-theme="dark"] #equipment-summary .spec-button .spec-name {
  color: var(--ink-strong);
}

html:root[data-theme="dark"] #equipment-summary .live-granted-playstyles .facility-playstyle-card > span:last-child {
  --grant-label-color: var(--paper-raised);
  color: var(--ink-strong);
}

html:root #equipment-summary > .rail-heading h2 {
  width: 100%;
  padding: 0;
  background: transparent;
  clip-path: none;
  transform: none;
}

html:root #equipment-summary .equipment-drawer-toggle {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 2px 4px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

html:root #equipment-summary .equipment-drawer-toggle > span {
  position: relative;
  isolation: isolate;
  padding: 4px 7px 5px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.055em;
  white-space: nowrap;
}

html:root #equipment-summary .equipment-drawer-toggle > span::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto 3px var(--title-marker-bottom);
  height: var(--title-marker-height);
  background: var(--title-marker-color);
  transform: rotate(var(--title-marker-angle));
  pointer-events: none;
}

html:root #equipment-summary .equipment-drawer-toggle > svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--ink-muted);
  stroke-width: 2.4;
}

html:root #equipment-summary .equipment-drawer-toggle:hover {
  background: var(--paper-raised);
}

html:root #equipment-summary.equipment-drawer-collapsed > .rail-heading {
  margin-bottom: 0;
  padding-bottom: 5px;
}

html:root #equipment-summary.equipment-drawer-collapsed .equipment-drawer-toggle {
  min-height: 28px;
  gap: 2px;
  padding-inline: 0;
}

html:root #equipment-summary.equipment-drawer-collapsed .equipment-drawer-toggle > span {
  padding-inline: 2px;
  font-size: 12px;
}

html:root #equipment-summary.equipment-drawer-collapsed .equipment-drawer-toggle > svg {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

html:root #equipment-summary.equipment-drawer-collapsed > .summary-specialization-panel,
html:root #equipment-summary.equipment-drawer-collapsed > .build-settings-summary-panel,
html:root #equipment-summary.equipment-drawer-collapsed > .summary-signature-perks-panel {
  display: none;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-playstyle-heading {
  justify-content: center;
  margin-bottom: 3px;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-playstyle-heading h2 {
  font-size: 9px;
  letter-spacing: -.04em;
}

html:root #equipment-summary.equipment-drawer-collapsed #sticky-playstyles .sticky-playstyle-slot.empty:not(.selected) {
  padding: 2px;
  border-radius: var(--radius-xs);
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
}

html:root #equipment-summary.equipment-drawer-collapsed #sticky-playstyles .sticky-playstyle-slot .sticker-emblem {
  padding: 0;
}

html:root #equipment-summary.equipment-drawer-collapsed #sticky-playstyles {
  --ps-sticker-display-size: 52px;
  --ps-sticker-display-icon-size: 31px;
  --ps-sticker-display-core-inset: 8px;
  --ps-sticker-label-display: none;
}

html:root #equipment-summary.equipment-drawer-collapsed #sticky-playstyles .sticky-playstyle-slot.filled::after,
html:root #equipment-summary.equipment-drawer-collapsed #sticky-playstyles .sticky-playstyle-slot.selected::after {
  inset: 1px 2px auto auto;
  width: 12px;
  height: 12px;
  font-size: 8px;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-granted-playstyles {
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin-top: 4px;
  padding-top: 4px;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-granted-playstyles .facility-playstyle-card {
  padding: 2px;
  justify-content: center;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-granted-playstyles .facility-playstyle-icon {
  flex: 0 0 auto;
  pointer-events: none;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-granted-playstyles .facility-playstyle-card > span:last-child {
  display: none;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-granted-playstyles .facility-playstyle-card::after {
  top: 1px;
  right: 2px;
  width: 12px;
  height: 12px;
  font-size: 8px;
}

@media (max-width: 800px) {
  html:root #equipment-summary.equipment-drawer-collapsed #sticky-playstyles,
html:root #equipment-summary.equipment-drawer-collapsed .live-granted-playstyles {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html:root #equipment-summary,
html:root #equipment-summary .equipment-drawer-toggle > svg {
    transition: none;
  }
}

html:root #equipment-summary .live-granted-playstyles .facility-playstyle-card::after {
  content: none;
}

html:root #sticky-playstyles .sticky-playstyle-slot .sticker-emblem,
html:root :is(#equipment-summary .live-granted-playstyles,#facility-modal) .facility-playstyle-icon,
html:root #playstyle-modal .option-icon,
html:root #equipment-summary .spec-button .specialization-diamond {
  background: var(--ps-sticker-edge) var(--paper-grain);
  background-blend-mode: normal;
}

html:root #sticky-playstyles .sticky-playstyle-slot .sticker-emblem::before,
html:root :is(#equipment-summary .live-granted-playstyles,#facility-modal) .facility-playstyle-icon::before,
html:root #playstyle-modal .option-icon::before,
html:root #equipment-summary .spec-button .specialization-diamond::before {
  background: linear-gradient(135deg,var(--ps-highlight) 0 22%,var(--ps-frame) 44% 69%,var(--ps-shadow) 100%);
  background-blend-mode: normal;
}

html:root #sticky-playstyles .sticky-playstyle-slot .sticker-emblem::after,
html:root :is(#equipment-summary .live-granted-playstyles,#facility-modal) .facility-playstyle-icon::after,
html:root #playstyle-modal .option-icon::after,
html:root #equipment-summary .spec-button .specialization-diamond::after {
  background: var(--ps-core);
  background-image: none;
  background-blend-mode: normal;
}

html:root #equipment-summary .spec-button .spec-name {
  --ps-label-mark: linear-gradient(var(--highlighter-yellow-soft),var(--highlighter-yellow-soft));
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

html:root #equipment-summary.equipment-drawer-collapsed #sticky-playstyles .sticky-playstyle-slot {
  padding: 2px;
  border-radius: var(--radius-xs);
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
}

html:root #playstyle-modal.playstyle-modal .playstyle-option-name {
  width: max-content;
  max-width: none;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

html:root .mastery-modal-backdrop,
html:root .amp-modal-backdrop,
html:root .playstyle-modal-backdrop,
html:root .facility-modal-backdrop {
  background: rgba(42,38,32,.36);
  backdrop-filter: blur(2px);
}

html:root .mastery-modal-panel,
html:root .amp-modal-panel,
html:root .playstyle-modal-panel,
html:root .facility-modal-panel {
  --text: var(--ink-strong);
  --muted: var(--ink-muted);
  --subtle: var(--ink-subtle);
  --panel: var(--paper-main);
  --surface-card: var(--paper-main);
  --surface-board: var(--paper-main);
  --surface-raised: var(--paper-raised);
  --input-bg: var(--paper-raised);
  --line: var(--pencil-soft);
  --line-strong: var(--pencil-strong);
  background: var(--paper-main);
  color: var(--text);
  border-color: var(--pencil-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
}

html:root .mastery-modal-header,
html:root .amp-modal-header,
html:root .playstyle-modal-header,
html:root .facility-modal-header {
  background: transparent;
  border-color: var(--pencil-soft);
  box-shadow: none;
}

html:root .mastery-modal-header h2,
html:root .amp-modal-header h2,
html:root .playstyle-modal-header h2,
html:root .facility-modal-header h2 {
  color: var(--ink-strong);
  transform: none;
}

html:root :is(#amp-modal,#facility-modal) select option {
  background: var(--paper-raised);
  color: var(--ink-strong);
}

html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .mastery-row,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .amp-standard-editor,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .signature-amp-card,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .signature-amp-preview,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .facility-item,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .facility-level-card,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .playstyle-option {
  background: var(--paper-main);
  color: var(--ink-strong);
  border-color: var(--pencil-soft);
  border-radius: var(--radius-sm);
  box-shadow: none;
}

html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .amp-slot-tab {
  border-radius: var(--radius-sm);
}

html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .mastery-level-button,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .amp-tier-tab,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .amp-slot-tab,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .budget-option-button {
  background: var(--paper-raised);
  border-color: var(--pencil-soft);
  color: var(--ink-muted);
  box-shadow: none;
  transition: background-color 60ms ease-out, border-color 60ms ease-out, color 60ms ease-out;
}

html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .mastery-level-button:hover:not(:disabled,.active,.selected),
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .amp-tier-tab:hover:not(:disabled,.active,.selected),
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .amp-slot-tab:hover:not(:disabled,.active,.selected),
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .budget-option-button:hover:not(:disabled,.active,.selected),
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .signature-amp-card:hover:not(:disabled,.active,.selected),
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .facility-level-card:hover:not(:disabled,.active,.selected),
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .playstyle-option:hover:not(:disabled,.active,.selected) {
  background: var(--paper-raised);
  border-color: var(--pencil-strong);
  box-shadow: none;
}

html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .active.mastery-level-button,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .active.amp-tier-tab,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .active.amp-slot-tab,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .active.budget-option-button,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .active.signature-amp-card,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .active.facility-level-card,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .active.playstyle-option,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .selected.mastery-level-button,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .selected.amp-tier-tab,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .selected.amp-slot-tab,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .selected.budget-option-button,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .selected.signature-amp-card,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .selected.facility-level-card,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .selected.playstyle-option {
  background: var(--highlighter-yellow-soft);
  border-color: var(--pencil-strong);
  color: var(--ink-strong);
  box-shadow: none;
  transition-duration: 60ms;
}

html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .unavailable,
html:root :is(#mastery-modal,#amp-modal,#facility-modal,#playstyle-modal) .locked {
  opacity: .5;
}

html:root #playstyle-modal .playstyle-option.ap-shortage .playstyle-option-status {
  color: var(--danger);
}

html:root #playstyle-modal .playstyle-option.unavailable {
  opacity: 1;
}

html:root #playstyle-modal .playstyle-option.unavailable > :not(.playstyle-tooltip) {
  opacity: .5;
}

html:root #playstyle-modal :is(.playstyle-category h3) {
  color: var(--ink-muted);
}

html:root #playstyle-modal .playstyle-option-name {
  background: var(--paper-raised);
  color: var(--ink-strong);
  clip-path: none;
}

html:root #playstyle-modal .playstyle-option.selected .playstyle-option-name {
  background: var(--highlighter-yellow-soft);
}

html:root :is(#mastery-modal,#amp-modal) .mastery-archetype-icon img,
html:root :is(#mastery-modal,#amp-modal) .signature-amp-affinity-icon img {
  filter: brightness(0);
  opacity: .85;
}

html:root[data-theme="dark"] #mastery-modal .mastery-archetype-icon img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

html:root #mastery-modal .mastery-milestones strong {
  color: var(--ink-strong);
}

html:root #amp-modal .signature-amp-selected {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb,var(--brand-green-dark) 35%,var(--paper-raised));
  border-radius: 50%;
  background: var(--paper-raised);
  box-shadow: 0 1px 1px rgba(55,45,31,.18);
  color: var(--brand-green-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

html:root #amp-modal .signature-amp-affinity-icon.current {
  border-color: var(--pencil-strong);
  background: var(--highlighter-yellow-soft);
}

html:root #amp-modal .affinity-active .signature-amp-affinity-status {
  color: var(--brand-green-dark);
}

html:root #amp-modal .affinity-inactive .signature-amp-affinity-status {
  color: var(--ink-muted);
}

html:root #facility-modal .facility-item.expanded {
  border-color: var(--pencil-strong);
  background: var(--paper-main);
  box-shadow: none;
}

html:root #facility-modal .facility-level-grid,
html:root #facility-modal .facility-modal-budget,
html:root #facility-modal .facility-filter-bar {
  background: var(--paper-muted);
  border-color: var(--pencil-soft);
  box-shadow: none;
}

html:root #facility-modal .facility-level-card.selected {
  background: var(--highlighter-yellow-soft);
}

html:root .playstyle-tooltip,
html:root .signature-perk-tooltip,
html:root .specialization-tooltip {
  background: var(--paper-main);
  color: var(--ink-strong);
  border-color: var(--pencil-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-popover);
}

html:root .playstyle-tooltip::after,
html:root .signature-perk-tooltip::after,
html:root .specialization-tooltip::after {
  background: var(--paper-main);
  border-color: var(--pencil-strong);
}

html:root .playstyle-tooltip .playstyle-tooltip-breakdown,
html:root .playstyle-tooltip .playstyle-tooltip-ap,
html:root .signature-perk-tooltip .playstyle-tooltip-breakdown,
html:root .signature-perk-tooltip .playstyle-tooltip-ap {
  border-color: var(--pencil-soft);
}

html:root .playstyle-tooltip-breakdown-title {
  color: var(--ink-muted);
}

html:root .signature-perk-tooltip-title,
html:root .signature-perk-tooltip-effect {
  color: var(--ink-strong);
}

html:root .playstyle-tooltip em {
  color: var(--danger);
}

html:root[data-theme="dark"] #playstyle-modal .playstyle-option-name,
html:root[data-theme="dark"] #playstyle-modal .playstyle-option.selected .playstyle-option-name {
  background: linear-gradient(104deg,transparent 0 37%,rgba(255,255,255,.08) 39%,rgba(0,0,0,.22) 41%,transparent 44%),
    linear-gradient(15deg,transparent 0 61%,rgba(0,0,0,.22) 63%,rgba(255,255,255,.07) 65%,transparent 68%),
    var(--paper-raised) var(--paper-grain);
  background-blend-mode: screen,multiply,normal;
  color: var(--ink-strong);
}

html:root #equipment-summary .equipment-drawer-summary-toggle {
  display: none;
}

html:root #equipment-summary.equipment-drawer-collapsed {
  display: block;
  min-width: 0;
  height: auto;
  min-height: 69px;
  max-height: none;
  align-self: start;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

html:root #equipment-summary.equipment-drawer-collapsed > .rail-heading {
  display: none;
}

html:root #equipment-summary.equipment-drawer-collapsed > .live-playstyle-panel {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 67px;
  height: auto;
  max-height: none;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
  margin: 0;
  padding: 5px 36px 5px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-width: thin;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-playstyle-heading {
  display: contents;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-playstyle-heading h2,
html:root #equipment-summary.equipment-drawer-collapsed .live-playstyle-reset {
  display: none;
}

html:root #equipment-summary.equipment-drawer-collapsed .equipment-drawer-summary-toggle {
  position: absolute;
  z-index: 8;
  top: 50%;
  right: 6px;
  display: grid;
  width: 26px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-xs);
  background: var(--paper-main);
  color: var(--text);
  transform: translateY(-50%);
}

html:root #equipment-summary.equipment-drawer-collapsed .equipment-drawer-summary-toggle:hover {
  background: var(--paper-raised);
}

html:root #equipment-summary.equipment-drawer-collapsed .equipment-drawer-summary-toggle > svg {
  width: 16px;
  height: 16px;
}

html:root #equipment-summary.equipment-drawer-collapsed .sticky-build-bar {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

html:root #equipment-summary.equipment-drawer-collapsed #sticky-playstyles {
  display: contents;
}

html:root #equipment-summary.equipment-drawer-collapsed #sticky-playstyles .sticky-playstyle-slot .sticker-emblem {
  width: 52px;
  height: 52px;
}

html:root #equipment-summary.equipment-drawer-collapsed #sticky-playstyles .sticky-playstyle-slot .sticker-emblem::after {
  inset: 8px;
}

html:root #equipment-summary.equipment-drawer-collapsed #sticky-playstyles .sticky-playstyle-slot .sticker-emblem :is(img,svg) {
  width: 31px;
  height: 31px;
}

html:root #equipment-summary.equipment-drawer-collapsed #sticky-playstyles .sticky-playstyle-slot.empty:not(.selected) > svg {
  width: 18px;
  height: 18px;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-granted-playstyles {
  display: contents;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-granted-playstyles[hidden],
html:root #equipment-summary.equipment-drawer-collapsed .live-granted-playstyles > .facility-playstyle-row[hidden] {
  display: none !important;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-granted-playstyles > .facility-playstyle-row,
html:root #equipment-summary.equipment-drawer-collapsed .live-granted-playstyles .facility-playstyle-list {
  display: contents;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-granted-playstyles .facility-playstyle-card {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 66px;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-granted-playstyles .facility-playstyle-icon {
  width: 52px;
  height: 52px;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-granted-playstyles .facility-playstyle-icon::after {
  inset: 8px;
}

html:root #equipment-summary.equipment-drawer-collapsed .live-granted-playstyles .facility-playstyle-icon :is(img,svg) {
  width: 31px;
  height: 31px;
}

@media (min-width: 801px) and (max-width: 1279px) {
  html:root .builder-stage.profile-drawer-collapsed > #equipment-summary,
html:root .builder-stage.equipment-drawer-collapsed > #equipment-summary {
    margin-top: 14px;
  }
}
