.tabs {
  flex-wrap: wrap;
  gap: 4px;
}
.tabs button {
  flex: 1 0 auto;
  min-height: 40px;
  padding: 9px 11px;
}
.x-card {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  background: #ffffff06;
  overflow: hidden;
}
.x-card > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}
.x-card > small {
  display: block;
  margin-bottom: 8px;
  color: #a7b4ce;
}
.x-card > button, .x-party > button {
  margin: 8px 5px 0 0;
  min-height: 44px;
}
.x-locked {
  opacity: .6;
}
.x-card details {
  margin: 12px 0;
  color: #bdc8df;
  font-size: 13px;
}
.x-card summary {
  cursor: pointer;
  padding: 6px 0;
}
.x-summary {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin: 12px 0;
}
.x-summary span {
  background: #080d1b70;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  padding: 11px;
  color: #aab8d0;
  font-size: 12px;
}
.x-summary b {
  display: block;
  color: #f3f6ff;
  font-size: 19px;
  margin-top: 4px;
}
.x-objectives {
  list-style: none;
  padding: 0;
  font-size: 12px;
}
.x-objectives li {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 9px 0;
}
.x-objectives b {
  white-space: nowrap;
}
.x-cover {
  width: calc(100% + 32px);
  height: 90px;
  object-fit: cover;
  margin: -16px -16px 14px;
  opacity: .75;
}
.x-portraits {
  display: flex;
  gap: 8px;
}
.x-portraits img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.x-party-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
}
.x-member {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #ffffff24;
  font-size: 12px;
  cursor: pointer;
}
.x-member:has(input:checked) {
  border-color: var(--accent);
  background: #ffffff10;
}
.x-member img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.x-member input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.x-storage {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
.x-storage .x-card {
  margin: 0;
  padding: 10px;
  text-align: center;
}
.x-storage img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.x-storage strong {
  font-size: 12px;
}
.x-storage button {
  font-size: 12px;
}
.x-puzzle {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 7px;
}
.x-puzzle .cell {
  width: 100%;
  aspect-ratio: 1;
  min-height: 50px;
}
.x-puzzle img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}
.x-journal {
  list-style: none;
  padding: 0;
}
.x-journal li {
  display: grid;
  gap: 6px;
  border-left: 2px solid var(--accent);
  padding: 4px 0 16px 14px;
  margin-bottom: 8px;
  font-size: 13px;
}
.x-journal time, .x-journal small {
  color: #99abc8;
  font-size: 11px;
}
.x-detail > img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
  margin: auto;
}
.x-detail ul {
  padding-left: 20px;
  line-height: 1.7;
}
#shards {
  color: #cbb2ff;
  display: block;
  margin-top: 6px;
  font-size: 12px;
}
@media (max-width: 600px) {
  .tabs button {
    flex-basis: 30%;
    font-size: 11px;
    padding: 8px 4px;
  }
  .x-objectives li {
    font-size: 11px;
  }
}
