/* Fighter development is one scrollable portrait workspace. The original data and actions stay in place. */
html.survival-portrait body #start_kit_pet.popup.pet-profile-open > .pet-profile-menu {
  position: absolute !important;
  top: 78px !important;
  left: 9px !important;
  right: 9px !important;
  width: auto !important;
  height: 35px !important;
  transform: none !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: 34px !important;
  gap: 5px !important;
  z-index: 147 !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open > .pet-profile-menu > .btn {
  position: static !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  transform: none !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 34px !important;
  padding: 0 1px !important;
  overflow: hidden !important;
  background: url('../img/ui/survival/kit/button_secondary.webp') center / 100% 100% no-repeat !important;
  border: 1px solid #6e878a !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #e6eae4 !important;
  font: 800 9px/11px var(--br-display) !important;
  display: flex; align-items: center; justify-content: center;
  text-align: center !important;
  text-overflow: ellipsis !important;
  text-shadow: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open > .pet-profile-menu > .btn.active {
  background: url('../img/ui/survival/kit/button_primary.webp') center / 100% 100% no-repeat !important;
  border-color: #f0c392 !important;
  color: #132228 !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open > .pet-artefact-balances:not(.hide) {
  top: 117px !important;
  left: 9px !important;
  right: 9px !important;
  width: auto !important;
  height: 27px !important;
  justify-content: center !important;
  gap: 5px !important;
  z-index: 145 !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open > .pet-artefact-balances .pet-artefact-balance {
  color: #e4e8df !important;
  font: 800 12px/25px var(--br-display) !important;
  text-shadow: none !important;
}

html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: visible !important;
}


html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-stats {
  position: absolute !important;
  inset: auto 3px 2px 3px;
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: stretch;
  gap: 2px;
  height: auto !important;
}

html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-stats > div .pic24 {
  width: 15px !important;
  height: 15px !important;
  grid-row: span 2;
  flex: 0 0 15px !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-stats b {
  margin-left: 0 !important;
  grid-column: 2;
  color: #f6d29d !important;
  font-size: 14px !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-abilities {
  display: flex;
  flex-direction: column;
  gap: 6px !important;
  min-width: 0 !important;
  overflow: visible !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-abilities > .h2 {
  margin: 2px 0 0 !important;
  color: #f3e8d6 !important;
  font: 800 15px/20px var(--br-display) !important;
  text-align: left !important;
  text-shadow: none !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-stars {
  flex: 0 0 auto !important;
  height: 22px !important;
  margin: 0 !important;
  justify-content: flex-start !important;
  gap: 3px !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-stars .pet-star {
  width: 20px !important;
  height: 20px !important;
  background-image: none !important;
  background-color: #445a60 !important;
  clip-path: polygon(50% 0, 62% 35%, 100% 37%, 70% 60%, 80% 100%, 50% 77%, 20% 100%, 30% 60%, 0 37%, 38% 35%);
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-stars .pet-star.filled { background-color: #d6a262 !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability-list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: auto !important;
  gap: 5px !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) 51px !important;
  grid-template-rows: auto auto !important;
  grid-template-areas: 'icon title star' 'icon text state' !important;
  gap: 1px 3px !important;
  min-height: 43px !important;
  padding: 4px !important;
  overflow: visible !important;
  background: var(--fighter-card) !important;
  border: 1px solid #6b8387 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #e1e8e4 !important;
  filter: none !important;
  opacity: 1 !important;
  text-align: left !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability.locked { background: var(--fighter-card) !important; color: #b7c6c6 !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability-star {
  position: static !important;
  grid-area: star !important;
  width: auto !important;
  align-self: end !important;
  color: #d5a467 !important;
  font: 800 11px/15px Arial, sans-serif !important;
  text-align: center !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability-icon {
  grid-area: icon !important;
  align-self: center !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  background-size: contain !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability-title {
  grid-area: title !important;
  min-height: 0 !important;
  color: #f2e7d4 !important;
  font: 800 14px/18px var(--br-display) !important;
  overflow-wrap: anywhere !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability-text {
  grid-area: text !important;
  color: #d3dfdd !important;
  font: 12px/15px Arial, sans-serif !important;
  overflow-wrap: anywhere !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability-state {
  grid-area: state !important;
  overflow-wrap: anywhere; text-align: right;
  margin: 0 !important;
  padding: 0 !important;
  color: #c9aa79 !important;
  font: 800 9px/12px Arial, sans-serif !important;
  text-shadow: none !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability.open .pet-profile-ability-state { color: #9ed0a7 !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability .pet-profile-lock {
  top: 7px !important;
  right: 7px !important;
  left: auto !important;
  width: 17px !important;
  height: 17px !important;
  transform: none !important;
  background-image: url('../img/ui/survival/kit/lock.webp') !important;
  display: none !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability-icon.ability-arena_damage,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability-icon.ability-boss_damage,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability-icon.ability-attack,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability-icon.ability-critical_damage { background-image: url('../img/ui/survival/resources/attack.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability-icon.ability-defense { background-image: url('../img/ui/survival/resources/defense.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability-icon.ability-health { background-image: url('../img/ui/survival/resources/health.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability-icon.ability-campaign_damage,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability-icon.ability-event_damage { background-image: url('../img/ui/survival/kit/stat_skills.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-ability-icon.ability-evasion { background-image: url('../img/ui/survival/resources/energy.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-shards {
  flex: 0 0 auto !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 6px !important;
  background: #10252dcf !important;
  border: 1px solid #607b7e !important;
  border-radius: 4px !important;
  color: #e4e9e3 !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-shards-label {
  flex: 1 1 100% !important;
  color: #e1e9e4 !important;
  font: 700 13px/18px var(--br-display) !important;
  white-space: normal !important;
  text-shadow: none !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-shards-bar { min-width: 100px !important; height: 11px !important; background: #071920 !important; border-color: #60777b !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-shards-fill { background: #d59a61 !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-shard-icon { background-image: url('../img/ui/survival/kit/squad_chip.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo) .pet-shard-icon { background-image: url('../img/ui/survival/kit/squad_chip.webp') !important; }

html.survival-portrait #start_kit_pet:has(> .pet-artefact-balances:not(.hide)) > .pet-hero-profile { margin-top: 28px; }
html.survival-portrait #start_kit_pet .pet-artifact-slot.empty .pet-artifact-image {
  display: block;
  background: url('../img/ui/survival/kit/core_processor.webp') center / contain no-repeat;
}
html.survival-portrait #start_kit_pet .pet-skill-detail-back { display: none; }
html.survival-portrait #start_kit_pet.pet-profile-open:not(.pet-skill-detail-open) .pet-skill-detail,
html.survival-portrait #start_kit_pet.pet-skill-detail-open .pet-skill-tree,
html.survival-portrait #start_kit_pet.pet-skill-detail-open .pet-profile-hero { display: none !important; }
html.survival-portrait #start_kit_pet.pet-skill-detail-open .pet-skill-detail-back {
  display: block; align-self: flex-start; border: 0; padding: 6px 14px;
  color: #f7e9d4; font: 700 13px/22px Arial,sans-serif;
  background: url('../img/ui/survival/kit/button_secondary.webp') center / 100% 100% no-repeat;
}
html:not(.survival-portrait) #start_kit_pet .pet-skill-detail-back { display: none; }
html.survival-portrait body #start_kit_pet.popup.pet-skill-detail-open > .pet-profile-menu,
html.survival-portrait body #start_kit_pet.popup.pet-skill-detail-open > .pet-artefact-balances,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-layout.pet-skill-open .pet-profile-stats,
html.survival-portrait body #start_kit_pet .pet-skill-current:empty { display: none !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-layout.pet-skill-open .pet-profile-hero {
  --fighter-summary-height: 76px;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-layout.pet-skill-open .pet-profile-avatar { height: 73px !important; }
html.survival-portrait body #start_kit_pet.popup.pet-skill-detail-open > .pet-hero-profile {
  --fighter-content-top: 76px; margin-top: 0;
}
/* Personal skills: eight floors, three branches and the selected skill remain reachable by vertical scroll. */
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-layout.pet-skill-open { display: flex !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-workspace:not(.hide) {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-tree,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-detail {
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
  background: var(--fighter-card) !important;
  border: 1px solid #617d80 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #e4e9e3 !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-tree { grid-template-rows: repeat(8, auto) auto !important; gap: 4px !important; padding: 5px !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-floor {
  grid-template-columns: 16px repeat(3, minmax(0, 1fr)) !important;
  gap: 4px !important;
  min-height: 37px !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-floor::after { display: none !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-level { min-width: 0 !important; padding: 2px !important; background: var(--fighter-card) !important; border-color: #597477 !important; color: #e2e8e0 !important; font: 800 11px/14px Arial, sans-serif !important; overflow-wrap: anywhere !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-level-label { display: none !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-level-number { display: block !important; font: 800 10px/15px Arial, sans-serif !important; white-space: nowrap; text-align: center !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-node {
  display: grid !important;
  grid-template-columns: 12px minmax(0,1fr);
  grid-template-rows: auto auto;
  align-items: center !important;
  gap: 0 2px !important;
  min-width: 0 !important; min-height: 37px !important;
  padding: 2px !important;
  background: var(--fighter-card) !important;
  color: #f4e9d8 !important;
  border: 1px solid var(--fighter-edge) !important;
  border-radius: 2px !important; box-shadow: none !important;
  filter: none !important; opacity: 1 !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-node.active { border-color: #ecc18c !important; box-shadow: inset 0 0 0 1px #ecc18c !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-node.available,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-node.learned,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-node.training { background: #443521 !important; border-color: #a9ba9e !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image {
  grid-row: span 2;
  width: 12px !important;
  height: 20px !important;
  margin: 0 !important;
  filter: none !important;
}

html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-node-name {
  width: 100% !important;
  padding: 0 !important;
  color: #e6e9df !important;
  font: 700 9px/10px Arial, sans-serif !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  max-width: 100% !important;
  max-height: none !important;
  word-break: break-word !important;
  text-shadow: none !important;
}

html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-node-rank {
  padding: 0 !important;
  color: #d5b488 !important;
  font: 10px/12px Arial, sans-serif !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-node .pet-profile-lock {
  position: absolute !important;
  top: auto !important;
  right: 2px !important;
  bottom: 2px !important;
  left: auto !important;
  width: 9px !important;
  height: 9px !important;
  transform: none !important;
  background-image: url('../img/ui/survival/kit/lock.webp') !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-detail { display: grid; grid-template-columns: 35% minmax(0,1fr); gap: 4px 7px; padding: 9px !important; text-align: left !important; }
html.survival-portrait #start_kit_pet .pet-skill-detail > * { grid-column: 1 / -1; }
html.survival-portrait #start_kit_pet .pet-skill-detail > :is(.pet-skill-title,.pet-skill-rank,.pet-skill-description) { grid-column: 2; align-self: center; }
html.survival-portrait #start_kit_pet .pet-skill-detail > .pet-skill-rank { grid-row: 1; }
html.survival-portrait #start_kit_pet .pet-skill-detail > .pet-skill-title { grid-row: 2; }
html.survival-portrait #start_kit_pet .pet-skill-detail > .pet-skill-description { grid-row: 3; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-detail .pet-skill-image.large { grid-column: 1; grid-row: 1 / 4; align-self: stretch; width: 100% !important; height: auto !important; min-height: 96px; margin: 0 !important; background-position: center; background-size: contain; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-title { color: #f2e7d4 !important; font: 800 15px/19px var(--br-display, Arial), sans-serif !important; text-align: left !important; text-shadow: none !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-description,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-current,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-next {
  color: #dce5df !important;
  font: 12px/15px Arial, sans-serif !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-current,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-next { background: var(--fighter-card) !important; border-color: #567277 !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-detail > .btn { width: 100% !important; max-width: 100% !important; margin: 8px 0 4px !important; background: url('../img/ui/survival/kit/button_primary.webp') center / 100% 100% no-repeat !important; border: 1px solid #ddb489 !important; border-radius: 4px !important; color: #14242a !important; font: 800 13px/36px var(--br-display) !important; text-shadow: none !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-scroll-icon { background-image: url('../img/ui/survival/kit/stat_skills.webp') !important; }

html.survival-portrait #start_kit_pet .skill-cost-label { flex: 1; text-align: left; }
html:not(.survival-portrait) .skill-cost-label, html:not(.survival-portrait) .module-preview-effect { display: none; }
/* Both module workbenches use the live rank, effect and expandable progression. */
html.survival-portrait :is(#start_kit_pet,#heroForge) .pet-artefact-forge-preview .pet-artefact-preview-image {
  display: grid !important;
  grid-template-columns: 29% minmax(0,1fr);
  gap: 2px 7px;
  align-items: center;
  text-align: left;
}
html.survival-portrait :is(#start_kit_pet,#heroForge) .pet-artefact-forge-preview .pet-artefact-preview-image > .pet-artifact-image {
  grid-area: 1 / 1 / 4 / 2;
  justify-self: center;
}
html.survival-portrait :is(#start_kit_pet,#heroForge) .pet-artefact-forge-preview .pet-artefact-preview-image > :is(.pet-artefact-preview-name,.pet-artifact-rank,.module-preview-effect) { grid-column: 2; }
html.survival-portrait :is(#start_kit_pet,#heroForge) .module-preview-effect { color: #e5c992; font-size: 11px; line-height: 14px; }
html.survival-portrait :is(#start_kit_pet,#heroForge) .pet-artefact-forge-preview .pet-artefact-progression { grid-column: 1 / -1; }

/* Combat modules and their workbench use the same scroll path and tactical material palette. */
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-artifacts:not(.hide),
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-workspace:not(.hide) {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open :is(.pet-artifacts-main,.pet-artifacts-inventory,.pet-artefact-work-list,.pet-artefact-work-detail) {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 7px !important;
  overflow: visible !important;
  background: var(--fighter-card) !important;
  border: 1px solid #607d82 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #e3e8e2 !important;
  text-shadow: none !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open :is(.pet-artifacts-main,.pet-artifacts-inventory) > .h2,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-list-title { margin: 0 0 5px !important; padding: 0 0 4px !important; color: #f1e6d4 !important; font: 800 14px/18px var(--br-display) !important; text-align: left !important; text-shadow: none !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-work-list > .pet-artefact-list-title { margin: 0 0 5px !important; padding: 4px 6px !important; background: var(--fighter-card) !important; border-bottom: 1px solid #6d898b !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-list-title::before { display: none !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artifact-slots { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 5px !important; min-height: 0 !important; height: auto !important; overflow: visible !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artifact-slot,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artifact-slot.empty,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artifact-slot.locked,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artifact-slot.equipped {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 75px !important;
  height: auto !important;
  padding: 7px 5px !important;
  background: var(--fighter-card) !important;
  border: 1px solid #69858a !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  color: #e2e8e2 !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artifact-slot .pet-artifact-name {
  color: #f2e6d2 !important;
  font: 700 12px/16px Arial, sans-serif !important;
  overflow-wrap: anywhere !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artifact-slot .pet-artifact-image {
  width: 43px !important;
  height: 43px !important;
  flex-basis: 43px !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artifact-slot > .btn {
  width: 100% !important;
  height: 34px !important;
  margin-top: 5px !important;
  background: #35525a !important;
  border: 1px solid #8fa7a5 !important;
  border-radius: 3px !important;
  color: #f0e8d9 !important;
  font: 700 12px/32px var(--br-display) !important;
  text-shadow: none !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artifact-slot.locked .pet-profile-lock { width: 32px !important; height: 32px !important; background-image: url('../img/ui/survival/kit/lock.webp') !important; filter: none !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artifact-summary,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artifact-note {
  min-height: 0 !important;
  max-height: none !important;
  margin: 5px 0 0 !important;
  padding: 6px !important;
  overflow: visible !important;
  background: var(--fighter-card) !important;
  border: 1px solid #58757a !important;
  color: #e0e7e2 !important;
  font: 12px/15px Arial, sans-serif !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artifact-inventory-list { max-height: 210px !important; overflow-y: auto !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-work-list { max-height: 170px !important; overflow-y: auto !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-work-row {
  min-height: 46px !important;
  margin: 3px 0 !important;
  padding: 5px !important;
  background: var(--fighter-card) !important;
  border: 1px solid #607e83 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #e4e9e1 !important;
  font: 12px/15px Arial, sans-serif !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-work-row.active { border-color: #e0b582 !important; background: #30464a !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-preview,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-preview-info { width: 100% !important; min-width: 0 !important; padding: 6px !important; overflow: visible !important; background: var(--fighter-card) !important; border: 1px solid #5d797e !important; color: #e2e9e1 !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-preview { display: flex !important; flex-direction: column !important; gap: 6px !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-progression { flex: 0 0 auto !important; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: 170px !important; overflow-x: auto !important; overflow-y: auto !important; background: var(--fighter-card) !important; border: 1px solid #5e797e !important; color: #e4e8df !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-work-detail { overflow-x: hidden !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-preview-image { width: 100% !important; min-width: 0 !important; max-width: 100% !important; height: auto !important; padding: 7px !important; overflow: hidden !important; background: var(--fighter-card) !important; border: 1px solid #5b777c !important; border-radius: 3px !important; box-shadow: none !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-preview-name { color: #f2e7d5 !important; font: 800 14px/18px Arial, sans-serif !important; text-shadow: none !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-progression-title { background: var(--fighter-card) !important; border-color: #6a8689 !important; color: #f2e4d1 !important; text-shadow: none !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-effect-panel { background: var(--fighter-card) !important; border-color: #5e7d80 !important; color: #e1e8e2 !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-preview-image .pet-artifact-image { width: 58px !important; height: 58px !important; margin: 5px auto !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-progression table {
  width: 100% !important;
  min-width: 0 !important;
  font-size: 11px !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-balances .ore,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-cost .ore { background-image: url('../img/company/survival/mat_ore.png') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-balances .sulfur,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-cost .sulfur { background-image: url('../img/company/survival/mat_sulfur.png') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-balances .stone_ore,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-cost .stone_ore { background-image: url('../img/company/survival/mat_stone.png') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-balances .crystal,
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-cost .crystal { background-image: url('../img/company/survival/rare_core.png') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-progression th { background: var(--fighter-card) !important; color: #e7e7dc !important; border-color: #6a8689 !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-cost { background: var(--fighter-card) !important; border: 1px solid #607b80 !important; border-image: none !important; color: #e1e8e2 !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-artefact-workspace .btn {
  max-width: 100% !important;
  min-width: 0 !important;
  background: linear-gradient(#bc8958,#7e513b) !important;
  border: 1px solid #e1b686 !important;
  border-radius: 4px !important;
  color: #14252a !important;
  font: 800 13px/34px var(--br-display) !important;
  text-shadow: none !important;
  min-height: 36px !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .coin { background-image: url('../img/ui/survival/resources/credit_steel.webp') !important; }
/* Catalog IDs only choose art; rank, effects and costs remain server-owned. */
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_01.png"] { background-image: url('../img/ui/survival/kit/pet_skill_01.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_02.png"] { background-image: url('../img/ui/survival/kit/pet_skill_02.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_03.png"] { background-image: url('../img/ui/survival/kit/pet_skill_03.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_04.png"] { background-image: url('../img/ui/survival/kit/pet_skill_04.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_05.png"] { background-image: url('../img/ui/survival/kit/pet_skill_05.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_06.png"] { background-image: url('../img/ui/survival/kit/pet_skill_06.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_07.png"] { background-image: url('../img/ui/survival/kit/pet_skill_07.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_08.png"] { background-image: url('../img/ui/survival/kit/pet_skill_08.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_09.png"] { background-image: url('../img/ui/survival/kit/pet_skill_09.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_10.png"] { background-image: url('../img/ui/survival/kit/pet_skill_10.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_11.png"] { background-image: url('../img/ui/survival/kit/pet_skill_11.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_12.png"] { background-image: url('../img/ui/survival/kit/pet_skill_12.webp') !important; }

/* Keep the selected fighter identifiable while browsing every personal upgrade tab. */
html.survival-portrait body #start_kit_pet.popup.pet-profile-open > .pet-hero-profile {
  position: absolute !important;
  top: var(--fighter-content-top,118px) !important;
  right: 9px !important;
  bottom: 9px !important;
  left: 9px !important;
  width: auto !important;
  height: auto !important;
  padding: 7px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background: var(--fighter-scene) !important;
  border: 1px solid var(--fighter-edge) !important;
  border-radius: 5px !important;
  box-shadow: inset 0 1px #d9e2dc2c !important;
  scrollbar-color: #c69c65 #142026;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-hero {
  flex: 0 0 var(--fighter-summary-height,108px) !important;
  min-height: var(--fighter-summary-height,108px) !important;
  height: var(--fighter-summary-height,108px) !important;
  padding: 5px 5px 5px 82px !important;
  overflow: hidden !important;
  background: linear-gradient(90deg,transparent 0 27%,#28241ff5 36%),var(--fighter-scene) !important;
  border: 1px solid #60777b !important;
  border-radius: 5px !important;
  border-color: #b09369 !important;
  box-shadow: inset 0 1px #e3c99a65 !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-avatar {
  top: 3px !important;
  left: 3px !important;
  width: 78px !important;
  height: 100px !important;
  background-size: 195% auto !important;
  background-position: center top !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-fighter-identity {
  position: absolute !important;
  top: 9px !important;
  right: 5px !important;
  left: 83px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  text-align: left !important;
  text-shadow: 0 1px 2px #000b !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-fighter-identity strong {
  color: #fff0da !important;
  font: 900 15px/18px Arial, sans-serif !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-fighter-identity span {
  color: #dec69f !important;
  font: 800 11px/14px Arial, sans-serif !important;
  text-transform: uppercase !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-fighter-level {
  position: static !important;
  align-self: flex-start;
  top: 0 !important;
  right: 0 !important;
  padding: 1px 4px !important;
  background: #0b1c24bb !important;
  border: 1px solid #b49263 !important;
  border-radius: 2px !important;
  font: 800 11px/14px Arial, sans-serif !important;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-profile-stats > div {
  display: grid !important;
  grid-template-columns: 15px minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 2px; padding: 1px 2px !important;
  min-width: 0; color: #eadbc1; background: #24211ff5; border: 1px solid #8d7451;
  font: 700 9px/10px Arial,sans-serif !important; text-align: left;
}
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_13.png"] { background-image: url('../img/ui/survival/kit/pet_skill_13.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_14.png"] { background-image: url('../img/ui/survival/kit/pet_skill_14.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_15.png"] { background-image: url('../img/ui/survival/kit/pet_skill_15.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_16.png"] { background-image: url('../img/ui/survival/kit/pet_skill_16.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_17.png"] { background-image: url('../img/ui/survival/kit/pet_skill_17.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_18.png"] { background-image: url('../img/ui/survival/kit/pet_skill_18.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_19.png"] { background-image: url('../img/ui/survival/kit/pet_skill_19.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_20.png"] { background-image: url('../img/ui/survival/kit/pet_skill_20.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_21.png"] { background-image: url('../img/ui/survival/kit/pet_skill_21.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_22.png"] { background-image: url('../img/ui/survival/kit/pet_skill_22.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_23.png"] { background-image: url('../img/ui/survival/kit/pet_skill_23.webp') !important; }
html.survival-portrait body #start_kit_pet.popup.pet-profile-open .pet-skill-image[style*="skill_24.png"] { background-image: url('../img/ui/survival/kit/pet_skill_24.webp') !important; }

