  /* ==================== (A) Fonts ==================== */
  @font-face {
    font-family: "Charlemagne";
    src: url('../assets/fonts/CharlemagneStd-Bold.otf') format("opentype");
  }

  @font-face {
    font-family: "CentaurMT";
    src: url('../assets/fonts/CentaurMT.otf') format("opentype");
  }

  :root {
    /* =================== 1. ACTOR SHEET FONT STYLES =========== */
    --window-header-font-family: CentaurMT;
    --window-header-title-font-size: 1.1rem;
    --window-header-title-font-weight: normal;
    --window-header-title-color: #f5f5f5;

    --major-button-font-family: CentaurMT;
    --major-button-font-size: 1.05rem;
    --major-button-font-weight: normal;
    --major-button-color: #dadada;

    --tab-header-font-family: CentaurMT;
    --tab-header-font-size: 1.0rem;
    --tab-header-font-weight: 700;
    --tab-header-color: #403f3e;
    --tab-header-color-active: #4a0404;

    --font-primary: CentaurMT;
    --font-secondary: CentaurMT;

    --actor-input-font-size: 0.9rem;
    --actor-input-font-weight: 500;
    --actor-input-color: black;

    --actor-label-font-size: 0.9rem;
    --actor-label-font-weight: 700;
    --actor-label-color: #464331c4;

    /* =================== 2. DEBUGGING HIGHLIGHTERS ============ */
    --debug-background-color-red: #ff000054;
    --debug-background-color-blue: #1d00ff54;
    --debug-background-color-green: #54ff0054;

    --debug-box-shadow-red: inset 0 0 2px red;
    --debug-box-shadow-blue: inset 0 0 2px blue;
    --debug-box-shadow-green: inset 0 0 2px green;
  }


  .window-app button,
  .window-app select,
  .window-app input {
    font-family: "CentaurMT";
    text-align: center;
  }

  /*@import url("https://fonts.googleapis.com/css2?family=Martel:wght@400;800&family=Roboto:wght@300;400;500&display=swap");*/
  /* Global styles & Font */
  .window-app {
    font-family: CentaurMT;
    text-align: justify;
    font-size: 12px;
    letter-spacing: 1px;
  }

  /* Fonts */
  .sheet header.sheet-header h1 input,
  .window-app .window-header,
  #actors .directory-list,
  #navigation #scene-list .scene.nav-item {
    font-family: "CentaurMT";
    font-size: 0.9rem;
  }

  /* For title, sidebar character and scene */
  .sheet nav.sheet-tabs {
    font-family: "Charlemagne";
    font-size: 0.8rem;
  }

  /* For nav and title */
  .window-app input,
  .fvtt-mournblade .item-form,
  .sheet header.sheet-header .flex-group-center.flex-compteurs,
  .sheet header.sheet-header .flex-group-center.flex-fatigue,
  select,
  button,
  .item-checkbox,
  #sidebar,
  #players,
  #navigation #nav-toggle {
    font-size: 0.9rem;
  }

  .window-header {
    background: rgba(0, 0, 0, 0.75);
  }

  .window-app.sheet .window-content {
    margin: 0;
    padding: 0;
  }

  .strong-text {
    font-weight: bold;
  }

  .tabs .item.active,
  .blessures-list li ul li:first-child:hover,
  a:hover {
    text-shadow: 1px 0px 0px #ff6600;
  }

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

  input:disabled,
  select:disabled {
    opacity: 1;
    cursor: not-allowed;
    -webkit-text-fill-color: currentColor;
  }

  table {
    border: 1px solid #7a7971;
  }

  .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 5 / span 5;
    grid-template-columns: repeat(5, 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));
  }

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

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

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

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

  .table-create-actor {
    font-size: 0.9rem;
  }

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

  /* Styles limited to foundryvtt-vadentis sheets */

  .fvtt-mournblade .sheet-header {
    flex: 0 0 210px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 10px;
  }

  .fvtt-mournblade .sheet-header .profile-img {
    flex: 0 0 128px;
    height: 128px;
    width: 128px;
    margin-right: 10px;
    object-fit: cover;
    object-position: 50% 0;
  }

  .button-img {
    vertical-align: baseline;
    width: 8%;
    height: 8%;
    max-height: 48px;
    border-width: 0;
    border: 1px solid rgba(0, 0, 0, 0);
  }

  .button-img:hover {
    color: rgba(255, 255, 128, 0.7);
    border: 1px solid rgba(255, 128, 0, 0.8);
    cursor: pointer;
  }

  .button-effect-img {
    vertical-align: baseline;
    width: 16px;
    max-height: 16px;
    height: 16;
    border-width: 0;
  }

  .small-button-container {
    height: 16px;
    width: 16px;
    border: 0;
    vertical-align: bottom;
  }

  .fvtt-mournblade .sheet-header .header-fields {
    flex: 1;
  }

  .fvtt-mournblade .sheet-header h1.charname {
    height: 50px;
    padding: 0px;
    margin: 5px 0;
    border-bottom: 0;
    font-weight: bold;
    font-size: 2rem;
    font-family: "CentaurMT";
  }

  .fvtt-mournblade .sheet-header h1.charname input {
    width: 100%;
    height: 100%;
    margin: 0;
    font-weight: bold;
    font-family: "CentaurMT";
    font-size: 2rem;
    text-align: left;
  }

  .fvtt-mournblade .sheet-tabs {
    flex: 0;
  }

  .fvtt-mournblade .sheet-body,
  .fvtt-mournblade .sheet-body .tab {
    height: auto;
    font-size: 0.9rem;
  }

  .fvtt-mournblade .sheet-body .tab .editor {
    height: 100%;
    font-size: 0.9rem;
  }

  .predilection-text {
    padding-left: 8px;
    font-style: italic;
    font-size: 0.6rem;
  }

  .application.sheet .editor,
  .window-app.sheet .editor {
    border: 2;
    height: 300px;
    padding: 0 3px;
  }

  .application.sheet .medium-editor,
  .window-app.sheet .medium-editor {
    border: 2;
    height: 240px;
    padding: 0 3px;
  }

  .application.sheet .small-editor,
  .window-app.sheet .small-editor {
    border: 2;
    height: 120px;
    padding: 0 3px;
  }

  .fvtt-mournblade .tox .tox-editor-container {
    background: #fff;
  }

  .fvtt-mournblade .tox .tox-edit-area {
    padding: 0 8px;
  }

  .fvtt-mournblade .resource-label {
    font-weight: bold;
    text-transform: uppercase;
  }

  .fvtt-mournblade .tabs {
    height: 40px;
    border-top: 1px solid #AAA;
    border-bottom: 1px solid #AAA;
    color: #000000;
  }

  .fvtt-mournblade .tabs .item {
    line-height: 40px;
    font-weight: bold;
  }

  .fvtt-mournblade .tabs .item.active {
    text-decoration: underline;
    text-shadow: none;
  }

  .fvtt-mournblade .items-list {
    list-style: none;
    margin: 1px 0;
    padding: 0;
    overflow-y: auto;
  }

  .fvtt-mournblade .items-list .item-header {
    font-weight: bold;
  }

  .fvtt-mournblade .items-list .item {
    height: 30px;
    line-height: 24px;
    padding: 1px 0;
    border-bottom: 1px solid #BBB;
  }

  .fvtt-mournblade .items-list .item .item-image {
    flex: 0 0 24px;
    margin-right: 5px;
  }

  .fvtt-mournblade .items-list .item img {
    display: block;
  }

  .fvtt-mournblade .items-list .item-name {
    margin: 0;
  }

  .fvtt-mournblade .items-list .item-controls {
    flex: 0 0 86px;
    text-align: right;
  }


  /* ======================================== */
  /* Sheet  */
  .window-app.sheet .window-content .sheet-header {
    /*background: #011d33 url("../images/ui/fond1.webp") repeat left top;*/
    background: url("../assets/ui/pc_sheet_bg.webp") repeat left top;
    /*color: rgba(168, 139, 139, 0.5);*/
  }

  .window-app.sheet .window-content .sheet-header input[type="text"],
  .window-app.sheet .window-content .sheet-header input[type="number"],
  .window-app.sheet .window-content .sheet-header input[type="password"],
  .window-app.sheet .window-content .sheet-header input[type="date"],
  .window-app.sheet .window-content .sheet-header input[type="time"] {
    color: rgba(36, 37, 37, 0.75);
    background: rgba(255, 255, 255, 0.05);
    border: 0 none;
    margin-bottom: 0.25rem;
  }

  .window-app .window-content,
  .window-app.sheet .window-content .sheet-body {
    font-size: 0.9rem;
    background: url("../assets/ui/pc_sheet_bg.webp") repeat left top;
  }

  /*  background: rgba(245,245,240,0.6) url("../images/ui/sheet_background.webp") left top;*/

  section.sheet-body {
    padding: 0.25rem 0.5rem;
  }

  .sheet header.sheet-header .profile-img {
    object-fit: cover;
    object-position: 50% 0;
    margin: 0.5rem 0 0.5rem 0.5rem;
    padding: 0;
  }

  .sheet nav.sheet-tabs {
    font-size: 0.70rem;
    font-weight: bold;
    height: 3rem;
    flex: 0 0 3rem;
    margin: 0;
    padding: 0 0 0 0.25rem;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.5rem;
    border-top: 0 none;
    border-bottom: 0 none;
    background-color: black;
    color: beige;
  }

  nav.sheet-tabs .item {
    position: relative;
    padding: 0 0.25rem;
    color: beige;
  }

  nav.sheet-tabs .item:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 2rem;
    width: 1px;
    border-right: 1px dashed rgba(52, 52, 52, 0.25);
  }

  .sheet .tab[data-tab] {
    padding: 0;
  }

  section.sheet-body:after {
    content: "";
    display: block;
    clear: both;
  }

  .sheet header.sheet-header .flex-compteurs {
    text-align: right;
  }

  .sheet header.sheet-header .resource-content {
    width: 2rem;
  }

  .select-diff {
    display: inline-block;
    text-align: left;
    width: 50px;
  }

  .window-app.sheet .window-content .tooltip:hover .tooltiptext {
    top: 2rem;
    left: 2rem;
    margin: 0;
    padding: 0.25rem;
  }

  .window-app.sheet .window-content .carac-value,
  .window-app.sheet .window-content .competence-xp {
    margin: 0.05rem;
    flex-basis: 3rem;
    text-align: center;
  }

  /* ======================================== */
  /* Global UI elements  */

  /* ======================================== */

  h1,
  h2,
  h3,
  h4 {
    font-weight: bold;
  }

  ul,
  ol {
    margin: 0;
    padding: 0;
  }

  ul,
  li {
    list-style-type: none;
  }

  .sheet li {
    margin: 0.010rem;
    padding: 0.25rem;
  }

  .header-fields li {
    margin: 0;
    padding: 0;
  }

  .alterne-list>.list-item:hover {
    background: rgba(100, 100, 50, 0.25);
  }

  .alterne-list>.list-item:nth-child(even) {
    background: rgba(80, 60, 0, 0.10);
  }

  .alterne-list>.list-item:nth-child(odd) {
    background: rgb(160, 130, 100, 0.05);
  }

  .specialisation-label {
    font-size: 0.9rem;
  }

  .carac-label,
  .attr-label {
    font-weight: bold;
  }

  .list-item {
    margin: 0.125rem;
    box-shadow: inset 0px 0px 1px #00000096;
    border-radius: 0.25rem;
    padding: 0.125rem;
    flex: 1 1 5rem;
  }

  .item-display-show {
    display: block;
  }

  .item-display-hide {
    display: none;
  }

  .conteneur-type {
    background: rgb(200, 10, 100, 0.25);
  }

  .item-quantite {
    margin-left: 0.5rem;
  }

  .list-item-margin1 {
    margin-left: 1rem;
  }

  .list-item-margin2 {
    margin-left: 2rem;
  }

  .list-item-margin3 {
    margin-left: 3rem;
  }

  .list-item-margin4 {
    margin-left: 4rem;
  }

  .sheet-competence-img {
    width: 24px;
    height: 24px;
    flex-grow: 0;
    margin-right: 0.25rem;
  }

  .competence-column {
    flex-direction: column;
    align-content: flex-start;
    justify-content: flex-start;
    flex-grow: 0;
    flex-basis: 1;
  }

  .competence-header {
    align-content: flex-start;
    justify-content: flex-start;
    font-weight: bold;
    flex-grow: 0;
  }

  .secondaire-label,
  .arme-label,
  .generic-label,
  .competence-label,
  .devotion-label,
  .sort-label,
  .technique-label,
  .stat-label,
  .arme-label,
  .armure-label,
  .equipement-label,
  .description-label {
    flex-grow: 2;
    margin-left: 4px;
  }

  .roll-dialog-label {
    margin: 4px 0;
  }

  .short-label {
    flex-grow: 1;
  }

  .keyword-label {
    font-size: 0.85rem;
  }

  .item-sheet-label {
    flex-grow: 1;
  }

  .item-text-long-line {
    flex-grow: 3;
  }

  .score-label {
    flex-grow: 2;
    align-content: center;
  }

  .attribut-value,
  .carac-value {
    flex-grow: 0;
    flex-basis: 64px;
    margin-right: 4px;
    margin-left: 4px;
  }

  .sante-value,
  .competence-value {
    flex-grow: 0;
    flex-basis: 2rem;
    margin-right: 0.25rem;
    margin-left: 0.25rem;
  }

  .description-value {
    flex-grow: 0;
    flex-basis: 4rem;
    margin-right: 0.25rem;
    margin-left: 0.25rem;
  }

  .competence-xp {
    flex-grow: 0;
    flex-basis: 2rem;
    margin-right: 0.25rem;
    margin-left: 0.25rem;
  }

  .blessures-title {
    font-weight: bold;
  }

  .alchimie-title {
    font-weight: bold;
  }

  .blessure-data {
    flex-direction: row;
    align-content: flex-start;
    justify-content: flex-start;
  }

  .blessures-soins {
    flex-grow: 0;
    flex-basis: 32px;
    margin-right: 4px;
    margin-left: 4px;
  }

  .blessures-loc {
    flex-grow: 0;
    flex-basis: 96px;
    margin-right: 4px;
    margin-left: 4px;
  }

  .pointsreve-value {
    flex-grow: 0;
    flex-basis: 64px;
    margin-right: 4px;
    margin-left: 4px;
  }

  .input-sante-header,
  .stress-style {
    flex-grow: 0;
    flex-basis: 64px;
    margin-right: 4px;
    margin-left: 4px;
  }

  .small-label {
    margin-top: 5px;
  }

  .padd-right {
    margin-right: 8px;
  }

  .padd-left {
    margin-left: 8px;
  }

  .stack-left {
    align-items: center;
    flex-shrink: 1;
    flex-grow: 0;
  }

  .npc-stat-label {
    flex-grow: 2;
  }

  .packed-left {
    white-space: nowrap;
    flex-grow: 0;
  }

  .input-numeric-short {
    width: 40px;
    max-width: 40px;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 40px;
    margin-right: 0.25rem;
    margin-left: 0.25rem;
  }

  .stats-table {
    align-content: flex-start;
  }

  /* ======================================== */
  .tokenhudext {
    display: flex;
    flex: 0 !important;
    font-weight: 600;
  }

  .tokenhudext.left {
    justify-content: flex-start;
    flex-direction: column;
    position: absolute;
    top: 2.75rem;
    right: 4rem;
  }

  .tokenhudext.right {
    justify-content: flex-start;
    flex-direction: column;
    position: absolute;
    top: 2.75rem;
    left: 4rem;
  }

  .control-icon.tokenhudicon {
    width: fit-content;
    height: fit-content;
    min-width: 6rem;
    flex-basis: auto;
    padding: 0;
    line-height: 1rem;
    margin: 0.25rem;
  }

  .control-icon.tokenhudicon.right {
    margin-left: 8px;
  }

  #token-hud .status-effects.active {
    z-index: 2;
  }

  /* ======================================== */
  .item-checkbox {
    height: 25px;
    border: 1px solid #736953a6;
    border-left: none;
    font-weight: 500;
    font-size: 1rem;
    color: black;
    padding-top: 5px;
    margin-right: 0px;
    width: 45px;
    position: relative;
    left: 0px;
    text-align: center;
  }


  .flex-actions-bar {
    flex-grow: 2;
  }

  /* ======================================== */
  /* Sidebar CSS */
  #sidebar {
    background-position: 100%;
    color: rgba(220, 220, 220, 0.75);
  }

  /*  background: rgb(105,85,65) url("../images/ui/texture_feuille_perso_onglets.webp") no-repeat right bottom;*/

  #sidebar.collapsed {
    height: 470px !important;
  }

  #sidebar-tabs>.collapsed,
  #chat-controls .chat-control-icon {
    color: rgba(220, 220, 220, 0.75);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.75);
  }

  .sidebar-tab .directory-list .entity {
    border-top: 1px dashed rgba(0, 0, 0, 0.25);
    border-bottom: 0 none;
    padding: 0.25rem 0;
  }

  .sidebar-tab .directory-list .entity:hover {
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
  }

  .chat-message-header {
    background: rgba(220, 220, 210, 0.5);
    font-size: 1.1rem;
    height: 48px;
    text-align: center;
    vertical-align: middle;
    display: flex;
    align-items: center;
  }

  .chat-message .message-header .flavor-text,
  .chat-message .message-header .whisper-to {
    font-size: 0.9rem;
  }

  .chat-message .message-content {
    font-size: 0.9rem;
    font-family: CentaurMT;
  }

  .message-content .roll-success {
    color: rgb(52, 238, 52);
    font-weight: bold;
    font-family: Charlemagne;
  }

  .message-content .roll-failure {
    color: rgb(224, 133, 13);
    font-weight: bold;
    font-family: Charlemagne;
  }

  .message-content .roll-heroic {
    color: rgb(0, 0, 255);
    font-weight: bold;
    font-family: Charlemagne;
  }

  .message-content .roll-dramatic {
    color: purple;
    font-weight: bold;
    font-family: Charlemagne;
  }

  .chat-actor-name {
    padding: 4px;
  }

  .chat-img {
    width: 64px;
    height: 64px;
  }

  // =====================================================
  // Item Card (post-item, chat-display-description)
  // =====================================================
  .mournblade-item-card {
    font-family: CentaurMT, serif;
    color: #2a1a0a;
    background: linear-gradient(180deg, #fdf6e3 0%, #f7ead0 100%);
    border: 1px solid #8b4513;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);

    .item-card-header {
      display: flex;
      align-items: center;
      gap: 10px;
      background: linear-gradient(135deg, #4a0404 0%, #8b0000 50%, #6b2020 100%);
      padding: 10px 12px;
      border-bottom: 2px solid #c8860a;

      .item-card-img {
        width: 56px;
        height: 56px;
        border-radius: 4px;
        border: 2px solid #c8860a;
        object-fit: cover;
        flex-shrink: 0;
        background: rgba(0,0,0,0.3);
      }

      .item-card-title {
        flex: 1;
        min-width: 0;

        .item-card-name {
          margin: 0 0 4px 0;
          padding: 0;
          font-family: Charlemagne, CentaurMT, serif;
          font-size: 1.05rem;
          font-weight: bold;
          color: #f5deb3;
          text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
          white-space: normal;
          line-height: 1.2;
          border: none;
        }

        .item-card-type-badge {
          display: inline-block;
          background: rgba(200, 134, 10, 0.3);
          border: 1px solid #c8860a;
          border-radius: 10px;
          padding: 1px 8px;
          font-size: 0.72rem;
          color: #f5deb3;
          letter-spacing: 0.05em;
          text-transform: uppercase;

          i { margin-right: 3px; }
        }
      }
    }

    .item-card-stats {
      padding: 8px 12px;
      border-bottom: 1px solid rgba(139, 69, 19, 0.2);
      display: flex;
      flex-direction: column;
      gap: 3px;

      .stat-row {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
        font-size: 0.85rem;
        padding: 2px 0;
        border-bottom: 1px dotted rgba(139, 69, 19, 0.12);

        &:last-child { border-bottom: none; }

        .stat-label {
          color: #6b3a1f;
          font-weight: bold;
          flex-shrink: 0;
          i { margin-right: 4px; color: #8b4513; }
        }

        .stat-value {
          color: #2a1a0a;
          text-align: right;
          font-weight: normal;

          &.stat-highlight {
            font-weight: bold;
            color: #4a0404;
            font-size: 0.95rem;
          }
        }

        &.stat-flag {
          justify-content: flex-start;
          color: #6b3a1f;
          font-style: italic;
          font-size: 0.8rem;
          border-bottom: none;
          padding: 1px 0;
          i { margin-right: 5px; color: #8b0000; }
        }
      }
    }

    .item-card-divider {
      display: flex;
      align-items: center;
      padding: 6px 12px 0;
      gap: 8px;
      font-size: 0.72rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #8b4513;
      font-weight: bold;

      &::before, &::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, #c8860a, transparent);
      }
    }

    .item-card-description {
      padding: 8px 12px 10px;
      font-size: 0.88rem;
      line-height: 1.5;
      color: #2a1a0a;

      p { margin: 0 0 6px 0; &:last-child { margin-bottom: 0; } }
      em, i { color: #5a2a0a; }
      strong, b { color: #2a1a0a; }
    }

    .item-card-sacrifice {
      background: rgba(100, 0, 0, 0.05);
      border-top: 1px solid rgba(139, 0, 0, 0.2);
      font-style: italic;
      color: #5a0000;
    }

    &.mournblade-item-card--compact {
      .item-card-header {
        padding: 8px 10px;
        .item-card-img { width: 44px; height: 44px; }
        .item-card-name { font-size: 0.95rem; }
      }
      .item-card-description { padding: 6px 10px 8px; }
    }
  }

  .roll-dialog-header {
    height: 52px;
  }

  .skill-roll-dialog {
    font-family: CentaurMT;
  }

  .actor-icon {
    float: left;
    width: 48px;
    height: 48px;
    padding: 2px 6px 2px 2px;
  }

  .padding-dice {
    padding-top: .2rem;
    padding-bottom: .2rem;
  }

  .dice-image {
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    max-width: 100%;
  }

  .dice-image-reroll {
    background-color: rgba(115, 224, 115, 0.25);
    border-color: #011d33;
    box-sizing: border-box;
    border: 1px;
    border-radius: 0%;
    max-width: 100%;
  }

  .chat-dice {
    width: 15%;
    height: 15%;
    font-size: 15px;
    padding: 10px;
    padding-top: .2rem;
    padding-bottom: .2rem;
  }

  .div-river-full {
    height: 5rem;
    align-items: flex-start;
  }

  .div-river {
    margin-left: 8px;
    align-content: space-around;
    justify-content: space-around;
  }

  .div-center {
    align-self: center;
  }

  .chat-message {
    background: rgba(220, 220, 210, 0.5);
    font-size: 0.9rem;
  }

  .chat-message.whisper {
    background: rgba(220, 220, 210, 0.75);
    border: 2px solid #545469;
  }

  .chat-message .chat-icon {
    border: 0;
    padding: 2px 6px 2px 2px;
    float: left;
    width: 64px;
    height: 64px;
  }

  #sidebar-tabs {
    flex: 0 0 32px;
    box-sizing: border-box;
    margin: 0 0 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0);
    box-shadow: inset 0 0 2rem rgba(0, 0, 0, 0.5);
  }

  #sidebar-tabs>.item.active {
    border: 1px solid rgba(114, 98, 72, 1);
    background: rgba(30, 25, 20, 0.75);
    box-shadow: 0 0 6px inset rgba(114, 98, 72, 1);
  }

  #sidebar #sidebar-tabs i {
    display: inline-block;
    background-position: center;
    background-size: cover;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.75);

  }

  
  /*--------------------------------------------------------------------------*/
  /* Control, Tool, hotbar & navigation */

  #controls .scene-control,
  #controls .control-tool {
    box-shadow: 0 0 3px #000;
    margin: 0 0 8px;
    border-radius: 0;
    background: rgba(30, 25, 20, 1);
    background-origin: padding-box;
    border-image: url(img/ui/footer-button.png) 10 repeat;
    border-image-width: 4px;
    border-image-outset: 0px;
  }

  #controls .scene-control.active,
  #controls .control-tool.active,
  #controls .scene-control:hover,
  #controls .control-tool:hover {
    background: rgba(72, 46, 28, 1);
    background-origin: padding-box;
    border-image: url(img/ui/footer-button.png) 10 repeat;
    border-image-width: 4px;
    border-image-outset: 0px;
    box-shadow: 0 0 3px #ff6400;
  }

  #hotbar #action-bar #macro-list {
    border: 1px solid rgba(72, 46, 28, 1);
    box-shadow: 2px 2px 5px #000000;
  }

  #hotbar #action-bar .macro {
    border-image: url(img/ui/bg_control.jpg) 21 repeat;
    border-image-slice: 6 6 6 6 fill;
    border-image-width: 6px 6px 6px 6px;
    border-image-outset: 0px 0px 0px 0px;
    border-radius: 0px;
  }

  #hotbar .bar-controls {
    background: rgba(30, 25, 20, 1);
    border: 1px solid rgba(72, 46, 28, 1);
  }

  #players {
    border-image: url(img/ui/footer-button.png) 10 repeat;
    border-image-width: 4px;
    border-image-outset: 0px;
    background: rgba(30, 25, 20, 1);
  }

  #navigation #scene-list .scene.nav-item.active {
    background: rgba(72, 46, 28, 1);
  }

  #navigation #scene-list .scene.nav-item {
    background: rgba(30, 25, 20, 1);
    background-origin: padding-box;
    border-image: url(img/ui/footer-button.png) 10 repeat;
    border-image-width: 4px;
    border-image-outset: 0px;
  }

  #navigation #scene-list .scene.view,
  #navigation #scene-list .scene.context {
    background: rgba(72, 46, 28, 1);
    background-origin: padding-box;
    border-image: url(img/ui/footer-button.png) 10 repeat;
    border-image-width: 4px;
    border-image-outset: 0px;
    box-shadow: 0 0 3px #ff6400;
  }

  #navigation #nav-toggle {
    background: rgba(30, 25, 20, 1);
    background-origin: padding-box;
    border-image: url(img/ui/footer-button.png) 10 repeat;
    border-image-width: 4px;
    border-image-outset: 0px;
  }

  /* Tooltip container */
  .tooltip {
    position: relative;
    display: inline-block;
    /*border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
  }

  /* Tooltip text */
  .tooltip .tooltiptext {
    text-align: left;
    background: rgba(231, 229, 226, 0.9);
    width: 150px;
    padding: 3px 0;
    font-size: 0.9rem;

    /* Position the tooltip text */
    top: 1px;
    position: absolute;
    z-index: 1;

    /* Fade in tooltip */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .tooltip .ttt-fatigue {
    width: 360px;

    background: rgba(30, 25, 20, 0.9);
    border-image: url(img/ui/bg_control.jpg) 21 repeat;
    border-image-slice: 6 6 6 6 fill;
    border-image-width: 6px 6px 6px 6px;
    border-image-outset: 0px 0px 0px 0px;
    border-radius: 0px;

    font-size: 0.8rem;
    padding: 3px 0;
  }

  .tooltip .ttt-ajustements {
    width: 150px;
    background: rgba(220, 220, 210, 0.95);
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 3px 0;
  }

  .tooltip-nobottom {
    border-bottom: unset;
    /* If you want dots under the hoverable text */
  }

  .tooltip .ttt-xp {
    width: 250px;
    background: rgba(220, 220, 210, 0.95);
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 3px 0;
  }

  /* Show the tooltip text when you mouse over the tooltip container */
  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }

  .river-button {
    box-shadow: inset 0px 1px 0px 0px #a6827e;
    background: linear-gradient(to bottom, #21374afc 5%, #152833ab 100%);
    border-radius: 3px;
    border: 2px ridge #846109;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-size: 0.8rem;
    padding: 2px 4px 0px 4px;
    text-decoration: none;
    text-shadow: 0px 1px 0px #4d3534;
    position: relative;
    margin: 4px;
  }

  .chat-card-button {
    box-shadow: inset 0px 1px 0px 0px #a6827e;
    background: linear-gradient(to bottom, #21374afc 5%, #152833ab 100%);
    border-radius: 3px;
    border: 2px ridge #846109;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-size: 0.8rem;
    padding: 4px 4px 0px 4px;
    text-decoration: none;
    text-shadow: 0px 1px 0px #4d3534;
    position: relative;
    margin: 2px;
  }

  .chat-card-button-degats {
    background: linear-gradient(to bottom, #e2c256fc 5%, #b85b04ab 100%);
  }

  .river-button:hover,
  .plus-minus-button:hover,
  .chat-card-button:hover {
    background: linear-gradient(to bottom, #800000 5%, #3e0101 100%);
  }

  .plus-minus-button:active,
  .chat-card-button:active {
    position: relative;
    top: 1px;
  }

  .button-sheet-roll {
    box-shadow: inset 0px 1px 0px 0px #a6827e;
    background: linear-gradient(to bottom, #21374afc 5%, #152833ab 60%);
    border-radius: 4px;
    border: 1px ridge #846109;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-size: 0.8rem;
    padding: 1px 1px 0px 1px;
    text-decoration: none;
    text-shadow: 0px 1px 0px #4d3534;
    position: relative;
    max-height: 1.8rem;
    width: 3.5rem;
    margin-left: 4px;
  }

  .button-sheet-roll-offline {
    box-shadow: inset 0px 1px 0px 0px #a6827e;
    background: linear-gradient(to bottom, #313131fc 5%, #dee2e4ab 60%);
    border-radius: 4px;
    border: 1px ridge #846109;
    display: inline-block;
    cursor: pointer;
    color: rgba(10, 10, 10, 0.75);
    font-size: 0.8rem;
    padding: 1px 1px 0px 1px;
    text-decoration: none;
    text-shadow: 0px 1px 0px #4d3534;
    position: relative;
    max-height: 1.8rem;
    width: 3.5rem;
    margin-left: 4px;
  }

  .button-sheet-roll-large {
    max-width: 6rem;
  }

  .button-sheet-roll:hover {
    background: linear-gradient(to bottom, #800000 5%, #3e0101 100%);
  }

  .button-sheet-roll:active {
    position: relative;
    top: 1px;
  }

  .plus-minus-button {
    box-shadow: inset 0px 1px 0px 0px #a6827e;
    background: linear-gradient(to bottom, #21374afc 5%, #152833ab 100%);
    border-radius: 3px;
    border: 2px ridge #846109;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    padding: 2px 6px 0px 6px;
    text-decoration: none;
    text-shadow: 0px 1px 0px #4d3534;
    position: relative;
    margin: 3px;
    max-width: 1.2rem;
  }

  .plus-minus {
    font-size: 0.9rem;
    font-weight: bold;
  }

  .ul-level1 {
    padding-left: 2rem;
  }

  .drop-equipment-effect,
  .drop-power-effect,
  .drop-perk-effect,
  .drop-ability-effect,
  .drop-effect-specaffected,
  .drop-effect-spec,
  .drop-ability-weapon,
  .drop-ability-armor,
  .drop-race-perk,
  .drop-spec-perk,
  .drop-ability-power,
  .drop-ability-spec,
  .drop-spec-power,
  .drop-abilities,
  .drop-optionnal-abilities,
  .drop-specialperk1,
  .drop-perk2,
  .drop-spec1,
  .drop-spec2 {
    background: linear-gradient(to bottom, #6c95b9fc 5%, #105177ab 100%);
    border-radius: 3px;
    border: 2px ridge #846109;
  }

  .label-name {
    padding-top: 7px;
    padding-left: 4px;
    margin-left: 4px;
    min-width: 5rem;
    max-width: 5rem;
  }

  /*************************************************************/
  .competence-name {
    padding-top: 7px;
    padding-left: 4px;
    margin-left: 4px;
    flex-grow: 2;
  }

  /*************************************************************/
  .competence-niveau {
    flex-grow: 1;
    min-width: 64px;
    max-width: 64px;
  }

  /*************************************************************/
  .arme-defensif {
    padding-top: 7px;
    padding-left: 4px;
    margin-left: 4px;
    text-align: center;
    flex-grow: 2;
  }

  /*************************************************************/
  .button-roll-competence {
    min-width: 64px;
    max-width: 64px;
    background-color: rgba(211, 221, 187, 100);
    padding-top: 7px;
    padding-left: 4px;
    margin-left: 4px;
    margin-right: 4px;
    border-radius: 12px;
  }

  /*************************************************************/
  .button-roll-competence-empty {
    min-width: 64px;
    max-width: 64px;
    padding-top: 7px;
    padding-left: 4px;
    margin-left: 4px;
    margin-right: 4px;
    border-radius: 12px;
  }

  /*************************************************************/
  .item-name-img {
    flex-grow: 1;
    max-width: 2rem;
    min-width: 2rem;
    max-height: 2rem;
  }

  /*************************************************************/
  #pause {
    font-size: 2rem;
  }

  #pause>h3 {
    color: #CCC
  }

  #pause>img {
    content: url(../assets/logos/mournblade_logo_chaos.webp);
    height: 256px;
    width: 256px;
    top: -80px;
    left: calc(50% - 132px);
  }

  #logo {
    content: url(../assets/logos/mournblade_logo_texte.webp);
    width: 120px;
    height: 40px;
  }

  .dice-cell {
    padding-left: 12px;
    padding-right: 12px;
    width: 60px;
    text-align: center;
  }

  .dice-formula,
  .dice-total {
    height: 54px;
    position: relative;
  }

  .item-name-label-header {
    flex-grow: 2;
    max-width: 12rem;
    min-width: 12rem;
  }

  .item-name-label {
    flex-grow: 2;
    max-width: 10rem;
    min-width: 10rem;
  }

  .item-name-label-level2 {
    flex-grow: 2;
    max-width: 9rem;
    min-width: 9rem;
  }

  .item-field-label-short {
    flex-grow: 1;
    max-width: 4rem;
    min-width: 4rem;
  }

  .item-field-label-medium {
    flex-grow: 1;
    max-width: 6rem;
    min-width: 6rem;
  }

  .item-field-label-long {
    flex-grow: 1;
    max-width: 8rem;
    min-width: 8rem;
  }

  .item-control-end {
    align-self: flex-end;
  }

  .alternate-list {
    margin-top: 4px;
    flex-wrap: nowrap;
  }

  .item-filler {
    flex-grow: 6;
    flex-shrink: 7;
  }

  .item-controls-fixed {
    min-width: 3.2rem;
    max-width: 3.2rem;
  }

  /* Item Sheet Header Actions */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .chat-card-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    color: #d4af37;
    font-size: 1rem;
  }

  .chat-card-button:hover {
    background-color: rgba(212, 175, 55, 0.2);
    color: #f5f5f5;
  }

  .chat-card-button i {
    margin-right: 4px;
  }

  /* Item Sheet Navigation Tabs */
  .sheet-tabs.tabs {
    display: flex;
    border-bottom: 1px solid #7a7971;
    margin-bottom: 10px;
    background-color: #1c1c1c;
    padding: 4px;
  }

  .sheet-tabs.tabs .item {
    padding: 6px 12px;
    color: #d4af37;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    margin-right: 4px;
    transition: all 0.2s;
  }

  .sheet-tabs.tabs .item:hover {
    background-color: rgba(212, 175, 55, 0.1);
  }

  .sheet-tabs.tabs .item.active {
    background-color: #2a2a2a;
    border-bottom-color: #d4af37;
    color: #f5f5f5;
  }

  .sheet-tabs.tabs .item i {
    margin-right: 6px;
  }
/* ==================== Roll Dialog V2 Styles ==================== */
.application.mournblade-roll-dialog .window-content {
  padding: 0;
}

.window-app.mournblade-roll-dialog .window-content {
  margin: 0;
  padding: 0;
}

.mournblade-roll-dialog {
  background: url("../assets/ui/pc_sheet_bg.webp");
  background-repeat: repeat;
  font-family: CentaurMT;
}

.mournblade-roll-dialog * {
  color: #2a2a2a;
}

/* Header */
.mournblade-roll-dialog .dialog-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: linear-gradient(135deg, #4a0404 0%, #6d0808 100%);
  border-bottom: 3px solid #8b0000;
  margin-bottom: 0;
}

.mournblade-roll-dialog .dialog-header .actor-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  border: 2px solid #8b0000;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.mournblade-roll-dialog .dialog-header .dialog-title {
  flex: 1;
}

.mournblade-roll-dialog .dialog-header .dialog-title h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #f5f5f5;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  font-family: Charlemagne;
  font-weight: bold;
}

.mournblade-roll-dialog .dialog-header .dialog-title .competence-name {
  font-size: 0.85rem;
  color: #ffcccb;
  margin-top: 2px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.mournblade-roll-dialog .dialog-header .dialog-title .competence-name .attribut-info {
  color: #ffd700;
  font-weight: bold;
  font-size: 0.9em;
}

/* Content */
.mournblade-roll-dialog .dialog-content {
  padding: 8px;
  max-height: 650px;
  overflow-y: auto;
}

.mournblade-roll-dialog .dialog-content::-webkit-scrollbar {
  width: 8px;
}

.mournblade-roll-dialog .dialog-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.mournblade-roll-dialog .dialog-content::-webkit-scrollbar-thumb {
  background: rgba(139, 0, 0, 0.6);
  border-radius: 4px;
}

.mournblade-roll-dialog .dialog-content::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 0, 0, 0.8);
}

/* Form Groups */
.mournblade-roll-dialog .form-group {
  margin-bottom: 8px;
}

.mournblade-roll-dialog .form-group label {
  display: block;
  font-weight: bold;
  color: #1a1a1a;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
  margin-bottom: 3px;
  font-size: 0.9rem;
}


.mournblade-roll-dialog .form-group input,
.mournblade-roll-dialog .form-group select {
  width: 100%;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(100, 100, 100, 0.5);
  border-radius: 3px;
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: CentaurMT;
}

.mournblade-roll-dialog .form-group input:focus,
.mournblade-roll-dialog .form-group select:focus {
  outline: none;
  border-color: #8b0000;
  box-shadow: 0 0 5px rgba(139, 0, 0, 0.6);
  background: #ffffff;
}

.mournblade-roll-dialog .form-group input:disabled,
.mournblade-roll-dialog .form-group select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: rgba(200, 200, 200, 0.9);
  color: #555;
}

/* Grids */
.mournblade-roll-dialog .modifiers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

/* Sections spéciales */
.mournblade-roll-dialog .attributes-section {
  background: rgba(139, 0, 0, 0.1);
  padding: 8px;
  border-radius: 4px;
  border: 1px solid rgba(139, 0, 0, 0.3);
  margin-bottom: 10px;
}

.mournblade-roll-dialog .rune-section {
  background: rgba(75, 0, 130, 0.1);
  padding: 8px;
  border-radius: 4px;
  border: 1px solid rgba(75, 0, 130, 0.3);
  margin-bottom: 10px;
}

.mournblade-roll-dialog .weapon-section {
  background: rgba(184, 134, 11, 0.1);
  padding: 8px;
  border-radius: 4px;
  border: 1px solid rgba(184, 134, 11, 0.3);
  margin-bottom: 10px;
}

.mournblade-roll-dialog .weapon-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  background: rgba(184, 134, 11, 0.15);
  border-radius: 3px;
  margin-bottom: 8px;
}

.mournblade-roll-dialog .weapon-info .weapon-label {
  font-weight: bold;
  font-size: 0.9rem;
  color: #1a1a1a;
}

.mournblade-roll-dialog .weapon-info .weapon-bonus {
  font-size: 0.85rem;
  color: #8b0000;
  font-weight: bold;
}

.mournblade-roll-dialog .defense-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: rgba(0, 100, 0, 0.1);
  border-radius: 3px;
  margin-bottom: 8px;
}

.mournblade-roll-dialog .defense-info .defense-label {
  font-size: 0.85rem;
  color: #1a1a1a;
  font-weight: bold;
}

.mournblade-roll-dialog .defense-info .defense-value {
  font-size: 1rem;
  color: #006400;
  font-weight: bold;
}

/* Combat modifiers */
.mournblade-roll-dialog .combat-modifiers,
.mournblade-roll-dialog .ranged-combat-section {
  background: rgba(139, 0, 0, 0.1);
  padding: 8px;
  border-radius: 4px;
  border: 1px solid rgba(139, 0, 0, 0.3);
  margin-bottom: 10px;
}

.mournblade-roll-dialog .combat-modifiers h4,
.mournblade-roll-dialog .ranged-combat-section h4 {
  margin: 0 0 8px 0;
  color: #2a2a2a;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: bold;
}


.mournblade-roll-dialog .modifiers-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px 10px;
}

.mournblade-roll-dialog .checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s ease;
}

.mournblade-roll-dialog .checkbox-label:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mournblade-roll-dialog .checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
  accent-color: #8b0000;
}

.mournblade-roll-dialog .checkbox-label span {
  color: #1a1a1a;
  font-size: 0.85rem;
  user-select: none;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
}

.mournblade-roll-dialog .checkbox-label.highlight {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  font-weight: bold;
}

.mournblade-roll-dialog .info-message {
  padding: 6px 10px;
  background: rgba(33, 150, 243, 0.1);
  border-left: 3px solid rgba(33, 150, 243, 0.6);
  border-radius: 3px;
  font-size: 0.85rem;
  color: #1a1a1a;
  margin-bottom: 8px;
}


/* Malus section */
.mournblade-roll-dialog .malus-section {
  background: rgba(100, 100, 100, 0.1);
  padding: 8px;
  border-radius: 4px;
  border: 1px solid rgba(100, 100, 100, 0.3);
  margin-bottom: 10px;
}

.mournblade-roll-dialog .malus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mournblade-roll-dialog .malus-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.mournblade-roll-dialog .malus-item .malus-label {
  font-size: 0.85rem;
  color: #2a2a2a;
  font-weight: 500;
}

.mournblade-roll-dialog .malus-item .malus-value {
  font-size: 0.95rem;
  color: #8b0000;
  font-weight: bold;
}

/* Registered modifiers */
.mournblade-roll-dialog .registered-modifiers {
  background: rgba(75, 0, 130, 0.1);
  padding: 8px;
  border-radius: 4px;
  border: 1px solid rgba(75, 0, 130, 0.3);
  margin-bottom: 10px;
}

.mournblade-roll-dialog .registered-modifiers h4 {
  margin: 0 0 6px 0;
  color: #2a2a2a;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: bold;
}

.mournblade-roll-dialog .registered-modifiers h4 i {
  margin-right: 6px;
  color: #4b0082;
}

.mournblade-roll-dialog .modifier-item {
  margin-bottom: 4px;
}

/* Special option */
.mournblade-roll-dialog .special-option {
  margin-top: 10px;
}

/* Dialog buttons */
.mournblade-roll-dialog .dialog-buttons {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-top: 2px solid rgba(139, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.05);
}

.mournblade-roll-dialog .dialog-buttons button {
  flex: 1;
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-family: Charlemagne;
  text-transform: uppercase;
}

.mournblade-roll-dialog .dialog-buttons button[data-action="rolld10"],
.mournblade-roll-dialog .dialog-buttons button[data-action="rolld20"] {
  background: linear-gradient(135deg, #8b0000 0%, #6d0808 100%);
  color: #f5f5f5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mournblade-roll-dialog .dialog-buttons button[data-action="rolld10"]:hover,
.mournblade-roll-dialog .dialog-buttons button[data-action="rolld20"]:hover {
  background: linear-gradient(135deg, #a00000 0%, #8b0000 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(139, 0, 0, 0.5);
}

.mournblade-roll-dialog .dialog-buttons button[data-action="cancel"] {
  background: rgba(100, 100, 100, 0.3);
  color: #2a2a2a;
}

.mournblade-roll-dialog .dialog-buttons button[data-action="cancel"]:hover {
  background: rgba(100, 100, 100, 0.5);
}

/* ==================== Sheet Mode Toggle Button ==================== */
.sheet-mode-toggle {
  background: linear-gradient(135deg, #8b0000 0%, #4a0404 100%);
  border: 1px solid #8b0000;
  border-radius: 3px;
  color: #f5f5f5;
  padding: 2px 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  
  &:hover {
    background: linear-gradient(135deg, #a00000 0%, #5a0505 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  i {
    margin: 0;
    font-size: 0.75rem;
  }
}

/* ==================== Chat Message Styles ==================== */
.mournblade-chat-result {
  background: linear-gradient(135deg, rgba(74, 4, 4, 0.2) 0%, rgba(139, 0, 0, 0.15) 100%);
  border: 2px solid #8b0000;
  border-radius: 4px;
  overflow: hidden;
  font-family: CentaurMT, serif;

  .chat-result-header {
    background: linear-gradient(135deg, #4a0404 0%, #2a0202 100%);
    border-bottom: 2px solid #8b0000;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;

    .actor-icon {
      width: 48px;
      height: 48px;
      border-radius: 4px;
      border: 1px solid #8b0000;
      object-fit: cover;
      flex-shrink: 0;
    }

    .header-info {
      flex: 1;

      .actor-name {
        margin: 0;
        color: #f5f5f5;
        font-size: 1.1rem;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
      }

      .action-title {
        color: #ffd700;
        font-size: 0.9rem;
        margin-top: 2px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);

        i {
          margin-right: 4px;
        }
      }
    }
  }

  .result-main {
    background: rgba(255, 250, 240, 0.9);
    padding: 4px 8px;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);

    .result-display {
      display: flex;
      justify-content: space-around;
      align-items: center;
      gap: 8px;
      margin-bottom: 3px;

      .dice-result,
      .total-result,
      .difficulty {
        text-align: center;
        flex: 1;
        background: rgba(255, 255, 255, 0.7);
        padding: 4px 6px;
        border-radius: 4px;
        border: 1px solid rgba(139, 0, 0, 0.2);

        i {
          color: #8b0000;
          font-size: 1rem;
          display: block;
          margin-bottom: 2px;
        }

        span {
          display: block;
          font-weight: bold;
        }

        .dice-value,
        .total-value,
        .difficulty-value {
          font-size: 1.5rem;
          color: #8b0000;
          text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
          font-weight: bold;
          line-height: 1.2;
        }

        .total-label,
        .difficulty-label {
          font-size: 0.75rem;
          color: #4a0404;
          text-transform: uppercase;
          font-weight: bold;
          line-height: 1.1;
        }
      }
    }

    .result-badge-container {
      display: flex;
      justify-content: center;
      margin-top: 4px;

      .result-badge {
        padding: 4px 12px;
        border-radius: 3px;
        font-weight: bold;
        font-size: 0.9rem;
        text-transform: uppercase;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);

        i {
          margin-right: 6px;
        }

        &.heroique {
          background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
          color: #1a1a1a;
          text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
        }

        &.success {
          background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
          color: white;
          text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        &.failure {
          background: linear-gradient(135deg, #8b0000 0%, #4a0404 100%);
          color: white;
          text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        &.dramatique {
          background: linear-gradient(135deg, #4b0082 0%, #2d004d 100%);
          color: white;
          text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }
      }
    }
  }

  .result-details {
    padding: 8px;
    background: rgba(255, 255, 255, 0.4);

    .details-section {
      display: flex;
      flex-direction: column;
      gap: 3px;

      .detail-row {
        display: flex;
        justify-content: space-between;
        padding: 3px 6px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 2px;
        font-size: 0.85rem;

        &.bonus {
          background: rgba(255, 200, 200, 0.6);
          border: 1px solid rgba(139, 0, 0, 0.5);
        }

        &.malus {
          background: rgba(255, 180, 180, 0.6);
          border: 1px solid rgba(100, 0, 0, 0.5);
        }

        &.rune {
          background: rgba(200, 180, 255, 0.6);
          border: 1px solid rgba(75, 0, 130, 0.5);
        }

        .detail-label {
          color: #000000;
          font-weight: bold;
        }

        .detail-value {
          color: #000000;
          font-weight: 500;
        }
      }
    }
  }

  .result-effects {
    padding: 8px;
    background: rgba(255, 230, 230, 0.4);
    border-top: 1px solid rgba(139, 0, 0, 0.3);

    .effect-item {
      padding: 5px 8px;
      margin-bottom: 5px;
      background: rgba(255, 255, 255, 0.7);
      border-left: 3px solid #8b0000;
      border-radius: 3px;
      color: #000000;
      font-size: 0.85rem;

      &.victory {
        background: rgba(255, 245, 200, 0.8);
        border-left-color: #ffd700;
      }

      i {
        margin-right: 6px;
        color: #8b0000;
      }

      &:last-child {
        margin-bottom: 0;
      }

      &.next-steps {
        background: rgba(200, 220, 255, 0.5);
        border-left-color: #2255aa;

        ol {
          margin: 6px 0 0 0;
          padding-left: 18px;

          li {
            margin-bottom: 4px;
            font-size: 0.82rem;
          }
        }

        i {
          color: #2255aa;
        }
      }
    }

    .damage-buttons {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 8px;

      button {
        width: 100%;
      }
    }
  }

  .result-warning {
    padding: 8px;
    background: rgba(255, 220, 180, 0.7);
    border-top: 1px solid rgba(255, 165, 0, 0.4);
    border-left: 3px solid #ff8c00;
    color: #000000;
    font-size: 0.85rem;

    i {
      margin-right: 6px;
      color: #ff8c00;
    }
  }

  .result-chaos {
    padding: 8px;
    background: rgba(40, 0, 60, 0.85);
    border-top: 2px solid #9400d3;
    border-left: 4px solid #ff00ff;
    color: #f0d0ff;
    font-size: 0.85rem;

    .chaos-header {
      font-weight: bold;
      font-size: 1rem;
      margin-bottom: 6px;
      color: #ff88ff;
      i { margin-right: 6px; }
    }

    .chaos-effect {
      line-height: 1.4;
      i { margin-right: 6px; }

      &.desastre {
        color: #ff4444;
        font-weight: bold;
      }
      &.echec_absolu {
        color: #ffaa44;
      }
      &.rien {
        color: #aaaacc;
        font-style: italic;
      }
    }
  }

  .predilection-section {
    padding: 8px;
    background: rgba(220, 200, 255, 0.4);
    border-top: 1px solid rgba(75, 0, 130, 0.3);

    button {
      width: 100%;
    }
  }

  .chat-card-button {
    background: linear-gradient(135deg, #8b0000 0%, #4a0404 100%);
    border: 1px solid #8b0000;
    border-radius: 3px;
    color: #f5f5f5;
    padding: 6px 12px;
    font-family: CentaurMT, serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);

    i {
      margin-right: 4px;
    }

    &:hover {
      background: linear-gradient(135deg, #a00000 0%, #5a0505 100%);
      transform: translateY(-1px);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    &.predilection-reroll {
      background: linear-gradient(135deg, #4b0082 0%, #2d004d 100%);
      border-color: #4b0082;

      &:hover {
        background: linear-gradient(135deg, #5b1092 0%, #3d005d 100%);
      }
    }
  }
}

/* -------------------------------------------- */
/* Welcome Message Styling                      */
/* -------------------------------------------- */
.mournblade-welcome-message {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.15) 0%, rgba(74, 4, 4, 0.2) 100%);
  border: 2px solid #8b0000;
  border-radius: 8px;
  padding: 0;
  margin: 8px 0;
  overflow: hidden;
  font-family: CentaurMT, serif;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);

  .welcome-header {
    background: linear-gradient(135deg, #8b0000 0%, #4a0404 100%);
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid #ffd700;
    position: relative;

    .welcome-icon {
      font-size: 1.8rem;
      color: #ffd700;
      margin-bottom: 4px;
      text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
      animation: pulse 2s ease-in-out infinite;
    }

    .welcome-title {
      margin: 4px 0 2px 0;
      font-size: 1.3rem;
      font-weight: bold;
      color: #ffd700;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
      font-family: CentaurMT, serif;
      line-height: 1.2;
    }

    .welcome-subtitle {
      font-size: 0.9rem;
      color: #f5e6d3;
      font-style: italic;
      margin-top: 2px;
      line-height: 1.2;
    }
  }

  .welcome-content {
    padding: 12px;
    background: rgba(245, 230, 211, 0.9);

    .welcome-section {
      display: flex;
      gap: 10px;
      margin-bottom: 10px;
      padding: 8px;
      background: rgba(255, 255, 255, 0.6);
      border-left: 4px solid #8b0000;
      border-radius: 4px;

      &:last-child {
        margin-bottom: 0;
      }

      .section-icon {
        flex-shrink: 0;
        font-size: 1.3rem;
        color: #8b0000;
        width: 28px;
        text-align: center;
      }

      .section-text {
        flex: 1;
        color: #2a2a2a;

        strong {
          display: block;
          color: #8b0000;
          font-size: 1rem;
          margin-bottom: 2px;
          line-height: 1.2;
        }

        p {
          margin: 2px 0;
          line-height: 1.3;
          font-size: 0.9rem;
        }

        .welcome-link {
          display: inline-block;
          margin-top: 4px;
          color: #8b0000;
          font-weight: 600;
          text-decoration: none;
          transition: all 0.2s;
          font-size: 0.9rem;
          background: none;
          border: none;
          padding: 0;
          cursor: pointer;
          font-family: inherit;

          i {
            margin-right: 4px;
          }

          &:hover {
            color: #a00000;
            text-shadow: 0 0 4px rgba(139, 0, 0, 0.3);
            transform: translateX(2px);
          }
        }
      }
    }
  }

  .welcome-footer {
    background: linear-gradient(135deg, #4a0404 0%, #8b0000 100%);
    padding: 8px;
    text-align: center;
    color: #ffd700;
    font-style: italic;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1.2;

    i {
      font-size: 1rem;
    }
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

// =====================================================
// Sortilège dialog
// =====================================================
.sortilege-dialog,
.potion-dialog,
.invocation-dialog {
  font-family: CentaurMT, serif;
  color: #2a1a0a;
  padding: 10px;
  background: url("../assets/ui/pc_sheet_bg.webp") repeat left top;

  // Texte de base sombre sur fond parchemin
  label, input, span, p {
    color: #2a1a0a;
  }
  th, td {
    color: #2a1a0a;
  }

  .sortilege-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #4a0404 0%, #6d0808 100%);
    border: 1px solid #8b0000;
    border-radius: 4px;

    .sortilege-actor-info {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .sortilege-actor-img {
      width: 48px;
      height: 48px;
      border-radius: 4px;
      border: 2px solid #a05020;
      object-fit: cover;
      flex-shrink: 0;
    }
    .sortilege-actor-name {
      font-weight: bold;
      font-size: 1.05rem;
      color: #ffffff;
      text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    }
    .sortilege-ame-info {
      font-size: 0.88rem;
      color: #fde0ff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.8);
      strong { color: #ffffff; font-weight: bold; }
    }
  }

  .sortilege-mode-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 5px 4px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.4);

    label {
      flex-shrink: 0;
      font-weight: bold;
      color: #5a1a00;
    }
    select {
      flex: 1;
      background: #3a1a08 !important;
      border: 1px solid #c06030 !important;
      border-radius: 3px;
      padding: 5px 8px;
      color: #ffffff !important;
      font-family: CentaurMT, serif;
      font-size: 0.95rem;
      font-weight: bold;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffd070' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
      background-repeat: no-repeat !important;
      background-position: right 8px center !important;
      background-size: 10px 7px !important;
      padding-right: 28px;

      option {
        background: #1a0e06;
        color: #ffffff;
        font-weight: normal;
      }
    }
  }

  .sortilege-runes-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-size: 0.88rem;
    border: 1px solid #6b3010;
    border-radius: 4px;
    overflow: hidden;

    thead tr th {
      background: #3a1808;
      padding: 6px 8px;
      text-align: center;
      border-bottom: 2px solid #8b4513;
      color: #ffd070;
      font-weight: bold;
      font-size: 0.82rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    tbody tr.sortilege-rune-row {
      border-bottom: 1px solid rgba(139, 69, 19, 0.3);
      transition: background 0.15s;
      background: rgba(255, 240, 210, 0.3);

      &:last-child { border-bottom: none; }
      &:nth-child(even) { background: rgba(200, 160, 100, 0.15); }
      &:hover { background: rgba(139, 69, 19, 0.15); }

      &.rune-selected {
        background: rgba(139, 69, 19, 0.25);
      }

      td {
        padding: 5px 8px;
        vertical-align: middle;
        color: #2a1a0a;
      }

      .rune-mini-img {
        width: 20px;
        height: 20px;
        vertical-align: middle;
        margin-right: 4px;
        border-radius: 2px;
        border: 1px solid rgba(139, 69, 19, 0.5);
      }

      .sortilege-rune-points {
        width: 55px;
        text-align: center;
        background: #3a1a08;
        border: 1px solid #8b4513;
        border-radius: 3px;
        color: #f0e8d8;
        padding: 2px 4px;
        font-family: CentaurMT, serif;
        cursor: pointer;

        option { background: #1a0e06; color: #f0e8d8; }

        &:disabled {
          opacity: 0.35;
          cursor: not-allowed;
        }
      }
    }
  }

  .sortilege-summary {
    background: linear-gradient(135deg, #4a0404 0%, #3a1808 100%);
    border: 1px solid #8b4513;
    border-left: 4px solid #c0392b;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 10px;

    .summary-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
      font-size: 0.9rem;

      &:last-child { margin-bottom: 0; }

      .summary-label {
        font-weight: bold;
        color: #f0d8b0;
        text-shadow: 0 1px 2px rgba(0,0,0,0.8);
      }
      .summary-value {
        color: #ffd700;
        font-weight: bold;
        font-size: 1.05rem;
        text-shadow: 0 1px 3px rgba(0,0,0,0.9);
      }
    }
  }

  // Auto-cible and Modificateur rows
  .flexrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 3px 4px;

    label {
      flex: 1;
      color: #5a1a00;
      font-size: 0.9rem;
      font-weight: bold;
    }

    input[type="number"] {
      width: 70px;
      background: #3a1a08;
      border: 1px solid #8b4513;
      border-radius: 3px;
      padding: 3px 8px;
      color: #f0e8d8;
      text-align: center;
      font-family: CentaurMT, serif;
    }

    .sortilege-modificateur-select {
      width: 90px;
      background: #3a1a08;
      border: 1px solid #8b4513;
      border-radius: 3px;
      padding: 4px 8px;
      color: #f0e8d8;
      font-family: CentaurMT, serif;
      text-align: center;
      cursor: pointer;

      option { background: #1a0e06; color: #f0e8d8; }
    }

    input[type="checkbox"] {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      accent-color: #c0392b;
    }
  }

  // ---- Invocation démon specific ----

  .actor-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #1a0030 0%, #3a0060 100%);
    border: 1px solid #6a008a;
    border-radius: 4px;

    .actor-portrait {
      width: 44px;
      height: 44px;
      border-radius: 4px;
      border: 2px solid #9900cc;
      object-fit: cover;
      flex-shrink: 0;
    }
    h3 {
      font-weight: bold;
      font-size: 1.05rem;
      color: #ffffff;
      text-shadow: 0 1px 3px rgba(0,0,0,0.9);
      margin: 0;
    }
    .dialog-subtitle {
      font-size: 0.85rem;
      color: #ddb0ff;
      i { margin-right: 4px; }
    }
    .actor-info { display: flex; flex-direction: column; gap: 2px; }
  }

  .invoc-warning-box {
    background: rgba(180, 20, 20, 0.15);
    border: 1px solid #8b0000;
    border-left: 4px solid #c0392b;
    border-radius: 4px;
    padding: 7px 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #6a0000;
    i { margin-right: 6px; color: #c0392b; }
    strong { color: #8b0000; }
    div { margin-top: 3px; }
  }

  .invoc-comp-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;

    .comp-badge {
      background: rgba(60, 20, 80, 0.12);
      border: 1px solid rgba(120, 40, 160, 0.4);
      border-radius: 12px;
      padding: 3px 10px;
      font-size: 0.82rem;
      color: #3a0060;

      &.comp-missing {
        background: rgba(120, 0, 0, 0.08);
        border-color: rgba(180, 0, 0, 0.3);
        color: #800000;
        em { font-style: italic; opacity: 0.7; }
      }
      strong { color: #2a004a; font-weight: bold; }
    }
  }

  .invoc-seuil-calculator {
    background: rgba(60, 10, 80, 0.07);
    border: 1px solid rgba(120, 40, 160, 0.35);
    border-radius: 5px;
    padding: 10px 12px;
    margin-bottom: 10px;

    .invoc-section-title {
      font-size: 0.88rem;
      font-weight: bold;
      color: #3a0060;
      margin: 0 0 8px 0;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      i { margin-right: 5px; }
    }

    .invoc-criteria-grid {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 5px 10px;
      align-items: center;
      margin-bottom: 10px;

      label {
        font-size: 0.83rem;
        color: #3a1a0a;
        font-weight: bold;
        padding: 1px 0;
      }

      select, input[type="number"] {
        background: #3a1a08;
        border: 1px solid #8b4513;
        border-radius: 3px;
        padding: 4px 24px 4px 8px;
        color: #f0e8d8;
        font-family: CentaurMT, serif;
        font-size: 0.83rem;
        cursor: pointer;
        min-width: 200px;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='%23ffd070' d='M5 7L0 0h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 7px center;
        background-size: 9px 6px;
        option { background: #1a0e06; color: #f0e8d8; }
      }

      input[type="number"] {
        min-width: 80px;
        max-width: 80px;
        text-align: center;
        background-image: none;
        padding: 4px 8px;
      }
    }

    .invoc-seuil-total-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 8px;
      background: linear-gradient(135deg, #2a005a 0%, #4a0080 100%);
      border: 1px solid #9900cc;
      border-radius: 4px;

      .invoc-seuil-label {
        flex: 1;
        font-weight: bold;
        font-size: 0.9rem;
        color: #ddb0ff;
      }

      .invoc-seuil-total {
        font-size: 1.3rem;
        font-weight: bold;
        color: #ffd700;
        text-shadow: 0 0 8px rgba(255, 200, 0, 0.6);
        min-width: 32px;
        text-align: center;
      }
    }
  }

  .invoc-form-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;

    .invoc-field {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 4px 6px;
      border-bottom: 1px solid rgba(139, 69, 19, 0.2);

      label {
        flex: 1;
        font-weight: bold;
        font-size: 0.87rem;
        color: #3a1a0a;
      }

      .invoc-value-highlight {
        font-size: 1.1rem;
        font-weight: bold;
        color: #6a0080;
        min-width: 30px;
        text-align: center;
      }

      .invoc-hint {
        font-size: 0.78rem;
        color: #5a3a0a;
        font-style: italic;
        strong { color: #8b0000; font-weight: bold; }
      }

      select {
        background: #3a1a08;
        border: 1px solid #8b4513;
        border-radius: 3px;
        padding: 4px 24px 4px 8px;
        color: #f0e8d8;
        font-family: CentaurMT, serif;
        font-size: 0.85rem;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='%23ffd070' d='M5 7L0 0h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 7px center;
        background-size: 9px 6px;
        option { background: #1a0e06; color: #f0e8d8; }
      }
    }
  }
}

// =====================================================
// Sortilège chat result
// =====================================================
.mournblade-chat-result {
  .sortilege-runes-summary {
    margin-top: 8px;
    border-top: 1px solid rgba(139, 69, 19, 0.3);
    padding-top: 6px;

    .details-section-title {
      font-weight: bold;
      font-size: 0.85rem;
      color: #4a0404;
      margin-bottom: 4px;

      i { margin-right: 4px; }
    }

    .sortilege-rune-detail {
      align-items: center;
      gap: 8px;
      padding: 3px 0;
      font-size: 0.82rem;
      border-bottom: 1px solid rgba(0,0,0,0.06);

      .rune-mini-img {
        width: 18px;
        height: 18px;
        border-radius: 2px;
        flex-shrink: 0;
      }
      .rune-name {
        flex: 1;
        font-weight: bold;
      }
      .rune-formule {
        font-style: italic;
        color: #5a3a8a;
        font-size: 0.8rem;
        white-space: nowrap;
      }
      .rune-pts, .rune-actions { color: #666; white-space: nowrap; }
      .rune-duree { color: #4a2060; font-style: italic; white-space: nowrap; }
    }
  }

  // Haut-Parler formule dans la rune (chat-generic-result)
  .rune-formule {
    font-style: italic;
    color: #5a3a8a;
  }
}

