/* 任务图鉴：加宽页面，奖励列收窄，避免横滚与文字重叠 */

#browse-main.layout--catalog,
#browse-main.layout--wide {
  max-width: min(100%, var(--content-catalog));
}

.qb-toolbar {
  display: grid;
  gap: 0.75rem;
}

.qb-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.qb-toolbar__row--bands {
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.qb-toolbar__row--fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
  align-items: end;
}

.qb-field {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.qb-field > span {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qb-chips--race {
  width: 100%;
}

.qb-input:focus,
.qb-select:focus {
  border-color: var(--accent);
  outline: none;
}

.qb-summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.qb-table-shell {
  overflow: visible;
}

.qb-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.45;
}

.qb-table th:nth-child(1),
.qb-table td:nth-child(1) { width: 4.25rem; }
.qb-table th:nth-child(2),
.qb-table td:nth-child(2) { width: 16%; }
.qb-table th:nth-child(3),
.qb-table td:nth-child(3) { width: 4.25rem; }
.qb-table th:nth-child(4),
.qb-table td:nth-child(4) { width: 5.75rem; }
.qb-table th:nth-child(5),
.qb-table td:nth-child(5) { width: 12%; }
.qb-table th:nth-child(6),
.qb-table td:nth-child(6) { width: 11%; }
.qb-table th:nth-child(7),
.qb-table td:nth-child(7) { width: 22rem; }

.qb-table th,
.qb-table td {
  padding: 0.7rem 0.7rem;
  border-bottom: 1px solid var(--table-line);
  text-align: left;
  vertical-align: top;
}

.qb-table th {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 750;
  background: var(--table-head-bg);
  white-space: nowrap;
}

.qb-table td:nth-child(2),
.qb-table td:nth-child(4),
.qb-table td:nth-child(5),
.qb-table td:nth-child(6) {
  overflow: hidden;
  word-break: break-word;
}

.qb-table tbody tr {
  background: var(--table-row);
}

.qb-table tbody tr:nth-child(even) {
  background: var(--table-row-alt);
}

.qb-table tbody tr:hover {
  background: var(--table-row-hover);
}

.qb-table a {
  color: var(--link);
  text-decoration: none;
  font-weight: 650;
}

.qb-table a:hover {
  text-decoration: underline;
}

.qb-level {
  white-space: nowrap;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.qb-type {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.qb-race {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.qb-rewards-cell {
  width: 22rem;
  max-width: 22rem;
  min-width: 0;
}

.qb-rewards {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.qb-rewards__intro {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 650;
}

.qb-reward-group {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.qb-reward-group__label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}

.qb-reward-group__icon,
.qb-reward__icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #333;
  overflow: hidden;
}

.qb-reward-group__icon img,
.qb-reward__icon img {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.qb-reward-group__items {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.qb-reward-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #d8d8d8;
  font-size: 0.82rem;
  line-height: 1.35;
}

.qb-reward {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.5rem;
  max-width: 100%;
  min-width: 0;
  color: #e8e8e8 !important;
  font-size: 0.84rem;
  font-weight: 500 !important;
  line-height: 1.35;
  text-decoration: none !important;
}

.qb-reward:hover {
  color: #9dffd4 !important;
}

.qb-reward__icon--empty {
  background: #1a1a1a;
}

.qb-reward__body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.3rem;
  min-width: 0;
  line-height: 1.35;
}

.qb-reward__name {
  font-weight: 650;
}

.qb-reward__body .entity-grade {
  margin-left: 0.15rem;
}

.qb-reward__amount {
  color: #b0b0b0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.qb-reward__exchange {
  color: #8f8f8f;
  font-size: 0.8rem;
}

.qb-fold {
  min-width: 0;
  border: 1px solid #333;
  border-radius: var(--radius-sm);
  background: #1a1a1a;
  padding: 0.1rem 0.5rem;
}

.qb-fold > summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  list-style: none;
  color: #cfcfcf;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
  padding: 0.35rem 0;
  user-select: none;
}

.qb-fold > summary::-webkit-details-marker {
  display: none;
}

.qb-fold > summary::before {
  content: "";
  flex: 0 0 auto;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid #8f8f8f;
  border-bottom: 2px solid #8f8f8f;
  transform: rotate(-45deg);
  transition: transform 0.12s ease;
}

.qb-fold[open] > summary::before {
  transform: rotate(45deg);
  margin-top: -0.12rem;
}

.qb-fold__count {
  margin-left: auto;
  color: #8fd9b8;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.qb-fold__body {
  padding: 0.2rem 0 0.45rem 0.85rem;
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

@media (max-width: 1100px) {
  .qb-table th:nth-child(5),
  .qb-table td:nth-child(5) {
    display: none;
  }

  .qb-table th:nth-child(7),
  .qb-table td:nth-child(7),
  .qb-rewards-cell {
    width: 18rem;
    max-width: 18rem;
  }
}

@media (max-width: 900px) {
  .qb-toolbar__row--fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qb-table th:nth-child(3),
  .qb-table td:nth-child(3) {
    display: none;
  }
}

@media (max-width: 720px) {
  .qb-toolbar__row--fields {
    grid-template-columns: 1fr;
  }

  .qb-table th:nth-child(4),
  .qb-table td:nth-child(4),
  .qb-table th:nth-child(6),
  .qb-table td:nth-child(6) {
    display: none;
  }

  .qb-table th:nth-child(7),
  .qb-table td:nth-child(7),
  .qb-rewards-cell {
    width: auto;
    max-width: none;
  }
}
