.dnc-actor-sheet .characteristic-list {
  display: flex;
  flex-direction: column;
  gap: @spacing-sm;
}

.dnc-actor-sheet .characteristic-row {
  display: grid;
  grid-template-columns: 2rem 1fr 4rem;
  gap: @spacing-sm;
  align-items: center;
}

.dnc-actor-sheet .characteristic-label {
  font-weight: 700;
}

.dnc-actor-sheet .profile-counters {
  display: grid;
  grid-template-columns: 1fr;
  gap: @spacing-md;
}

// Réduction de la taille des champs PV
.dnc-actor-sheet .hp-field .counter-field input[type="number"] {
  max-width: 60px;
  text-align: center;
}

.dnc-actor-sheet .hp-field .counter-field {
  gap: @spacing-xs;
}

.dnc-actor-sheet .profile-card-wide {
  width: 100%;
}

.dnc-actor-sheet .profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: @spacing-lg;
  align-items: start;
}

.dnc-actor-sheet .profile-column {
  display: flex;
  flex-direction: column;
  gap: @spacing-md;
}

.dnc-actor-sheet .favor-card {
  margin: @spacing-md 0;
  padding: @spacing-md;
  border: 1px dashed fade(@color-border, 55%);
  border-radius: @radius-md;
  background: fade(@color-panel-strong, 35%);
}

.dnc-actor-sheet .favor-header h2 {
  margin-bottom: @spacing-sm;
}

.dnc-actor-sheet .favor-help {
  margin: 0 0 @spacing-md;
  color: @color-muted;
  font-size: 0.82rem;
}

.dnc-actor-sheet .favor-list {
  display: grid;
  gap: @spacing-sm;
}

.dnc-actor-sheet .favor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem auto;
  gap: @spacing-sm;
  align-items: end;
}

.dnc-actor-sheet .favor-meta {
  min-height: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: @radius-sm;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid fade(@color-border, 35%);
  font-weight: 700;
}

.dnc-actor-sheet .magic-layout {
  align-items: start;
  margin-bottom: @spacing-md;
}

.dnc-actor-sheet .magic-layout .sheet-column {
  display: flex;
  flex-direction: column;
  gap: @spacing-md;
}

.dnc-actor-sheet .magic-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: @spacing-md;
  align-items: end;
}

.dnc-actor-sheet .chaos-table-wrapper {
  margin-top: @spacing-md;
}

.dnc-actor-sheet .chaos-table-wrapper h3 {
  margin: 0 0 @spacing-sm;
  font-size: 0.95rem;
}

.dnc-actor-sheet .chaos-table-caption {
  margin: 0 0 @spacing-sm;
  color: @color-muted;
  font-size: 0.78rem;
  font-style: italic;
}

.dnc-actor-sheet .chaos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.dnc-actor-sheet .chaos-table th,
.dnc-actor-sheet .chaos-table td {
  padding: 0.4rem 0.45rem;
  border: 1px solid fade(@color-border, 35%);
  vertical-align: top;
}

.dnc-actor-sheet .chaos-table th {
  text-align: left;
  background: fade(@color-panel-strong, 55%);
}

.dnc-actor-sheet .sheet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: @spacing-sm;
  margin: @spacing-lg 0 @spacing-md;
  justify-content: center;
}

.dnc-actor-sheet .sheet-tab {
  border: 1px solid fade(@color-border, 80%);
  border-radius: @radius-md;
  background: fade(@color-panel-strong, 55%);
  color: @color-ink;
  font-weight: 700;
  padding: @spacing-sm @spacing-md;
}

.dnc-actor-sheet .sheet-tab.active {
  background: @color-accent;
  border-color: darken(@color-accent, 12%);
  color: #fff;
}

.dnc-actor-sheet .sheet-tab-panel {
  display: none;
}

.dnc-actor-sheet .sheet-tab-panel.active {
  display: block;
}

.dnc-actor-sheet .item-list {
  display: flex;
  flex-direction: column;
  gap: @spacing-md;
}

.dnc-actor-sheet .item-section.is-dragover {
  border-color: @color-accent;
  box-shadow: 0 0 0 2px fade(@color-accent, 20%);
}

.dnc-actor-sheet .item-dropzone {
  border: 1px dashed fade(@color-border, 75%);
  border-radius: @radius-md;
  padding: @spacing-md;
  min-height: 3.25rem;
  background: fade(@color-panel-strong, 45%);
  color: @color-muted;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.dnc-actor-sheet .item-dropzone.has-items {
  padding: @spacing-sm @spacing-md;
  font-size: 0.8rem;
}

.dnc-actor-sheet .item-section.is-dragover .item-dropzone {
  border-color: @color-accent;
  background: fade(@color-accent, 12%);
  color: @color-ink;
}

.dnc-actor-sheet .item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: @spacing-md;
  align-items: start;
  border-top: 1px dashed fade(@color-border, 45%);
  padding-top: @spacing-md;
}

.dnc-actor-sheet .item:first-child {
  border-top: 0;
  padding-top: 0;
}

.dnc-actor-sheet .item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: @radius-sm;
  border: 1px solid @color-border;
  background: #fff;
}

.dnc-actor-sheet .item-main p {
  margin: @spacing-sm 0 0;
  color: @color-muted;
}

.dnc-actor-sheet .item-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: @spacing-sm;
  align-items: center;
}

.dnc-actor-sheet .item-meta {
  border-radius: 999px;
  background: @color-panel-strong;
  color: @color-ink;
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
}

.dnc-actor-sheet .item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: @spacing-sm;
  justify-content: flex-end;
}

.dnc-pnj-sheet .pnj-layout .sheet-column {
  display: flex;
  flex-direction: column;
  gap: @spacing-md;
}

.dnc-pnj-sheet .pnj-combat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: @spacing-md;
  align-items: end;
}

.dnc-pnj-sheet .pnj-combat-grid .span-two {
  grid-column: 1 / -1;
}

.dnc-pnj-sheet .pnj-attack-list {
  display: flex;
  flex-direction: column;
  gap: @spacing-md;
}

.dnc-pnj-sheet .pnj-attack-list .section-header {
  margin-bottom: 0;
}

.dnc-pnj-sheet .pnj-attack-list h3 {
  margin: 0;
  font-size: 0.95rem;
  color: @color-ink;
}

.dnc-pnj-sheet .pnj-attack-rows {
  display: flex;
  flex-direction: column;
  gap: @spacing-md;
}

.dnc-pnj-sheet .pnj-attack-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem max-content;
  gap: @spacing-md;
  align-items: end;
}

.dnc-pnj-sheet .pnj-attack-row .item-actions {
  align-self: end;
  gap: @spacing-sm;
}
