@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
.window-app {
  font-family: "Roboto", sans-serif;
}

.rollable:hover, .rollable:focus {
  color: #000;
  text-shadow: 0 0 10px red;
  cursor: pointer;
}

.grid,
.grid-2col {
  display: grid;
  grid-column: span 2/span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
  padding: 0;
}

.grid-3col {
  grid-column: span 3/span 3;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4col {
  grid-column: span 4/span 4;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5col {
  grid-column: span 5/span 5;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid-6col {
  grid-column: span 6/span 6;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.grid-7col {
  grid-column: span 7/span 7;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.grid-8col {
  grid-column: span 8/span 8;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.grid-9col {
  grid-column: span 9/span 9;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.grid-10col {
  grid-column: span 10/span 10;
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.grid-11col {
  grid-column: span 11/span 11;
  grid-template-columns: repeat(11, minmax(0, 1fr));
}

.grid-12col {
  grid-column: span 12/span 12;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.grid-start-2 {
  grid-column-start: 2;
}

.grid-start-3 {
  grid-column-start: 3;
}

.grid-start-4 {
  grid-column-start: 4;
}

.grid-start-5 {
  grid-column-start: 5;
}

.grid-start-6 {
  grid-column-start: 6;
}

.grid-start-7 {
  grid-column-start: 7;
}

.grid-start-8 {
  grid-column-start: 8;
}

.grid-start-9 {
  grid-column-start: 9;
}

.grid-start-10 {
  grid-column-start: 10;
}

.grid-start-11 {
  grid-column-start: 11;
}

.grid-start-12 {
  grid-column-start: 12;
}

.grid-span-2 {
  grid-column-end: span 2;
}

.grid-span-3 {
  grid-column-end: span 3;
}

.grid-span-4 {
  grid-column-end: span 4;
}

.grid-span-5 {
  grid-column-end: span 5;
}

.grid-span-6 {
  grid-column-end: span 6;
}

.grid-span-7 {
  grid-column-end: span 7;
}

.grid-span-8 {
  grid-column-end: span 8;
}

.grid-span-9 {
  grid-column-end: span 9;
}

.grid-span-10 {
  grid-column-end: span 10;
}

.grid-span-11 {
  grid-column-end: span 11;
}

.grid-span-12 {
  grid-column-end: span 12;
}

.flex-group-center,
.flex-group-left,
.flex-group-right {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.flex-group-left {
  justify-content: flex-start;
  text-align: left;
}

.flex-group-right {
  justify-content: flex-end;
  text-align: right;
}

.flexshrink {
  flex: 0;
}

.flex-between {
  justify-content: space-between;
}

.flexlarge {
  flex: 2;
}

.align-left {
  justify-content: flex-start;
  text-align: left;
}

.align-right {
  justify-content: flex-end;
  text-align: right;
}

.align-center {
  justify-content: center;
  text-align: center;
}

.item-form {
  font-family: "Roboto", sans-serif;
}

.sheet-header {
  flex: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.sheet-header .profile-img {
  flex: 0 0 100px;
  height: 100px;
  margin-right: 10px;
}
.sheet-header .header-fields {
  flex: 1;
}
.sheet-header h1.charname {
  height: 50px;
  padding: 0px;
  margin: 5px 0;
  border-bottom: 0;
}
.sheet-header h1.charname input {
  width: 100%;
  height: 100%;
  margin: 0;
}

.sheet-tabs {
  flex: 0;
}

.sheet-body,
.sheet-body .tab,
.sheet-body .tab .editor {
  height: 100%;
}

.tox .tox-editor-container {
  background: #fff;
}
.tox .tox-edit-area {
  padding: 0 8px;
}

.prerequisites-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.prerequisites-list .prerequisite {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.prerequisites-list .prerequisite input {
  flex: 1;
  margin-right: 5px;
}
.prerequisites-list .prerequisite .delete-prerequisite {
  flex: 0 0 20px;
  text-align: center;
  color: #b22222;
}
.prerequisites-list .prerequisite .delete-prerequisite:hover {
  color: rgb(135.179245283, 25.820754717, 25.820754717);
}

.add-prerequisite {
  margin-left: 10px;
  color: #2e8b57;
}
.add-prerequisite:hover {
  color: rgb(33.3189189189, 100.6810810811, 63.0162162162);
}

.items-header {
  height: 28px;
  margin: 2px 0;
  padding: 0;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border: 2px groove #eeede0;
  font-weight: bold;
}
.items-header > * {
  font-size: 14px;
  text-align: center;
}
.items-header .item-name {
  font-weight: bold;
  padding-left: 5px;
  text-align: left;
  display: flex;
}

.items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  color: #444;
}
.items-list .item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.items-list .item-name {
  flex: 2;
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  text-align: left;
  align-items: center;
  display: flex;
}
.items-list .item-name h3, .items-list .item-name h4 {
  margin: 0;
  white-space: nowrap;
  overflow-x: hidden;
}
.items-list .item-controls {
  display: flex;
  flex: 0 0 100px;
  justify-content: flex-end;
}
.items-list .item-controls a {
  font-size: 12px;
  text-align: center;
  margin: 0 6px;
}
.items-list .item {
  align-items: center;
  padding: 0 2px;
  border-bottom: 1px solid #c9c7b8;
}
.items-list .item:last-child {
  border-bottom: none;
}
.items-list .item .item-name {
  color: #191813;
}
.items-list .item .item-name .item-image {
  flex: 0 0 30px;
  height: 30px;
  background-size: 30px;
  border: none;
  margin-right: 5px;
}
.items-list .item-prop {
  text-align: center;
  border-left: 1px solid #c9c7b8;
  border-right: 1px solid #c9c7b8;
  font-size: 12px;
}
.items-list .items-header {
  height: 28px;
  margin: 2px 0;
  padding: 0;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border: 2px groove #eeede0;
  font-weight: bold;
}
.items-list .items-header > * {
  font-size: 12px;
  text-align: center;
}
.items-list .items-header .item-name {
  padding-left: 5px;
  text-align: left;
}

.item-formula {
  flex: 0 0 200px;
  padding: 0 8px;
}

/* Effects Tab */
.effects-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.effects-list li {
  padding: 5px 0;
}
.effects-list li .effect-source, .effects-list li .effect-duration {
  font-size: 0.8em;
  color: #6b7280;
}

.effects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #c9c7b8;
}
.effects-header .effects-title {
  font-weight: bold;
  margin: 0;
}

.item-list .effect {
  border-bottom: 1px solid #c9c7b8;
  margin-bottom: 5px;
}
.item-list .effect .item-image {
  flex: 0 0 24px;
  margin-right: 5px;
}
.item-list .effect .effect-name h4 {
  margin: 0;
}
.item-list .effect .effect-controls {
  display: flex;
  gap: 5px;
}
.item-list .effect .effect-controls .effect-control {
  color: #191813;
}
.item-list .effect .effect-controls .effect-control:hover {
  color: #1e40af;
}
.item-list .effect:last-child {
  border-bottom: none;
}

.effects .item .effect-source,
.effects .item .effect-duration,
.effects .item .effect-controls {
  text-align: center;
  border-left: 1px solid #c9c7b8;
  border-right: 1px solid #c9c7b8;
  font-size: 12px;
}
.effects .item .effect-controls {
  border: none;
}

.resource-label {
  font-weight: bold;
}

/* Characteristics layout */
.characteristics-container {
  display: flex;
  gap: 20px;
  margin: 10px 0;
}

.characteristics-column {
  flex: 1;
  border: 1px solid #c9c7b8;
  border-radius: 5px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
}
.characteristics-column .column-header {
  text-align: center;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #c9c7b8;
  font-weight: bold;
  color: #191813;
}
.characteristics-column.physical .column-header {
  color: #8b4513;
}
.characteristics-column.mental .column-header {
  color: #4682b4;
}

.characteristics-separator {
  width: 2px;
  background: linear-gradient(to bottom, transparent, #c9c7b8, transparent);
  margin: 10px 0;
}

.characteristic {
  margin-bottom: 10px;
}
.characteristic-label {
  flex: 0 0 120px;
  font-weight: bold;
  color: #191813;
}
.characteristic-content {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.characteristic-content input {
  flex: 0 0 50px;
  text-align: center;
  border: 1px solid #b5b3a4;
  border-radius: 3px;
  padding: 2px 5px;
}
.characteristic-controls {
  display: flex;
  gap: 3px;
}
.characteristic-roll, .characteristic-damage, .characteristic-bonus {
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.characteristic-roll:hover, .characteristic-damage:hover, .characteristic-bonus:hover {
  transform: scale(1.1);
}
.characteristic-roll {
  color: #1e40af;
  border-color: #1e40af;
}
.characteristic-roll:hover {
  background-color: rgba(30, 64, 175, 0.1);
}
.characteristic-damage {
  color: #aa3333;
  border-color: #aa3333;
}
.characteristic-damage:hover {
  background-color: rgba(170, 51, 51, 0.1);
}
.characteristic-bonus {
  color: #33aa33;
  border-color: #33aa33;
}
.characteristic-bonus:hover {
  background-color: rgba(51, 170, 51, 0.1);
}
.characteristic-modifiers {
  display: flex;
  gap: 5px;
  font-size: 0.9em;
}
.characteristic-bonus-value {
  color: #33aa33;
}
.characteristic-malus-value {
  color: #aa3333;
}
.characteristic-max {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #666;
  font-size: 14px;
}

/* Character header container */
.charname-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

/* Resources container */
.resources-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 5px;
}
.resources-container .resource {
  padding: 5px;
  border-radius: 3px;
}
.resources-container .resource.health-resource {
  background-color: rgba(217, 87, 87, 0.1);
}
.resources-container .resource.xp-resource {
  background-color: rgba(142, 192, 124, 0.1);
}
.resources-container .resource.magic-resource {
  background-color: rgba(90, 154, 232, 0.1);
  grid-column: span 2;
}
.resources-container .resource .xp-unspent {
  font-weight: bold;
  color: #2e8b57;
}
.resources-container .resource .xp-total {
  color: #666;
}

/* Characteristic modifiers styling */
.characteristic-modifiers {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 5px;
  font-size: 14px;
}
.characteristic-bonus {
  color: #2e8b57; /* Green */
  font-weight: bold;
}
.characteristic-malus {
  color: #b22222; /* Red */
  font-weight: bold;
}

/* Tab styling adjustments */
.myriad-system .sheet-tabs .item[data-tab=characteristics] {
  color: #4b5563;
}
.myriad-system .sheet-tabs .item[data-tab=features] {
  color: #1e40af;
}
.myriad-system .sheet-tabs .item[data-tab=magic] {
  color: #7e22ce;
}

/* Styles pour les compétences */
.benefits-list,
.drawbacks-list,
.prerequisites-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.benefits-list li,
.drawbacks-list li,
.prerequisites-list li {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.benefits-list li input,
.drawbacks-list li input,
.prerequisites-list li input {
  flex: 1;
}
.benefits-list li a,
.drawbacks-list li a,
.prerequisites-list li a {
  margin-left: 5px;
  color: #aa0000;
}

.form-group.stacked {
  margin-bottom: 15px;
}
.form-group.stacked label {
  display: flex;
  justify-content: space-between;
}
.form-group.stacked label a {
  color: #0066aa;
}

.item-grade {
  display: flex;
  justify-content: space-between;
  width: 80px;
  margin-right: 10px;
}
.item-grade i.fa-circle {
  color: #bfa26a;
}
.item-grade i.fa-circle-o {
  color: #f3f4f6;
}

/* Style pour les pips de grade cliquables */
.grade-pips {
  display: flex;
  align-items: center;
}
.grade-pips .grade-pip {
  margin-right: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.1s, color 0.2s;
}
.grade-pips .grade-pip.active {
  color: #bfa26a;
}
.grade-pips .grade-pip.inactive {
  color: transparent;
  text-shadow: 0 0 0 #f3f4f6;
}
.grade-pips .grade-pip:hover {
  transform: scale(1.2);
}
.grade-pips .grade-pip:hover.active {
  color: rgb(172.0845070423, 138.5915492958, 73.9154929577);
}
.grade-pips .grade-pip:hover.inactive {
  text-shadow: 0 0 0 white;
}
.grade-pips .grade-value {
  margin-left: 10px;
  font-weight: bold;
  color: #bfa26a;
  font-size: 14px;
}

.add-benefit,
.add-drawback,
.add-prerequisite {
  margin-left: 5px;
  color: #0066aa;
  cursor: pointer;
}

/* Style pour les pips de grade dans la fiche de personnage */
.item-list .item .item-grade {
  display: flex;
  align-items: center;
  margin: 0 10px;
}
.item-list .item .item-grade .grade-pip {
  font-size: 12px;
  margin-right: 4px;
}
.item-list .item .item-grade .grade-pip.active {
  color: #bfa26a;
}
.item-list .item .item-grade .grade-pip.inactive {
  color: #f3f4f6;
}
.item-list .item-passive {
  margin-top: 5px;
  font-style: italic;
  color: #9ca3af;
}
.item-list .item-prerequisites {
  margin-top: 10px;
}
.item-list .item-prerequisites h4 {
  font-size: 14px;
  margin-bottom: 5px;
  color: #374151;
}
.item-list .item-prerequisites ul {
  margin: 0;
  padding-left: 20px;
}
.item-list .item-prerequisites ul li {
  font-size: 12px;
}

/* Affichage des avantages et inconvénients dans la feuille de personnage */
.item-benefits,
.item-drawbacks,
.item-constraints,
.item-prerequisites {
  margin-top: 10px;
}
.item-benefits h4,
.item-drawbacks h4,
.item-constraints h4,
.item-prerequisites h4 {
  font-size: 14px;
  margin-bottom: 5px;
  border-bottom: 1px solid #c9c7b8;
}
.item-benefits ul,
.item-drawbacks ul,
.item-constraints ul,
.item-prerequisites ul {
  margin: 0;
  padding-left: 20px;
}
.item-benefits ul li,
.item-drawbacks ul li,
.item-constraints ul li,
.item-prerequisites ul li {
  margin-bottom: 3px;
  font-size: 13px;
}

/* Styles spécifiques au système Myriad */
.myriad-system.sheet.actor {
  min-width: 560px;
  min-height: 420px;
}
.myriad-system.sheet.actor .sheet-header {
  flex: 0 0 auto;
  overflow: visible;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  min-height: 120px;
}
.myriad-system.sheet.actor .sheet-header .profile-img {
  flex: 0 0 100px;
  height: 100px;
  margin-right: 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
}
.myriad-system.sheet.actor .sheet-header .header-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100px;
  gap: 10px;
}
.myriad-system.sheet.actor .sheet-header .header-fields .charname-container {
  flex: 0 0 auto;
}
.myriad-system.sheet.actor .sheet-header .header-fields .charname-container .charname {
  margin: 0 0 10px 0;
  padding: 0;
  height: auto;
}
.myriad-system.sheet.actor .sheet-header .header-fields .charname-container .charname input {
  width: 100%;
  height: 32px;
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}
.myriad-system.sheet.actor .sheet-header .header-fields .resources-container {
  flex: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
.myriad-system.sheet.actor .sheet-header .header-fields .resources-container .resource {
  flex: 0 0 calc(33% - 7px);
  min-width: 120px;
  height: auto;
  margin: 0;
  text-align: center;
}
.myriad-system.sheet.actor .sheet-header .header-fields .resources-container .resource .resource-label {
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 2px;
  display: block;
}
.myriad-system.sheet.actor .sheet-header .header-fields .resources-container .resource .resource-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.myriad-system.sheet.actor .sheet-header .header-fields .resources-container .resource .resource-content input {
  width: 40px;
  height: 24px;
  text-align: center;
  font-size: 12px;
}
.myriad-system.sheet.actor .sheet-header .header-fields .resources-container .resource .resource-content .sep {
  font-weight: bold;
  font-size: 14px;
}
.myriad-system.sheet.actor .sheet-header .header-fields .resources-container .resource .resource-content .xp-unspent, .myriad-system.sheet.actor .sheet-header .header-fields .resources-container .resource .resource-content .xp-total {
  font-size: 12px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}
.myriad-system.sheet.actor .sheet-header .header-fields .resources-container .resource .resource-content .health-max {
  font-size: 12px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
  color: #666;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 2px 4px;
}
.myriad-system.sheet.actor .sheet-header .header-fields .resources-container .resource .resource-content .xp-control {
  background: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 2px 4px;
  cursor: pointer;
  font-size: 10px;
  transition: background-color 0.2s;
}
.myriad-system.sheet.actor .sheet-header .header-fields .resources-container .resource .resource-content .xp-control:hover {
  background: #e8e8e8;
}
.myriad-system.sheet.actor .sheet-header .header-fields .resources-container .resource .resource-content .xp-control:active {
  background: #d8d8d8;
}
.myriad-system.sheet.actor .sheet-header .header-fields .resources-container .resource .resource-content .xp-control i {
  font-size: 8px;
}
.myriad-system.sheet.actor .characteristics .characteristic {
  margin: 5px 0;
  padding: 5px;
  border: 1px solid #AAA;
  border-radius: 3px;
}
.myriad-system.sheet.actor .characteristics .characteristic .characteristic-label {
  font-weight: bold;
  min-width: 120px;
}
.myriad-system.sheet.actor .characteristics .characteristic .characteristic-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.myriad-system.sheet.actor .characteristics .characteristic .characteristic-content input {
  flex: 0 0 60px;
  text-align: center;
}
.myriad-system.sheet.actor .characteristics .characteristic .characteristic-content .characteristic-roll {
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 4px 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.myriad-system.sheet.actor .characteristics .characteristic .characteristic-content .characteristic-roll:hover {
  background: #e0e0e0;
  transform: scale(1.05);
}
.myriad-system.sheet.actor .characteristics .characteristic .characteristic-content .characteristic-roll:active {
  background: #d0d0d0;
}
.myriad-system.sheet.actor .characteristics .characteristic .characteristic-content .characteristic-roll i {
  font-size: 14px;
  color: #444;
}
.myriad-system.sheet.actor .characteristics .characteristic .characteristic-content .characteristic-modifiers {
  display: flex;
  gap: 3px;
  margin-left: 5px;
}
.myriad-system.sheet.actor .characteristics .characteristic .characteristic-content .characteristic-modifiers .characteristic-bonus {
  color: #2e8b57;
  font-weight: bold;
  font-size: 11px;
}
.myriad-system.sheet.actor .characteristics .characteristic .characteristic-content .characteristic-modifiers .characteristic-malus {
  color: #dc143c;
  font-weight: bold;
  font-size: 11px;
}
.myriad-system.sheet.actor .items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  color: #444;
}
.myriad-system.sheet.actor .items-list .item {
  line-height: 30px;
  padding: 3px 0;
  border-bottom: 1px solid #BBB;
}
.myriad-system.sheet.actor .items-list .item .item-name {
  margin: 0;
}
.myriad-system.sheet.actor .items-list .item .item-image {
  flex: 0 0 24px;
  margin-right: 5px;
}
.myriad-system.sheet.actor .items-list .item img {
  display: block;
}
.myriad-system.sheet.actor .items-list .item .item-tags {
  flex: 1;
  margin: 0 5px;
}
.myriad-system.sheet.actor .items-list .item .tag {
  display: inline-block;
  margin: 0 2px;
  padding: 0 3px;
  font-size: 10px;
  line-height: 16px;
  border: 1px solid #999;
  border-radius: 3px;
  background: #DDD;
}
.myriad-system.sheet.actor .items-list .item .item-controls {
  flex: 0 0 80px;
  text-align: right;
}
.myriad-system.sheet.actor .items-list .item .item-controls .item-control {
  margin: 0 2px;
}
.myriad-system.sheet.actor .items-list .item .item-controls .item-control i {
  font-size: 12px;
}
.myriad-system.sheet.actor .inventory-grid {
  display: grid;
  gap: 1px;
  background: #DDD;
  padding: 5px;
  margin-bottom: 10px;
}
.myriad-system.sheet.actor .inventory-grid .inventory-cell {
  width: 50px;
  height: 50px;
  background: white;
  border: 1px solid #AAA;
  transition: all 0.2s ease;
}
.myriad-system.sheet.actor .inventory-grid .inventory-cell.occupied {
  background: #EEE;
}
.myriad-system.sheet.actor .inventory-grid .inventory-cell.dragging-over {
  background: #CFC;
}
.myriad-system.sheet.actor .inventory-grid .inventory-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Styles pour les résultats de jets de dés */
.dice-roll .critical-success {
  color: #2e8b57;
  font-weight: bold;
}
.dice-roll .success {
  color: #4caf50;
  font-weight: bold;
}
.dice-roll .failure {
  color: #f44336;
  font-weight: bold;
}
.dice-roll .critical-failure {
  color: #d32f2f;
  font-weight: bold;
}

/* Action Points styling */
.myriad-system .action-points-resource {
  background-color: rgba(255, 165, 0, 0.1);
}
.myriad-system .action-points-resource.inactive {
  opacity: 0.4;
}
.myriad-system .action-points-resource select.ap-stance {
  width: auto;
  font-size: 11px;
  padding: 2px 4px;
}

/* Combat Tracker AP badge */
.combat-tracker .myriad-ap-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  background: linear-gradient(135deg, #f30000, #00ff37);
  color: #111;
  font-size: 10px;
  line-height: 1;
  padding: 2px 4px 3px 4px;
  border-radius: 4px;
  font-weight: bold;
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
  text-align: center;
  min-width: 20px;
}
