.character-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.character-sheet-section,
.character-section-card.character-sheet-section,
.character-sheet-resource {
  background: rgba(8, 8, 8, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 12px 16px;
  min-height: 100%;
  box-sizing: border-box;
  color: #e7edf5;
  font-size: 0.78rem;
  line-height: 1.35;
}

.character-sheet-section--wide {
  grid-column: span 3;
}

.character-sheet-section--tall {
  min-height: 280px;
}

.character-sheet-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  margin-bottom: 8px;
}

.character-sheet-title-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.character-sheet-section-title,
.character-sheet-title {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #f8fbff;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.character-sheet-section-tools {
  position: absolute;
  right: 0;
  top: -2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.character-sheet-section-divider {
  width: 100%;
  height: 1px;
  background: rgba(185, 0, 25, 0.95);
  margin: 7px 0 0;
}

.character-sheet-inline-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.character-sheet-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(185, 0, 25, 0.95);
  background: rgba(35, 0, 5, 0.9);
  color: #ffeaea;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.character-sheet-pill--alert {
  background: rgba(110, 0, 14, 0.96);
  color: #fff4f4;
  border-color: rgba(255, 90, 90, 1);
}

.character-sheet-help-button,
.character-sheet-edit-button,
.character-creation-section-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: #eef3fb;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
  font-size: 0.66rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
}

.character-sheet-help-button:hover,
.character-sheet-edit-button:hover,
.character-creation-section-edit:hover {
  border-color: rgba(185, 0, 25, 0.95);
  color: #ffffff;
  background: rgba(185, 0, 25, 0.18);
}

.character-sheet-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.character-sheet-info-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.character-sheet-info-row:last-child {
  border-bottom: 0;
}

.character-sheet-info-label {
  color: #f1f5fb;
  font-weight: 500;
  text-align: left;
  font-size: 0.76rem;
}

.character-sheet-inline-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
}

.character-sheet-info-value {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 0.76rem;
}

.character-sheet-info-value--muted {
  color: #d5deea;
  font-weight: 500;
}

.character-sheet-action-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

.character-sheet-select-button {
  min-height: 31px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.74rem;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.character-sheet-select-button:hover {
  border-color: rgba(185, 0, 25, 0.98);
  background: rgba(185, 0, 25, 0.18);
  color: #ffffff;
}

.character-sheet-empty {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #cfd8e4;
  font-style: italic;
  font-size: 0.7rem;
}

.character-sheet-subsection {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.character-sheet-subsection:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.character-sheet-subsection-title,
.character-sheet-subtitle {
  margin: 0 0 6px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #f6f9fd;
}

.character-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.character-sheet-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.character-sheet-list-row:last-child {
  border-bottom: 0;
}

.character-sheet-list-name {
  color: #eef3fb;
  text-align: center;
  font-size: 0.72rem;
}

.character-sheet-list-value {
  min-width: 18px;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  font-size: 0.72rem;
}

.character-sheet-resource {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 82px;
}

.character-sheet-resource-dots,
.character-sheet-pips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.character-sheet-dot,
.character-sheet-pips .character-sheet-dot,
.character-sheet-pips span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(220, 220, 220, 0.82);
  background: transparent;
  box-sizing: border-box;
  display: inline-block;
}

.character-sheet-dot.is-filled,
.character-sheet-pips .is-filled,
.character-sheet-pips .filled {
  background: rgba(185, 0, 25, 0.95);
  border-color: rgba(185, 0, 25, 0.98);
}

.character-sheet-resource-caption {
  text-align: center;
  color: #dfe6ef;
  font-size: 0.68rem;
  font-weight: 500;
}

.character-sheet-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.character-sheet-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.character-sheet-summary-row:last-child {
  border-bottom: 0;
}

.character-sheet-summary-label {
  color: #edf3fb;
  text-align: left;
  font-size: 0.72rem;
}

.character-sheet-summary-value {
  color: #ffffff;
  font-weight: 700;
  text-align: right;
  font-size: 0.72rem;
}

.character-sheet-warning-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(185, 0, 25, 0.95);
  border: 1px solid rgba(255, 90, 90, 1);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.character-sheet-warning-inline:hover {
  background: rgba(210, 0, 30, 1);
}

.character-sheet-creation-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.character-sheet-creation-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.character-sheet-creation-block-title {
  margin: 0;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #f4f8fc;
}

.character-sheet-creation-block-content {
  text-align: center;
  color: #eef3fb;
  font-size: 0.72rem;
}

.character-sheet-creation-block-content .character-sheet-empty {
  min-height: 36px;
}

.character-sheet-free-traits {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.character-sheet-free-traits-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.character-sheet-free-traits-row:last-child {
  border-bottom: 0;
}

.character-sheet-free-traits-label {
  color: #edf3fb;
  text-align: left;
  font-size: 0.72rem;
}

.character-sheet-free-traits-value {
  color: #ffffff;
  font-weight: 700;
  text-align: right;
  font-size: 0.72rem;
}

.character-sheet-free-traits-value--negative {
  color: #ff7a7a;
}

.character-sheet-free-traits-value--positive {
  color: #ffffff;
}

.character-sheet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.character-sheet-row:last-child {
  border-bottom: 0;
}

.character-sheet-label {
  color: #e9f0f8;
  font-size: 0.72rem;
  font-weight: 500;
  text-align: left;
}

.character-sheet-value {
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}

.character-creation-resource-value {
  width: 100%;
  color: #edf3fb;
  font-size: 0.72rem;
}

.character-creation-free-compact {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.character-creation-derived-pending {
  display: block;
  margin-top: 6px;
  text-align: center;
  color: #f0c7c7;
  font-size: 0.68rem;
}

.character-creation-pending {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(120, 0, 15, 0.2);
  border: 1px solid rgba(185, 0, 25, 0.4);
  color: #f8dcdc;
}

.character-creation-pending-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(185, 0, 25, 0.95);
  border: 1px solid rgba(255, 90, 90, 1);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

.character-creation-pending strong {
  display: block;
  color: #fff3f3;
  font-size: 0.72rem;
  margin-bottom: 2px;
}

.character-creation-pending small {
  color: #f3d6d6;
  font-size: 0.66rem;
}

.character-sheet-mini-title {
  margin: 0 0 4px;
  text-align: center;
  color: #d7dfeb;
  font-size: 0.7rem;
  font-weight: 600;
}

.character-creation-list {
  margin: 0;
  padding: 0;
  list-style-position: inside;
  text-align: center;
  color: #eef3fb;
  font-size: 0.72rem;
}

.character-creation-list li {
  margin: 2px 0;
  color: #eef3fb;
  font-size: 0.72rem;
}

.character-sheet-section[
  data-character-creation-section^="attributes."
] .character-sheet-mini-title {
  text-align: left;
}

.character-sheet-section[
  data-character-creation-section^="attributes."
] .character-creation-list {
  width: 100%;
  padding-left: 18px;
  list-style-position: outside;
  text-align: left;
}

.character-sheet-section[
  data-character-creation-section^="attributes."
] .character-creation-list li {
  text-align: left;
}

.character-creation-specialization {
  color: inherit;
  font-size: inherit;
  font-style: normal;
  font-weight: inherit;
}

.character-creation-clan-ability-grants {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 8px;
  border: 1px solid rgba(185, 0, 25, 0.28);
  border-radius: 5px;
  background: rgba(185, 0, 25, 0.06);
}

.character-creation-clan-ability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #eef3fb;
  font-size: 0.72rem;
}

.character-creation-clan-grant-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 1px 5px;
  border: 1px solid rgba(185, 0, 25, 0.55);
  border-radius: 999px;
  color: #f1c7cd;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.character-creation-clan-choice-pending {
  margin-top: 3px;
  color: #cfd8e4;
  font-size: 0.64rem;
}

.character-creation-inline-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.character-creation-inline-heading {
  color: #f8fbff;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

.character-creation-inline-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #e7edf5;
  font-size: 0.72rem;
}

.character-creation-inline-label small {
  color: #cfd8e4;
  font-size: 0.64rem;
}

.character-creation-inline-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.character-creation-inline-actions .btn {
  font-size: 0.7rem;
}

.character-creation-inline-number-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.character-creation-map-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.character-creation-map-editor + .character-creation-map-editor {
  margin-top: 8px;
}

.character-creation-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #dfe6ef;
  font-size: 0.7rem;
}

.character-creation-editor-heading .btn {
  font-size: 0.66rem;
}

.character-creation-map-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.character-creation-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px auto;
  gap: 5px;
}

.character-creation-map-row[
  data-creation-map-type="specialization"
] {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr)
    auto;
}

.character-creation-map-row[
  data-creation-map-type="ability"
] {
  display: block;
}

.character-creation-ability-row {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.character-creation-ability-row:last-child {
  border-bottom: 0;
}

.character-creation-ability-summary {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto
    24px
    auto;
  gap: 7px;
  align-items: center;
  min-height: 30px;
}

.character-creation-ability-summary-name {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: #eef3fb;
  font-size: 0.72rem;
  font-weight: 500;
}

.character-creation-ability-summary-level {
  min-width: 18px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.character-creation-ability-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef3fb;
  font-size: 0.66rem;
  line-height: 1;
  cursor: pointer;
}

.character-creation-ability-edit:hover {
  border-color: rgba(185, 0, 25, 0.95);
  background: rgba(185, 0, 25, 0.18);
  color: #ffffff;
}

.character-creation-ability-remove {
  min-width: 30px;
}

.character-creation-ability-editor {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
}

.character-creation-ability-fields {
  grid-column: 1 / 2;
}

.character-creation-ability-level-controls {
  grid-column: 2 / 3;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  align-self: start;
  justify-content: flex-end;
  gap: 7px;
}

.character-creation-ability-level-controls
[data-creation-ability-level] {
  min-width: 20px;
}

.character-creation-ability-editor-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 2px;
}

.character-creation-map-row .form-control,
.character-creation-inline-editor .form-control,
.character-creation-inline-editor .form-select {
  color: #f8fbff;
  font-size: 0.72rem;
}

.character-creation-inline-editor
.form-control::placeholder {
  color: rgba(
    248,
    251,
    255,
    0.72
  );
  opacity: 1;
}

.character-creation-inline-editor
.form-control:disabled,
.character-creation-inline-editor
.form-select:disabled {
  color: rgba(
    248,
    251,
    255,
    0.5
  );
}

.character-creation-map-level {
  text-align: center;
}

.character-creation-discipline-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.character-creation-discipline-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.character-creation-discipline-row:last-child {
  border-bottom: 0;
}

.character-creation-discipline-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #eef3fb;
  font-size: 0.72rem;
  font-weight: 500;
}

.character-creation-discipline-name small {
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #d7dfeb;
  font-size: 0.6rem;
  font-weight: 500;
}

.character-creation-discipline-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.character-creation-discipline-controls
[data-creation-discipline-level] {
  min-width: 20px;
}

.character-discipline-sheet-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.character-discipline-clan-badge,
.character-discipline-outside-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #d7dfeb;
  font-size: 0.6rem;
  font-weight: 500;
  line-height: 1.2;
}

.character-discipline-outside-badge {
  border-color: rgba(185, 0, 25, 0.55);
  color: #efc2c8;
}

.character-sheet-section ul,
.character-sheet-section ol {
  list-style-position: inside;
  padding-left: 0;
  margin: 0;
  color: #eef3fb;
}

.character-sheet-section li {
  color: #eef3fb;
  font-size: 0.72rem;
}

.character-sheet-section p {
  color: #d7dfeb;
  font-size: 0.72rem;
}

.character-sheet-section strong,
.character-sheet-section b,
.character-sheet-section label {
  color: #f8fbff;
}

.character-sheet-section .opacity-50,
.character-sheet-section .text-muted {
  opacity: 1 !important;
  color: #cdd6e2 !important;
}

.character-sheet-section .form-text {
  color: #cfd8e4;
  font-size: 0.66rem;
}

.character-sheet-section .small,
.character-sheet-section small {
  color: #d7dfeb;
  font-size: 0.66rem;
}

.character-sheet-section .list-unstyled {
  margin: 0;
  padding: 0;
  list-style: none;
}

.character-sheet-section .list-unstyled li {
  list-style: none;
}

@media (max-width: 1100px) {
  .character-sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .character-sheet-section--wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .character-sheet-grid {
    grid-template-columns: 1fr;
  }

  .character-sheet-section--wide {
    grid-column: span 1;
  }

  .character-sheet-info-row {
    grid-template-columns: minmax(90px, 1fr) minmax(0, 1fr);
  }

  .character-sheet-section,
  .character-section-card.character-sheet-section,
  .character-sheet-resource {
    padding: 11px 12px;
  }
}

@media (max-width: 480px) {
  .character-creation-ability-summary {
    grid-template-columns:
      minmax(0, 1fr)
      auto
      24px
      auto;
  }

  .character-creation-ability-summary-name {
    flex-wrap: wrap;
  }

  .character-creation-ability-editor {
    grid-template-columns: 1fr;
  }

  .character-creation-ability-fields,
  .character-creation-ability-level-controls {
    grid-column: 1;
  }

  .character-creation-ability-level-controls {
    grid-row: auto;
    justify-content: center;
  }

  .character-creation-ability-editor-actions {
    justify-content: center;
  }

  .character-sheet-info-row,
  .character-sheet-list-row,
  .character-sheet-summary-row,
  .character-sheet-free-traits-row,
  .character-sheet-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .character-sheet-info-label,
  .character-sheet-info-value,
  .character-sheet-label,
  .character-sheet-value,
  .character-sheet-summary-label,
  .character-sheet-summary-value,
  .character-sheet-free-traits-label,
  .character-sheet-free-traits-value {
    text-align: center;
    justify-content: center;
  }

  .character-sheet-inline-label {
    justify-content: center;
  }

  .character-sheet-action-row {
    justify-content: center;
  }
}


.character-creation-clan-negative-traits {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 8px;
  border: 1px solid rgba(185, 0, 25, 0.34);
  border-radius: 5px;
  background: rgba(185, 0, 25, 0.07);
}

.character-creation-clan-negative-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #eef3fb;
  font-size: 0.72rem;
}

.character-creation-clan-negative-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  padding: 1px 5px;
  border: 1px solid rgba(185, 0, 25, 0.65);
  border-radius: 999px;
  color: #f1c7cd;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.character-creation-clan-negative-note {
  margin-top: 2px;
  color: #cfd8e4;
  font-size: 0.64rem;
}

.character-negative-trait-list
.character-clan-negative-trait {
  display: flex;
  align-items: center;
  gap: 5px;
}


.character-creation-outside-discipline-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.character-creation-outside-discipline-note {
  font-size: 0.64rem;
}

.character-discipline-approval-warning {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  padding: 0;
  font-size: 0.62rem;
  line-height: 1;
}

.character-creation-discipline-controls {
  flex-wrap: nowrap;
}


.character-creation-discipline-limit-notice {
  border: 1px solid rgba(185, 0, 25, 0.34);
  background: rgba(185, 0, 25, 0.07);
  color: #cfd8e4;
}

.character-creation-discipline-limit-highlight {
  color: #f1c7cd;
  font-weight: 700;
}

.character-creation-discipline-limit-reference {
  color: #9faab8;
  font-size: 0.64rem;
}


.character-creation-background-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.character-creation-background-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.character-creation-background-row:last-child {
  border-bottom: 0;
}

.character-creation-background-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #eef3fb;
  font-size: 0.72rem;
  font-weight: 500;
}

.character-creation-background-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: nowrap;
}

.character-creation-background-controls
[data-creation-background-level] {
  min-width: 20px;
}

.character-creation-background-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.character-creation-background-picker-note {
  color: #cfd8e4;
  font-size: 0.64rem;
}

.character-creation-background-rule-notice {
  border: 1px solid rgba(185, 0, 25, 0.34);
  background: rgba(185, 0, 25, 0.07);
  color: #cfd8e4;
}

.character-creation-background-rule-highlight {
  color: #f1c7cd;
  font-weight: 700;
}

.character-creation-background-rule-reference {
  color: #9faab8;
  font-size: 0.64rem;
}

.character-background-special-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border: 1px solid rgba(185, 0, 25, 0.55);
  border-radius: 999px;
  color: #efc2c8;
  font-size: 0.6rem;
  font-weight: 500;
  line-height: 1.2;
}


.character-creation-influence-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.character-creation-influence-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.character-creation-influence-row:last-child {
  border-bottom: 0;
}

.character-creation-influence-name {
  min-width: 0;
  color: #eef3fb;
  font-size: 0.72rem;
  font-weight: 500;
}

.character-creation-influence-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: nowrap;
}

.character-creation-influence-controls
[data-creation-influence-level] {
  min-width: 20px;
}

.character-creation-influence-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.character-creation-influence-rule-notice {
  border: 1px solid rgba(185, 0, 25, 0.34);
  background: rgba(185, 0, 25, 0.07);
  color: #cfd8e4;
}

.character-creation-influence-rule-highlight {
  color: #f1c7cd;
  font-weight: 700;
}

.character-creation-influence-rule-reference {
  color: #9faab8;
  font-size: 0.64rem;
}
