/* ── Shop button ────────────────────────────────────────────────── */
.shop-btn {
  background: #1c2a18;
  border: 1px solid #2d5a1b;
  border-radius: 6px;
  color: #86efac;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  transition: background 0.12s;
  letter-spacing: 0.03em;
}
.shop-btn:hover {
  background: #243520;
  border-color: #4ade80;
  color: #4ade80;
}

@keyframes shop-btn-pulse {
  0%,
  100% {
    border-color: #2d5a1b;
    box-shadow: none;
  }
  50% {
    border-color: #86efac;
    box-shadow: 0 0 6px 1px rgba(134, 239, 172, 0.35);
  }
}
.shop-btn--spendable {
  animation: shop-btn-pulse 4s ease-in-out infinite;
}

.coin-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  display: inline-block;
}

.diamonds-display,
.rubies-display {
  background: #351922;
  border: 1px solid #9f1239;
  border-radius: 6px;
  color: #fda4af;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
}
.diamonds-display:hover {
  background: #4c1d2e;
  border-color: #fb7185;
}
.exchange-shop-stock-value {
  color: #fda4af;
}
.diamond-icon,
.ruby-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  display: inline-block;
}
.minor-coins-display {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border: 1px solid #374151;
  border-radius: 6px;
  white-space: nowrap;
  cursor: default;
}
.books-header-right :is(.minor-coins-display, .shop-btn, .diamonds-display, .rubies-display) {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.45rem;
}
.bronze-display {
  color: #e8b582;
  background: #2c2119;
}
.silver-display {
  color: #cbd5e1;
  background: #202936;
}

/* ── Shop modal ─────────────────────────────────────────────────── */
#shop-modal-overlay,
#exchange-shop-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
#shop-modal-overlay.active,
#exchange-shop-modal-overlay.active {
  display: flex;
}
#shop-modal,
#exchange-shop-modal {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 12px;
  width: 548px;
  max-width: min(92vw, 548px);
  max-height: calc(100vh - 2rem);
  margin: auto 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
#shop-modal {
  width: 588px;
  max-width: min(92vw, 588px);
}
.shop-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #1f2937;
}
.shop-modal-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f3f4f6;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.shop-modal-title .coin-icon {
  flex: 0 0 auto;
}
.shop-modal-balance {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #86efac;
  background: #1c2a18;
  border: 1px solid #2d5a1b;
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
}
.shop-modal-spent {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #9ca3af;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
}
.shop-close-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
  line-height: 1;
  transition: color 0.12s;
}
.shop-close-btn:hover {
  color: #f3f4f6;
}
#shop-items {
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  min-height: 0;
}
.shop-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 0.4rem 1rem;
}
.shop-item-info {
  flex: 1;
  min-width: 0;
}
.shop-item-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f3f4f6;
}
.shop-item-desc {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.15rem;
}
.shop-item-owned {
  font-size: 0.75rem;
  color: #86efac;
  margin-top: 0.2rem;
}
.shop-item-effect {
  color: #f5a623;
  font-weight: 600;
}
.shop-item-buy {
  display: flex;
  flex: 0 0 4.25rem;
  width: 4.25rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
}
.shop-item-cost {
  display: grid;
  grid-template-columns: 14px 4ch;
  align-items: center;
  align-self: center;
  gap: 0.25rem;
  text-align: right;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #86efac;
}
.shop-item-buy .shop-buy-btn {
  box-sizing: border-box;
  width: 100%;
}
.shop-buy-btn {
  background: #1c2a18;
  border: 1px solid #2d5a1b;
  border-radius: 6px;
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}
.shop-buy-btn:hover {
  background: #243520;
  border-color: #4ade80;
  color: #4ade80;
}
.shop-buy-btn--disabled,
.shop-buy-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}
.shop-buy-btn--disabled:hover,
.shop-buy-btn[disabled]:hover {
  background: #1c2a18;
  border-color: #2d5a1b;
  color: #86efac;
}
.shop-error {
  font-size: 0.8rem;
  color: #f87171;
  min-height: 1.2em;
  padding: 0 1.25rem 0.75rem;
}
.shop-loading {
  font-size: 0.85rem;
  color: #6b7280;
  padding: 1rem 0;
  text-align: center;
}

.exchange-shop-balance {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.exchange-shop-balance .shop-modal-balance {
  white-space: nowrap;
}
.exchange-shop-diamonds {
  color: #fda4af;
  background: #351922;
  border-color: #9f1239;
}
#exchange-shop-modal {
  --black-market-tab-width: 4.75rem;
  --black-market-tab-gap: 0.35rem;
  width: calc(5 * var(--black-market-tab-width) + 4 * var(--black-market-tab-gap) + 1.7rem + 2px);
  max-width: 92vw;
}
.exchange-shop-body {
  padding: 0.65rem 0.85rem 0.5rem;
  overflow-y: auto;
  font-size: 0.85rem;
}
.exchange-shop-body .secondary-btn,
.exchange-shop-body .shop-buy-btn {
  box-sizing: border-box;
  height: 28px;
  padding: 0 0.65rem;
  font-family: inherit;
  font-size: 0.78rem;
  line-height: 1;
  border-radius: 5px;
}
.exchange-shop-trades {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.exchange-shop-trade {
  min-width: 0;
  margin: 0;
}
#exchange-shop-modal .shop-modal-header {
  flex-wrap: wrap;
}
#exchange-shop-title {
  min-width: 100px;
}
.exchange-shop-body label {
  display: block;
  color: #d1d5db;
  margin-bottom: 0.35rem;
}
.exchange-shop-quantity-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}
.exchange-shop-quantity-label label,
.exchange-shop-quantity-label .exchange-shop-tip {
  margin: 0;
}
.exchange-shop-max {
  border: 0;
  background: none;
  color: #9ca3af;
  font: inherit;
  font-size: 0.75rem;
  padding: 0;
  cursor: pointer;
}
.exchange-shop-max:hover {
  color: #e5e7eb;
}
.exchange-shop-max:disabled {
  opacity: 0.4;
  cursor: default;
}
.exchange-shop-amount-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.35rem;
}
.exchange-shop-amount-row .cs-num-wrap {
  flex: 1;
  min-width: 0;
  align-items: stretch;
}
.exchange-shop-amount-row .cs-num-btn {
  box-sizing: border-box;
  flex: 0 0 20px;
  width: 20px;
  height: 28px;
  padding: 0;
}
.exchange-shop-amount-row .cs-num-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.exchange-shop-amount-row .cs-val-num {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  height: 28px;
  padding: 0 0.15rem;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  font: inherit;
  font-size: 0.78rem;
  line-height: 26px;
  color-scheme: dark;
}
.exchange-shop-amount-row .cs-val-num:focus {
  outline: 1px solid #22d3ee;
  border-color: #22d3ee;
}
.exchange-shop-amount-row .shop-buy-btn {
  flex: 0 0 3rem;
  width: 3rem;
  padding: 0;
}
.exchange-shop-rate {
  color: #9ca3af;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow-x: auto;
}
.exchange-shop-receive {
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow-x: auto;
  margin-top: 0.2rem;
}
.exchange-shop-tip {
  color: #9ca3af;
  font-size: 0.78rem;
  margin: 0.3rem 0;
}
#exchange-shop-stock {
  margin-bottom: 0;
}
.exchange-shop-message {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  width: max-content;
  max-width: min(92vw, 520px);
  max-height: 20vh;
  padding: 0.4rem 0.65rem;
  border: 1px solid #374151;
  border-radius: 6px;
  background: #111827;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
  overflow-wrap: anywhere;
  color: #86efac;
  font-size: 0.78rem;
  line-height: 1.2;
}
.exchange-shop-message:empty {
  display: none;
}
.exchange-shop-message--error {
  color: #f87171;
}

@media (max-width: 640px) {
  #shop-modal-overlay,
  #exchange-shop-modal-overlay {
    padding: 0.5rem;
  }
  #shop-modal,
  #exchange-shop-modal {
    max-height: calc(100vh - 1rem);
  }
  .shop-item {
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.55rem 0.8rem;
  }
  .shop-item-buy {
    align-self: stretch;
  }
}

.books-empty {
  font-size: 0.85rem;
  color: #4b5563;
  padding: 0.5rem 0;
}

#party-invites-section:empty {
  display: none;
}

#books-xp-summary {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin-top: 0;
  margin-bottom: -0.82rem;
  color: #d1d5db;
}
#books-xp-summary:empty {
  display: none;
}
.job-xp-summary {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin-top: 0.18rem;
  font-size: 0.76rem;
  color: #d1d5db;
}
.job-xp-summary[hidden] {
  display: none;
}
.job-xp-level-row {
  display: flex;
  align-items: baseline;
  gap: 0.42rem;
  font-size: 0.8rem;
}
.job-xp-level {
  color: #fb7185;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}
[id$='-job-xp-title'] {
  color: #fff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[id$='-job-xp-next-ruby'] {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: #facc15;
  white-space: nowrap;
}
.job-xp-bar {
  height: 5px;
  background: #1f2937;
  border-radius: 3px;
  overflow: hidden;
}
.job-xp-bar > div {
  height: 100%;
  width: 0;
  background: #fb7185;
  border-radius: inherit;
}
.job-xp-sub-row {
  display: flex;
  align-items: baseline;
  gap: 0.42rem;
  min-width: 0;
}
[id$='-job-xp-label'] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.76rem;
  color: #9ca3af;
  line-height: 1.15;
  white-space: nowrap;
}
[id$='-job-xp-ruby-cost'] {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.76rem;
  color: #facc15;
  line-height: 1.15;
  white-space: nowrap;
}
.job-xp-val {
  color: #fb7185;
}
#books-xp-level-row {
  display: flex;
  align-items: baseline;
  gap: 0.42rem;
}
#books-xp-hb-rate {
  margin-left: auto;
  font-size: 0.7rem;
  color: #22d3ee;
  white-space: nowrap;
}
#books-xp-level {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f5a623;
  line-height: 1.15;
}
#books-xp-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.15;
}
#books-xp-bar {
  position: relative;
  height: 5px;
  background: #1f2937;
  border-radius: 3px;
  overflow: hidden;
}
#books-xp-bar-fill {
  position: relative;
  height: 100%;
  width: 0;
  background: #f5a623;
  border-radius: 3px;
}
#books-xp-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
#books-xp-text {
  font-size: 0.76rem;
  color: #9ca3af;
  line-height: 1.15;
  white-space: nowrap;
}
.xp-val {
  color: #f59e0b;
}
#books-xp-boost {
  font-size: 0.74rem;
  color: #f59e0b;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 1366px) {
  #books-screen .books-xp-body {
    container-name: books-xp;
    container-type: inline-size;
  }

  @container books-xp (width < 440px) {
    #books-screen :is(#books-xp-hb-rate, #books-xp-boost, #app-xp-hb-rate, #app-xp-boost,
      #avg-lvl-users, #avg-lvl-range, #books-job-xp-next-ruby, #books-job-xp-ruby-cost,
      #app-job-xp-next-ruby, #app-job-xp-ruby-cost) {
      display: none;
    }

    #books-screen :is(#books-xp-text, #app-xp-text, #avg-lvl-text, .job-xp-sub-row) {
      white-space: normal;
    }
  }
}

/* App-wide XP uses the player-level text palette and a violet progress fill. */
#app-xp-summary {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin-top: 0;
  margin-bottom: -0.6rem;
  color: #d1d5db;
}
#app-xp-summary[hidden] {
  display: none;
}
#app-xp-level-row {
  display: flex;
  align-items: baseline;
  gap: 0.42rem;
}
#app-xp-hb-rate {
  margin-left: auto;
  font-size: 0.7rem;
  color: #22d3ee;
  white-space: nowrap;
}
#app-xp-level {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f5a623;
  line-height: 1.15;
}
#app-xp-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.15;
}
#app-xp-bar {
  position: relative;
  height: 5px;
  background: #1f2937;
  border-radius: 3px;
  overflow: hidden;
}
#app-xp-bar-fill {
  position: relative;
  height: 100%;
  width: 0;
  background: #f5a623;
  border-radius: 3px;
}
#app-xp-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
#app-xp-text {
  font-size: 0.76rem;
  color: #9ca3af;
  line-height: 1.15;
  white-space: nowrap;
}
#app-xp-text .xp-val {
  color: #f59e0b;
}
#app-xp-boost {
  font-size: 0.74rem;
  color: #f59e0b;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
}

/* Average-player-level widget uses a distinct palette. */
#avg-lvl-summary {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin-top: 0;
  margin-bottom: -0.6rem;
  color: #d1d5db;
}
#avg-lvl-summary[hidden] {
  display: none;
}
#avg-lvl-level-row {
  display: flex;
  align-items: baseline;
  gap: 0.42rem;
}
#avg-lvl-users {
  margin-left: auto;
  font-size: 0.7rem;
  color: #a3e635;
  white-space: nowrap;
}
#avg-lvl-level {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2dd4bf;
  line-height: 1.15;
}
#avg-lvl-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.15;
}
#avg-lvl-bar {
  position: relative;
  height: 5px;
  background: #1f2937;
  border-radius: 3px;
  overflow: hidden;
}
#avg-lvl-bar-fill {
  position: relative;
  height: 100%;
  width: 0;
  background: #2dd4bf;
  border-radius: 3px;
}
#avg-lvl-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
#avg-lvl-text {
  font-size: 0.76rem;
  color: #9ca3af;
  line-height: 1.15;
  white-space: nowrap;
}
#avg-lvl-text .lvl-val {
  color: #2dd4bf;
}
#avg-lvl-range {
  font-size: 0.74rem;
  color: #a3e635;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
}

.books-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: -0.6rem;
  margin-bottom: -0.4rem;
}
.books-add-btn {
  background: #f5a623;
  border: none;
  border-radius: 6px;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}
.books-add-btn:hover {
  background: #e09518;
}
#open-add-stash-btn {
  background: transparent;
  color: #9ca3af;
  border: 1px solid #6b7280;
  /* Grow from natural label width to fill the row without separating adjacent buttons. */
  flex: 1 1 auto;
  text-align: center;
}
#open-add-stash-btn:hover {
  background: rgba(107, 114, 128, 0.12);
  color: #d1d5db;
  border-color: #9ca3af;
}
/* Use equal non-wrapping buttons at the mobile breakpoint to avoid a full-width stash-only row. */
@media (max-width: 768px) {
  .books-add-actions {
    flex-wrap: nowrap;
    gap: 0.3rem;
  }
  .books-add-btn {
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.68rem;
    line-height: 1.15;
    padding: 0.3rem 0.3rem;
    text-align: center;
    white-space: normal;
  }
  #open-add-stash-btn {
    flex: 1 1 0;
  }
}

/* Rubies share the compact currency/shop layout, with their own red accent. */
.rubies-display,
.exchange-shop-rubies {
  color: #67e8f9;
  background: #102a33;
  border-color: #155e75;
}
.rubies-display:hover {
  background: #16404c;
  border-color: #22d3ee;
}
#exchange-shop-modal[data-currency='ruby'] .exchange-shop-stock-value {
  color: #fda4af;
}
#exchange-shop-modal[data-currency='ruby'] .exchange-shop-amount-row .cs-val-num:focus {
  outline-color: #22d3ee;
  border-color: #22d3ee;
}
.reward-float--rubies,
.app-reward-float.app-reward-float--rubies {
  color: #67e8f9;
  border-color: #0891b2;
  background: #102a33;
}

.black-market-tabs {
  display: flex;
  gap: var(--black-market-tab-gap);
  padding: 0.55rem 0.85rem 0;
}
.black-market-tabs button {
  flex: 0 0 var(--black-market-tab-width);
  box-sizing: border-box;
  height: 26px;
  padding: 0 0.35rem;
  border: 1px solid #374151;
  border-radius: 5px;
  background: #1f2937;
  color: #9ca3af;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
}
.black-market-tabs button[aria-selected='true'] {
  color: #fda4af;
  border-color: #fb7185;
  background: #351922;
}
.black-market-tabs #exchange-shop-ruby-tab[aria-selected='true'] {
  color: #67e8f9;
  border-color: #22d3ee;
  background: #102a33;
}
.black-market-tabs button:disabled {
  cursor: default;
  opacity: 0.5;
}
.black-market-tabs button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Compact, independently saved app and player progression panels. */
.books-xp-panel {
  min-width: 0;
  padding: 0.2rem 0.6rem;
  border: 1px solid #374151;
  border-radius: 8px;
  background: rgba(31, 41, 55, 0.4);
}
.books-xp-panel[hidden] {
  display: none;
}
#books-app-xp-panel {
  margin-bottom: -0.8rem;
}
.books-xp-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #9ca3af;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.books-xp-toggle:hover {
  color: #d1d5db;
}
.books-xp-toggle:focus-visible {
  outline: 1px solid #f5a623;
  outline-offset: 3px;
  border-radius: 2px;
}
.books-xp-kicker {
  min-width: 0;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.books-xp-arrow {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.15s;
}
.books-xp-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  min-width: 0;
}
.books-xp-body > #avg-lvl-summary,
.books-xp-body > #app-xp-summary,
.books-xp-body > .job-xp-summary {
  gap: 0;
}
.books-xp-body :is(#books-xp-level-row, #app-xp-level-row, #avg-lvl-level-row, .job-xp-level-row) {
  line-height: 1.15;
}
.books-xp-body > #books-job-xp {
  margin-top: 0;
}
.books-xp-body > #avg-lvl-summary,
.books-xp-body > #app-xp-summary,
.books-xp-body > #app-job-xp-summary {
  margin: 0;
}
.books-xp-mini-bars {
  display: none;
}
.books-xp-collapsed > .books-xp-body {
  display: none;
}
.books-xp-collapsed {
  padding-bottom: 0.3rem;
}
.books-xp-collapsed .books-xp-arrow {
  transform: rotate(-90deg);
}
.books-xp-collapsed .books-xp-kicker {
  flex: 0 0 2rem;
}
.books-xp-collapsed .books-xp-mini-bars {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.books-xp-mini-track {
  display: block;
  height: 3px;
  background: #374151;
  border-radius: 2px;
  overflow: hidden;
}
.books-xp-mini-track[hidden] {
  display: none;
}
.books-xp-mini-track > span {
  display: block;
  height: 100%;
  width: 0;
  background: #f5a623;
  border-radius: inherit;
}
#books-xp-mini-job-fill,
#books-app-mini-job-fill {
  background: #fb7185;
}
#books-app-mini-average-fill {
  background: #2dd4bf;
}

/* Keep empty tracks visible against the My Books progress panels. */
#books-xp-bar,
#books-job-xp-bar,
#avg-lvl-bar,
#app-xp-bar,
#app-job-xp-bar,
.books-xp-mini-track {
  background: #2c3644;
}
