/* Player Hub tool extension. Preserve data, element colors and control states. */
.hub-tool { --gold: #a8e1fc; --gold-bright: #c0eaff; --gold-deep: #86bad6; --ink: #e8eef7; --muted: #b6c5d5; overflow: visible; }
.hub-tool [hidden] { display: none !important; }
.hub-tool-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 20px 28px; }
.hub-tool-nav a { padding: 10px 16px; min-height: 44px; border: 1px solid #415463; color: #b6c5d5; font-size: 14px; }
.hub-tool-nav a:hover, .hub-tool-nav a[aria-current] { background: #102335; border-color: #86bad6; color: #c0eaff; }
.hub-tool .hub-breadcrumb { flex-wrap: wrap; gap: 8px 12px; }
.hub-tool .setbonus { min-height: 0; padding: 0 0 34px; background: none; }
.hub-tool .setbonus::before { content: none; }
.hub-tool .setbonus__inner { max-width: none; margin: 0; text-align: left; }
.hub-tool .setbonus__title { text-transform: none; color: var(--hub-ink); max-width: 32ch; margin-bottom: 16px; }
.hub-tool .setbonus__lead { max-width: 74ch; margin: 0 0 22px; color: var(--hub-muted); font-size: 17px; line-height: 1.7; }
.hub-tool .setbonus__tools { justify-content: flex-start; margin: 28px 0 18px; }
.hub-tool .setbonus__search { width: min(540px,100%); background: #0b1621; border-color: #415463; border-radius: 4px; min-height: 48px; color: var(--hub-ink); }
.hub-tool .setbonus__search::placeholder { color: #a9bbcb; }
.hub-tool .setbonus__filters { align-items: stretch; gap: 10px; padding: 18px 0 22px; border-block: 1px solid #293e4b; }
.hub-tool .setbonus__filter-group { justify-content: flex-start; gap: 7px; }
.hub-tool .setbonus__filter-label { min-width: 72px; color: #b6c5d5; font-size: 12px; letter-spacing: .06em; }
.hub-tool .setbonus__chip, .hub-tool .setbonus__clear, .hub-tool .artifact__recs-more { border-radius: 4px; min-height: 38px; background: #0b1621; color: #b6c5d5; border: 1px solid #415463; letter-spacing: 0; }
.hub-tool .setbonus__clear { align-self: flex-start; }
.hub-tool .setbonus__chip:hover, .hub-tool .setbonus__clear:hover, .hub-tool .artifact__recs-more:hover { background: #142736; border-color: #86bad6; color: white; }
.hub-tool .setbonus__chip.is-active { background: #a8e1fc; color: #071019; border-color: #a8e1fc; }
.hub-tool .setbonus__grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,340px),1fr)); gap: 14px; }
.hub-tool :is(.setbonus__card,.artifact__mod,.artifact__overview,.drreco__card) { border-radius: 0; border-color: #415463; background: #0b1621; box-shadow: none; padding: 22px; }
.hub-tool .setbonus__card:hover { transform: none; background: #10202d; border-color: #86bad6; }
.hub-tool .setbonus__card-head { align-items: flex-start; flex-wrap: wrap; }
.hub-tool .setbonus__name { color: #e8eef7; font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.hub-tool :is(.setbonus__armor img,.setbonus__perk-icon,.artifact__mod-icon,.artifact__overview-icon,.artifact__set-title img) { border-radius: 0; border-color: #415463; background: #071019; }
.hub-tool :is(.setbonus__pair,.setbonus__source-type,.artifact__rec,.artifact__set-count) { border-radius: 3px; color: #c0eaff; background: #102335; border-color: #415463; }
.hub-tool :is(.setbonus__pieces,.artifact__champ) { border-radius: 3px; background: #a8e1fc; color: #071019; letter-spacing: .04em; }
.hub-tool :is(.setbonus__count,.setbonus__pairs-label,.setbonus__source,.setbonus__empty,.setbonus__foot,.artifact__overview-era,.artifact__tier-title span,.artifact__set-title em) { color: #a9bbcb; }
.hub-tool :is(.setbonus__perk-desc,.artifact__mod-desc,.setbonus__faq-item p) { color: #b6c5d5; font-size: 15px; line-height: 1.65; }
.hub-tool :is(.setbonus__perk-name,.artifact__mod-name) { color: #e8eef7; font-size: 16px; font-weight: 600; }
.hub-tool :is(.setbonus__more,.setbonus__card:hover .setbonus__more) { color: #a8e1fc; }
.hub-tool a:hover { text-underline-offset: 4px; }
.hub-tool .artifact__grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,330px),1fr)); }
.hub-tool .artifact__mod > div { min-width: 0; }
.hub-tool .artifact__set { margin-bottom: 24px; }
.hub-tool summary.artifact__set-title { background: #0b1621; border: 1px solid #415463; border-radius: 0; margin-inline: 0; padding: 16px 20px; font-size: 24px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #e8eef7; }
.hub-tool summary.artifact__set-title:hover { background: #102335; }
.hub-tool .artifact__set-title > span:first-of-type { min-width: 0; }
.hub-tool .artifact__set-title em { letter-spacing: .03em; }
.hub-tool .artifact__recs { margin: 16px 0 24px; }
.hub-tool .artifact__rec:hover, .hub-tool .artifact__rec.is-hit { background: #163449; border-color: #86bad6; color: white; }
.hub-tool .artifact__tier-title { font-size: 20px; font-weight: 600; letter-spacing: 0; text-transform: none; margin-top: 22px; }
.hub-tool :is(.setbonus__faq-title,.distort__subhead,.drref__cat) { color: #e8eef7; letter-spacing: -.015em; text-transform: none; text-align: left; font-weight: 600; }
.hub-tool .distort__subhead { font-size: 27px; margin-top: 30px; }
.hub-tool .setbonus__faq-grid { gap: 28px; }
.hub-tool .setbonus__faq-item { padding: 18px 0; background: none; border: 0; border-top: 1px solid #293e4b; border-radius: 0; }
.hub-tool .setbonus__faq-item h3 { font-size: 19px; color: #e8eef7; }
.hub-tool .setbonus__foot { margin: 28px 0 0; line-height: 1.7; font-size: 13px; }
.hub-tool .setbonus__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; border: 1px solid #71603c; padding: 22px; background: #1b1913; }
.hub-tool .setbonus__cta p { color: #d1c9b5; margin: 0; }
.hub-tool .hub-footer { border-top: 1px solid #293e4b; }

/* Distortion keeps the official artwork's crimson and purple palette. */
.hub-tool .distort__now { max-width: none; margin: 28px 0; padding: 34px; isolation: isolate; overflow: hidden; border-radius: 0; border-color: #80464e; background: #190810; box-shadow: none; }
.distort__art { position: absolute; inset: 0 0 0 auto; z-index: -2; width: 72%; height: 100%; object-fit: cover; object-position: center 35%; }
.hub-tool .distort__now::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#190810 20%,rgba(25,8,16,.84) 55%,rgba(25,8,16,.18)); }
.hub-tool .distort__label { color: #ffa6a6; letter-spacing: .06em; font-size: 14px; text-transform: none; }
.hub-tool .distort__dest { color: #e8eef7; letter-spacing: -.025em; font-weight: 600; text-transform: none; }
.hub-tool .distort__count { color: #ead0d5; }
.hub-tool .distort__count span { color: #ffa6a6; }
.hub-tool .distort__farm { border-color: #efa1a5; color: #ffd6df; }
.hub-tool .distort__farm:hover { background: #461e31; }
.hub-tool .distort__next, .hub-tool .distort__schedule { max-width: none; margin-inline: 0; }
.hub-tool .distort__card { border-radius: 0; background: #0b1621; border-color: #415463; padding: 22px; }
.hub-tool .distort__card-time, .hub-tool .distort__row-time { color: #b6c5d5; letter-spacing: 0; }
.hub-tool .distort__card-dest { color: #e8eef7; font-size: 20px; font-weight: 600; }
.hub-tool .distort__row { min-height: 54px; border-color: #293e4b; gap: 16px; }
.hub-tool .distort__row.is-now { border-radius: 0; background: #301323; border-color: #80464e; }
.hub-tool .distort__row-dest { color: #e8eef7; }
.hub-tool .distort__card-set, .hub-tool .distort__row-set { color: #a8e1fc; }

/* Calculator: compact controls, readable results and unchanged game semantics. */
.hub-tool-jumps { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-block: 0 22px; }
.hub-tool-jumps a { color: #a8e1fc; text-decoration: underline; text-underline-offset: 4px; min-height: 32px; }
.hub-tool :is(#dr-controls,#dr-results,#recommendations) { scroll-margin-top: 24px; }
.hub-tool .drcalc { max-width: none; padding: 26px; margin-inline: 0; background: #0b1621; border-color: #415463; border-radius: 0; }
.hub-tool .drcalc__cols { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); }
.hub-tool .drcalc__heading { color: #e8eef7; font-size: 19px; font-weight: 600; letter-spacing: 0; text-transform: none; flex-wrap: wrap; }
.hub-tool :is(.drcalc__sockets,.drcalc__sub,.drcalc__mod-name em,.drcalc__note,.drcalc__artname em,.drcalc__result-label,.drcalc__stats em,.drreco__type,.drref__cond) { color: #a9bbcb; letter-spacing: 0; }
.hub-tool .drcalc__note { font-size: 13px; line-height: 1.6; }
.hub-tool :is(.drcalc__mod,.drcalc__artperk,.drcalc__select) { background: #071019; border-color: #415463; border-radius: 4px; color: #e8eef7; }
.hub-tool .drcalc__mod.is-active, .hub-tool .drcalc__artperk.is-on { background: #102335; border-color: #86bad6; }
.hub-tool .drcalc__mod.is-idle { opacity: 1; }
.hub-tool .drcalc__step { width: 36px; height: 36px; border-radius: 4px; color: #e8eef7; border-color: #415463; background: #102335; }
.hub-tool .drcalc__stepper { flex-shrink: 0; }
.hub-tool :is(.drcalc__mod-name,.drcalc__stats span,.drref__name,.drcalc__check,.drcalc__slider label) { color: #e8eef7; }
.hub-tool :is(.drcalc__stepper b,.drcalc__slider label b,.drcalc__break li b) { color: #c0eaff; }
.hub-tool .drcalc__seg button { min-height: 38px; border-radius: 4px; color: #b6c5d5; border-color: #415463; background: #071019; }
.hub-tool .drcalc__seg button.is-on { border-color: #86bad6; background: #102335; color: #c0eaff; }
.hub-tool .drcalc__seg button.is-arc.is-on { border-color: #79bbe8; background: #112938; color: #a9d7f5; }
.hub-tool .drcalc__seg button.is-solar.is-on { border-color: #f2721b; background: #321d12; color: #ffb076; }
.hub-tool .drcalc__seg button.is-void.is-on { border-color: #b184c5; background: #291d32; color: #d3b3e2; }
.hub-tool .drcalc__seg button.is-stasis.is-on { border-color: #4d88ff; background: #11213b; color: #9dbcff; }
.hub-tool .drcalc__seg button.is-strand.is-on { border-color: #3fd980; background: #102b22; color: #8ceab2; }
.hub-tool .drcalc__seg button.is-prismatic.is-on { border-color: #e960bd; background: #31162c; color: #f5a6dd; }
.hub-tool .drcalc__check input { flex-shrink: 0; }
.hub-tool .drcalc__result { top: 24px; background: #071019; border-color: #415463; border-radius: 0; }
.hub-tool .drcalc__bar, .hub-tool .drcalc__bar span { border-radius: 0; }
.hub-tool .drcalc__bar span { background: #a8e1fc; }
.hub-tool .drcalc__break-title { font-size: 16px; letter-spacing: 0; text-transform: none; color: #e8eef7; }
.hub-tool .drcalc__break li { color: #b6c5d5; }
.hub-tool .drcalc__break li.is-off { opacity: 1; }
.hub-tool .drcalc__break li.is-off b { color: #a9bbcb; }
.hub-tool .drcalc__how, .hub-tool .drreco__lead { margin-inline: 0; max-width: 74ch; }
.hub-tool .drcalc__how p, .hub-tool .drreco__lead, .hub-tool .drreco__why { color: #b6c5d5; }
.hub-tool .drreco__grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,280px),1fr)); }
.hub-tool .drreco__name { font-size: 21px; font-weight: 600; color: #e8eef7; }
.hub-tool .drreco__chip { border-radius: 3px; }
.hub-tool .drreco__load { border-radius: 4px; color: #c0eaff; background: #102335; border-color: #86bad6; min-height: 42px; text-transform: none; letter-spacing: 0; }
.hub-tool .drreco__load:hover { background: #163449; color: white; }
.hub-tool .drref__row { border-radius: 0; background: #0b1621; border-color: #293e4b; padding: 14px; }
.hub-tool .drcalc__artgrid { grid-template-columns: repeat(auto-fill,minmax(min(100%,240px),1fr)); }
.hub-tool .drcalc__select:focus-visible { outline: 3px solid #b8eaff; outline-offset: 4px; }
@media (max-width: 1180px) {
  .hub-tool .drcalc__cols { grid-template-columns: minmax(0,1fr); }
  .hub-tool .drcalc__result { position: static; grid-row: 1; }
  .hub-tool .drcalc__controls { grid-row: 2; }
}
@media (max-width: 800px) {
  .hub-tool-nav { padding-bottom: 24px; }
  .hub-tool .setbonus__lead { font-size: 16px; }
  .hub-tool .distort__next { grid-template-columns: 1fr; }
  .hub-tool .setbonus__faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hub-tool-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .hub-tool-nav a { font-size: 13px; padding: 10px; display: flex; align-items: center; }
  .hub-tool .hub-breadcrumb { font-size: 12px; }
  .hub-tool .setbonus__filter-label { flex-basis: 100%; margin-top: 5px; }
  .hub-tool :is(.setbonus__card,.artifact__mod,.artifact__overview,.drreco__card) { padding: 18px; }
  .hub-tool summary.artifact__set-title { padding: 14px; font-size: 20px; flex-wrap: wrap; }
  .hub-tool .artifact__set-title > span:first-of-type { flex: 1; }
  .hub-tool .artifact__set-count { margin-left: 0; }
  .hub-tool .distort__now { padding: 24px; }
  .distort__art { width: 100%; opacity: .65; }
  .hub-tool .distort__row { display: grid; grid-template-columns: 72px 1fr; gap: 6px 12px; padding-block: 12px; }
  .hub-tool .distort__row-set { grid-column: 2; }
  .hub-tool .drcalc { padding: 14px; }
  .hub-tool .drcalc__mod { padding: 8px; gap: 8px; }
  .hub-tool .drcalc__step { width: 32px; height: 36px; }
  .hub-tool .drcalc__result { padding: 16px; }
  .hub-tool .drcalc__stats { gap: 6px; }
  .hub-tool .drcalc__break li { flex-wrap: wrap; }
  .hub-tool .setbonus__cta { padding: 18px; }
  .hub-tool .setbonus__cta .hub-button { white-space: normal; text-align: center; }
}
