.choice-thumbnail {
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--bg);
}

.choice-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 84px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #252b23;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.choice-preview:hover {
  border-color: #7d896f;
  background: #30382b;
}

.choice-preview .choice-thumbnail {
  width: 64px;
  height: 64px;
}

.choice-preview[data-art-group="kin"] .choice-thumbnail,
.choice-preview[data-art-group="profession"] .choice-thumbnail {
  border-radius: 50%;
}

.choice-preview-caption {
  display: grid;
  gap: 5px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.choice-preview-caption strong {
  font-size: 14px;
  font-weight: 500;
}

.choice-preview-caption small {
  color: var(--muted);
  font-size: 11px;
}

.choice-preview-empty {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  color: var(--gold);
  font-size: 30px;
  border: 1px dashed var(--border);
  border-radius: 6px;
}

.equipment-card .choice-thumbnail {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.equipment-card[aria-pressed="true"] {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.equipment-card:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.choice-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.allocation-row:has(> .choice-thumbnail) {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
}

.allocation-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fixed-talent:has(.choice-thumbnail) {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fixed-talent > div,
.check-label > span {
  min-width: 0;
}

.check-label:has(.choice-thumbnail) {
  align-items: center;
}

.character-avatar {
  position: relative;
  display: block;
  flex: none;
  width: 72px;
  height: 78px;
}

.character-portrait {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid #758364;
  border-radius: 50%;
  background: var(--bg);
}

.character-profession {
  position: absolute;
  right: -3px;
  bottom: 0;
  width: 30px;
  height: 30px;
  object-fit: cover;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--bg);
}

.summary-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}

.summary-identity > div {
  min-width: 0;
}

.summary-identity .summary-origin {
  margin: 0;
  line-height: 1.5;
}

.hero-window .hero-avatar-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
}

.hero-window .hero-profession-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 520px) {
  .choice-preview { min-height: 76px; gap: 10px; }
  .choice-preview .choice-thumbnail,
  .choice-preview-empty { width: 56px; height: 56px; }
  .allocation-row:has(> .choice-thumbnail) { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; }
  .allocation-row > .choice-thumbnail { width: 36px; height: 36px; }
  .check-label > .choice-thumbnail { width: 36px; height: 36px; }
}

@media (max-width: 360px) {
  .allocation-row:has(> .choice-thumbnail) { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; }
  .allocation-row > .choice-thumbnail { width: 32px; height: 32px; }
  .allocation-name { font-size: 14px; }
  .allocation-name small { font-size: 11px; }
}
