/* Information is an opaque foreground, not another layer of atmosphere.
   Keep currents/veins/embers in the surrounding card. No animation or gameplay
   state is changed here; these surfaces also work in both in-game motion modes. */
#view-skills {
  --skill-surface: #121a25;
}
#view-skills .gathering-node-card {
  --skill-surface-tone: var(--vein-tone, var(--water-tone, var(--tree-tone,
    var(--forge-tone, var(--cook-tone, var(--pyre-tone, var(--formula,
    var(--recipe-color, var(--accent)))))))));
  --skill-surface: color-mix(in srgb, var(--skill-surface-tone) 7%, #121a25);
}
#view-skills :is(
  [class*="-readout-stat"], .crafting-readout-stat,
  .conduit-readout-grid > span, .extract-transmutation-readout > span,
  .alembic-readout-grid > span, .fletching-readout-grid > span,
  .spellweaving-readout-grid > span, .attunement-readout-grid > span,
  .stealth-street-readout > span, .heist-contract-readout > span,
  .operative-readout > span, .heist-equipment-target,
  .node-detail-pill, .node-cost-pill, .research-desk-grid > span,
  .ar-stat, .ar-chip, .relic-meta > span, .relic-route-facts > span,
  .aura-current-pills > span, .aura-current-runway > span,
  .aura-current-relic, .aura-channel-button, .ar-action
) {
  background: var(--skill-surface) !important;
}
#view-skills :is(.alembic-readout, .spellweaving-loom-readout, .attunement-study-readout, .research-desk) {
  background: var(--skill-surface) !important;
}
#view-skills .gathering-node-card:is(.is-active, :has(.action-btn.stop)) :is(
  .node-name, .node-owned, [class$="-readout-note"],
  .crafting-readout-head, .mining-vein-readout-note,
  .woodcutting-grove-readout-note
) {
  width: fit-content;
  max-width: 100%;
  padding: 2px 4px;
  border-radius: 3px;
  background: var(--skill-surface);
}
#view-skills .action-btn {
  background: #141e2a;
}
#view-skills .action-btn:not(:disabled):hover {
  background: color-mix(in srgb, var(--accent) 12%, #141e2a);
}
#view-skills .action-btn.stop {
  background: #2b1922;
  color: #f1a4a7;
}
#view-skills .action-btn.stop:hover {
  background: #3b202a;
}
/* Don't truncate the label that explains a displayed rate. Wrap instead of
   shrinking it; parent grids can reflow without horizontal page overflow. */
#view-skills :is([class*="-readout-stat"], .crafting-readout-stat) :is(strong, span),
#view-skills :is(.conduit-readout-grid, .alembic-readout-grid,
  .fletching-readout-grid, .spellweaving-readout-grid, .attunement-readout-grid,
  .stealth-street-readout, .heist-contract-readout) :is(strong, small) {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  font-size: max(9.5px, .6rem);
  line-height: 1.35;
}
#view-skills :is([class$="-readout-note"], .node-detail-pill, .node-cost-pill) {
  font-size: max(9.5px, .6rem);
  line-height: 1.4;
}
/* The research desk and current Aura channel use custom markup rather than
   the shared gathering readout. Protect their text using the same rule. */
#view-skills .research-desk :is(small, em, .research-desk-footer),
#view-skills .aura-current-channel :is(small, i) {
  font-size: 9.5px !important;
  line-height: 1.4;
}
#view-skills .research-desk-grid :is(small, strong),
#view-skills .research-desk-footer > span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  #view-skills :is(.mining-vein-card, .fishing-water-card, .woodcutting-tree-card).is-active,
  #view-skills :is(.herblore-formula-card, .extract-energy-node-card, .fletching-card):has(.action-btn.stop) {
    flex-wrap: wrap;
  }
  #view-skills :is(.mining-vein-card, .fishing-water-card, .woodcutting-tree-card).is-active > .node-info,
  #view-skills :is(.herblore-formula-card, .extract-energy-node-card, .fletching-card):has(.action-btn.stop) > .node-info {
    flex: 1 1 calc(100% - 52px);
  }
  #view-skills :is(.mining-vein-card, .fishing-water-card, .woodcutting-tree-card).is-active > .action-btn.stop,
  #view-skills :is(.herblore-formula-card, .extract-energy-node-card):has(.action-btn.stop) > .action-btn.stop,
  #view-skills .fletching-card:has(.action-btn.stop) > .fletching-action-stack {
    flex-basis: calc(100% - 48px);
    margin-left: 48px;
    min-height: 34px;
  }
  #view-skills .fletching-card:has(.action-btn.stop) > .fletching-action-stack .action-btn.stop {
    width: 100%;
    min-height: 34px;
  }
  #view-skills :is(.mining-vein-readout, .woodcutting-grove-readout,
    .fishing-water-readout, .crafting-readout-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #view-skills :is(.mining-vein-readout, .woodcutting-grove-readout,
    .fishing-water-readout) > [class*="-readout-stat"]:last-of-type {
    grid-column: 1 / -1;
  }
}
