/* Common Styles */
@layer variables {
  /* ----------------------------------------- */
  /*  Fonts                                    */
  /* ----------------------------------------- */
  @font-face {
    font-family: 'Modesto Condensed';
    font-style: normal;
    font-weight: 400;
    src: url('../../fonts/modesto-condensed/modesto-condensed.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Modesto Condensed';
    font-style: normal;
    font-weight: 700;
    src: url('../../fonts/modesto-condensed/modesto-condensed-bold.woff2') format('woff2');
  }
  /* ----------------------------------------- */
  /*  Sheet Styles                             */
  /* ----------------------------------------- */
  :root {
    --color-text-dark-primary: #191813;
    --color-text-dark-inactive: #7a7971;
    --color-text-dark-5: #666;
    --color-text-light-0: #fff;
    --color-text-light-1: #eee;
    --color-text-light-5: #aaa;
    --color-text-light-6: #999;
    --color-text-hyperlink: #ff6400;
    --color-border-light-1: #ddd;
    --color-border-dark-5: #666;
    --color-border-light-tertiary: #7a7971;
    --form-field-height: 26px;
    --color-shadow-primary: #ff0000;
    --color-border-light-2: #999;
    --dnd5e-color-black: #000;
    --dnd5e-color-dark: #191813;
    --dnd5e-color-faint: #c9c7b8;
    --dnd5e-color-beige: #b5b3a4;
    --dnd5e-color-tan: #7a7971;
    --dnd5e-color-olive: #4b4a44;
    --dnd5e-color-crimson: #44191A;
    --dnd5e-color-groove: #eeede0;
    --dnd5e-color-gold: #9f9275;
    --dnd5e-color-red: #ed1c24;
    --dnd5e-color-blue: cornflowerblue;
    --dnd5e-color-green: #205b15;
    --dnd5e-color-maroon: #741b2b;
    --dnd5e-color-parchment: #f1ebe8;
    --dnd5e-color-purple: #c44dff;
    --dnd5e-color-scrollbar: var(--dnd5e-color-gold);
    --dnd5e-color-card: #f8f4f1;
    --dnd5e-color-hp-1: #1b4b29;
    --dnd5e-color-hp-2: #3ba55d;
    --dnd5e-color-hp-3: #276d3c;
    --dnd5e-color-hd-1: #401f25;
    --dnd5e-color-hd-2: var(--dnd5e-color-maroon);
    --dnd5e-color-hd-3: #500000;
    --dnd5e-color-sc-1: #433754;
    --dnd5e-color-sc-2: #776493;
    --dnd5e-color-blue-white: #cfd2da;
    --dnd5e-color-blue-gray-1: #242731;
    --dnd5e-color-blue-gray-2: #252830;
    --dnd5e-color-blue-gray-3: #434857;
    --dnd5e-color-blue-gray-4: #333742;
    --dnd5e-color-iron-gray: #313131;
    --dnd5e-color-light-gray: #3d3d3d;
    --dnd5e-color-dark-gray: #0d0b0b;
    --dnd5e-color-success: #006c00;
    --dnd5e-color-success-background: #c7d0c0;
    --dnd5e-color-success-critical: green;
    --dnd5e-color-failure: #6e0000;
    --dnd5e-color-failure-background: #ffdddd;
    --dnd5e-color-failure-critical: red;
    --dnd5e-color-note-info: #5c87b9;
    --dnd5e-color-note-warn: #9b6903;
    --dnd5e-color-application-damage: #9c5b47;
    --dnd5e-color-application-healing: #3c7f58;
    --dnd5e-color-application-temp: #007F7F;
    --dnd5e-background-25: rgba(0, 0, 0, 0.25);
    --dnd5e-background-10: rgba(0, 0, 0, 0.1);
    --dnd5e-background-5: rgba(0, 0, 0, 0.05);
    --dnd5e-background-parchment: var(--dnd5e-color-parchment);
    --dnd5e-background-texture-paper-red: url("ui/texture1.webp") no-repeat top center / auto 770px,
    var(--dnd5e-color-parchment) url("ui/texture2.webp") no-repeat bottom center / auto 704px;
    --dnd5e-background-texture-paper-gray: url("ui/texture-gray1.webp") no-repeat top left,
    var(--dnd5e-color-parchment) url("ui/texture-gray2.webp") no-repeat bottom right;
    --dnd5e-background-texture-denim: var(--dnd5e-color-dark-gray) url("../../ui/denim075.png");
    --dnd5e-border-light: 1px solid #CCC;
    --dnd5e-border-groove: 2px groove var(--dnd5e-color-groove);
    --font-primary: Signika, sans-serif;
    --dnd5e-font-modesto: "Modesto Condensed", "Palatino Linotype", serif;
    --dnd5e-font-roboto: Roboto, sans-serif;
    --dnd5e-font-roboto-condensed: "Roboto Condensed", sans-serif;
    --dnd5e-font-roboto-slab: "Roboto Slab", serif;
    --dnd5e-sheet-background: url("../../ui/parchment.jpg") repeat;
    --dnd5e-shadow-45: rgba(0, 0, 0, 0.45);
    --dnd5e-shadow-15: rgba(0, 0, 0, 0.15);
    --dnd5e-highlight-10: rgba(255, 255, 255, 0.1);
    --dnd5e-highlight-40: rgba(255, 255, 255, 0.4);
    --dnd5e-highlight-45: rgba(255, 255, 255, 0.45);
    --font-size-8: 0.5rem;
    --font-size-9: 0.5625rem;
    --font-size-10: 0.625rem;
    --font-size-23: 1.4375rem;
    --font-size-30: 1.875rem;
    --font-size-36: 2.25rem;
    --font-size-42: 2.625rem;
    --font-size-46: 2.875rem;
    --dnd5e-journal-h1-size: 2.5em;
    --dnd5e-journal-h2-size: 2em;
    --dnd5e-journal-h3-size: 1.5em;
    --dnd5e-journal-h4-size: 1.1em;
    --dnd5e-journal-title-size: var(--font-size-46);
    --dnd5e-capacity-container-background-color: oklch(57.5% 0.012 101);
    --dnd5e-capacity-container-border-color: oklch(20.8% 0.01 98);
    --dnd5e-capacity-background-color: oklch(62% 0.05 246);
    --dnd5e-capacity-border-color: oklch(91% 0.044 252.5);
    --dnd5e-capacity-text-color: oklch(95% 0 0);
    /* Inline Blocks */
    --dnd5e-block-width-base: 100px;
    --dnd5e-block-float-max: 50%;
    --dnd5e-block-header-font: var(--dnd5e-font-roboto-slab);
    --dnd5e-notable-decor: no-repeat url("ui/notable-right-corner.svg") 0%/contain,
    no-repeat url("ui/notable-left-corner.svg") 100%/contain;
    --dnd5e-statblock-column-width: 400px;
  }
  .mixin-variables-light {
    /* Applications */
    --dnd5e-application-background: var(--dnd5e-background-texture-paper-gray);
    --dnd5e-item-header-content: none;
    --dnd5e-item-header-image: transparent;
    --dnd5e-encounter-header-content: none;
    --dnd5e-encounter-header-image: transparent;
    --dnd5e-npc-header-content: none;
    --dnd5e-npc-header-image: transparent;
    --dnd5e-group-header-content: none;
    --dnd5e-group-header-image: transparent;
    --dnd5e-character-background-content: none;
    --dnd5e-character-background-image: transparent;
    --dnd5e-character-header-image: url("ui/official/banner-character.jpg");
    --dnd5e-character-body-image: var(--dnd5e-background-texture-paper-red);
    --dnd5e-vehicle-header-content: none;
    --dnd5e-vehicle-header-image: transparent;
    --dnd5e-vehicle-station-blend-mode: none;
    --dnd5e-background-card: var(--dnd5e-color-card);
    --dnd5e-background-parchment: var(--dnd5e-color-parchment);
    --dnd5e-background-5: rgba(0, 0, 0, 0.05);
    --dnd5e-background-alt-1: var(--dnd5e-color-light-gray);
    --dnd5e-background-alt-2: var(--dnd5e-color-iron-gray);
    --dnd5e-gold-icon-background: var(--dnd5e-color-light-gray);
    --dnd5e-border-gold: 1px solid var(--dnd5e-color-gold);
    --dnd5e-border-dotted: 1px dotted #bbb;
    --dnd5e-border-dashed: 1px dashed #999;
    --dnd5e-border-dashed-faint: 1px dashed #ddd;
    --dnd5e-border-dark: 1px solid #999;
    --dnd5e-border-heading-3: 1px solid var(--color-text-dark-primary);
    --dnd5e-border-separator-faint: 1px solid #ddd;
    --dnd5e-border-separator-heavy: 1px solid #ddd;
    --dnd5e-border-separator-warning: 1px dotted var(--dnd5e-color-gold);
    --dnd5e-inventory-border: var(--dnd5e-border-gold);
    --dnd5e-slot-border: 1px solid var(--dnd5e-color-gold);
    --dnd5e-slot-filter: invert(1);
    --dnd5e-card-header-1: var(--dnd5e-color-hd-1);
    --dnd5e-card-header-2: var(--dnd5e-color-hd-2);
    --dnd5e-card-header-disabled-1: #333;
    --dnd5e-card-header-disabled-2: #999;
    --dnd5e-attribute-color: var(--dnd5e-color-crimson);
    --dnd5e-ability-color: var(--color-text-dark-5);
    --dnd5e-ability-mod-color: var(--dnd5e-color-black);
    --dnd5e-ability-tab: url("ui/ability-score-tab.svg");
    --dnd5e-heading-3-color: var(--color-text-dark-primary);
    --dnd5e-condition-hover: var(--dnd5e-color-parchment);
    --color-text-emphatic: var(--color-text-dark-primary);
    --color-text-primary: var(--color-text-dark-primary);
    --color-text-secondary: var(--color-text-dark-5);
    --color-text-tertiary: var(--color-text-light-6);
    --color-text-inactive: var(--color-text-dark-inactive);
    --color-text-title: var(--color-text-dark-primary);
    --separated-list-item-background-color: var(--dnd5e-color-card);
    --separated-list-item-border-color: var(--dnd5e-color-gold);
    --activity-icon-color: var(--color-text-dark-primary);
    --activity-row-border: 1px dotted #ddd;
    --activity-row-indent-color: var(--color-text-light-6);
    --damage-icon-color: var(--color-text-light-6);
    --item-summary-background: var(--dnd5e-color-parchment);
    --item-control-color: var(--color-text-light-6);
    --item-control-interactive-color: var(--color-text-light-6);
    --item-control-active-color: var(--dnd5e-color-black);
    --item-control-header-color: var(--color-text-light-0);
    --item-state-toggle-active: var(--color-text-dark-primary);
    --pill-transparent-color: #4e4e4e;
    --pill-border: 1px solid #666;
    --pill-colored-border: 1px solid #666;
    --pill-border-dotted: 1px dotted #666;
    --pill-underlay-opacity: 1;
    --pill-underlay-blend-mode: overlay;
    --pill-background-color: color-mix(in oklab, var(--dnd5e-color-parchment), white);
    --pill-background-blend-mode: color-burn;
    --pill-background-green: var(--dnd5e-color-green);
    --pill-background-maroon: var(--dnd5e-color-maroon);
    --pill-colored-text-color: var(--color-text-light-0);
    --pill-empty-border: 2px dashed var(--dnd5e-color-black);
    --pill-empty-text-color: var(--dnd5e-color-black);
    --advancement-summary-link-color: var(--color-text-dark-primary);
    --npc-header-input-background: var(--dnd5e-background-5);
    --npc-cr-input-background: var(--dnd5e-background-5);
    --npc-portrait-toggle-on: inherit;
    --npc-ability-score-filter: none;
    --group-vitals-shadow: 0 0 4px white;
    --group-underlay-opacity: 0.5;
    --group-underlay-filter: none;
    --group-control-border: var(--color-border-light-2);
    --group-control-hover-border: var(--dnd5e-color-gold);
    --meter-background: var(--dnd5e-color-light-gray);
    --drop-region-border-color: black;
    --drop-region-text-color: inherit;
    --filigree-background-color: var(--dnd5e-color-card);
    --filigree-border-color: var(--dnd5e-color-gold);
    --filter-control-color: var(--color-text-light-6);
    --filter-control-active-color: var(--color-text-dark-primary);
    --context-entry-hover-background: var(--dnd5e-color-parchment);
    --advancement-icon-filter: none;
    --window-resize-handle-filter: none;
    /* Forms */
    --slide-toggle-track-color-unchecked: var(--dnd5e-background-25);
    --slide-toggle-track-color-checked: var(--dnd5e-color-gold);
    --fieldset-legend-color: var(--color-text-dark-5);
    --color-fieldset-border: var(--color-border-light-tertiary);
    --control-button-text-color: var(--color-text-dark-5);
    --hint-icon-color: var(--color-text-dark-5);
    --multi-select-tag-background: var(--dnd5e-color-card);
    --multi-select-tag-border: var(--dnd5e-color-gold);
    --radio-list-hover: var(--dnd5e-color-parchment);
    /* Journals */
    --dnd5e-journal-content-background: var(--dnd5e-background-texture-paper-red);
    --dnd5e-journal-header-background: var(--dnd5e-background-10);
    --dnd5e-color-table-border: var(--dnd5e-color-gold);
    --dnd5e-color-table-row-even: var(--dnd5e-color-parchment);
    --dnd5e-color-table-row-odd: var(--dnd5e-color-card);
    --dnd5e-color-table-header-1: var(--dnd5e-color-hd-1);
    --dnd5e-color-table-header-2: var(--dnd5e-color-hd-2);
    --dnd5e-block-background: var(--dnd5e-color-card);
    --dnd5e-block-border-color: var(--dnd5e-color-gold);
    --dnd5e-roll-icon-filter: none;
    --dnd5e-notable-filter: none;
    /* Statblocks */
    --dnd5e-statblock-background-plain: rgba(235, 228, 214, 0.35);
    --dnd5e-statblock-background-parchment: rgba(253, 242, 205, 0.5);
    --dnd5e-statblock-ability-border: white;
    --dnd5e-statblock-ability-header-1st: #eae5d9;
    --dnd5e-statblock-ability-header-2nd: #d7d9d0;
    --dnd5e-statblock-ability-stat-1st: #dad3cb;
    --dnd5e-statblock-ability-stat-2nd: #cdc9c9;
    --dnd5e-statblock-border: #4e4c4a;
    --dnd5e-statblock-scroll: #edbf64;
    --dnd5e-statblock-separator: #87332c;
    --dnd5e-statblock-text-header: #4f1d15;
    --dnd5e-statblock-text-primary: #1f1e1e;
    --dnd5e-statblock-text-secondary: rgba(73, 72, 73, 0.75);
    --dnd5e-statblock-title-border: currentcolor;
  }
  .mixin-variables-light.dialog-lg {
    --dnd5e-application-background: var(--dnd5e-background-texture-paper-red);
  }
  .mixin-variables-light.actor {
    --dnd5e-application-background: var(--dnd5e-background-texture-paper-red);
  }
  .mixin-variables-light.compendium-browser {
    --filter-header-label-color: var(--color-text-primary);
    --filter-range-label-color: var(--color-text-primary);
  }
  .mixin-variables-light .items-section .item .tags {
    --icon-fill: var(--dnd5e-color-black);
    --tag-opacity: 0.25;
  }
  .mixin-variables-light .effects-element .conditions-list .condition {
    --border-style: 1px dashed #ddd;
  }
  .mixin-variables-light.starting-equipment {
    --background-depth-1: var(--dnd5e-background-card);
    --background-depth-2: var(--dnd5e-background-parchment);
    --background-depth-3: color-mix(in oklab, var(--dnd5e-color-card), black 10%);
  }
  .mixin-variables-light .currency .distribution slide-toggle {
    --slide-toggle-track-color-unchecked: var(--dnd5e-color-olive);
  }
  .mixin-variables-light.actor.character .window-header slide-toggle {
    --slide-toggle-track-color-unchecked: var(--dnd5e-color-light-gray);
  }
  .mixin-variables-light section.secret {
    --color-secret-bg: rgba(53, 0, 121, 0.05);
    --color-revealed-bg: rgba(0, 53, 0, 0.05);
  }
  .mixin-variables-light button {
    --button-border-color: var(--color-border-light-2);
    --button-hover-border-color: var(--dnd5e-color-gold);
    --button-toggle-depressed-color: color-mix(in oklab, var(--dnd5e-background-card), var(--dnd5e-color-gold) 10%);
    --control-border-color: #999;
    --control-active-background-color: rgba(0, 0, 0, 0.2);
  }
  .mixin-variables-light input,
  .mixin-variables-light textarea {
    --input-placeholder-color: var(--color-text-light-6);
  }
  .mixin-variables-light input,
  .mixin-variables-light textarea,
  .mixin-variables-light select {
    --input-background-color: rgba(0, 0, 0, 0.1);
    --input-disabled-background-color: rgba(0, 0, 0, 0.2);
  }
  .mixin-variables-light input:not([type=range]),
  .mixin-variables-light textarea,
  .mixin-variables-light select {
    --input-border-color: transparent;
    --input-hover-border-color: var(--dnd5e-color-gold);
  }
  .mixin-variables-light dnd5e-checkbox[disabled]:not([checked]) {
    --checkbox-border-color: var(--color-text-light-6);
    --checkbox-empty-color: transparent;
  }
  .mixin-variables-light .prosemirror menu {
    --color-hover-bg: var(--dnd5e-color-card);
    --menu-background: rgba(0, 0, 0, 0.1);
    --button-text-color: var(--color-text-primary);
    --color-form-label-hover: var(--color-dark-1);
  }
  .mixin-variables-light .prosemirror menu button.active {
    --color-form-label-hover: var(--color-dark-1);
  }
  .mixin-variables-light fieldset.card .input-element-tags .tag {
    --multi-select-tag-background: var(--dnd5e-color-card);
    --multi-select-tag-border: var(--dnd5e-color-gold);
  }
  .mixin-variables-light .notable {
    --dnd5e-block-background: #d8e3e3;
    --dnd5e-block-border-color: #231f20 #b3b3b3;
  }
  .mixin-variables-light table {
    --table-background-color: var(--dnd5e-color-card);
  }
  @layer general {
    body.theme-light .dnd5e2 {
      /* Applications */
      --dnd5e-application-background: var(--dnd5e-background-texture-paper-gray);
      --dnd5e-item-header-content: none;
      --dnd5e-item-header-image: transparent;
      --dnd5e-encounter-header-content: none;
      --dnd5e-encounter-header-image: transparent;
      --dnd5e-npc-header-content: none;
      --dnd5e-npc-header-image: transparent;
      --dnd5e-group-header-content: none;
      --dnd5e-group-header-image: transparent;
      --dnd5e-character-background-content: none;
      --dnd5e-character-background-image: transparent;
      --dnd5e-character-header-image: url("ui/official/banner-character.jpg");
      --dnd5e-character-body-image: var(--dnd5e-background-texture-paper-red);
      --dnd5e-vehicle-header-content: none;
      --dnd5e-vehicle-header-image: transparent;
      --dnd5e-vehicle-station-blend-mode: none;
      --dnd5e-background-card: var(--dnd5e-color-card);
      --dnd5e-background-parchment: var(--dnd5e-color-parchment);
      --dnd5e-background-5: rgba(0, 0, 0, 0.05);
      --dnd5e-background-alt-1: var(--dnd5e-color-light-gray);
      --dnd5e-background-alt-2: var(--dnd5e-color-iron-gray);
      --dnd5e-gold-icon-background: var(--dnd5e-color-light-gray);
      --dnd5e-border-gold: 1px solid var(--dnd5e-color-gold);
      --dnd5e-border-dotted: 1px dotted #bbb;
      --dnd5e-border-dashed: 1px dashed #999;
      --dnd5e-border-dashed-faint: 1px dashed #ddd;
      --dnd5e-border-dark: 1px solid #999;
      --dnd5e-border-heading-3: 1px solid var(--color-text-dark-primary);
      --dnd5e-border-separator-faint: 1px solid #ddd;
      --dnd5e-border-separator-heavy: 1px solid #ddd;
      --dnd5e-border-separator-warning: 1px dotted var(--dnd5e-color-gold);
      --dnd5e-inventory-border: var(--dnd5e-border-gold);
      --dnd5e-slot-border: 1px solid var(--dnd5e-color-gold);
      --dnd5e-slot-filter: invert(1);
      --dnd5e-card-header-1: var(--dnd5e-color-hd-1);
      --dnd5e-card-header-2: var(--dnd5e-color-hd-2);
      --dnd5e-card-header-disabled-1: #333;
      --dnd5e-card-header-disabled-2: #999;
      --dnd5e-attribute-color: var(--dnd5e-color-crimson);
      --dnd5e-ability-color: var(--color-text-dark-5);
      --dnd5e-ability-mod-color: var(--dnd5e-color-black);
      --dnd5e-ability-tab: url("ui/ability-score-tab.svg");
      --dnd5e-heading-3-color: var(--color-text-dark-primary);
      --dnd5e-condition-hover: var(--dnd5e-color-parchment);
      --color-text-emphatic: var(--color-text-dark-primary);
      --color-text-primary: var(--color-text-dark-primary);
      --color-text-secondary: var(--color-text-dark-5);
      --color-text-tertiary: var(--color-text-light-6);
      --color-text-inactive: var(--color-text-dark-inactive);
      --color-text-title: var(--color-text-dark-primary);
      --separated-list-item-background-color: var(--dnd5e-color-card);
      --separated-list-item-border-color: var(--dnd5e-color-gold);
      --activity-icon-color: var(--color-text-dark-primary);
      --activity-row-border: 1px dotted #ddd;
      --activity-row-indent-color: var(--color-text-light-6);
      --damage-icon-color: var(--color-text-light-6);
      --item-summary-background: var(--dnd5e-color-parchment);
      --item-control-color: var(--color-text-light-6);
      --item-control-interactive-color: var(--color-text-light-6);
      --item-control-active-color: var(--dnd5e-color-black);
      --item-control-header-color: var(--color-text-light-0);
      --item-state-toggle-active: var(--color-text-dark-primary);
      --pill-transparent-color: #4e4e4e;
      --pill-border: 1px solid #666;
      --pill-colored-border: 1px solid #666;
      --pill-border-dotted: 1px dotted #666;
      --pill-underlay-opacity: 1;
      --pill-underlay-blend-mode: overlay;
      --pill-background-color: color-mix(in oklab, var(--dnd5e-color-parchment), white);
      --pill-background-blend-mode: color-burn;
      --pill-background-green: var(--dnd5e-color-green);
      --pill-background-maroon: var(--dnd5e-color-maroon);
      --pill-colored-text-color: var(--color-text-light-0);
      --pill-empty-border: 2px dashed var(--dnd5e-color-black);
      --pill-empty-text-color: var(--dnd5e-color-black);
      --advancement-summary-link-color: var(--color-text-dark-primary);
      --npc-header-input-background: var(--dnd5e-background-5);
      --npc-cr-input-background: var(--dnd5e-background-5);
      --npc-portrait-toggle-on: inherit;
      --npc-ability-score-filter: none;
      --group-vitals-shadow: 0 0 4px white;
      --group-underlay-opacity: 0.5;
      --group-underlay-filter: none;
      --group-control-border: var(--color-border-light-2);
      --group-control-hover-border: var(--dnd5e-color-gold);
      --meter-background: var(--dnd5e-color-light-gray);
      --drop-region-border-color: black;
      --drop-region-text-color: inherit;
      --filigree-background-color: var(--dnd5e-color-card);
      --filigree-border-color: var(--dnd5e-color-gold);
      --filter-control-color: var(--color-text-light-6);
      --filter-control-active-color: var(--color-text-dark-primary);
      --context-entry-hover-background: var(--dnd5e-color-parchment);
      --advancement-icon-filter: none;
      --window-resize-handle-filter: none;
      /* Forms */
      --slide-toggle-track-color-unchecked: var(--dnd5e-background-25);
      --slide-toggle-track-color-checked: var(--dnd5e-color-gold);
      --fieldset-legend-color: var(--color-text-dark-5);
      --color-fieldset-border: var(--color-border-light-tertiary);
      --control-button-text-color: var(--color-text-dark-5);
      --hint-icon-color: var(--color-text-dark-5);
      --multi-select-tag-background: var(--dnd5e-color-card);
      --multi-select-tag-border: var(--dnd5e-color-gold);
      --radio-list-hover: var(--dnd5e-color-parchment);
      /* Journals */
      --dnd5e-journal-content-background: var(--dnd5e-background-texture-paper-red);
      --dnd5e-journal-header-background: var(--dnd5e-background-10);
      --dnd5e-color-table-border: var(--dnd5e-color-gold);
      --dnd5e-color-table-row-even: var(--dnd5e-color-parchment);
      --dnd5e-color-table-row-odd: var(--dnd5e-color-card);
      --dnd5e-color-table-header-1: var(--dnd5e-color-hd-1);
      --dnd5e-color-table-header-2: var(--dnd5e-color-hd-2);
      --dnd5e-block-background: var(--dnd5e-color-card);
      --dnd5e-block-border-color: var(--dnd5e-color-gold);
      --dnd5e-roll-icon-filter: none;
      --dnd5e-notable-filter: none;
      /* Statblocks */
      --dnd5e-statblock-background-plain: rgba(235, 228, 214, 0.35);
      --dnd5e-statblock-background-parchment: rgba(253, 242, 205, 0.5);
      --dnd5e-statblock-ability-border: white;
      --dnd5e-statblock-ability-header-1st: #eae5d9;
      --dnd5e-statblock-ability-header-2nd: #d7d9d0;
      --dnd5e-statblock-ability-stat-1st: #dad3cb;
      --dnd5e-statblock-ability-stat-2nd: #cdc9c9;
      --dnd5e-statblock-border: #4e4c4a;
      --dnd5e-statblock-scroll: #edbf64;
      --dnd5e-statblock-separator: #87332c;
      --dnd5e-statblock-text-header: #4f1d15;
      --dnd5e-statblock-text-primary: #1f1e1e;
      --dnd5e-statblock-text-secondary: rgba(73, 72, 73, 0.75);
      --dnd5e-statblock-title-border: currentcolor;
    }
    body.theme-light .dnd5e2.dialog-lg {
      --dnd5e-application-background: var(--dnd5e-background-texture-paper-red);
    }
    body.theme-light .dnd5e2.actor {
      --dnd5e-application-background: var(--dnd5e-background-texture-paper-red);
    }
    body.theme-light .dnd5e2.compendium-browser {
      --filter-header-label-color: var(--color-text-primary);
      --filter-range-label-color: var(--color-text-primary);
    }
    body.theme-light .dnd5e2 .items-section .item .tags {
      --icon-fill: var(--dnd5e-color-black);
      --tag-opacity: 0.25;
    }
    body.theme-light .dnd5e2 .effects-element .conditions-list .condition {
      --border-style: 1px dashed #ddd;
    }
    body.theme-light .dnd5e2.starting-equipment {
      --background-depth-1: var(--dnd5e-background-card);
      --background-depth-2: var(--dnd5e-background-parchment);
      --background-depth-3: color-mix(in oklab, var(--dnd5e-color-card), black 10%);
    }
    body.theme-light .dnd5e2 .currency .distribution slide-toggle {
      --slide-toggle-track-color-unchecked: var(--dnd5e-color-olive);
    }
    body.theme-light .dnd5e2.actor.character .window-header slide-toggle {
      --slide-toggle-track-color-unchecked: var(--dnd5e-color-light-gray);
    }
    body.theme-light .dnd5e2 section.secret {
      --color-secret-bg: rgba(53, 0, 121, 0.05);
      --color-revealed-bg: rgba(0, 53, 0, 0.05);
    }
    body.theme-light .dnd5e2 button {
      --button-border-color: var(--color-border-light-2);
      --button-hover-border-color: var(--dnd5e-color-gold);
      --button-toggle-depressed-color: color-mix(in oklab, var(--dnd5e-background-card), var(--dnd5e-color-gold) 10%);
      --control-border-color: #999;
      --control-active-background-color: rgba(0, 0, 0, 0.2);
    }
    body.theme-light .dnd5e2 input,
    body.theme-light .dnd5e2 textarea {
      --input-placeholder-color: var(--color-text-light-6);
    }
    body.theme-light .dnd5e2 input,
    body.theme-light .dnd5e2 textarea,
    body.theme-light .dnd5e2 select {
      --input-background-color: rgba(0, 0, 0, 0.1);
      --input-disabled-background-color: rgba(0, 0, 0, 0.2);
    }
    body.theme-light .dnd5e2 input:not([type=range]),
    body.theme-light .dnd5e2 textarea,
    body.theme-light .dnd5e2 select {
      --input-border-color: transparent;
      --input-hover-border-color: var(--dnd5e-color-gold);
    }
    body.theme-light .dnd5e2 dnd5e-checkbox[disabled]:not([checked]) {
      --checkbox-border-color: var(--color-text-light-6);
      --checkbox-empty-color: transparent;
    }
    body.theme-light .dnd5e2 .prosemirror menu {
      --color-hover-bg: var(--dnd5e-color-card);
      --menu-background: rgba(0, 0, 0, 0.1);
      --button-text-color: var(--color-text-primary);
      --color-form-label-hover: var(--color-dark-1);
    }
    body.theme-light .dnd5e2 .prosemirror menu button.active {
      --color-form-label-hover: var(--color-dark-1);
    }
    body.theme-light .dnd5e2 fieldset.card .input-element-tags .tag {
      --multi-select-tag-background: var(--dnd5e-color-card);
      --multi-select-tag-border: var(--dnd5e-color-gold);
    }
    body.theme-light .dnd5e2 .notable {
      --dnd5e-block-background: #d8e3e3;
      --dnd5e-block-border-color: #231f20 #b3b3b3;
    }
    body.theme-light .dnd5e2 table {
      --table-background-color: var(--dnd5e-color-card);
    }
  }
  @layer specific {
    .themed.theme-light.dnd5e2,
    .themed.theme-light.dnd5e2-journal,
    .themed.theme-light .dnd5e2.chat-message {
      /* Applications */
      --dnd5e-application-background: var(--dnd5e-background-texture-paper-gray);
      --dnd5e-item-header-content: none;
      --dnd5e-item-header-image: transparent;
      --dnd5e-encounter-header-content: none;
      --dnd5e-encounter-header-image: transparent;
      --dnd5e-npc-header-content: none;
      --dnd5e-npc-header-image: transparent;
      --dnd5e-group-header-content: none;
      --dnd5e-group-header-image: transparent;
      --dnd5e-character-background-content: none;
      --dnd5e-character-background-image: transparent;
      --dnd5e-character-header-image: url("ui/official/banner-character.jpg");
      --dnd5e-character-body-image: var(--dnd5e-background-texture-paper-red);
      --dnd5e-vehicle-header-content: none;
      --dnd5e-vehicle-header-image: transparent;
      --dnd5e-vehicle-station-blend-mode: none;
      --dnd5e-background-card: var(--dnd5e-color-card);
      --dnd5e-background-parchment: var(--dnd5e-color-parchment);
      --dnd5e-background-5: rgba(0, 0, 0, 0.05);
      --dnd5e-background-alt-1: var(--dnd5e-color-light-gray);
      --dnd5e-background-alt-2: var(--dnd5e-color-iron-gray);
      --dnd5e-gold-icon-background: var(--dnd5e-color-light-gray);
      --dnd5e-border-gold: 1px solid var(--dnd5e-color-gold);
      --dnd5e-border-dotted: 1px dotted #bbb;
      --dnd5e-border-dashed: 1px dashed #999;
      --dnd5e-border-dashed-faint: 1px dashed #ddd;
      --dnd5e-border-dark: 1px solid #999;
      --dnd5e-border-heading-3: 1px solid var(--color-text-dark-primary);
      --dnd5e-border-separator-faint: 1px solid #ddd;
      --dnd5e-border-separator-heavy: 1px solid #ddd;
      --dnd5e-border-separator-warning: 1px dotted var(--dnd5e-color-gold);
      --dnd5e-inventory-border: var(--dnd5e-border-gold);
      --dnd5e-slot-border: 1px solid var(--dnd5e-color-gold);
      --dnd5e-slot-filter: invert(1);
      --dnd5e-card-header-1: var(--dnd5e-color-hd-1);
      --dnd5e-card-header-2: var(--dnd5e-color-hd-2);
      --dnd5e-card-header-disabled-1: #333;
      --dnd5e-card-header-disabled-2: #999;
      --dnd5e-attribute-color: var(--dnd5e-color-crimson);
      --dnd5e-ability-color: var(--color-text-dark-5);
      --dnd5e-ability-mod-color: var(--dnd5e-color-black);
      --dnd5e-ability-tab: url("ui/ability-score-tab.svg");
      --dnd5e-heading-3-color: var(--color-text-dark-primary);
      --dnd5e-condition-hover: var(--dnd5e-color-parchment);
      --color-text-emphatic: var(--color-text-dark-primary);
      --color-text-primary: var(--color-text-dark-primary);
      --color-text-secondary: var(--color-text-dark-5);
      --color-text-tertiary: var(--color-text-light-6);
      --color-text-inactive: var(--color-text-dark-inactive);
      --color-text-title: var(--color-text-dark-primary);
      --separated-list-item-background-color: var(--dnd5e-color-card);
      --separated-list-item-border-color: var(--dnd5e-color-gold);
      --activity-icon-color: var(--color-text-dark-primary);
      --activity-row-border: 1px dotted #ddd;
      --activity-row-indent-color: var(--color-text-light-6);
      --damage-icon-color: var(--color-text-light-6);
      --item-summary-background: var(--dnd5e-color-parchment);
      --item-control-color: var(--color-text-light-6);
      --item-control-interactive-color: var(--color-text-light-6);
      --item-control-active-color: var(--dnd5e-color-black);
      --item-control-header-color: var(--color-text-light-0);
      --item-state-toggle-active: var(--color-text-dark-primary);
      --pill-transparent-color: #4e4e4e;
      --pill-border: 1px solid #666;
      --pill-colored-border: 1px solid #666;
      --pill-border-dotted: 1px dotted #666;
      --pill-underlay-opacity: 1;
      --pill-underlay-blend-mode: overlay;
      --pill-background-color: color-mix(in oklab, var(--dnd5e-color-parchment), white);
      --pill-background-blend-mode: color-burn;
      --pill-background-green: var(--dnd5e-color-green);
      --pill-background-maroon: var(--dnd5e-color-maroon);
      --pill-colored-text-color: var(--color-text-light-0);
      --pill-empty-border: 2px dashed var(--dnd5e-color-black);
      --pill-empty-text-color: var(--dnd5e-color-black);
      --advancement-summary-link-color: var(--color-text-dark-primary);
      --npc-header-input-background: var(--dnd5e-background-5);
      --npc-cr-input-background: var(--dnd5e-background-5);
      --npc-portrait-toggle-on: inherit;
      --npc-ability-score-filter: none;
      --group-vitals-shadow: 0 0 4px white;
      --group-underlay-opacity: 0.5;
      --group-underlay-filter: none;
      --group-control-border: var(--color-border-light-2);
      --group-control-hover-border: var(--dnd5e-color-gold);
      --meter-background: var(--dnd5e-color-light-gray);
      --drop-region-border-color: black;
      --drop-region-text-color: inherit;
      --filigree-background-color: var(--dnd5e-color-card);
      --filigree-border-color: var(--dnd5e-color-gold);
      --filter-control-color: var(--color-text-light-6);
      --filter-control-active-color: var(--color-text-dark-primary);
      --context-entry-hover-background: var(--dnd5e-color-parchment);
      --advancement-icon-filter: none;
      --window-resize-handle-filter: none;
      /* Forms */
      --slide-toggle-track-color-unchecked: var(--dnd5e-background-25);
      --slide-toggle-track-color-checked: var(--dnd5e-color-gold);
      --fieldset-legend-color: var(--color-text-dark-5);
      --color-fieldset-border: var(--color-border-light-tertiary);
      --control-button-text-color: var(--color-text-dark-5);
      --hint-icon-color: var(--color-text-dark-5);
      --multi-select-tag-background: var(--dnd5e-color-card);
      --multi-select-tag-border: var(--dnd5e-color-gold);
      --radio-list-hover: var(--dnd5e-color-parchment);
      /* Journals */
      --dnd5e-journal-content-background: var(--dnd5e-background-texture-paper-red);
      --dnd5e-journal-header-background: var(--dnd5e-background-10);
      --dnd5e-color-table-border: var(--dnd5e-color-gold);
      --dnd5e-color-table-row-even: var(--dnd5e-color-parchment);
      --dnd5e-color-table-row-odd: var(--dnd5e-color-card);
      --dnd5e-color-table-header-1: var(--dnd5e-color-hd-1);
      --dnd5e-color-table-header-2: var(--dnd5e-color-hd-2);
      --dnd5e-block-background: var(--dnd5e-color-card);
      --dnd5e-block-border-color: var(--dnd5e-color-gold);
      --dnd5e-roll-icon-filter: none;
      --dnd5e-notable-filter: none;
      /* Statblocks */
      --dnd5e-statblock-background-plain: rgba(235, 228, 214, 0.35);
      --dnd5e-statblock-background-parchment: rgba(253, 242, 205, 0.5);
      --dnd5e-statblock-ability-border: white;
      --dnd5e-statblock-ability-header-1st: #eae5d9;
      --dnd5e-statblock-ability-header-2nd: #d7d9d0;
      --dnd5e-statblock-ability-stat-1st: #dad3cb;
      --dnd5e-statblock-ability-stat-2nd: #cdc9c9;
      --dnd5e-statblock-border: #4e4c4a;
      --dnd5e-statblock-scroll: #edbf64;
      --dnd5e-statblock-separator: #87332c;
      --dnd5e-statblock-text-header: #4f1d15;
      --dnd5e-statblock-text-primary: #1f1e1e;
      --dnd5e-statblock-text-secondary: rgba(73, 72, 73, 0.75);
      --dnd5e-statblock-title-border: currentcolor;
    }
    .themed.theme-light.dnd5e2.dialog-lg,
    .themed.theme-light.dnd5e2-journal.dialog-lg,
    .themed.theme-light .dnd5e2.chat-message.dialog-lg {
      --dnd5e-application-background: var(--dnd5e-background-texture-paper-red);
    }
    .themed.theme-light.dnd5e2.actor,
    .themed.theme-light.dnd5e2-journal.actor,
    .themed.theme-light .dnd5e2.chat-message.actor {
      --dnd5e-application-background: var(--dnd5e-background-texture-paper-red);
    }
    .themed.theme-light.dnd5e2.compendium-browser,
    .themed.theme-light.dnd5e2-journal.compendium-browser,
    .themed.theme-light .dnd5e2.chat-message.compendium-browser {
      --filter-header-label-color: var(--color-text-primary);
      --filter-range-label-color: var(--color-text-primary);
    }
    .themed.theme-light.dnd5e2 .items-section .item .tags,
    .themed.theme-light.dnd5e2-journal .items-section .item .tags,
    .themed.theme-light .dnd5e2.chat-message .items-section .item .tags {
      --icon-fill: var(--dnd5e-color-black);
      --tag-opacity: 0.25;
    }
    .themed.theme-light.dnd5e2 .effects-element .conditions-list .condition,
    .themed.theme-light.dnd5e2-journal .effects-element .conditions-list .condition,
    .themed.theme-light .dnd5e2.chat-message .effects-element .conditions-list .condition {
      --border-style: 1px dashed #ddd;
    }
    .themed.theme-light.dnd5e2.starting-equipment,
    .themed.theme-light.dnd5e2-journal.starting-equipment,
    .themed.theme-light .dnd5e2.chat-message.starting-equipment {
      --background-depth-1: var(--dnd5e-background-card);
      --background-depth-2: var(--dnd5e-background-parchment);
      --background-depth-3: color-mix(in oklab, var(--dnd5e-color-card), black 10%);
    }
    .themed.theme-light.dnd5e2 .currency .distribution slide-toggle,
    .themed.theme-light.dnd5e2-journal .currency .distribution slide-toggle,
    .themed.theme-light .dnd5e2.chat-message .currency .distribution slide-toggle {
      --slide-toggle-track-color-unchecked: var(--dnd5e-color-olive);
    }
    .themed.theme-light.dnd5e2.actor.character .window-header slide-toggle,
    .themed.theme-light.dnd5e2-journal.actor.character .window-header slide-toggle,
    .themed.theme-light .dnd5e2.chat-message.actor.character .window-header slide-toggle {
      --slide-toggle-track-color-unchecked: var(--dnd5e-color-light-gray);
    }
    .themed.theme-light.dnd5e2 section.secret,
    .themed.theme-light.dnd5e2-journal section.secret,
    .themed.theme-light .dnd5e2.chat-message section.secret {
      --color-secret-bg: rgba(53, 0, 121, 0.05);
      --color-revealed-bg: rgba(0, 53, 0, 0.05);
    }
    .themed.theme-light.dnd5e2 button,
    .themed.theme-light.dnd5e2-journal button,
    .themed.theme-light .dnd5e2.chat-message button {
      --button-border-color: var(--color-border-light-2);
      --button-hover-border-color: var(--dnd5e-color-gold);
      --button-toggle-depressed-color: color-mix(in oklab, var(--dnd5e-background-card), var(--dnd5e-color-gold) 10%);
      --control-border-color: #999;
      --control-active-background-color: rgba(0, 0, 0, 0.2);
    }
    .themed.theme-light.dnd5e2 input,
    .themed.theme-light.dnd5e2-journal input,
    .themed.theme-light .dnd5e2.chat-message input,
    .themed.theme-light.dnd5e2 textarea,
    .themed.theme-light.dnd5e2-journal textarea,
    .themed.theme-light .dnd5e2.chat-message textarea {
      --input-placeholder-color: var(--color-text-light-6);
    }
    .themed.theme-light.dnd5e2 input,
    .themed.theme-light.dnd5e2-journal input,
    .themed.theme-light .dnd5e2.chat-message input,
    .themed.theme-light.dnd5e2 textarea,
    .themed.theme-light.dnd5e2-journal textarea,
    .themed.theme-light .dnd5e2.chat-message textarea,
    .themed.theme-light.dnd5e2 select,
    .themed.theme-light.dnd5e2-journal select,
    .themed.theme-light .dnd5e2.chat-message select {
      --input-background-color: rgba(0, 0, 0, 0.1);
      --input-disabled-background-color: rgba(0, 0, 0, 0.2);
    }
    .themed.theme-light.dnd5e2 input:not([type=range]),
    .themed.theme-light.dnd5e2-journal input:not([type=range]),
    .themed.theme-light .dnd5e2.chat-message input:not([type=range]),
    .themed.theme-light.dnd5e2 textarea,
    .themed.theme-light.dnd5e2-journal textarea,
    .themed.theme-light .dnd5e2.chat-message textarea,
    .themed.theme-light.dnd5e2 select,
    .themed.theme-light.dnd5e2-journal select,
    .themed.theme-light .dnd5e2.chat-message select {
      --input-border-color: transparent;
      --input-hover-border-color: var(--dnd5e-color-gold);
    }
    .themed.theme-light.dnd5e2 dnd5e-checkbox[disabled]:not([checked]),
    .themed.theme-light.dnd5e2-journal dnd5e-checkbox[disabled]:not([checked]),
    .themed.theme-light .dnd5e2.chat-message dnd5e-checkbox[disabled]:not([checked]) {
      --checkbox-border-color: var(--color-text-light-6);
      --checkbox-empty-color: transparent;
    }
    .themed.theme-light.dnd5e2 .prosemirror menu,
    .themed.theme-light.dnd5e2-journal .prosemirror menu,
    .themed.theme-light .dnd5e2.chat-message .prosemirror menu {
      --color-hover-bg: var(--dnd5e-color-card);
      --menu-background: rgba(0, 0, 0, 0.1);
      --button-text-color: var(--color-text-primary);
      --color-form-label-hover: var(--color-dark-1);
    }
    .themed.theme-light.dnd5e2 .prosemirror menu button.active,
    .themed.theme-light.dnd5e2-journal .prosemirror menu button.active,
    .themed.theme-light .dnd5e2.chat-message .prosemirror menu button.active {
      --color-form-label-hover: var(--color-dark-1);
    }
    .themed.theme-light.dnd5e2 fieldset.card .input-element-tags .tag,
    .themed.theme-light.dnd5e2-journal fieldset.card .input-element-tags .tag,
    .themed.theme-light .dnd5e2.chat-message fieldset.card .input-element-tags .tag {
      --multi-select-tag-background: var(--dnd5e-color-card);
      --multi-select-tag-border: var(--dnd5e-color-gold);
    }
    .themed.theme-light.dnd5e2 .notable,
    .themed.theme-light.dnd5e2-journal .notable,
    .themed.theme-light .dnd5e2.chat-message .notable {
      --dnd5e-block-background: #d8e3e3;
      --dnd5e-block-border-color: #231f20 #b3b3b3;
    }
    .themed.theme-light.dnd5e2 table,
    .themed.theme-light.dnd5e2-journal table,
    .themed.theme-light .dnd5e2.chat-message table {
      --table-background-color: var(--dnd5e-color-card);
    }
  }
  .mixin-variables-dark {
    /* Applications */
    --dnd5e-application-background: var(--dnd5e-background-texture-denim);
    --dnd5e-item-header-content: "";
    --dnd5e-item-header-image: url("ui/official/banner-item-dark.webp");
    --dnd5e-encounter-header-content: "";
    --dnd5e-encounter-header-image: url("ui/official/banner-encounter-dark.avif");
    --dnd5e-npc-header-content: "";
    --dnd5e-npc-header-image: url("ui/official/banner-npc-dark.webp");
    --dnd5e-group-header-content: "";
    --dnd5e-group-header-image: url("ui/official/banner-group-dark.jpg");
    --dnd5e-character-background-content: "";
    --dnd5e-character-background-image: url("ui/official/banner-character-dark.webp");
    --dnd5e-character-header-image: transparent;
    --dnd5e-character-body-image: none;
    --dnd5e-vehicle-header-content: "";
    --dnd5e-vehicle-header-image: url("ui/official/banner-vehicle-dark.webp");
    --dnd5e-vehicle-station-blend-mode: color-burn;
    --dnd5e-background-card: var(--dnd5e-color-blue-gray-2);
    --dnd5e-background-parchment: var(--dnd5e-color-blue-gray-2);
    --dnd5e-background-5: var(--dnd5e-highlight-10);
    --dnd5e-background-alt-1: var(--dnd5e-color-dark-gray);
    --dnd5e-background-alt-2: var(--dnd5e-color-blue-gray-2);
    --dnd5e-gold-icon-background: var(--dnd5e-color-dark-gray);
    --dnd5e-border-gold: 1px solid var(--dnd5e-color-blue-gray-1);
    --dnd5e-border-dotted: 1px dotted var(--dnd5e-color-blue-gray-3);
    --dnd5e-border-dashed: 1px dashed var(--dnd5e-color-blue-gray-3);
    --dnd5e-border-dashed-faint: 1px dashed var(--dnd5e-color-blue-gray-1);
    --dnd5e-border-dark: 1px solid var(--dnd5e-color-blue-gray-3);
    --dnd5e-border-heading-3: 1px solid var(--color-text-light-6);
    --dnd5e-border-separator-faint: 1px solid var(--dnd5e-color-blue-gray-1);
    --dnd5e-border-separator-heavy: 1px solid var(--dnd5e-color-blue-gray-3);
    --dnd5e-border-separator-warning: 1px dotted var(--dnd5e-color-blue-gray-3);
    --dnd5e-inventory-border: none;
    --dnd5e-slot-border: 1px solid var(--dnd5e-color-blue-gray-3);
    --dnd5e-slot-filter: none;
    --dnd5e-card-header-1: #491d25;
    --dnd5e-card-header-2: #311b1f;
    --dnd5e-card-header-disabled-1: #444;
    --dnd5e-card-header-disabled-2: #333;
    --dnd5e-attribute-color: var(--dnd5e-color-beige);
    --dnd5e-ability-color: var(--dnd5e-color-gold);
    --dnd5e-ability-mod-color: var(--dnd5e-color-blue-white);
    --dnd5e-ability-tab: url("ui/ability-score-tab-dark.svg");
    --dnd5e-heading-3-color: var(--color-text-light-6);
    --dnd5e-condition-hover: var(--dnd5e-color-blue-gray-3);
    --color-text-emphatic: var(--color-text-light-0);
    --color-text-primary: var(--dnd5e-color-blue-white);
    --color-text-secondary: var(--color-text-light-6);
    --color-text-tertiary: var(--color-text-light-6);
    --color-text-inactive: var(--color-text-dark-inactive);
    --color-text-title: var(--dnd5e-color-gold);
    --separated-list-item-background-color: var(--dnd5e-background-10);
    --separated-list-item-border-color: var(--dnd5e-color-blue-gray-3);
    --activity-icon-color: var(--dnd5e-color-gold);
    --activity-row-border: 1px dotted var(--dnd5e-color-blue-gray-4);
    --activity-row-indent-color: var(--dnd5e-color-blue-gray-3);
    --damage-icon-color: var(--dnd5e-color-gold);
    --item-summary-background: transparent;
    --item-control-color: var(--dnd5e-color-blue-gray-3);
    --item-control-interactive-color: var(--color-text-light-6);
    --item-control-active-color: var(--dnd5e-color-gold);
    --item-control-header-color: var(--dnd5e-color-gold);
    --item-state-toggle-active: var(--dnd5e-color-gold);
    --pill-transparent-color: var(--color-text-primary);
    --pill-border: 1px solid var(--dnd5e-color-blue-gray-3);
    --pill-colored-border: 1px solid var(--dnd5e-color-blue-gray-1);
    --pill-border-dotted: 1px solid var(--dnd5e-color-blue-gray-3);
    --pill-underlay-opacity: 0.15;
    --pill-underlay-blend-mode: soft-light;
    --pill-background-color: var(--dnd5e-color-blue-gray-2);
    --pill-background-blend-mode: soft-light;
    --pill-background-green: color-mix(in srgb, var(--dnd5e-color-green), transparent 25%);
    --pill-background-maroon: color-mix(in srgb, var(--dnd5e-color-maroon), transparent 25%);
    --pill-colored-text-color: var(--dnd5e-color-blue-white);
    --pill-empty-border: 2px dashed white;
    --pill-empty-text-color: white;
    --advancement-summary-link-color: var(--color-text-light-6);
    --npc-header-input-background: rgba(0, 0, 0, 0.45);
    --npc-cr-input-background: none;
    --npc-portrait-toggle-on: var(--dnd5e-color-gold);
    --npc-ability-score-filter: invert(1);
    --group-vitals-shadow: none;
    --group-underlay-opacity: 0.3;
    --group-underlay-filter: saturation(0.5);
    --group-control-border: var(--dnd5e-color-blue-gray-3);
    --group-control-hover-border: var(--dnd5e-color-blue-gray-3);
    --meter-background: var(--dnd5e-color-dark-gray);
    --drop-region-border-color: white;
    --drop-region-text-color: white;
    --filigree-background-color: var(--dnd5e-color-blue-gray-2);
    --filigree-border-color: var(--dnd5e-color-blue-gray-3);
    --filter-control-color: var(--dnd5e-color-blue-gray-3);
    --filter-control-active-color: var(--dnd5e-color-gold);
    --context-entry-hover-background: var(--dnd5e-color-blue-gray-3);
    --window-resize-handle-filter: invert(1);
    /* Converts black to gold */
    --advancement-icon-filter: invert(64%) sepia(14%) saturate(563%) hue-rotate(3deg) brightness(89%) contrast(90%);
    /* Forms */
    --slide-toggle-track-color-unchecked: var(--dnd5e-color-blue-gray-2);
    --slide-toggle-track-color-checked: var(--dnd5e-color-gold);
    --fieldset-legend-color: var(--dnd5e-color-gold);
    --color-fieldset-border: var(--dnd5e-color-blue-gray-3);
    --control-button-text-color: var(--dnd5e-color-gold);
    --hint-icon-color: var(--dnd5e-color-gold);
    --multi-select-tag-background: var(--dnd5e-color-blue-gray-2);
    --multi-select-tag-border: var(--dnd5e-color-blue-gray-1);
    --radio-list-hover: var(--dnd5e-background-25);
    /* Journals */
    --dnd5e-journal-content-background: var(--dnd5e-background-texture-denim);
    --dnd5e-journal-header-background: var(--dnd5e-highlight-10);
    --dnd5e-color-table-row-odd: var(--dnd5e-color-blue-gray-2);
    --dnd5e-color-table-row-even: color-mix(in oklab, var(--dnd5e-color-table-row-odd), black 10%);
    --dnd5e-color-table-border: color-mix(in oklab, var(--dnd5e-color-table-row-even), black 10%);
    --dnd5e-color-table-header-1: #491d25;
    --dnd5e-color-table-header-2: #311b1f;
    --dnd5e-block-background: var(--dnd5e-color-blue-gray-4);
    --dnd5e-block-border-color: var(--dnd5e-color-gold);
    --dnd5e-roll-icon-filter: invert(1);
    --dnd5e-notable-filter: grayscale(100%);
    /* Statblocks */
    --dnd5e-statblock-background-plain: rgba(0, 0, 0, 0.35);
    --dnd5e-statblock-background-parchment: rgba(0, 0, 0, 0.35);
    --dnd5e-statblock-ability-border: black;
    --dnd5e-statblock-ability-header-1st: #534932;
    --dnd5e-statblock-ability-header-2nd: #3e4430;
    --dnd5e-statblock-ability-stat-1st: #593f3f;
    --dnd5e-statblock-ability-stat-2nd: #594357;
    --dnd5e-statblock-border: var(--dnd5e-color-blue-gray-1);
    --dnd5e-statblock-scroll: #87332c;
    --dnd5e-statblock-separator: #87332c;
    --dnd5e-statblock-text-header: var(--color-text-primary);
    --dnd5e-statblock-text-primary: var(--color-text-primary);
    --dnd5e-statblock-text-secondary: color-mix(in oklab, var(--color-text-primary), transparent 25%);
    --dnd5e-statblock-title-border: var(--dnd5e-color-blue-gray-3);
  }
  .mixin-variables-dark.compendium-browser {
    --filter-header-label-color: var(--color-text-secondary);
    --filter-range-label-color: var(--color-text-secondary);
  }
  .mixin-variables-dark .items-section .item .tags {
    --icon-fill: var(--color-text-light-6);
    --tag-opacity: unset;
  }
  .mixin-variables-dark .item-descriptions .description .header button {
    --control-button-text-color: var(--color-text-light-6);
  }
  .mixin-variables-dark .effects-element .conditions-list .condition {
    --border-style: 1px dashed var(--dnd5e-color-blue-gray-3);
  }
  .mixin-variables-dark.starting-equipment {
    --background-depth-1: transparent;
    --background-depth-2: var(--dnd5e-background-10);
    --background-depth-3: var(--dnd5e-background-25);
  }
  .mixin-variables-dark .currency .distribution slide-toggle {
    --slide-toggle-track-color-unchecked: var(--dnd5e-color-blue-gray-2);
  }
  .mixin-variables-dark.actor.character .window-header slide-toggle {
    --slide-toggle-track-color-unchecked: var(--dnd5e-color-dark-gray);
  }
  .mixin-variables-dark.actor.character .pill-lg.texture {
    --pill-underlay-opacity: 1;
  }
  .mixin-variables-dark section.secret {
    --color-secret-bg: #35007933;
    --color-revealed-bg: #0035004D;
  }
  .mixin-variables-dark button {
    --button-border-color: var(--dnd5e-color-blue-gray-1);
    --button-hover-border-color: var(--dnd5e-color-blue-gray-1);
    --button-toggle-depressed-color: color-mix(in oklab, var(--dnd5e-background-card), var(--dnd5e-color-faint) 20%);
    --control-border-color: var(--dnd5e-color-blue-gray-3);
    --control-active-background-color: rgba(0, 0, 0, 0.45);
  }
  .mixin-variables-dark input,
  .mixin-variables-dark textarea {
    --input-placeholder-color: var(--dnd5e-color-blue-gray-3);
  }
  .mixin-variables-dark input,
  .mixin-variables-dark select {
    --input-background-color: var(--dnd5e-color-blue-gray-2);
    --input-disabled-background-color: var(--dnd5e-color-dark-gray);
  }
  .mixin-variables-dark input:not([type=range]),
  .mixin-variables-dark select {
    --input-border-color: var(--dnd5e-color-blue-gray-1);
    --input-hover-border-color: transparent;
  }
  .mixin-variables-dark fieldset.card input:not([type=range]),
  .mixin-variables-dark fieldset.card select {
    --input-background-color: var(--dnd5e-background-25);
  }
  .mixin-variables-dark fieldset.card .input-element-tags .tag {
    --multi-select-tag-background: var(--dnd5e-background-25);
    --multi-select-tag-border: var(--dnd5e-color-blue-gray-3);
  }
  .mixin-variables-dark dnd5e-checkbox[disabled]:not([checked]) {
    --checkbox-border-color: var(--dnd5e-color-blue-gray-3);
    --checkbox-empty-color: var(--dnd5e-color-blue-gray-3);
  }
  .mixin-variables-dark .prosemirror menu {
    --color-hover-bg: var(--dnd5e-color-blue-gray-3);
    --menu-background: var(--dnd5e-color-blue-gray-2);
    --button-text-color: var(--color-text-light-6);
    --color-form-label-hover: var(--dnd5e-color-blue-white);
  }
  .mixin-variables-dark .prosemirror menu button.active {
    --color-form-label-hover: var(--dnd5e-color-gold);
  }
  .mixin-variables-dark .notable {
    --dnd5e-block-background: var(--dnd5e-color-blue-gray-4);
    --dnd5e-block-border-color: #212121;
  }
  .mixin-variables-dark table {
    --table-background-color: var(--dnd5e-color-blue-gray-1);
  }
  @layer general {
    body.theme-dark .dnd5e2 {
      /* Applications */
      --dnd5e-application-background: var(--dnd5e-background-texture-denim);
      --dnd5e-item-header-content: "";
      --dnd5e-item-header-image: url("ui/official/banner-item-dark.webp");
      --dnd5e-encounter-header-content: "";
      --dnd5e-encounter-header-image: url("ui/official/banner-encounter-dark.avif");
      --dnd5e-npc-header-content: "";
      --dnd5e-npc-header-image: url("ui/official/banner-npc-dark.webp");
      --dnd5e-group-header-content: "";
      --dnd5e-group-header-image: url("ui/official/banner-group-dark.jpg");
      --dnd5e-character-background-content: "";
      --dnd5e-character-background-image: url("ui/official/banner-character-dark.webp");
      --dnd5e-character-header-image: transparent;
      --dnd5e-character-body-image: none;
      --dnd5e-vehicle-header-content: "";
      --dnd5e-vehicle-header-image: url("ui/official/banner-vehicle-dark.webp");
      --dnd5e-vehicle-station-blend-mode: color-burn;
      --dnd5e-background-card: var(--dnd5e-color-blue-gray-2);
      --dnd5e-background-parchment: var(--dnd5e-color-blue-gray-2);
      --dnd5e-background-5: var(--dnd5e-highlight-10);
      --dnd5e-background-alt-1: var(--dnd5e-color-dark-gray);
      --dnd5e-background-alt-2: var(--dnd5e-color-blue-gray-2);
      --dnd5e-gold-icon-background: var(--dnd5e-color-dark-gray);
      --dnd5e-border-gold: 1px solid var(--dnd5e-color-blue-gray-1);
      --dnd5e-border-dotted: 1px dotted var(--dnd5e-color-blue-gray-3);
      --dnd5e-border-dashed: 1px dashed var(--dnd5e-color-blue-gray-3);
      --dnd5e-border-dashed-faint: 1px dashed var(--dnd5e-color-blue-gray-1);
      --dnd5e-border-dark: 1px solid var(--dnd5e-color-blue-gray-3);
      --dnd5e-border-heading-3: 1px solid var(--color-text-light-6);
      --dnd5e-border-separator-faint: 1px solid var(--dnd5e-color-blue-gray-1);
      --dnd5e-border-separator-heavy: 1px solid var(--dnd5e-color-blue-gray-3);
      --dnd5e-border-separator-warning: 1px dotted var(--dnd5e-color-blue-gray-3);
      --dnd5e-inventory-border: none;
      --dnd5e-slot-border: 1px solid var(--dnd5e-color-blue-gray-3);
      --dnd5e-slot-filter: none;
      --dnd5e-card-header-1: #491d25;
      --dnd5e-card-header-2: #311b1f;
      --dnd5e-card-header-disabled-1: #444;
      --dnd5e-card-header-disabled-2: #333;
      --dnd5e-attribute-color: var(--dnd5e-color-beige);
      --dnd5e-ability-color: var(--dnd5e-color-gold);
      --dnd5e-ability-mod-color: var(--dnd5e-color-blue-white);
      --dnd5e-ability-tab: url("ui/ability-score-tab-dark.svg");
      --dnd5e-heading-3-color: var(--color-text-light-6);
      --dnd5e-condition-hover: var(--dnd5e-color-blue-gray-3);
      --color-text-emphatic: var(--color-text-light-0);
      --color-text-primary: var(--dnd5e-color-blue-white);
      --color-text-secondary: var(--color-text-light-6);
      --color-text-tertiary: var(--color-text-light-6);
      --color-text-inactive: var(--color-text-dark-inactive);
      --color-text-title: var(--dnd5e-color-gold);
      --separated-list-item-background-color: var(--dnd5e-background-10);
      --separated-list-item-border-color: var(--dnd5e-color-blue-gray-3);
      --activity-icon-color: var(--dnd5e-color-gold);
      --activity-row-border: 1px dotted var(--dnd5e-color-blue-gray-4);
      --activity-row-indent-color: var(--dnd5e-color-blue-gray-3);
      --damage-icon-color: var(--dnd5e-color-gold);
      --item-summary-background: transparent;
      --item-control-color: var(--dnd5e-color-blue-gray-3);
      --item-control-interactive-color: var(--color-text-light-6);
      --item-control-active-color: var(--dnd5e-color-gold);
      --item-control-header-color: var(--dnd5e-color-gold);
      --item-state-toggle-active: var(--dnd5e-color-gold);
      --pill-transparent-color: var(--color-text-primary);
      --pill-border: 1px solid var(--dnd5e-color-blue-gray-3);
      --pill-colored-border: 1px solid var(--dnd5e-color-blue-gray-1);
      --pill-border-dotted: 1px solid var(--dnd5e-color-blue-gray-3);
      --pill-underlay-opacity: 0.15;
      --pill-underlay-blend-mode: soft-light;
      --pill-background-color: var(--dnd5e-color-blue-gray-2);
      --pill-background-blend-mode: soft-light;
      --pill-background-green: color-mix(in srgb, var(--dnd5e-color-green), transparent 25%);
      --pill-background-maroon: color-mix(in srgb, var(--dnd5e-color-maroon), transparent 25%);
      --pill-colored-text-color: var(--dnd5e-color-blue-white);
      --pill-empty-border: 2px dashed white;
      --pill-empty-text-color: white;
      --advancement-summary-link-color: var(--color-text-light-6);
      --npc-header-input-background: rgba(0, 0, 0, 0.45);
      --npc-cr-input-background: none;
      --npc-portrait-toggle-on: var(--dnd5e-color-gold);
      --npc-ability-score-filter: invert(1);
      --group-vitals-shadow: none;
      --group-underlay-opacity: 0.3;
      --group-underlay-filter: saturation(0.5);
      --group-control-border: var(--dnd5e-color-blue-gray-3);
      --group-control-hover-border: var(--dnd5e-color-blue-gray-3);
      --meter-background: var(--dnd5e-color-dark-gray);
      --drop-region-border-color: white;
      --drop-region-text-color: white;
      --filigree-background-color: var(--dnd5e-color-blue-gray-2);
      --filigree-border-color: var(--dnd5e-color-blue-gray-3);
      --filter-control-color: var(--dnd5e-color-blue-gray-3);
      --filter-control-active-color: var(--dnd5e-color-gold);
      --context-entry-hover-background: var(--dnd5e-color-blue-gray-3);
      --window-resize-handle-filter: invert(1);
      /* Converts black to gold */
      --advancement-icon-filter: invert(64%) sepia(14%) saturate(563%) hue-rotate(3deg) brightness(89%) contrast(90%);
      /* Forms */
      --slide-toggle-track-color-unchecked: var(--dnd5e-color-blue-gray-2);
      --slide-toggle-track-color-checked: var(--dnd5e-color-gold);
      --fieldset-legend-color: var(--dnd5e-color-gold);
      --color-fieldset-border: var(--dnd5e-color-blue-gray-3);
      --control-button-text-color: var(--dnd5e-color-gold);
      --hint-icon-color: var(--dnd5e-color-gold);
      --multi-select-tag-background: var(--dnd5e-color-blue-gray-2);
      --multi-select-tag-border: var(--dnd5e-color-blue-gray-1);
      --radio-list-hover: var(--dnd5e-background-25);
      /* Journals */
      --dnd5e-journal-content-background: var(--dnd5e-background-texture-denim);
      --dnd5e-journal-header-background: var(--dnd5e-highlight-10);
      --dnd5e-color-table-row-odd: var(--dnd5e-color-blue-gray-2);
      --dnd5e-color-table-row-even: color-mix(in oklab, var(--dnd5e-color-table-row-odd), black 10%);
      --dnd5e-color-table-border: color-mix(in oklab, var(--dnd5e-color-table-row-even), black 10%);
      --dnd5e-color-table-header-1: #491d25;
      --dnd5e-color-table-header-2: #311b1f;
      --dnd5e-block-background: var(--dnd5e-color-blue-gray-4);
      --dnd5e-block-border-color: var(--dnd5e-color-gold);
      --dnd5e-roll-icon-filter: invert(1);
      --dnd5e-notable-filter: grayscale(100%);
      /* Statblocks */
      --dnd5e-statblock-background-plain: rgba(0, 0, 0, 0.35);
      --dnd5e-statblock-background-parchment: rgba(0, 0, 0, 0.35);
      --dnd5e-statblock-ability-border: black;
      --dnd5e-statblock-ability-header-1st: #534932;
      --dnd5e-statblock-ability-header-2nd: #3e4430;
      --dnd5e-statblock-ability-stat-1st: #593f3f;
      --dnd5e-statblock-ability-stat-2nd: #594357;
      --dnd5e-statblock-border: var(--dnd5e-color-blue-gray-1);
      --dnd5e-statblock-scroll: #87332c;
      --dnd5e-statblock-separator: #87332c;
      --dnd5e-statblock-text-header: var(--color-text-primary);
      --dnd5e-statblock-text-primary: var(--color-text-primary);
      --dnd5e-statblock-text-secondary: color-mix(in oklab, var(--color-text-primary), transparent 25%);
      --dnd5e-statblock-title-border: var(--dnd5e-color-blue-gray-3);
    }
    body.theme-dark .dnd5e2.compendium-browser {
      --filter-header-label-color: var(--color-text-secondary);
      --filter-range-label-color: var(--color-text-secondary);
    }
    body.theme-dark .dnd5e2 .items-section .item .tags {
      --icon-fill: var(--color-text-light-6);
      --tag-opacity: unset;
    }
    body.theme-dark .dnd5e2 .item-descriptions .description .header button {
      --control-button-text-color: var(--color-text-light-6);
    }
    body.theme-dark .dnd5e2 .effects-element .conditions-list .condition {
      --border-style: 1px dashed var(--dnd5e-color-blue-gray-3);
    }
    body.theme-dark .dnd5e2.starting-equipment {
      --background-depth-1: transparent;
      --background-depth-2: var(--dnd5e-background-10);
      --background-depth-3: var(--dnd5e-background-25);
    }
    body.theme-dark .dnd5e2 .currency .distribution slide-toggle {
      --slide-toggle-track-color-unchecked: var(--dnd5e-color-blue-gray-2);
    }
    body.theme-dark .dnd5e2.actor.character .window-header slide-toggle {
      --slide-toggle-track-color-unchecked: var(--dnd5e-color-dark-gray);
    }
    body.theme-dark .dnd5e2.actor.character .pill-lg.texture {
      --pill-underlay-opacity: 1;
    }
    body.theme-dark .dnd5e2 section.secret {
      --color-secret-bg: #35007933;
      --color-revealed-bg: #0035004D;
    }
    body.theme-dark .dnd5e2 button {
      --button-border-color: var(--dnd5e-color-blue-gray-1);
      --button-hover-border-color: var(--dnd5e-color-blue-gray-1);
      --button-toggle-depressed-color: color-mix(in oklab, var(--dnd5e-background-card), var(--dnd5e-color-faint) 20%);
      --control-border-color: var(--dnd5e-color-blue-gray-3);
      --control-active-background-color: rgba(0, 0, 0, 0.45);
    }
    body.theme-dark .dnd5e2 input,
    body.theme-dark .dnd5e2 textarea {
      --input-placeholder-color: var(--dnd5e-color-blue-gray-3);
    }
    body.theme-dark .dnd5e2 input,
    body.theme-dark .dnd5e2 select {
      --input-background-color: var(--dnd5e-color-blue-gray-2);
      --input-disabled-background-color: var(--dnd5e-color-dark-gray);
    }
    body.theme-dark .dnd5e2 input:not([type=range]),
    body.theme-dark .dnd5e2 select {
      --input-border-color: var(--dnd5e-color-blue-gray-1);
      --input-hover-border-color: transparent;
    }
    body.theme-dark .dnd5e2 fieldset.card input:not([type=range]),
    body.theme-dark .dnd5e2 fieldset.card select {
      --input-background-color: var(--dnd5e-background-25);
    }
    body.theme-dark .dnd5e2 fieldset.card .input-element-tags .tag {
      --multi-select-tag-background: var(--dnd5e-background-25);
      --multi-select-tag-border: var(--dnd5e-color-blue-gray-3);
    }
    body.theme-dark .dnd5e2 dnd5e-checkbox[disabled]:not([checked]) {
      --checkbox-border-color: var(--dnd5e-color-blue-gray-3);
      --checkbox-empty-color: var(--dnd5e-color-blue-gray-3);
    }
    body.theme-dark .dnd5e2 .prosemirror menu {
      --color-hover-bg: var(--dnd5e-color-blue-gray-3);
      --menu-background: var(--dnd5e-color-blue-gray-2);
      --button-text-color: var(--color-text-light-6);
      --color-form-label-hover: var(--dnd5e-color-blue-white);
    }
    body.theme-dark .dnd5e2 .prosemirror menu button.active {
      --color-form-label-hover: var(--dnd5e-color-gold);
    }
    body.theme-dark .dnd5e2 .notable {
      --dnd5e-block-background: var(--dnd5e-color-blue-gray-4);
      --dnd5e-block-border-color: #212121;
    }
    body.theme-dark .dnd5e2 table {
      --table-background-color: var(--dnd5e-color-blue-gray-1);
    }
  }
  @layer specific {
    .themed.theme-dark.dnd5e2 {
      /* Applications */
      --dnd5e-application-background: var(--dnd5e-background-texture-denim);
      --dnd5e-item-header-content: "";
      --dnd5e-item-header-image: url("ui/official/banner-item-dark.webp");
      --dnd5e-encounter-header-content: "";
      --dnd5e-encounter-header-image: url("ui/official/banner-encounter-dark.avif");
      --dnd5e-npc-header-content: "";
      --dnd5e-npc-header-image: url("ui/official/banner-npc-dark.webp");
      --dnd5e-group-header-content: "";
      --dnd5e-group-header-image: url("ui/official/banner-group-dark.jpg");
      --dnd5e-character-background-content: "";
      --dnd5e-character-background-image: url("ui/official/banner-character-dark.webp");
      --dnd5e-character-header-image: transparent;
      --dnd5e-character-body-image: none;
      --dnd5e-vehicle-header-content: "";
      --dnd5e-vehicle-header-image: url("ui/official/banner-vehicle-dark.webp");
      --dnd5e-vehicle-station-blend-mode: color-burn;
      --dnd5e-background-card: var(--dnd5e-color-blue-gray-2);
      --dnd5e-background-parchment: var(--dnd5e-color-blue-gray-2);
      --dnd5e-background-5: var(--dnd5e-highlight-10);
      --dnd5e-background-alt-1: var(--dnd5e-color-dark-gray);
      --dnd5e-background-alt-2: var(--dnd5e-color-blue-gray-2);
      --dnd5e-gold-icon-background: var(--dnd5e-color-dark-gray);
      --dnd5e-border-gold: 1px solid var(--dnd5e-color-blue-gray-1);
      --dnd5e-border-dotted: 1px dotted var(--dnd5e-color-blue-gray-3);
      --dnd5e-border-dashed: 1px dashed var(--dnd5e-color-blue-gray-3);
      --dnd5e-border-dashed-faint: 1px dashed var(--dnd5e-color-blue-gray-1);
      --dnd5e-border-dark: 1px solid var(--dnd5e-color-blue-gray-3);
      --dnd5e-border-heading-3: 1px solid var(--color-text-light-6);
      --dnd5e-border-separator-faint: 1px solid var(--dnd5e-color-blue-gray-1);
      --dnd5e-border-separator-heavy: 1px solid var(--dnd5e-color-blue-gray-3);
      --dnd5e-border-separator-warning: 1px dotted var(--dnd5e-color-blue-gray-3);
      --dnd5e-inventory-border: none;
      --dnd5e-slot-border: 1px solid var(--dnd5e-color-blue-gray-3);
      --dnd5e-slot-filter: none;
      --dnd5e-card-header-1: #491d25;
      --dnd5e-card-header-2: #311b1f;
      --dnd5e-card-header-disabled-1: #444;
      --dnd5e-card-header-disabled-2: #333;
      --dnd5e-attribute-color: var(--dnd5e-color-beige);
      --dnd5e-ability-color: var(--dnd5e-color-gold);
      --dnd5e-ability-mod-color: var(--dnd5e-color-blue-white);
      --dnd5e-ability-tab: url("ui/ability-score-tab-dark.svg");
      --dnd5e-heading-3-color: var(--color-text-light-6);
      --dnd5e-condition-hover: var(--dnd5e-color-blue-gray-3);
      --color-text-emphatic: var(--color-text-light-0);
      --color-text-primary: var(--dnd5e-color-blue-white);
      --color-text-secondary: var(--color-text-light-6);
      --color-text-tertiary: var(--color-text-light-6);
      --color-text-inactive: var(--color-text-dark-inactive);
      --color-text-title: var(--dnd5e-color-gold);
      --separated-list-item-background-color: var(--dnd5e-background-10);
      --separated-list-item-border-color: var(--dnd5e-color-blue-gray-3);
      --activity-icon-color: var(--dnd5e-color-gold);
      --activity-row-border: 1px dotted var(--dnd5e-color-blue-gray-4);
      --activity-row-indent-color: var(--dnd5e-color-blue-gray-3);
      --damage-icon-color: var(--dnd5e-color-gold);
      --item-summary-background: transparent;
      --item-control-color: var(--dnd5e-color-blue-gray-3);
      --item-control-interactive-color: var(--color-text-light-6);
      --item-control-active-color: var(--dnd5e-color-gold);
      --item-control-header-color: var(--dnd5e-color-gold);
      --item-state-toggle-active: var(--dnd5e-color-gold);
      --pill-transparent-color: var(--color-text-primary);
      --pill-border: 1px solid var(--dnd5e-color-blue-gray-3);
      --pill-colored-border: 1px solid var(--dnd5e-color-blue-gray-1);
      --pill-border-dotted: 1px solid var(--dnd5e-color-blue-gray-3);
      --pill-underlay-opacity: 0.15;
      --pill-underlay-blend-mode: soft-light;
      --pill-background-color: var(--dnd5e-color-blue-gray-2);
      --pill-background-blend-mode: soft-light;
      --pill-background-green: color-mix(in srgb, var(--dnd5e-color-green), transparent 25%);
      --pill-background-maroon: color-mix(in srgb, var(--dnd5e-color-maroon), transparent 25%);
      --pill-colored-text-color: var(--dnd5e-color-blue-white);
      --pill-empty-border: 2px dashed white;
      --pill-empty-text-color: white;
      --advancement-summary-link-color: var(--color-text-light-6);
      --npc-header-input-background: rgba(0, 0, 0, 0.45);
      --npc-cr-input-background: none;
      --npc-portrait-toggle-on: var(--dnd5e-color-gold);
      --npc-ability-score-filter: invert(1);
      --group-vitals-shadow: none;
      --group-underlay-opacity: 0.3;
      --group-underlay-filter: saturation(0.5);
      --group-control-border: var(--dnd5e-color-blue-gray-3);
      --group-control-hover-border: var(--dnd5e-color-blue-gray-3);
      --meter-background: var(--dnd5e-color-dark-gray);
      --drop-region-border-color: white;
      --drop-region-text-color: white;
      --filigree-background-color: var(--dnd5e-color-blue-gray-2);
      --filigree-border-color: var(--dnd5e-color-blue-gray-3);
      --filter-control-color: var(--dnd5e-color-blue-gray-3);
      --filter-control-active-color: var(--dnd5e-color-gold);
      --context-entry-hover-background: var(--dnd5e-color-blue-gray-3);
      --window-resize-handle-filter: invert(1);
      /* Converts black to gold */
      --advancement-icon-filter: invert(64%) sepia(14%) saturate(563%) hue-rotate(3deg) brightness(89%) contrast(90%);
      /* Forms */
      --slide-toggle-track-color-unchecked: var(--dnd5e-color-blue-gray-2);
      --slide-toggle-track-color-checked: var(--dnd5e-color-gold);
      --fieldset-legend-color: var(--dnd5e-color-gold);
      --color-fieldset-border: var(--dnd5e-color-blue-gray-3);
      --control-button-text-color: var(--dnd5e-color-gold);
      --hint-icon-color: var(--dnd5e-color-gold);
      --multi-select-tag-background: var(--dnd5e-color-blue-gray-2);
      --multi-select-tag-border: var(--dnd5e-color-blue-gray-1);
      --radio-list-hover: var(--dnd5e-background-25);
      /* Journals */
      --dnd5e-journal-content-background: var(--dnd5e-background-texture-denim);
      --dnd5e-journal-header-background: var(--dnd5e-highlight-10);
      --dnd5e-color-table-row-odd: var(--dnd5e-color-blue-gray-2);
      --dnd5e-color-table-row-even: color-mix(in oklab, var(--dnd5e-color-table-row-odd), black 10%);
      --dnd5e-color-table-border: color-mix(in oklab, var(--dnd5e-color-table-row-even), black 10%);
      --dnd5e-color-table-header-1: #491d25;
      --dnd5e-color-table-header-2: #311b1f;
      --dnd5e-block-background: var(--dnd5e-color-blue-gray-4);
      --dnd5e-block-border-color: var(--dnd5e-color-gold);
      --dnd5e-roll-icon-filter: invert(1);
      --dnd5e-notable-filter: grayscale(100%);
      /* Statblocks */
      --dnd5e-statblock-background-plain: rgba(0, 0, 0, 0.35);
      --dnd5e-statblock-background-parchment: rgba(0, 0, 0, 0.35);
      --dnd5e-statblock-ability-border: black;
      --dnd5e-statblock-ability-header-1st: #534932;
      --dnd5e-statblock-ability-header-2nd: #3e4430;
      --dnd5e-statblock-ability-stat-1st: #593f3f;
      --dnd5e-statblock-ability-stat-2nd: #594357;
      --dnd5e-statblock-border: var(--dnd5e-color-blue-gray-1);
      --dnd5e-statblock-scroll: #87332c;
      --dnd5e-statblock-separator: #87332c;
      --dnd5e-statblock-text-header: var(--color-text-primary);
      --dnd5e-statblock-text-primary: var(--color-text-primary);
      --dnd5e-statblock-text-secondary: color-mix(in oklab, var(--color-text-primary), transparent 25%);
      --dnd5e-statblock-title-border: var(--dnd5e-color-blue-gray-3);
    }
    .themed.theme-dark.dnd5e2.compendium-browser {
      --filter-header-label-color: var(--color-text-secondary);
      --filter-range-label-color: var(--color-text-secondary);
    }
    .themed.theme-dark.dnd5e2 .items-section .item .tags {
      --icon-fill: var(--color-text-light-6);
      --tag-opacity: unset;
    }
    .themed.theme-dark.dnd5e2 .item-descriptions .description .header button {
      --control-button-text-color: var(--color-text-light-6);
    }
    .themed.theme-dark.dnd5e2 .effects-element .conditions-list .condition {
      --border-style: 1px dashed var(--dnd5e-color-blue-gray-3);
    }
    .themed.theme-dark.dnd5e2.starting-equipment {
      --background-depth-1: transparent;
      --background-depth-2: var(--dnd5e-background-10);
      --background-depth-3: var(--dnd5e-background-25);
    }
    .themed.theme-dark.dnd5e2 .currency .distribution slide-toggle {
      --slide-toggle-track-color-unchecked: var(--dnd5e-color-blue-gray-2);
    }
    .themed.theme-dark.dnd5e2.actor.character .window-header slide-toggle {
      --slide-toggle-track-color-unchecked: var(--dnd5e-color-dark-gray);
    }
    .themed.theme-dark.dnd5e2.actor.character .pill-lg.texture {
      --pill-underlay-opacity: 1;
    }
    .themed.theme-dark.dnd5e2 section.secret {
      --color-secret-bg: #35007933;
      --color-revealed-bg: #0035004D;
    }
    .themed.theme-dark.dnd5e2 button {
      --button-border-color: var(--dnd5e-color-blue-gray-1);
      --button-hover-border-color: var(--dnd5e-color-blue-gray-1);
      --button-toggle-depressed-color: color-mix(in oklab, var(--dnd5e-background-card), var(--dnd5e-color-faint) 20%);
      --control-border-color: var(--dnd5e-color-blue-gray-3);
      --control-active-background-color: rgba(0, 0, 0, 0.45);
    }
    .themed.theme-dark.dnd5e2 input,
    .themed.theme-dark.dnd5e2 textarea {
      --input-placeholder-color: var(--dnd5e-color-blue-gray-3);
    }
    .themed.theme-dark.dnd5e2 input,
    .themed.theme-dark.dnd5e2 select {
      --input-background-color: var(--dnd5e-color-blue-gray-2);
      --input-disabled-background-color: var(--dnd5e-color-dark-gray);
    }
    .themed.theme-dark.dnd5e2 input:not([type=range]),
    .themed.theme-dark.dnd5e2 select {
      --input-border-color: var(--dnd5e-color-blue-gray-1);
      --input-hover-border-color: transparent;
    }
    .themed.theme-dark.dnd5e2 fieldset.card input:not([type=range]),
    .themed.theme-dark.dnd5e2 fieldset.card select {
      --input-background-color: var(--dnd5e-background-25);
    }
    .themed.theme-dark.dnd5e2 fieldset.card .input-element-tags .tag {
      --multi-select-tag-background: var(--dnd5e-background-25);
      --multi-select-tag-border: var(--dnd5e-color-blue-gray-3);
    }
    .themed.theme-dark.dnd5e2 dnd5e-checkbox[disabled]:not([checked]) {
      --checkbox-border-color: var(--dnd5e-color-blue-gray-3);
      --checkbox-empty-color: var(--dnd5e-color-blue-gray-3);
    }
    .themed.theme-dark.dnd5e2 .prosemirror menu {
      --color-hover-bg: var(--dnd5e-color-blue-gray-3);
      --menu-background: var(--dnd5e-color-blue-gray-2);
      --button-text-color: var(--color-text-light-6);
      --color-form-label-hover: var(--dnd5e-color-blue-white);
    }
    .themed.theme-dark.dnd5e2 .prosemirror menu button.active {
      --color-form-label-hover: var(--dnd5e-color-gold);
    }
    .themed.theme-dark.dnd5e2 .notable {
      --dnd5e-block-background: var(--dnd5e-color-blue-gray-4);
      --dnd5e-block-border-color: #212121;
    }
    .themed.theme-dark.dnd5e2 table {
      --table-background-color: var(--dnd5e-color-blue-gray-1);
    }
  }
}
#context-menu [data-group-id]:has(li) {
  position: relative;
  margin-block-start: 0.5rem;
}
#context-menu [data-group-id]:has(li)::before {
  content: "";
  position: absolute;
  inset-inline: 1rem;
  inset-block-start: -0.25rem;
  border-block-start: 1px solid rgba(255, 255, 255, 0.15);
}
#context-menu.dnd5e2 {
  position: fixed;
  z-index: var(--z-index-tooltip);
  background: var(--dnd5e-background-card);
  border-radius: 3px;
  box-shadow: 0 3px 6px var(--dnd5e-shadow-45);
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-13);
  border: none;
  color: var(--color-text-primary);
  width: max-content;
  min-width: 145px;
}
#context-menu.dnd5e2 .context-item {
  border: none;
  padding: 0 0.75rem;
  margin: 0;
  cursor: var(--cursor-pointer);
  display: flex;
  align-items: baseline;
  line-height: 32px;
  gap: 5px;
  transition: all 250ms ease;
}
#context-menu.dnd5e2 .context-item:hover {
  color: var(--color-text-primary);
  text-shadow: none;
  background: var(--context-entry-hover-background);
  border: none;
}
#context-menu.dnd5e2 .context-item i {
  font-size: var(--font-size-11);
  color: var(--color-text-secondary);
  margin: 0;
}
#context-menu.dnd5e2 .context-item dnd5e-icon {
  --icon-fill: var(--color-text-secondary);
  margin-right: 5px;
}
#context-menu.dnd5e2 .context-items > .context-item:first-child {
  border-radius: 3px 3px 0 0;
}
#context-menu.dnd5e2 .context-items > .context-item:last-child {
  border-radius: 0 0 3px 3px;
}
#context-menu.dnd5e2 .context-group {
  border: none;
}
#context-menu.dnd5e2 .context-group:first-child > ol > .context-item:first-child {
  border-radius: 3px 3px 0 0;
}
#context-menu.dnd5e2 .context-group:last-child > ol > .context-item:last-child {
  border-radius: 0 0 3px 3px;
}
#context-menu.dnd5e2 [data-group-id]:has(li)::before {
  border-block-start: var(--dnd5e-border-separator-heavy);
}
#context-menu .filter-item.active {
  font-weight: bold;
  position: relative;
}
#context-menu .filter-item.active::after {
  content: "\f00c";
  font-family: var(--font-awesome);
  position: absolute;
  right: 0.5rem;
  color: var(--dnd5e-color-gold);
}
/* ---------------------------------- */
/*  Copyable Text                     */
/* ---------------------------------- */
copyable-text {
  text-decoration: underline;
  text-decoration-style: dashed;
  cursor: var(--cursor-pointer);
}
copyable-text:hover,
copyable-text:has(:focus-visible) {
  text-decoration-color: var(--color-shadow-primary);
}
copyable-text:hover button,
copyable-text:has(:focus-visible) button {
  text-shadow: 0 0 4px var(--color-shadow-primary);
}
copyable-text button.copy-button {
  display: inline;
  block-size: unset;
  inline-size: unset;
  margin: 0;
  margin-inline-start: 3px;
  border: none;
  padding: 0;
  background: none;
  box-shadow: none;
  color: currentcolor;
  font-size: inherit;
  line-height: normal;
}
copyable-text button.copy-button:hover,
copyable-text button.copy-button:focus {
  box-shadow: none;
}
/* ---------------------------------- */
/*  Filter State                      */
/* ---------------------------------- */
filter-state {
  --filter-state-background-color: var(--checkbox-background-color);
  --filter-state-focus-color: var(--color-warm-2);
  --filter-state-positive-color: #008000;
  --filter-state-negative-color: #b92e24;
  --filter-state-size: 1em;
  display: inline-block;
  flex: 0 0 var(--filter-state-size);
  width: var(--filter-state-size);
  height: var(--filter-state-size);
}
filter-state:focus,
filter-state:focus-visible {
  outline: none;
}
filter-state .indicator {
  transition: all 250ms ease, outline-color 0.5s;
  border-radius: 3px;
  outline: 2px solid transparent;
}
filter-state .indicator::before {
  content: "\f0c8";
  width: var(--filter-state-size);
  height: var(--filter-state-size);
  color: var(--filter-state-background-color);
  font-family: var(--font-awesome);
  font-size: var(--filter-state-size);
  line-height: var(--filter-state-size);
}
filter-state .indicator[data-value="1"]::before {
  content: "\f151";
  color: var(--filter-state-positive-color);
}
filter-state .indicator[data-value="-1"]::before {
  content: "\f150";
  color: var(--filter-state-negative-color);
}
filter-state:not(:disabled) .indicator {
  cursor: var(--cursor-pointer);
}
filter-state:focus-visible .indicator {
  outline: 2px solid var(--filter-state-focus-color);
}
/* ---------------------------------- */
/*  Slide Toggles                     */
/* ---------------------------------- */
slide-toggle {
  --slide-toggle-height: 20px;
  --slide-toggle-width: 36px;
  --slide-toggle-padding: 3px;
  --slide-toggle-thumb-width: calc(var(--slide-toggle-height) - var(--slide-toggle-padding) * 2);
  --slide-toggle-thumb-height: var(--slide-toggle-thumb-width);
  --slide-toggle-transition-time: 250ms;
  display: inline-block;
  width: var(--slide-toggle-width);
  height: var(--slide-toggle-height);
  cursor: var(--cursor-pointer);
  /* Checked state */
}
slide-toggle .slide-toggle-track {
  width: 100%;
  height: 100%;
  background: var(--slide-toggle-track-color-unchecked, black);
  border-radius: calc((var(--slide-toggle-height) * 2) / 3);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: row;
  justify-content: start;
  padding: var(--slide-toggle-padding);
}
slide-toggle .slide-toggle-thumb {
  width: var(--slide-toggle-thumb-width);
  height: var(--slide-toggle-thumb-height);
  border-radius: 100%;
  background: var(--slide-toggle-thumb-color, white);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
  text-align: center;
  transition: margin-left var(--slide-toggle-transition-time) ease;
}
slide-toggle[checked] .slide-toggle-track {
  background: var(--slide-toggle-track-color-checked, #3ba55d);
}
slide-toggle[checked] .slide-toggle-thumb {
  margin-left: calc(100% - var(--slide-toggle-thumb-width));
}
/* ---------------------------------- */
/*  Icon                              */
/* ---------------------------------- */
dnd5e-icon.fa-fw {
  --icon-width: 1.25em;
}
/* ---------------------------------- */
/*  Item List Controls                */
/* ---------------------------------- */
.dnd5e2 item-list-controls search,
.dnd5e2 .filter-element search {
  display: flex;
  align-items: center;
  border-radius: 4px;
  background: var(--dnd5e-background-card);
  box-shadow: 0 0 6px var(--dnd5e-shadow-45);
  border: var(--dnd5e-border-gold);
  padding-right: 0.25rem;
  position: relative;
}
.dnd5e2 item-list-controls search > input[type="text"],
.dnd5e2 .filter-element search > input[type="text"] {
  flex: 1;
  background: none;
  border: none;
  padding: 0.75rem 0.5rem 0.75rem 2.25rem;
  font-size: var(--font-size-13);
  height: unset;
  line-height: 1;
  font-family: var(--dnd5e-font-roboto);
  outline: none;
}
.dnd5e2 item-list-controls search > input[type="text"]:hover,
.dnd5e2 .filter-element search > input[type="text"]:hover,
.dnd5e2 item-list-controls search > input[type="text"]:focus-visible,
.dnd5e2 .filter-element search > input[type="text"]:focus-visible {
  outline: none;
  box-shadow: 0 0 12px var(--dnd5e-color-gold);
}
.dnd5e2 item-list-controls search::before,
.dnd5e2 .filter-element search::before {
  content: "\f002";
  font-family: var(--font-awesome);
  font-weight: bold;
  color: var(--color-text-tertiary);
  position: absolute;
  left: 0.75rem;
}
.dnd5e2 item-list-controls search .controls,
.dnd5e2 .filter-element search .controls {
  display: flex;
  padding: 0.5rem 0;
  align-self: stretch;
  align-items: stretch;
}
.dnd5e2 item-list-controls search .filter-control,
.dnd5e2 .filter-element search .filter-control {
  height: 100%;
  color: var(--filter-control-color);
  font-size: var(--font-size-16);
  padding: 0 0.375rem;
}
.dnd5e2 item-list-controls search .filter-control.active,
.dnd5e2 .filter-element search .filter-control.active {
  color: var(--filter-control-active-color);
}
.dnd5e2 item-list-controls search .filter-control.active[data-action=filter],
.dnd5e2 .filter-element search .filter-control.active[data-action=filter] {
  color: var(--dnd5e-color-red);
}
.dnd5e2 item-list-controls search .filter-control:hover:not(.disabled),
.dnd5e2 .filter-element search .filter-control:hover:not(.disabled) {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2 item-list-controls search .filter-control:hover:not(.disabled),
.dnd5e2 .filter-element search .filter-control:hover:not(.disabled),
.dnd5e2 item-list-controls search .filter-control:focus,
.dnd5e2 .filter-element search .filter-control:focus {
  box-shadow: none;
  outline: 0;
}
.dnd5e2 item-list-controls search .filter-control.filter,
.dnd5e2 .filter-element search .filter-control.filter {
  border-right: var(--dnd5e-border-separator-faint);
  padding-right: 0.625rem;
}
.dnd5e2 item-list-controls search .filter-control.filter:hover,
.dnd5e2 .filter-element search .filter-control.filter:hover {
  border-right: var(--dnd5e-border-separator-faint);
}
.dnd5e2 item-list-controls search .filter-control[data-action="sort"],
.dnd5e2 .filter-element search .filter-control[data-action="sort"] {
  padding-left: 0.625rem;
}
/* ---------------------------------- */
/*  Multi Select                      */
/* ---------------------------------- */
.dnd5e multi-select .tags {
  flex-wrap: wrap;
}
.dnd5e multi-select .tags .tag {
  cursor: var(--cursor-pointer);
}
/* ---------------------------------- */
/*  Document Tags                     */
/* ---------------------------------- */
document-tags:has(> .content-link) {
  display: flex;
  flex-wrap: wrap;
}
/* ---------------------------------- */
/*  Secrets                           */
/* ---------------------------------- */
section.secret > button.reveal {
  width: unset;
  height: unset;
  padding: 3px 6px;
  margin: -10px auto -8px;
  font-size: var(--font-size-10);
  border-style: solid;
  text-transform: uppercase;
  font-weight: bold;
  font-family: var(--dnd5e-font-roboto);
}
/* -------------------------------------------- */
/*  ProseMirror                                 */
/* -------------------------------------------- */
prose-mirror button.toggle:disabled {
  display: none;
}
/* V1 Styles */
/* ----------------------------------------- */
/*  All DnD5e Apps                           */
/* ----------------------------------------- */
h5 {
  margin-block-start: 1em;
  margin-block-end: 0;
  font-size: var(--font-size-13);
}
.dialog label:has(input[type="checkbox"]) {
  display: flex;
  margin-block-end: 0.5em;
}
.dialog label:has(input[type="checkbox"]) > input[type="checkbox"] {
  flex-basis: auto;
}
.dnd5e {
  /* ----------------------------------------- */
  /*  Element Styles                           */
  /* ----------------------------------------- */
  /* Form Groups */
  /* Tags */
}
.dnd5e .window-content {
  font-size: var(--font-size-13);
}
.dnd5e h3 {
  border-bottom: none;
}
.dnd5e input[type="text"],
.dnd5e input[type="number"],
.dnd5e select {
  height: calc(100% - 2px);
  border: 1px solid var(--dnd5e-color-tan);
  background: rgba(0, 0, 0, 0.05);
  color: var(--dnd5e-color-dark);
}
.dnd5e input[type="number"].number-lg {
  font-size: 3em;
  text-align: center;
}
.dnd5e input[type="text"]:hover,
.dnd5e input[type="number"]:hover,
.dnd5e input[type="checkbox"]:hover,
.dnd5e input[type="text"]:focus,
.dnd5e input[type="number"]:focus,
.dnd5e input[type="checkbox"]:focus {
  border: 1px solid #111;
  box-shadow: 0 0 8px red;
}
.dnd5e input:disabled,
.dnd5e select:disabled,
.dnd5e textarea:disabled {
  color: var(--dnd5e-color-olive);
  border: 1px solid transparent !important;
  outline: none !important;
}
.dnd5e input:disabled:hover,
.dnd5e select:disabled:hover,
.dnd5e textarea:disabled:hover,
.dnd5e input:disabled:focus,
.dnd5e select:disabled:focus,
.dnd5e textarea:disabled:focus {
  box-shadow: none !important;
  border: 1px solid transparent !important;
  outline: none !important;
}
.dnd5e button {
  background: rgba(0, 0, 0, 0.1);
  border: var(--dnd5e-border-groove);
}
.dnd5e .secret .reveal {
  border: 1px dashed var(--color-border-light-primary);
  background: rgba(255, 255, 240, 0.8);
}
.dnd5e .form-group label {
  flex: 2;
  color: var(--dnd5e-color-olive);
  font-weight: bold;
}
.dnd5e .form-group .form-fields > * {
  margin: 0 3px 0 0;
}
.dnd5e .form-group .form-fields > *:last-child {
  margin-right: 0;
}
.dnd5e .form-group.stacked > label {
  flex: 0 0 100%;
  margin: 0;
}
.dnd5e .form-group.stacked label.checkbox,
.dnd5e .form-group.stacked label.radio {
  flex: auto;
  text-align: left;
}
.dnd5e .form-header {
  margin: 0 0 0.25em 0;
  padding: 2px 0;
  border-top: var(--dnd5e-border-groove);
  border-bottom: var(--dnd5e-border-groove);
  font-family: var(--dnd5e-font-modesto);
  font-size: var(--font-size-20);
  font-weight: 700;
}
.dnd5e .tag {
  display: inline-block;
  margin: 0 2px 0 0;
  padding: 0 3px;
  font-size: var(--font-size-10);
  line-height: 16px;
  border: 1px solid #999;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.05);
}
/* ----------------------------------------- */
/*  Entity Sheets Specifically               */
/* ----------------------------------------- */
.dnd5e.sheet {
  /* ----------------------------------------- */
  /*  Element Styles                           */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  TinyMCE                                  */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Notifications                            */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Sheet Header                             */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Sheet Navigation                         */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Sheet Body                               */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  List Filters                             */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Trait Lists                              */
  /* ----------------------------------------- */
}
.dnd5e.sheet .window-content {
  overflow-y: hidden;
  padding: 5px;
  background: var(--dnd5e-sheet-background);
  font-size: var(--font-size-13);
  color: var(--dnd5e-color-dark);
}
.dnd5e.sheet .window-content form {
  height: 100%;
  overflow: hidden;
}
.dnd5e.sheet .window-content .tab {
  height: 100%;
  overflow-y: auto;
  align-content: flex-start;
}
.dnd5e.sheet input[type="text"],
.dnd5e.sheet input[type="number"] {
  background: none;
  border: 1px solid transparent;
}
.dnd5e.sheet input[type="text"]:hover,
.dnd5e.sheet input[type="number"]:hover,
.dnd5e.sheet input[type="text"]:focus,
.dnd5e.sheet input[type="number"]:focus {
  border: 1px solid #111;
}
.dnd5e.sheet select {
  flex: 1;
  font-size: var(--font-size-12);
  height: 22px;
  background: transparent;
}
.dnd5e.sheet .editable .rollable:hover {
  cursor: var(--cursor-pointer);
}
.dnd5e.sheet .editable h4.rollable:hover,
.dnd5e.sheet .editable .rollable:hover > h4 {
  color: #000;
  text-shadow: 0 0 10px red;
}
.dnd5e.sheet span.sep {
  flex: none;
  margin: 0 1px;
  display: inline;
  position: relative;
  color: var(--dnd5e-color-tan);
  font-weight: normal;
}
.dnd5e.sheet .editor {
  height: 100%;
}
.dnd5e.sheet .editor .tox-toolbar-overlord,
.dnd5e.sheet .editor .tox-toolbar__primary {
  background: none;
}
.dnd5e.sheet .warnings,
.dnd5e.sheet .info {
  flex: 0 0 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dnd5e.sheet .warnings .notification,
.dnd5e.sheet .info .notification {
  font-family: 'Signika', sans-serif;
  font-weight: normal;
  font-size: var(--font-size-13);
  box-shadow: none;
  padding: 2px 8px;
  margin-bottom: 2px;
}
.dnd5e.sheet .warnings .warning,
.dnd5e.sheet .info .warning,
.dnd5e.sheet .warnings .error,
.dnd5e.sheet .info .error {
  text-shadow: black 0 0 1px, rgba(0, 0, 0, 0.75) 0 0 2px, rgba(0, 0, 0, 0.5) 0 0 4px;
}
.dnd5e.sheet .sheet-header {
  --dnd5e-sheet-header-height: 100px;
  flex: 0 0 var(--dnd5e-sheet-header-height);
  border-bottom: var(--dnd5e-border-groove);
  /* Character Name */
  /* Profile Image */
  /* Header Summary Details */
}
.dnd5e.sheet .sheet-header .header-details {
  font-family: var(--dnd5e-font-modesto);
  font-size: var(--font-size-20);
  font-weight: 700;
}
.dnd5e.sheet .sheet-header .header-details .summary select {
  width: 100%;
  height: 100%;
  border: 0;
  font-family: var(--dnd5e-font-modesto);
  font-size: var(--font-size-20);
  font-weight: 100;
  text-transform: capitalize;
}
.dnd5e.sheet .sheet-header h1 {
  flex: 1;
  border-bottom: none;
  height: 60px;
  margin: 0;
  padding: 5px;
}
.dnd5e.sheet .sheet-header h1 input {
  display: block;
  height: 50px;
  font-size: var(--font-size-32);
  margin: 0;
}
.dnd5e.sheet .sheet-header img.profile {
  flex: 0 0 var(--dnd5e-sheet-header-height);
  max-width: var(--dnd5e-sheet-header-height);
  height: var(--dnd5e-sheet-header-height);
  object-fit: contain;
  border: none;
  border-right: var(--dnd5e-border-groove);
}
.dnd5e.sheet .sheet-header .summary {
  flex: 0 0 100%;
  height: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--dnd5e-border-groove);
  border-bottom: none;
}
.dnd5e.sheet .sheet-header .summary li {
  height: calc(100% - 6px);
  float: left;
  margin: 2px 0;
  padding: 0;
  border-right: var(--dnd5e-border-groove);
  line-height: 34px;
  color: var(--dnd5e-color-olive);
}
.dnd5e.sheet .sheet-header .summary li:last-child {
  border-right: none;
}
.dnd5e.sheet .sheet-navigation {
  flex: 0 0 30px;
  margin-bottom: 5px;
  font-family: var(--dnd5e-font-modesto);
  font-size: var(--font-size-20);
  font-weight: 700;
}
.dnd5e.sheet .sheet-navigation .item {
  height: 30px;
  line-height: 32px;
  margin: 0 24px;
  border-bottom: 3px solid var(--dnd5e-color-beige);
}
.dnd5e.sheet .sheet-navigation .item.active {
  border-bottom: 3px solid var(--dnd5e-color-crimson);
}
.dnd5e.sheet .sheet-body {
  flex: 1;
  overflow: hidden;
}
.dnd5e.sheet .filter-list {
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 16px;
  max-width: 70%;
}
.dnd5e.sheet .filter-list .filter-icon {
  flex: none;
  font-size: var(--font-size-14);
  color: var(--dnd5e-color-tan);
}
.dnd5e.sheet .filter-list .filter-item {
  text-align: center;
  font-size: var(--font-size-12);
  margin: 0 6px 0 0;
  border-bottom: 3px solid var(--dnd5e-color-beige);
  white-space: nowrap;
}
.dnd5e.sheet .filter-list .filter-item:last-child {
  margin: 0;
}
.dnd5e.sheet .filter-list .filter-item:hover {
  text-shadow: 0 0 4px red;
  border-bottom: 3px solid var(--dnd5e-color-tan);
}
.dnd5e.sheet .filter-list .filter-item.active {
  border-bottom: 3px solid var(--dnd5e-color-crimson);
}
.dnd5e.sheet .traits {
  margin: 5px 0 0;
}
.dnd5e.sheet .traits .traits-list {
  flex: 0 0 100%;
  line-height: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dnd5e.sheet .trait-selector,
.dnd5e.sheet .proficiency-selector {
  flex: 0 0 16px;
  padding: 2px 0;
  color: #999;
  font-size: var(--font-size-10);
}
/* ----------------------------------------- */
/*  Items Lists                              */
/* ----------------------------------------- */
.dnd5e .items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  color: var(--dnd5e-color-tan);
}
.dnd5e .items-list .item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dnd5e .items-list .item-name {
  flex: 2;
  margin: 0;
  overflow: hidden;
  font-size: var(--font-size-13);
  text-align: left;
  align-items: center;
}
.dnd5e .items-list .item-name h3,
.dnd5e .items-list .item-name h4 {
  margin: 0;
  white-space: nowrap;
  overflow-x: hidden;
}
.dnd5e .items-list .item-controls {
  flex: 0 0 60px;
  justify-content: space-between;
}
.dnd5e .items-list .item-controls a {
  font-size: var(--font-size-12);
  text-align: center;
}
.dnd5e .items-list .item {
  align-items: center;
  padding: 0 2px;
  border-bottom: 1px solid var(--dnd5e-color-faint);
}
.dnd5e .items-list .item:last-child {
  border-bottom: none;
}
.dnd5e .items-list .item .item-name {
  color: var(--dnd5e-color-dark);
}
.dnd5e .items-list .item .item-name .item-image {
  flex: 0 0 30px;
  height: 30px;
  background-size: cover;
  background-position: 50% 0;
  border: none;
  margin-right: 5px;
}
.dnd5e .items-list .items-header {
  height: 28px;
  margin: 2px 0;
  padding: 0;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border: var(--dnd5e-border-groove);
  font-weight: bold;
}
.dnd5e .items-list .items-header > * {
  font-size: var(--font-size-12);
  text-align: center;
}
.dnd5e .items-list .items-header h3 {
  padding-left: 5px;
  font-family: var(--dnd5e-font-modesto);
  font-size: var(--font-size-16);
  font-weight: 700;
  text-align: left;
}
/* ----------------------------------------- */
/*  Active Effects                           */
/* ----------------------------------------- */
.effects-element {
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
}
.effects-element .effects-list {
  flex-grow: 1;
}
.effects-element .effect-source,
.effects-element .effect-duration,
.effects-element .effect-controls {
  text-align: center;
  border-inline: 1px solid var(--dnd5e-color-faint);
  font-size: var(--font-size-12);
}
.effects-element .effect-controls {
  border: none;
}
/* ----------------------------------------- */
/* Trait Selector
/* ----------------------------------------- */
.trait-selector {
  max-height: 80vh;
}
.trait-selector form {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.trait-selector form > .trait-list {
  overflow: auto;
  border-bottom: var(--dnd5e-border-groove);
}
.trait-selector .trait-list {
  list-style: none;
  margin: 0;
  margin-block-end: 6px;
  padding: 0;
  padding-block-end: 6px;
}
.trait-selector .trait-list li ol.trait-list {
  margin-left: 1.5em;
}
.trait-selector .trait-list .category > label {
  font-weight: bold;
}
.trait-selector .trait-list .wildcard > label {
  font-style: italic;
}
.trait-selector input[type="text"] {
  height: 24px;
  margin: 2px;
}
.damage-modification .modifications label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.damage-modification .modifications label input {
  flex: 0 0 150px;
}
/* ----------------------------------------- */
/*  Property Attribution                     */
/* ----------------------------------------- */
:is(#tooltip, .locked-tooltip).property-attribution {
  min-width: 150px;
  padding: 3px;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  text-align: left;
}
:is(#tooltip, .locked-tooltip).property-attribution table {
  margin: 0;
  border: 0;
  font-size: var(--font-size-14);
}
:is(#tooltip, .locked-tooltip).property-attribution table caption {
  padding-block: 0.25em 0.5em;
  font-size: var(--font-size-16);
}
:is(#tooltip, .locked-tooltip).property-attribution table tr {
  background-color: inherit;
}
:is(#tooltip, .locked-tooltip).property-attribution table td {
  padding: 3px;
}
:is(#tooltip, .locked-tooltip).property-attribution table tr.total > td {
  font-weight: 600;
  padding-top: 5px;
  border-top: 1px solid var(--dnd5e-color-tan);
}
:is(#tooltip, .locked-tooltip).property-attribution table td.attribution-value {
  width: 20%;
  padding-right: 5px;
  text-align: right;
  font-weight: 600;
}
:is(#tooltip, .locked-tooltip).property-attribution table td::before {
  opacity: 0.6;
}
:is(#tooltip, .locked-tooltip).property-attribution table td.mode-1::before {
  content: "×";
}
:is(#tooltip, .locked-tooltip).property-attribution table td.mode-2::before {
  content: "+";
}
:is(#tooltip, .locked-tooltip).property-attribution table td.mode-2.negative::before {
  content: "−";
  margin-right: -1px;
}
:is(#tooltip, .locked-tooltip).property-attribution table td.mode-3::before {
  content: "↓";
}
:is(#tooltip, .locked-tooltip).property-attribution table td.mode-4::before {
  content: "↑";
}
:is(#tooltip, .locked-tooltip).property-attribution .row {
  display: flex;
  flex-direction: row;
  font-size: var(--font-size-14);
  gap: 0.5rem;
}
:is(#tooltip, .locked-tooltip).property-attribution .row + .row {
  margin-top: 4px;
}
:is(#tooltip, .locked-tooltip).property-attribution .row .value {
  font-weight: bold;
}
:is(#tooltip, .locked-tooltip).property-attribution .row .label {
  flex: 1;
}
:is(#tooltip, .locked-tooltip).property-attribution .row .units,
:is(#tooltip, .locked-tooltip).property-attribution .row .unit {
  opacity: 0.6;
  font-weight: normal;
}
:is(#tooltip, .locked-tooltip).property-attribution .row > i.fas {
  height: 16px;
  width: 16px;
  text-align: center;
}
:is(#tooltip, .locked-tooltip).property-attribution .row > i.fas.burrow::before {
  content: "\f85e";
}
:is(#tooltip, .locked-tooltip).property-attribution .row > i.fas.climb::before {
  content: "\f6fc";
}
:is(#tooltip, .locked-tooltip).property-attribution .row > i.fas.fly::before {
  content: "\f56b";
}
:is(#tooltip, .locked-tooltip).property-attribution .row > i.fas.walk::before {
  content: "\f554";
}
:is(#tooltip, .locked-tooltip).property-attribution .row > i.fas.swim {
  transform: scaleX(-1);
}
:is(#tooltip, .locked-tooltip).property-attribution .row > i.fas.swim::before {
  content: "\f5c4";
}
/* ----------------------------------------- */
/*  Actor Type Config Sheet Specifically     */
/* ----------------------------------------- */
.actor-type .trait-list {
  display: flex;
  flex-wrap: wrap;
}
.actor-type .trait-list li {
  flex-basis: 50%;
  flex-grow: 1;
}
.actor-type .trait-list li.form-group {
  flex-basis: 100%;
}
.actor-type label.radio {
  display: flex;
  flex: auto;
  font-size: var(--font-size-12);
  line-height: 20px;
  font-weight: normal;
  align-items: baseline;
}
.actor-type label.radio > input[type="radio"] {
  margin: 0 5px 0 0;
}
.actor-type li.custom-type input[type="radio"] {
  display: none;
}
/* ----------------------------------------- */
/*  Add Feature Prompt Specifically          */
/* ----------------------------------------- */
.dnd5e.select-items-prompt .dialog-content {
  margin-bottom: 1em;
}
.dnd5e.select-items-prompt .items-list {
  margin-top: 0.5em;
}
.dnd5e.select-items-prompt .item-name > label,
.dnd5e.select-items-prompt .item-image,
.dnd5e.select-items-prompt input {
  cursor: var(--cursor-pointer);
}
.dnd5e.select-items-prompt .item-name > label {
  align-items: center;
}
.dnd5e.select-items-prompt .window-content {
  max-height: 90vh;
  overflow-y: auto;
}
/* ----------------------------------------- */
/*  Polymorph Features                       */
/* ----------------------------------------- */
.polymorph {
  /* ----------------------------------------- */
  /*  Two Column Configurations                */
  /* ----------------------------------------- */
}
.polymorph.two-column {
  display: grid;
  grid-template-columns: 45% 55%;
  grid-gap: 0.4em;
}
/* ----------------------------------------- */
/*  Module Art Configuration                 */
/* ----------------------------------------- */
#module-art-config ol {
  counter-reset: priorities;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#module-art-config li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
#module-art-config li::before {
  counter-increment: priorities;
  content: counter(priorities);
  width: 2em;
  text-align: center;
  font-size: var(--font-size-16);
}
#module-art-config li > label {
  flex: 1;
}
#module-art-config li > .form-fields {
  display: flex;
  gap: 0.5rem;
}
#module-art-config li > .form-fields label {
  display: flex;
  align-items: center;
}
#module-art-config li > .form-fields input {
  width: 16px;
  height: 16px;
}
#module-art-config .priority-adjust {
  display: flex;
}
#module-art-config .priority-adjust button {
  width: 24px;
  height: 24px;
  font-size: var(--font-size-11);
  display: grid;
  place-content: center;
}
#module-art-config .priority-adjust button > i {
  margin: 0;
}
/* ----------------------------------------- */
/*  Token Heads-Up Display                   */
/* ----------------------------------------- */
#token-hud .status-effects {
  width: max-content;
  grid-template-columns: repeat(5, 25px);
}
#token-hud .status-effects .effect-control.active:not(.overlay) {
  border: 1px solid green;
}
/* ----------------------------------------- */
/*  Accordion                                */
/* ----------------------------------------- */
.accordion {
  transition: margin-bottom 500ms ease;
}
.accordion.collapsed > .accordion-content {
  height: 0;
}
.accordion-indicator {
  display: none;
  transition: transform 500ms ease;
}
.accordion .accordion-indicator {
  display: inherit;
  transform: rotate(0deg);
}
.accordion.collapsed .accordion-indicator {
  transform: rotate(-90deg);
}
.accordion-heading {
  cursor: var(--cursor-pointer);
  position: relative;
}
.accordion-content {
  overflow: hidden;
  transition: height 500ms ease;
}
.dnd5e.advancement {
  /* ----------------------------------------- */
  /*  Advancement Selection                    */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Column Configurations                    */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Ability Score Improvement                */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Item Grant                               */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Item Choice                              */
  /* ----------------------------------------- */
}
.dnd5e.advancement input[type="text"],
.dnd5e.advancement input[type="number"],
.dnd5e.advancement select {
  height: var(--form-field-height);
  color: var(--color-text-dark-primary);
}
.dnd5e.advancement input[type="text"][readonly],
.dnd5e.advancement input[type="number"][readonly],
.dnd5e.advancement select[readonly] {
  color: var(--color-text-dark-6);
  box-shadow: none;
}
.dnd5e.advancement .form-group .form-fields :not(file-picker) > button {
  flex: 0;
}
.dnd5e.advancement .form-group .form-field-readonly {
  color: #999;
}
.dnd5e.advancement .items-list {
  margin-bottom: 1em;
  /* Solves the borders being cut off */
}
.dnd5e.advancement .items-list li.item {
  padding-top: 0.25em;
}
.dnd5e.advancement .items-list .item-hint {
  flex: 0 1 100%;
  margin-left: 35px;
  margin-bottom: 0.5em;
}
.dnd5e.advancement .items-list .content-link {
  display: inline-block;
}
.dnd5e.advancement .centered {
  text-align: center;
}
.dnd5e.advancement .hint.warning {
  color: var(--dnd5e-color-maroon);
  font-weight: bold;
}
.dnd5e.advancement.two-column form,
.dnd5e.advancement.three-column form {
  display: grid;
  gap: 0.4em;
}
.dnd5e.advancement.two-column form > .left-column,
.dnd5e.advancement.three-column form > .left-column {
  grid-area: left;
  display: flex;
  flex-direction: column;
}
.dnd5e.advancement.two-column form > .left-column > .form-group,
.dnd5e.advancement.three-column form > .left-column > .form-group {
  flex: none;
}
.dnd5e.advancement.two-column form > .left-column > .drop-target,
.dnd5e.advancement.three-column form > .left-column > .drop-target {
  flex: 1;
}
.dnd5e.advancement.two-column form > .right-column,
.dnd5e.advancement.three-column form > .right-column {
  grid-area: right;
}
.dnd5e.advancement.two-column form > .level-list label,
.dnd5e.advancement.three-column form > .level-list label {
  flex: 0.5;
  padding-right: 0.5rem;
  text-align: end;
}
.dnd5e.advancement.two-column form > .level-list :is(input[type="text"], input[type="number"])::placeholder,
.dnd5e.advancement.three-column form > .level-list :is(input[type="text"], input[type="number"])::placeholder {
  opacity: 0.5;
}
.dnd5e.advancement.two-column {
  --grid-two-column-left-size: 1fr;
  --grid-two-column-right-size: 1fr;
}
.dnd5e.advancement.two-column form {
  grid-template-columns: var(--grid-two-column-left-size) var(--grid-two-column-right-size);
  grid-template-areas: "left right";
}
.dnd5e.advancement.two-column form button[type="submit"] {
  grid-column-end: span 2;
}
.dnd5e.advancement.three-column {
  --grid-three-column-left-size: 1fr;
  --grid-three-column-center-size: 1fr;
  --grid-three-column-right-size: 1fr;
}
.dnd5e.advancement.three-column form {
  grid-template-columns: var(--grid-two-column-left-size) var(--grid-two-column-center-size) var(--grid-two-column-right-size);
  grid-template-areas: "left center right";
}
.dnd5e.advancement.three-column form > .center-column {
  grid-area: center;
}
.dnd5e.advancement.three-column form button[type="submit"] {
  grid-column-end: span 3;
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores {
  contain: layout;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-block-end: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores > label {
  grid-area: auto / span 3;
  margin-block: 0.5em 0;
  padding: 0;
  font-size: var(--font-size-18);
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores > label > .cap {
  margin-block: 0;
  font-size: var(--font-size-13);
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores li {
  display: grid;
  grid-template: "label label label label" "minus value value plus" "minus delta delta plus";
  align-items: center;
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores li.hint {
  display: block;
  grid-column: 2 / 4;
  text-align: start;
  align-self: end;
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores li label:first-child {
  grid-area: label;
  font-size: var(--font-size-18);
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores li a {
  font-size: var(--font-size-16);
  padding: 0.5em;
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores li a:not([data-action]) {
  opacity: 33%;
  cursor: var(--cursor-default);
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores li a:not([data-action]):hover {
  text-shadow: none;
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores li .minus {
  grid-area: minus;
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores li .plus {
  grid-area: plus;
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores li > input {
  grid-area: value;
  height: 1.5em;
  border: none;
  background: none;
  font-size: var(--font-size-28);
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores li .delta {
  grid-area: delta;
  font-size: var(--font-size-16);
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores li .delta i {
  font-size: var(--font-size-12);
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores li .locked {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: var(--font-size-12);
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores li .locked > input {
  width: 14px;
  height: 14px;
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .ability-scores.disabled li {
  opacity: 60%;
}
.dnd5e.advancement form[data-type="AbilityScoreImprovement"] .feat-section {
  gap: 8px;
}
.dnd5e.advancement.item-grant .items-list h3 {
  margin: 0;
}
.dnd5e.advancement.item-grant .items-list .item-optional {
  flex: 0 0 65px;
}
.dnd5e.advancement.item-choice {
  --grid-two-column-left-size: 1fr;
  --grid-two-column-center-size: 0.7fr;
  --grid-two-column-right-size: 0.5fr;
}
.dnd5e.advancement.item-choice .level-list .items-header {
  padding-inline: 2px;
}
.dnd5e.advancement.item-choice .level-list .level-header {
  flex: 0.5;
}
.dnd5e.advancement.item-choice .level-list .choices-header {
  flex: 3;
}
.dnd5e.advancement.item-choice .level-list .replacement-header {
  flex: 0 0 20px;
}
.dnd5e.advancement.item-choice .form-group:has(textarea) {
  align-items: flex-start;
}
.dnd5e.advancement.item-choice textarea {
  margin-inline-start: 8px;
  border: 1px solid var(--color-border-light-tertiary);
  font-family: var(--font-primary);
  font-size: var(--font-size-12);
  height: 140px;
}
/* ----------------------------------------- */
/*  Advancement Flow                         */
/* ----------------------------------------- */
.dnd5e.advancement.flow .step {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.dnd5e.advancement.flow .step h1 {
  flex-grow: 1;
}
.dnd5e.advancement.flow .step h2 {
  text-align: right;
  line-height: 1.8em;
  border-bottom: 2px solid var(--color-underline-header);
}
.dnd5e.advancement.flow .step form {
  flex-basis: 100%;
}
.dnd5e.advancement.flow h3 {
  font-size: var(--font-size-20);
}
.dnd5e.advancement.flow .item-name .item-image {
  flex: 0 0 30px;
  height: 30px;
  background-size: cover;
  background-position: 50% 0;
  margin-inline-end: 5px;
  border-radius: 4px;
  border: var(--dnd5e-border-gold);
  box-shadow: 0 0 4px var(--dnd5e-shadow-45);
}
.dnd5e.advancement.flow .item-name label {
  align-items: center;
}
.dnd5e.advancement.flow .item-name label h4 {
  margin: 0;
  font-size: var(--font-size-14);
}
.dnd5e.advancement.flow .item-name + .item-name {
  margin-top: 6px;
}
.dnd5e.advancement.flow form:not(:last-of-type) {
  margin-block-end: 0.5em;
  border-block-end: 2px groove var(--color-border-light-1);
  padding-block-end: 1em;
}
.dnd5e.advancement.flow input.error {
  outline: 2px solid red;
}
.dnd5e.advancement.flow form[data-type="HitPoints"] div {
  font-size: var(--font-size-14);
}
.dnd5e.advancement.flow form[data-type="HitPoints"] .rolls {
  display: grid;
  grid-template-columns: 50% 1fr 0fr;
  align-items: center;
  gap: 8px;
}
.dnd5e.advancement.flow form[data-type="HitPoints"] .rolls .average-label {
  gap: 8px;
}
.dnd5e.advancement.flow form[data-type="HitPoints"] .rolls .average-label .average-checkbox {
  flex: 0;
  order: 1;
}
.dnd5e.advancement.flow form[data-type="HitPoints"] .rolls .average-label span {
  order: 2;
}
.dnd5e.advancement.flow form[data-type="HitPoints"] .rolls .roll-result {
  text-align: center;
}
.dnd5e.advancement.flow form[data-type="HitPoints"] .rolls .roll-button {
  height: unset;
  width: 31px;
}
.dnd5e.advancement.flow form[data-type="ItemChoice"] .item-name .item-delete {
  flex: 0 0 20px;
  margin-inline-end: 1px;
}
.dnd5e.advancement.flow form[data-type="ItemChoice"] input[type="radio"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 3px 5px;
}
.dnd5e.advancement.flow form[data-type="ItemChoice"] h4.form-header {
  margin-block-start: 0.25em;
}
.dnd5e.advancement.flow form[data-type="ItemChoice"] .replaced h4 {
  text-decoration: #c80000 line-through 2px;
}
.dnd5e.advancement.flow form[data-type="ItemChoice"] label.flexrow {
  justify-content: space-between;
}
.dnd5e.advancement.flow form[data-type="ItemChoice"] label.flexrow dnd5e-checkbox {
  margin-inline: 6px;
}
.dnd5e.advancement.flow form[data-type="ItemChoice"] .item-name + .item-name {
  margin-block-start: 4px;
}
.dnd5e.advancement.flow form[data-type="ItemChoice"] .pill-lg {
  margin-block-start: 12px;
}
.dnd5e.advancement.flow form[data-type="ScaleValue"] p {
  margin-block-end: 0;
  font-size: var(--font-size-18);
}
.dnd5e.advancement.flow form[data-type="ScaleValue"] span.none {
  font-style: italic;
}
.dnd5e.advancement.flow form[data-type="Trait"] select {
  min-width: min(20em, 100%);
  margin-block-end: 0.25em;
}
.dnd5e.advancement.flow form[data-type="Trait"] .trait-slots {
  counter-reset: trait-list;
  list-style: none;
  padding: 0;
}
.dnd5e.advancement.flow form[data-type="Trait"] .trait-slot {
  min-height: 30px;
  align-items: center;
  font-size: var(--font-size-14);
}
.dnd5e.advancement.flow form[data-type="Trait"] .trait-slot::before {
  counter-increment: trait-list;
  content: counter(trait-list);
  width: 2em;
  text-align: center;
  font-size: var(--font-size-16);
}
.dnd5e.advancement.flow form[data-type="Trait"] .trait-slot a {
  flex: 0;
  padding-inline-end: 0.5em;
}
.dnd5e.advancement.flow form[data-type="Size"] select {
  width: 100%;
  font-size: var(--font-size-16);
  height: 2em;
}
.dnd5e.advancement.flow form[data-type="Subclass"] .drop-target > button {
  width: 100%;
}
.dnd5e.advancement.flow nav {
  display: flex;
  justify-content: flex-end;
  margin-block-start: 1em;
}
.dnd5e.advancement.flow nav button {
  max-width: 50%;
}
/* V2 Styles */
/* ------------------------------------ */
/*  System Global Typography            */
/* ------------------------------------ */
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) {
  /* Content Links & Enrichers */
  /* Tables */
  /* Embed Captions */
  /* Embedded Roll Tables */
  /* NPC Stat Blocks */
  /** System Rich Text Blocks **/
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a:is(.content-link, .inline-roll),
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.roll-link-group .roll-link,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.roll-link-group.roll-link,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.roll-link-group, .reference-link) a {
  --content-link-text-color: var(--color-text-primary);
  background: transparent;
  border: none;
  text-decoration: underline currentcolor;
  text-underline-offset: 2px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a:is(.content-link, .inline-roll) > i,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.roll-link-group .roll-link > i,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.roll-link-group.roll-link > i,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.roll-link-group, .reference-link) a > i {
  color: var(--color-text-primary);
  opacity: 0.75;
  transition: opacity 250ms ease;
  margin-right: 0.25em;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a:is(.content-link, .inline-roll).broken,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.roll-link-group .roll-link.broken,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.roll-link-group.roll-link.broken,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.roll-link-group, .reference-link) a.broken {
  color: var(--dnd5e-color-maroon);
  cursor: not-allowed;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a:is(.content-link, .inline-roll).broken > i,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.roll-link-group .roll-link.broken > i,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.roll-link-group.roll-link.broken > i,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.roll-link-group, .reference-link) a.broken > i {
  color: currentcolor;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a:is(.content-link, .inline-roll):hover,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.roll-link-group .roll-link:hover,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.roll-link-group.roll-link:hover,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.roll-link-group, .reference-link) a:hover {
  text-shadow: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a:is(.content-link, .inline-roll):hover > i,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.roll-link-group .roll-link:hover > i,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.roll-link-group.roll-link:hover > i,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.roll-link-group, .reference-link) a:hover > i {
  opacity: 1;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a:is(.content-link, .inline-roll):focus-visible,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.roll-link-group .roll-link:focus-visible,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.roll-link-group.roll-link:focus-visible,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.roll-link-group, .reference-link) a:focus-visible {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.roll-link-group:hover {
  text-shadow: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.enricher-action {
  text-decoration: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.enricher-action::before {
  content: "\f105";
  font-family: var(--font-awesome);
  font-weight: bold;
  margin: 0 4px 0 2px;
  font-size: var(--font-size-10);
  color: var(--color-text-tertiary);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .roll-link > i.fa-dice-d20,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.inline-roll > i.fa-dice-d20 {
  display: inline-block;
  width: 1em;
  height: 1.1em;
  background: url("../../icons/svg/d20-black.svg") no-repeat center / contain;
  vertical-align: middle;
  font-size: inherit;
  filter: var(--dnd5e-roll-icon-filter, none);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .roll-link > i.fa-dice-d20::before,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) a.inline-roll > i.fa-dice-d20::before {
  content: unset;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .passive-check {
  text-decoration-color: currentcolor;
  text-underline-offset: 2px;
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: help;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .award-block [data-action="awardRequest"] {
  margin-block: -2px;
  margin-inline-start: 4px;
  border: 1px dotted black;
  border-radius: 4px;
  padding-block: 2px;
  padding-inline: 4px 2px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .award-block [data-action="awardRequest"]:hover,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .award-block [data-action="awardRequest"]:focus {
  border-style: solid;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .award-entry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .sidebar-block {
  margin-block-end: 4px;
  background-color: rgba(238, 236, 228, 0.75);
  padding: 8px;
  padding-block-end: 2px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .sidebar-block h4 {
  font-size: var(--font-size-16);
  font-weight: bold;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) table {
  background: var(--table-background-color);
  border-color: var(--dnd5e-color-table-border);
  border-radius: 0;
  margin: 0.5em 0;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) table :where(p:first-child) {
  margin-block-start: 0;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) table :where(p:last-child) {
  margin-block-end: 0;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) table caption {
  margin-block-end: 2px;
  font-family: var(--dnd5e-font-roboto-slab);
  font-variant: small-caps;
  font-weight: bold;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) table thead {
  background: linear-gradient(to right, var(--dnd5e-color-table-header-1), var(--dnd5e-color-table-header-2));
  color: var(--color-text-light-0);
  text-align: center;
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
  text-shadow: none;
  border-color: var(--dnd5e-color-table-border);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) table thead tr:nth-child(n) {
  background: unset;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) table thead td {
  word-break: normal;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) table thead th {
  line-height: normal;
  font-size: var(--font-size-14);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) table tr:nth-child(even) {
  background-color: var(--dnd5e-color-table-row-even);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) table tr:nth-child(odd) {
  background-color: var(--dnd5e-color-table-row-odd);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) table td {
  padding: 0.375em;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) table:is(.core-class-traits, .core-traits) th {
  min-width: 60px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .content-embed figcaption cite {
  display: block;
  text-align: right;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .content-embed figcaption cite::before {
  content: "-";
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .caption-top .content-embed,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .content-embed.caption-top {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 0 2rem 0;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .caption-top .content-embed cite,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .content-embed.caption-top cite {
  position: absolute;
  inset: 100% 0 auto auto;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .caption-top .content-embed figcaption,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .content-embed.caption-top figcaption {
  order: -1;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .caption-top .content-embed .embed-caption,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .content-embed.caption-top .embed-caption {
  font-weight: normal;
  text-align: left;
  font-style: italic;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .double-column .statblock.npc {
  max-width: calc(var(--dnd5e-statblock-column-width) * 2);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .double-column .statblock.npc .statblock-content {
  columns: 2;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock {
  max-width: var(--dnd5e-statblock-column-width);
  background: var(--dnd5e-statblock-background-plain);
  border: 3px double var(--dnd5e-statblock-border);
  border-radius: 8px;
  padding-block: 4px;
  padding-inline: 8px;
  box-shadow: 2px 2px 2px var(--dnd5e-shadow-15);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014 {
  position: relative;
  margin-inline: 2px;
  border: none;
  border-radius: 0;
  background: var(--dnd5e-statblock-background-parchment);
  box-shadow: 0 0 6px var(--dnd5e-shadow-15);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014::before,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014::after {
  content: "";
  position: absolute;
  background: var(--dnd5e-statblock-scroll);
  border: 1px solid var(--dnd5e-statblock-border);
  inset-inline: -2px;
  block-size: 5px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014::before {
  inset-block-start: -5px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014::after {
  inset-block-end: -5px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-title,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-actions-title {
  border-block-end: 1px solid var(--dnd5e-statblock-title-border);
  font-variant: small-caps;
  break-after: avoid;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-title {
  color: color-mix(in oklab, var(--dnd5e-statblock-text-header) 75%, transparent);
  font-size: var(--font-size-18);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-title i {
  display: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-title .content-link {
  padding: 0;
  text-decoration: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014 .statblock-title {
  margin-block-end: 0;
  border: none;
  color: var(--dnd5e-statblock-text-header);
  font-size: var(--font-size-24);
  font-weight: normal;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-actions-title {
  margin-block-start: 8px;
  color: var(--dnd5e-statblock-text-header);
  font-size: var(--font-size-16);
  font-weight: normal;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-tags {
  color: var(--dnd5e-statblock-text-secondary);
  font-style: italic;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014 .statblock-tags {
  color: var(--dnd5e-statblock-text-primary);
  font-size: var(--font-size-13);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-content {
  column-width: var(--dnd5e-statblock-column-width);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-header {
  break-inside: avoid;
  color: var(--dnd5e-statblock-text-header);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-header dl {
  display: flex;
  flex-wrap: wrap;
  margin: 0.5em 0;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-header dl dd {
  margin-inline-start: 4px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-header dl > div {
  flex: 1 0 100%;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-header dl > div.half-width {
  flex: 1 0 50%;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-header dl div > :is(dt, dd) {
  display: inline;
  line-height: 1.5;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-header dl dt {
  color: var(--dnd5e-statblock-text-header);
  text-shadow: none;
  font-weight: bold;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014 .statblock-header {
  margin-block-start: 8px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities table,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities thead,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities tbody,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities tr,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities th,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities td {
  all: revert;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities table {
  border-collapse: collapse;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities thead th {
  color: var(--dnd5e-statblock-text-secondary);
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-10);
  font-weight: normal;
  text-transform: uppercase;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities thead th.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  font-size: 1px;
  overflow: hidden;
  white-space: nowrap;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities tbody tr {
  border-block: 1px solid var(--dnd5e-statblock-ability-border);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities tbody tr:nth-of-type(odd) th,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities tbody tr:nth-of-type(odd) .score {
  background: var(--dnd5e-statblock-ability-header-1st);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities tbody tr:nth-of-type(odd) td {
  background: var(--dnd5e-statblock-ability-stat-1st);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities tbody tr:nth-of-type(even) th,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities tbody tr:nth-of-type(even) .score {
  background: var(--dnd5e-statblock-ability-header-2nd);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities tbody tr:nth-of-type(even) td {
  background: var(--dnd5e-statblock-ability-stat-2nd);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities tbody th {
  font-variant: small-caps;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2024 .abilities tbody td {
  text-align: center;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014 .abilities {
  display: flex;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014 .abilities > .ability {
  flex: 1 0;
  display: flex;
  flex-direction: column;
  text-align: center;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014 .abilities > .ability .name {
  text-transform: uppercase;
  font-weight: bold;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014 :is(.statblock-header, .abilities) {
  position: relative;
  padding-block: 4px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014 :is(.statblock-header, .abilities)::before,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014 :is(.statblock-header, .abilities)::after {
  content: "";
  position: absolute;
  display: block;
  height: 6px;
  inset-inline: 0;
  background: var(--dnd5e-statblock-separator);
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014 :is(.statblock-header, .abilities)::before {
  inset-block-start: 0;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014 :is(.statblock-header, .abilities)::after {
  inset-block-end: 0;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.rules-2014 :is(.statblock-header, .abilities).abilities {
  padding-block: 12px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-actions {
  color: var(--dnd5e-statblock-text-primary);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-actions > p {
  font-style: italic;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-actions .statblock-action > p:first-child > .name {
  font-style: italic;
  font-weight: bold;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-actions .statblock-action > p:first-child > .name::after {
  content: ". ";
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-actions .statblock-action a,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-actions .statblock-action button {
  display: contents;
  cursor: inherit;
  pointer-events: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-actions .statblock-action a :is(.fas, .fa-solid, .far, .fa-regular),
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock .statblock-actions .statblock-action button :is(.fas, .fa-solid, .far, .fa-regular) {
  display: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content) h1,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content) h2,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content) h3 {
  font-family: var(--dnd5e-font-modesto);
  font-weight: bold;
  border-bottom: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.editor-content, .card-content, .item-summary) h1,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.editor-content, .card-content, .item-summary) h2,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.editor-content, .card-content, .item-summary) h3 {
  font-family: var(--dnd5e-font-roboto-slab);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.editor-content, .card-content, .item-summary) h1 {
  font-size: 1.5em;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.editor-content, .card-content, .item-summary) h2 {
  font-size: 1.4em;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.editor-content, .card-content, .item-summary) h3 {
  font-size: 1.25em;
  padding-bottom: 0;
  border-bottom: 1px solid var(--dnd5e-color-black);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) {
  font-family: var(--dnd5e-font-roboto-condensed);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) h1,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) h2,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) h3,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) h4,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) h5,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) h6 {
  color: var(--color-text-emphatic);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) h1,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) h2,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) h3,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) h4 {
  margin: 0 0 0.5rem;
  line-height: normal;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) h4 {
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
  font-size: var(--font-size-13);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) h5 {
  font-size: var(--font-size-13);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) ul,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) ol {
  margin: 0.5em 0;
  padding: 0 0 0 1.5em;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.journal-entry-content, .journal-page-content, .editor-content, .card-content, .item-summary) blockquote {
  margin: 0.5em 0 0.5em 10px;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--color-border-light-tertiary);
}
/* ---------------------------------- */
/*  All DnD5e Apps                    */
/* ---------------------------------- */
.dnd5e2 {
  /* ---------------------------------- */
  /*  Frame Styling                     */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Navigation                        */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Common App Components             */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Meters                            */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Slots                             */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Lists                             */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  System Badge                      */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  ProseMirror                       */
  /* ---------------------------------- */
  /* -------------------------------------------- */
  /*  CodeMirror                                  */
  /* -------------------------------------------- */
  /* ---------------------------------- */
  /*  Bastions                          */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Pause                             */
  /* ---------------------------------- */
}
.dnd5e2 .window-header {
  border: none;
  align-items: center;
}
.dnd5e2 .window-header > * {
  max-block-size: 100%;
}
.dnd5e2 .window-header .header-button,
.dnd5e2 .window-header .pseudo-header-button {
  border-radius: 100%;
  background: var(--dnd5e-background-25);
  width: 18px;
  height: 18px;
  aspect-ratio: 1;
  line-height: unset;
  place-content: center;
  margin-top: 4px;
}
.dnd5e2 .window-header .header-button:not([hidden]),
.dnd5e2 .window-header .pseudo-header-button:not([hidden]) {
  display: grid;
}
.dnd5e2 .window-header .header-button > i,
.dnd5e2 .window-header .pseudo-header-button > i {
  margin: 0;
}
.dnd5e2.window-app.minimized .window-header .window-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dnd5e2.window-app.minimized .window-header .document-id-link {
  display: grid;
  margin-top: 0;
}
.dnd5e2 .window-content {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-13);
  border-radius: 5px;
  padding: 0;
  background: var(--dnd5e-color-parchment);
  overflow: visible;
}
.dnd5e2.vertical-tabs {
  box-shadow: none;
  overflow: visible;
}
.dnd5e2.vertical-tabs::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  border: var(--dnd5e-border-gold);
  box-shadow: 0 0 20px var(--color-shadow-dark);
  border-radius: 5px;
}
.dnd5e2.vertical-tabs nav.tabs {
  --tab-full-width: 44px;
  --tab-inactive-width: 38px;
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: -1;
  border: none;
}
.dnd5e2.vertical-tabs nav.tabs > .item {
  --icon-size: 14px;
  width: var(--tab-full-width);
  height: 40px;
  position: relative;
  align-items: center;
  background: var(--dnd5e-color-black);
  color: var(--dnd5e-color-gold);
  --icon-fill: var(--dnd5e-color-gold);
  border: 1px solid transparent;
  transition: all 250ms ease;
  flex: none;
}
.dnd5e2.vertical-tabs nav.tabs > .item:not([hidden]) {
  display: flex;
}
.dnd5e2.vertical-tabs nav.tabs > .item i {
  font-size: var(--font-size-14);
  margin: 0;
}
.dnd5e2.vertical-tabs nav.tabs > .item.active,
.dnd5e2.vertical-tabs nav.tabs > .item:hover {
  text-shadow: none;
  border-color: var(--dnd5e-color-gold);
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2.vertical-tabs nav.tabs > .item::after {
  content: "";
  position: absolute;
  border: 1px solid var(--dnd5e-color-gold);
  pointer-events: none;
}
.dnd5e2.vertical-tabs nav.tabs.tabs-left {
  contain: content;
  right: 100%;
  align-items: flex-end;
}
.dnd5e2.vertical-tabs nav.tabs.tabs-left > .item {
  padding-inline-start: 12px;
  justify-content: start;
  border-radius: 8px 0 0 8px;
  margin-inline-end: calc((var(--tab-full-width) - var(--tab-inactive-width)) * -1);
}
.dnd5e2.vertical-tabs nav.tabs.tabs-left > .item::after {
  inset: 4px 0 4px 4px;
  border-radius: 5px 0 0 5px;
  border-inline-end: none;
}
.dnd5e2.vertical-tabs nav.tabs.tabs-left > .item.active,
.dnd5e2.vertical-tabs nav.tabs.tabs-left > .item:hover {
  margin: 0;
}
.dnd5e2.vertical-tabs nav.tabs.tabs-right {
  contain: content;
  left: 100%;
  align-items: flex-start;
}
.dnd5e2.vertical-tabs nav.tabs.tabs-right > .item {
  padding-inline-end: 12px;
  justify-content: end;
  border-radius: 0 8px 8px 0;
  margin-inline-start: calc((var(--tab-full-width) - var(--tab-inactive-width)) * -1);
}
.dnd5e2.vertical-tabs nav.tabs.tabs-right > .item::after {
  inset: 4px 4px 4px 0;
  border-radius: 0 5px 5px 0;
  border-inline-start: none;
}
.dnd5e2.vertical-tabs nav.tabs.tabs-right > .item.active,
.dnd5e2.vertical-tabs nav.tabs.tabs-right > .item:hover {
  margin: 0;
}
.dnd5e2 .roboto-upper {
  font-family: var(--dnd5e-font-roboto);
  font-weight: bold;
  text-transform: uppercase;
}
.dnd5e2 .roboto-condensed-upper {
  font-family: var(--dnd5e-font-roboto-condensed);
  font-weight: bold;
  text-transform: uppercase;
}
.dnd5e2 .card {
  border-radius: 4px;
  background: var(--dnd5e-background-card);
  box-shadow: 0 0 6px var(--dnd5e-shadow-45);
  border: var(--dnd5e-border-gold);
}
.dnd5e2 .card .header {
  background: linear-gradient(to right, var(--dnd5e-card-header-1), var(--dnd5e-card-header-2));
  color: white;
  border-radius: 3px 3px 0 0;
  border-bottom: var(--dnd5e-border-gold);
}
.dnd5e2 .card .header.disabled {
  background: linear-gradient(to right, var(--dnd5e-card-header-disabled-1), var(--dnd5e-card-header-disabled-2));
  pointer-events: all;
}
.dnd5e2 .card .header h3 {
  border: none;
  margin: 0;
  padding: 0.5rem;
  color: inherit;
  font-family: var(--dnd5e-font-roboto-slab);
  font-size: var(--font-size-13);
  font-weight: bold;
  line-height: 1;
}
.dnd5e2 .card .header .radio-button {
  background: var(--dnd5e-background-alt-1);
}
.dnd5e2 .card .header .radio-button[aria-pressed="true"]::before {
  background: var(--dnd5e-color-gold);
}
.dnd5e2 .card .header .subtitle {
  font-family: var(--dnd5e-font-roboto-condensed);
  font-size: var(--font-size-13);
}
.dnd5e2 .card .header .config-button {
  flex: none;
  display: grid;
  place-content: center;
  color: inherit;
}
.dnd5e2 .card .header select {
  width: unset;
  border: none;
  background: none;
}
.dnd5e2 .card .header select option {
  color: var(--color-text-primary);
}
.dnd5e2 .card .info {
  display: flex;
  align-items: stretch;
  padding: 0.5rem 0;
}
.dnd5e2 .card .info > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.5rem;
  border-right: var(--dnd5e-border-separator-faint);
}
.dnd5e2 .card .info > div:last-child {
  border: none;
}
.dnd5e2 .card .info > div .label {
  font-family: var(--dnd5e-font-roboto-condensed);
  font-size: var(--font-size-10);
  color: var(--color-text-secondary);
  text-transform: uppercase;
}
.dnd5e2 .card .info > div .value {
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
  font-size: var(--font-size-16);
}
.dnd5e2 .card .info > div .sign {
  color: var(--color-text-tertiary);
}
.dnd5e2 .unlist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dnd5e2 .unlist li {
  margin: 0;
}
.dnd5e2 h1,
.dnd5e2 h2,
.dnd5e2 h3 {
  border: none;
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
}
.dnd5e2 h1 {
  font-size: 1.5em;
}
.dnd5e2 h2 {
  font-size: 1.4em;
}
.dnd5e2 h3 {
  padding-bottom: 4px;
  margin-bottom: 6px;
  border-bottom: var(--dnd5e-border-heading-3);
  color: var(--dnd5e-heading-3-color);
}
.dnd5e2 h3.icon {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.dnd5e2 h3.icon > i {
  font-size: var(--font-size-14);
}
.dnd5e2 h3.icon > span {
  font-size: var(--font-size-13);
}
.dnd5e2 h3.icon > span.counter,
.dnd5e2 h3.icon > span.text {
  margin-left: auto;
  line-height: 1;
}
.dnd5e2 h3.icon > span.text {
  font-family: var(--dnd5e-font-roboto);
  font-weight: normal;
}
.dnd5e2 h3.icon > dnd5e-icon {
  font-size: var(--font-size-14);
  --icon-fill: var(--dnd5e-heading-3-color);
}
.dnd5e2 h3.icon > a,
.dnd5e2 h3.icon > button {
  margin-left: auto;
  font-size: var(--font-size-12);
  color: var(--color-text-tertiary);
}
.dnd5e2 h3.sabers {
  padding: 0;
  margin: 0;
  border: none;
  color: var(--dnd5e-color-gold);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-13);
  white-space: nowrap;
}
.dnd5e2 h3.sabers::before,
.dnd5e2 h3.sabers::after {
  content: "";
  flex-basis: 50%;
  height: 1px;
}
.dnd5e2 h3.sabers::before {
  background: linear-gradient(to left, var(--dnd5e-color-gold), transparent);
}
.dnd5e2 h3.sabers::after {
  background: linear-gradient(to right, var(--dnd5e-color-gold), transparent);
}
.dnd5e2 proficiency-cycle {
  width: 15px;
  height: 15px;
}
.dnd5e2 .pills-group h3 {
  border: none;
}
.dnd5e2 .pills-group h3.rollable {
  cursor: var(--cursor-pointer);
}
.dnd5e2 .pills-group h3.rollable:hover {
  text-shadow: 0 0 4px var(--color-shadow-primary);
}
.dnd5e2 .pills-group .form-fields {
  margin-top: 8px;
}
.dnd5e2 .pills-group .form-fields input,
.dnd5e2 .pills-group .form-fields select {
  flex: 1;
}
.dnd5e2 .pills-group .form-fields .separator {
  flex: none;
}
.dnd5e2 .pill-lg {
  background: var(--dnd5e-background-card);
  border: var(--dnd5e-border-gold);
  border-radius: 5px;
  box-shadow: 0 0 12px var(--dnd5e-shadow-15);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  height: 50px;
  max-width: 280px;
  position: relative;
  transition: box-shadow 250ms ease, opacity 250ms ease;
}
.dnd5e2 .pill-lg.empty {
  border: var(--pill-empty-border);
  color: var(--pill-empty-text-color);
  border-radius: 4px;
  display: grid;
  place-content: center;
  opacity: 0.25;
}
.dnd5e2 .pill-lg.empty[data-action]:not(.disabled) {
  cursor: var(--cursor-pointer);
}
.dnd5e2 .pill-lg.empty[data-action]:not(.disabled):hover {
  opacity: 0.5;
}
.dnd5e2 .pill-lg .name {
  flex: 1;
}
.dnd5e2 .pill-lg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--underlay) no-repeat center / cover;
  opacity: var(--pill-underlay-opacity, 1);
  mix-blend-mode: var(--pill-underlay-blend-mode);
  filter: grayscale(1);
  pointer-events: none;
  border-radius: 5px;
}
.dnd5e2 .pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.dnd5e2 .pills .pill {
  font-family: var(--dnd5e-font-roboto);
  font-weight: bold;
  font-size: var(--font-size-11);
  text-transform: uppercase;
  border: var(--pill-border);
  border-radius: 3px;
  background: var(--dnd5e-background-card);
  padding: 0.1875rem 0.375rem;
  display: flex;
  gap: 0.25rem;
  margin: 0;
}
.dnd5e2 .pills .pill.green,
.dnd5e2 .pills .pill.maroon {
  color: var(--pill-colored-text-color);
  border: var(--pill-colored-border);
}
.dnd5e2 .pills .pill.green {
  background-color: var(--pill-background-green);
}
.dnd5e2 .pills .pill.maroon {
  background-color: var(--pill-background-maroon);
}
.dnd5e2 .pills .pill.transparent,
.dnd5e2 .pills .pill.pill-sm {
  color: var(--pill-transparent-color);
  border: var(--pill-border-dotted);
  background-color: transparent;
}
.dnd5e2 .pills .pill.pill-xs {
  font-size: var(--font-size-9);
  padding: 2px 4px;
  gap: 3px;
}
.dnd5e2 .pills .pill > .separator {
  color: var(--color-text-tertiary);
}
.dnd5e2 .gold-button,
.dnd5e2.standard-form button.gold-button {
  position: relative;
  border: none;
  border-radius: 4px;
  background: var(--dnd5e-color-black);
  color: var(--dnd5e-color-gold);
  width: 30px;
  height: 30px;
  margin: 0;
  box-shadow: 0 0 6px var(--dnd5e-shadow-45);
  font-size: var(--font-size-14);
  display: grid;
  place-content: center;
  line-height: normal;
}
.dnd5e2 .gold-button::after,
.dnd5e2.standard-form button.gold-button::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--dnd5e-color-gold);
  border-radius: 3px;
}
.dnd5e2 .gold-button:not(:disabled):is(:hover, :focus),
.dnd5e2.standard-form button.gold-button:not(:disabled):is(:hover, :focus) {
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
  background: var(--dnd5e-color-black);
  color: var(--dnd5e-color-gold);
}
.dnd5e2 .gold-button > i,
.dnd5e2.standard-form button.gold-button > i {
  margin: 0;
}
.dnd5e2 .gold-icon {
  --gold-icon-size: 32px;
  block-size: var(--gold-icon-size);
  inline-size: var(--gold-icon-size);
  flex: 0 0 var(--gold-icon-size);
  border: 1px solid var(--dnd5e-color-gold);
  box-shadow: 0 0 4px var(--dnd5e-shadow-45);
  border-radius: 4px;
  background-color: var(--dnd5e-gold-icon-background);
  object-fit: cover;
  object-position: top;
}
.dnd5e2 .name-stacked {
  display: flex;
  flex-direction: column;
}
.dnd5e2 .name-stacked .title {
  font-family: var(--dnd5e-font-roboto-slab);
  font-size: var(--font-size-14);
  font-weight: bold;
}
.dnd5e2 .name-stacked .subtitle {
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-10);
  color: var(--color-text-secondary);
}
.dnd5e2 filigree-box > h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.375rem;
  border: none;
  font-size: var(--font-size-13);
  margin: 0;
}
.dnd5e2 filigree-box > h3 > i {
  font-size: var(--font-size-11);
  color: var(--color-text-secondary);
}
.dnd5e2 filigree-box > h3 > span {
  color: var(--color-text-title);
}
.dnd5e2 a.deletion-control,
.dnd5e2 button.deletion-control {
  width: 32px;
  height: 32px;
  color: var(--dnd5e-color-red);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  font-size: var(--font-size-11);
}
.dnd5e2 button.deletion-control {
  padding: 0;
}
.dnd5e2 button.deletion-control:focus-visible,
.dnd5e2 button.deletion-control:hover:not(:disabled) {
  background: none;
  box-shadow: none;
  color: var(--dnd5e-color-red);
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2 hr {
  height: 1px;
  margin-block: 5px;
  border: none;
  background: linear-gradient(to right, transparent, var(--dnd5e-color-gold), transparent);
}
.dnd5e2 hr.ampersand {
  position: relative;
  height: 20px;
  background: url("ui/official/ampersand-gold.svg") no-repeat center / contain;
  margin: 0;
}
.dnd5e2 hr.ampersand::before,
.dnd5e2 hr.ampersand::after {
  content: "";
  position: absolute;
  inset-block: 9.5px;
  inset-inline: 0;
}
.dnd5e2 hr.ampersand::before {
  background: linear-gradient(to left, var(--dnd5e-color-gold), transparent);
  inset-inline-end: calc(50% + 14px);
}
.dnd5e2 hr.ampersand::after {
  background: linear-gradient(to right, var(--dnd5e-color-gold), transparent);
  inset-inline-start: calc(50% + 14px);
}
.dnd5e2 .spell-block {
  text-align: left;
  font-size: var(--font-size-12);
}
.dnd5e2 .spell-block.full-width {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dnd5e2 .spell-block.full-width li:not(.paragraph) {
  display: flex;
  gap: 4px;
}
.dnd5e2 .spell-block.full-width li:not(.paragraph) strong {
  flex: none;
}
.dnd5e2 .spell-block.full-width li:not(.paragraph) .value {
  flex: 1;
  display: flex;
  gap: 4px;
}
.dnd5e2 .spell-block.full-width li:not(.paragraph) .value::before {
  content: "";
  flex: 1;
  height: 11px;
  border-bottom: 1px dotted var(--dnd5e-color-gold);
}
.dnd5e2 .spell-block.full-width li.paragraph .value {
  font-size: var(--font-size-11);
}
.dnd5e2 .spell-block .materials,
.dnd5e2 .spell-block .condition {
  font-size: var(--font-size-11);
  color: var(--color-text-secondary);
}
.dnd5e2 .control-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 6px 0 0;
  margin-bottom: -4px;
  font-size: var(--font-size-10);
  color: var(--color-text-secondary);
}
.dnd5e2 .control-hint img {
  height: 1em;
  aspect-ratio: 1;
  border: none;
  transform: scale(1.35);
  opacity: 0.6;
}
.dnd5e2 .control-hint kbd {
  background: #eee;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
  color: #333;
  display: inline-block;
  font-weight: bold;
  line-height: 1;
  padding: 1px 4px;
  font-variant: all-small-caps;
  font-family: var(--dnd5e-font-roboto);
}
.dnd5e2 .card.table.items,
.dnd5e2 .card.table.levels {
  display: grid;
  gap: 0;
}
.dnd5e2 .card.table.items > *,
.dnd5e2 .card.table.levels > * {
  grid-column: 1 / -1;
}
.dnd5e2 .card.table.items .header,
.dnd5e2 .card.table.levels .header,
.dnd5e2 .card.table.items .items-list,
.dnd5e2 .card.table.levels .items-list,
.dnd5e2 .card.table.items .items-list > li,
.dnd5e2 .card.table.levels .items-list > li,
.dnd5e2 .card.table.items .levels-list,
.dnd5e2 .card.table.levels .levels-list,
.dnd5e2 .card.table.items .levels-list > li,
.dnd5e2 .card.table.levels .levels-list > li {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}
.dnd5e2 .card.table.items .header,
.dnd5e2 .card.table.levels .header {
  margin-inline: -10px;
  padding-block: 3px 2px;
  padding-inline: 10px;
  border-radius: 0;
}
.dnd5e2 .card.table.items .items-list,
.dnd5e2 .card.table.levels .items-list,
.dnd5e2 .card.table.items .levels-list > li,
.dnd5e2 .card.table.levels .levels-list > li {
  margin: 0 -0.75em;
  padding: 6px 0.75em;
}
.dnd5e2 .card.table.items .items-list:nth-child(odd),
.dnd5e2 .card.table.levels .items-list:nth-child(odd),
.dnd5e2 .card.table.items .levels-list > li:nth-child(odd),
.dnd5e2 .card.table.levels .levels-list > li:nth-child(odd) {
  background: var(--dnd5e-color-table-row-odd);
}
.dnd5e2 .card.table.items .items-list:nth-child(even),
.dnd5e2 .card.table.levels .items-list:nth-child(even),
.dnd5e2 .card.table.items .levels-list > li:nth-child(even),
.dnd5e2 .card.table.levels .levels-list > li:nth-child(even) {
  background: var(--dnd5e-color-table-row-even);
}
.dnd5e2 .card.table.items {
  grid-template-columns: [name] 1fr [controls] 20px;
}
.dnd5e2 .card.table.items .items-list {
  container-type: normal;
  gap: 0;
}
.dnd5e2 .card.table.items .items-list > li {
  margin: 0 -0.75em;
  padding: 6px 0.75em;
}
.dnd5e2 .card.table.items .items-list > li:nth-child(odd) {
  background: var(--dnd5e-color-table-row-odd);
}
.dnd5e2 .card.table.items .items-list > li:nth-child(even) {
  background: var(--dnd5e-color-table-row-even);
}
.dnd5e2 .card.table.items .item-optional {
  display: inline-flex;
}
.dnd5e2 .card.table.items .item-name {
  grid-column: name;
}
.dnd5e2 .card.table.items .item-controls {
  grid-column: controls;
  font-size: var(--font-size-11);
  text-align: right;
  flex-wrap: nowrap;
  gap: 4px;
}
.dnd5e2 .card.table.items .name-header {
  padding-inline-start: 16px;
}
.dnd5e2 .card.table.levels {
  grid-template-columns: [level] max-content [count] 1fr;
  gap: 4px 6px;
}
.dnd5e2 .card.table.levels .header > span {
  text-align: center;
}
.dnd5e2 .card.table.levels .level-header,
.dnd5e2 .card.table.levels .level-level {
  grid-column: level;
}
.dnd5e2 .card.table.levels .count-header,
.dnd5e2 .card.table.levels .level-count {
  grid-column: count;
}
.dnd5e2 .card.table.levels .level-level {
  align-content: center;
  text-align: center;
}
.dnd5e2 .drop-area.drop-area-lg {
  border: var(--pill-empty-border);
  color: var(--pill-empty-text-color);
  border-radius: 4px;
  display: grid;
  place-content: center;
  opacity: 0.5;
  background: var(--dnd5e-background-card);
  box-shadow: 0 0 12px var(--dnd5e-shadow-15);
  padding-block: 16px;
}
.dnd5e2 .drop-area.interactive {
  opacity: 0.25;
  transition: opacity 250ms ease;
  cursor: var(--cursor-pointer);
}
.dnd5e2 .drop-area.interactive:hover {
  opacity: 0.5;
}
.dnd5e2 .meter-group {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.dnd5e2 .meter-group + .meter-group {
  margin-block-start: 0.5rem;
}
.dnd5e2 .meter {
  border: 1px solid var(--dnd5e-color-gold);
  border-radius: 4px;
  background: var(--meter-background);
  font-family: var(--dnd5e-font-roboto);
  font-weight: bold;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.dnd5e2 .meter.progress,
.dnd5e2 .meter .progress {
  --bar-percentage: 0%;
  --border-width: 3px;
  overflow: hidden;
}
.dnd5e2 .meter.progress::before,
.dnd5e2 .meter .progress::before {
  content: "";
  position: absolute;
  block-size: 100%;
  inline-size: var(--bar-percentage);
  box-shadow: 0 0 6px var(--dnd5e-shadow-45);
  clip-path: polygon(0 0, calc(100% + 6px) 0, calc(100% + 6px) 100%, 0 100%);
}
.dnd5e2 .meter .label {
  inline-size: 100%;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  padding-inline-start: 8px;
  padding-inline-end: 12px;
  color: var(--color-text-light-0);
}
.dnd5e2 .meter .label[hidden] {
  display: none;
}
.dnd5e2 .meter .label .value,
.dnd5e2 .meter .label .max {
  text-shadow: 0 0 4px var(--dnd5e-color-gold);
}
.dnd5e2 .meter .label .separator {
  color: var(--dnd5e-color-gold);
}
.dnd5e2 .meter .label .bonus {
  margin-inline-start: auto;
  font-size: var(--font-size-14);
  opacity: 0.8;
}
.dnd5e2 .slots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.dnd5e2 .slots .slot {
  --slot-size: 32px;
  flex: 0 0 var(--slot-size);
  height: var(--slot-size);
  width: var(--slot-size);
  border: var(--dnd5e-slot-border);
  border-radius: 3px;
  overflow: hidden;
  background: var(--dnd5e-background-card);
  position: relative;
}
.dnd5e2 .slots .slot.empty {
  box-shadow: inset 0 0 3px var(--dnd5e-shadow-45);
}
.dnd5e2 .slots .slot .deletion-control {
  width: unset;
  height: unset;
  cursor: var(--cursor-pointer);
  position: absolute;
  inset: -3px -3px 0 0;
}
.dnd5e2 .slots .occupant-slot {
  overflow: visible;
  cursor: var(--cursor-pointer);
}
.dnd5e2 .slots .occupant-slot.empty,
.dnd5e2 .slots .occupant-slot.pending {
  display: inline-grid;
  place-content: center;
}
.dnd5e2 .slots .occupant-slot.empty::before,
.dnd5e2 .slots .occupant-slot.pending::before {
  font-family: var(--font-awesome);
  font-weight: bold;
}
.dnd5e2 .slots .occupant-slot.pending::before {
  content: "\f51e";
  color: var(--dnd5e-color-gold);
}
.dnd5e2 .slots .occupant-slot.empty::before {
  opacity: 0.15;
}
.dnd5e2 .slots .occupant-slot.hireling.empty::before {
  content: "\f007";
}
.dnd5e2 .slots .occupant-slot.defender.empty::before {
  content: "\f132";
}
.dnd5e2 .slots .occupant-slot.creature.empty::before {
  content: "\f7ab";
}
.dnd5e2 .slots :is(.item-slot, .occupant-slot) img {
  border: none;
  border-radius: 3px;
  width: 100%;
  height: 100%;
  max-width: unset;
  object-fit: cover;
  background: var(--dnd5e-background-alt-2);
}
.dnd5e2 .separated-list,
.dnd5e2.separated-list {
  padding: 0;
  list-style: none;
  gap: 12px;
}
.dnd5e2 .separated-list > li:not(.empty),
.dnd5e2.separated-list > li:not(.empty) {
  position: relative;
  padding: 8px;
  background: var(--separated-list-item-background-color);
  border: 1px solid var(--separated-list-item-border-color);
  border-radius: 4px;
  box-shadow: 0 0 4px var(--dnd5e-shadow-45);
}
.dnd5e2 .separated-list > li:not(.empty) .details,
.dnd5e2.separated-list > li:not(.empty) .details {
  gap: 4px;
}
.dnd5e2 .separated-list > li:not(.empty) .details input,
.dnd5e2.separated-list > li:not(.empty) .details input {
  height: unset;
}
.dnd5e2 .separated-list > li:not(.empty) .details input::placeholder,
.dnd5e2.separated-list > li:not(.empty) .details input::placeholder {
  opacity: 0.5;
}
.dnd5e2 .separated-list > li:not(.empty) .details .sep,
.dnd5e2.separated-list > li:not(.empty) .details .sep {
  flex: 0;
  align-self: center;
}
.dnd5e2 .separated-list > li:not(.empty) .list-controls,
.dnd5e2.separated-list > li:not(.empty) .list-controls {
  flex: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: inherit;
}
.dnd5e2 .separated-list > li:not(.empty) .list-controls button,
.dnd5e2.separated-list > li:not(.empty) .list-controls button {
  --size: 26px;
  flex: 0 0 var(--size);
  block-size: var(--size);
  inline-size: var(--size);
}
.dnd5e2 .separated-list.single-item,
.dnd5e2.separated-list.single-item {
  margin-block: 0;
}
.dnd5e2 .separated-list.single-item > li,
.dnd5e2.separated-list.single-item > li {
  padding: 6px;
  border: var(--dnd5e-border-gold);
  box-shadow: 0 0 6px var(--dnd5e-shadow-15);
}
.dnd5e2 .separated-list.single-item > li .details,
.dnd5e2.separated-list.single-item > li .details {
  align-items: center;
}
.dnd5e2 .separated-list.single-item > li .control-button,
.dnd5e2.separated-list.single-item > li .control-button {
  --size: 24px;
}
.dnd5e2 .separated-list.single-item document-tags,
.dnd5e2.separated-list.single-item document-tags {
  row-gap: 0;
}
.dnd5e2 .separated-list.single-item document-tags input,
.dnd5e2.separated-list.single-item document-tags input {
  font-size: var(--font-size-11);
}
.dnd5e2 .separated-list.single-item .gold-icon,
.dnd5e2.separated-list.single-item .gold-icon {
  flex: 0 0 24px;
  height: 24px;
  border-width: 1px;
}
.theme-dark :not(.themed) .dnd5e2.sidebar-info h4 {
  color: var(--color-light-1);
}
.theme-light :not(.themed) .dnd5e2.sidebar-info h4 {
  color: var(--color-dark-1);
}
.dnd5e2.sidebar-info ul.links {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  text-transform: uppercase;
  font-size: var(--font-size-11);
  justify-content: center;
}
.dnd5e2 .system-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
}
.dnd5e2 .system-badge > img {
  height: 32px;
  border: none;
  object-fit: contain;
}
.dnd5e2 .system-badge .system-info {
  position: relative;
  font-size: var(--font-size-16);
}
.dnd5e2 .system-badge .system-info i {
  padding-inline-start: 2px;
  font-size: var(--font-size-12);
}
.dnd5e2.sidebar-info {
  margin-bottom: -0.5rem;
}
.dnd5e2.sidebar-info .system-badge {
  margin-top: 0.5rem;
}
.dnd5e2.sidebar-info .notification-pip {
  color: var(--color-text-accent);
  font-size: var(--font-size-12);
  top: 4px;
  right: -14px;
}
.dnd5e2.sidebar-info ul.links {
  gap: 0;
  margin-top: 6px;
}
.dnd5e2.sidebar-info ul.links li:not(:last-child)::after {
  content: " • ";
  margin-inline: 3px;
  font-weight: bold;
}
.dnd5e2 .editor.prosemirror .editor-content {
  font-family: var(--dnd5e-font-roboto-condensed);
  font-size: var(--font-size-13);
  scrollbar-width: thin;
  scrollbar-color: var(--dnd5e-color-scrollbar) transparent;
}
.dnd5e2 .editor.prosemirror .editor-content::-webkit-scrollbar-track {
  box-shadow: none;
  border-radius: 0;
}
.dnd5e2 .editor.prosemirror .editor-content::-webkit-scrollbar-thumb {
  border: none;
  background: var(--dnd5e-color-scrollbar);
}
.dnd5e2 .editor.prosemirror code-mirror .cm-scroller {
  scrollbar-width: thin;
  scrollbar-color: var(--dnd5e-color-scrollbar) transparent;
}
.dnd5e2 .editor.prosemirror code-mirror .cm-scroller::-webkit-scrollbar-track {
  box-shadow: none;
  border-radius: 0;
}
.dnd5e2 .editor.prosemirror code-mirror .cm-scroller::-webkit-scrollbar-thumb {
  border: none;
  background: var(--dnd5e-color-scrollbar);
}
.dnd5e2 code-mirror:focus-within::after {
  content: unset;
}
.dnd5e2#bastion-turn {
  pointer-events: all;
  margin: 0 0 -8px;
  color: var(--color-text-light-highlight);
  width: var(--players-width, 200px);
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--color-border-dark);
  cursor: var(--cursor-pointer);
  height: 40px;
}
.dnd5e2#bastion-turn:hover {
  border-color: var(--color-border-highlight-alt);
  box-shadow: 0 0 10px var(--color-shadow-highlight);
}
.dnd5e2#pause {
  animation: none;
}
.dnd5e2#pause.paused {
  display: block;
}
.dnd5e2#pause > div {
  position: absolute;
  inset: 0;
  justify-content: center;
  animation: pulsate 3s infinite ease-in-out;
}
.dnd5e2#pause img {
  opacity: 0.75;
  position: absolute;
  width: 100%;
  height: 145px;
}
.dnd5e2#pause figcaption {
  color: var(--color-text-light-0);
  font-size: var(--font-size-46);
  text-shadow: 2px 2px 2px var(--color-shadow-dark);
  font-family: var(--dnd5e-font-modesto);
  font-weight: bold;
  letter-spacing: 2px;
  padding: 0;
  margin: 0;
  position: relative;
}
@keyframes pulsate {
  0% {
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  }
  100% {
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
}
@media (prefers-reduced-motion) {
  .dnd5e2#pause {
    animation: none;
  }
}
/* ---------------------------------- */
/*  Currency                          */
/* ---------------------------------- */
:is(.dnd5e2, .dnd5e2-journal) :is(i, span).currency {
  width: 1em;
  height: 1em;
  display: inline-block;
  background: transparent no-repeat center / contain;
}
/* ---------------------------------- */
/*  Document Sheets                   */
/* ---------------------------------- */
.dnd5e2.sheet.locked a:not(.always-interactive, .content-link, .roll-link, .inline-roll, [href]) {
  cursor: var(--cursor-default);
}
.dnd5e2.sheet.locked a:not(.always-interactive, .content-link, .roll-link, .inline-roll, [href]):hover {
  text-shadow: unset;
}
/* ---------------------------------- */
/*  App V2                            */
/* ---------------------------------- */
.dnd5e2.application {
  --color-scrollbar: var(--dnd5e-color-scrollbar);
  background: var(--dnd5e-application-background);
  border: var(--dnd5e-border-gold);
  color: var(--color-text-primary);
  line-height: normal;
  /* Tabs */
}
.dnd5e2.application .window-resize-handle {
  filter: var(--window-resize-handle-filter, none);
}
.dnd5e2.application:not(.minimized) .window-header {
  position: relative;
  overflow: visible;
  justify-content: flex-end;
  margin-block-end: calc(var(--font-size-24) + 6px);
  --color-header-background: none;
}
.dnd5e2.application:not(.minimized) .window-header:has(h2:not(:empty)) {
  margin-block-end: calc(var(--font-size-24) + 12px);
}
.dnd5e2.application:not(.minimized) .window-header h1,
.dnd5e2.application:not(.minimized) .window-header h2 {
  position: absolute;
  inset-inline: 0;
  color: var(--color-text-primary);
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
  text-align: center;
  z-index: -1;
}
.dnd5e2.application:not(.minimized) .window-header h1 {
  inset-block-start: calc(var(--header-height) - 20px);
  font-size: var(--font-size-24);
}
.dnd5e2.application:not(.minimized) .window-header h2 {
  inset-block-start: calc(var(--header-height) + var(--font-size-16));
  margin: 0;
  font-size: var(--font-size-16);
  text-shadow: none;
}
.dnd5e2.application:not(.minimized) .window-header .header-control {
  background: var(--dnd5e-background-25);
}
.dnd5e2.application:not(.minimized) .window-header .window-icon {
  --icon-size: 20px;
  --icon-fill: var(--color-text-secondary);
  margin-right: auto;
  color: var(--icon-fill);
  font-size: calc(var(--icon-size) * 0.75);
}
.dnd5e2.application:not(.minimized) .window-header dnd5e-icon.window-icon {
  margin-block-start: 2px;
}
.dnd5e2.application:not(.minimized) .window-header img.window-icon {
  block-size: calc(var(--icon-size) + 2px);
  inline-size: calc(var(--icon-size) + 2px);
  border: var(--dnd5e-border-gold);
  border-radius: 4px;
}
.dnd5e2.application.minimized .window-header h1 {
  all: revert-layer;
}
.dnd5e2.application.minimized .window-header h2 {
  display: none;
}
.dnd5e2.application.minimized .window-header .header-control {
  all: revert-layer;
  --button-background-color: transparent;
  --button-hover-background-color: transparent;
  padding: 0;
}
.dnd5e2.application.minimized .window-header .header-control:hover,
.dnd5e2.application.minimized .window-header .header-control:focus,
.dnd5e2.application.minimized .window-header .header-control:focus-visible {
  box-shadow: 0 0 6px var(--color-shadow-primary);
}
.dnd5e2.application .window-header {
  --button-size: 20px;
}
.dnd5e2.application .window-header button.header-control {
  --button-size: 20px;
  --color-light-text-heading: var(--color-light-1);
  --button-text-color: var(--color-light-text-heading);
  font-size: var(--font-size-12);
}
.dnd5e2.application .window-header button.header-control:hover {
  color: var(--color-light-text-heading);
}
.dnd5e2.application .window-header dnd5e-icon.window-icon {
  display: block;
}
.dnd5e2.application .window-header slide-toggle {
  transform: scale(0.9);
}
.dnd5e2.application.titlebar:not(.minimized) .window-header {
  margin-block-end: unset;
}
.dnd5e2.application.titlebar:not(.minimized) .window-header .window-title {
  position: unset;
  inset: unset;
  text-align: unset;
  font-size: var(--font-size-13);
  font-weight: normal;
}
.dnd5e2.application .window-content {
  background: transparent;
  padding-block-start: 8px;
  padding-block-end: 14px;
  padding-inline: 14px;
  overflow-y: auto;
}
.dnd5e2.application .window-content > :is(section, fieldset) > .note {
  --note-color: var(--dnd5e-color-note-info);
  position: relative;
  margin-block-end: 0;
  border-radius: 4px;
  border: 1px solid var(--note-color);
  padding-block: 8px;
  padding-inline-start: 14px;
  padding-inline-end: 10px;
  background: color-mix(in oklab, var(--note-color), transparent 80%);
  font-size: var(--font-size-12);
}
.dnd5e2.application .window-content > :is(section, fieldset) > .note::before {
  --marker-size: 14px;
  position: absolute;
  width: var(--marker-size);
  height: var(--marker-size);
  border-radius: 100%;
  inset-block: calc(50% - var(--marker-size) / 2);
  inset-inline-start: calc(-1 * var(--marker-size) / 2);
  align-content: center;
  background: var(--note-color);
  color: var(--dnd5e-color-parchment);
  font-family: var(--font-awesome);
  font-size: calc(var(--marker-size) * 0.75);
  font-weight: bold;
  text-align: center;
}
.dnd5e2.application .window-content > :is(section, fieldset) > .note.info::before {
  content: "\f129";
}
.dnd5e2.application .window-content > :is(section, fieldset) > .note.warn {
  --note-color: var(--dnd5e-color-note-warn);
}
.dnd5e2.application .window-content > :is(section, fieldset) > .note.warn::before {
  content: "\21";
}
.dnd5e2.application .window-content > section:empty {
  display: none;
}
.dnd5e2.application:where(:not(.minimized)) .window-content,
.dnd5e2.application .window-content > .column-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dnd5e2.application:not(.titlebar) .window-content {
  margin-block-start: -8px;
}
.dnd5e2.application .sheet-tabs {
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-13);
  font-weight: bold;
  text-transform: uppercase;
  align-items: start;
  border: none;
  margin: 0 0 8px;
}
.dnd5e2.application .sheet-tabs [data-tab] {
  flex: 1;
  padding: 0;
  line-height: 1;
  color: var(--color-text-secondary);
}
.dnd5e2.application .sheet-tabs [data-tab] label {
  padding-bottom: 1px;
}
.dnd5e2.application .sheet-tabs [data-tab].active {
  color: var(--color-text-primary);
  text-shadow: none;
}
.dnd5e2.application .sheet-tabs [data-tab].active label,
.dnd5e2.application .sheet-tabs [data-tab].active span {
  border-bottom: 3px solid var(--dnd5e-color-gold);
}
.dnd5e2.application .sheet-tabs.nested-tabs {
  position: relative;
  margin-bottom: 17px;
}
.dnd5e2.application .sheet-tabs.nested-tabs::after {
  content: "";
  position: absolute;
  inset: auto 0 -14px 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--dnd5e-color-gold), transparent);
}
.dnd5e2.application .tab[data-tab] {
  flex-direction: column;
  gap: 8px;
}
.dnd5e2.application .tab[data-tab].active {
  display: flex;
}
dialog.dnd5e2.application {
  margin: 0;
  padding: 0;
}
/* ---------------------------------- */
/*  Dialogs                           */
/* ---------------------------------- */
.dnd5e2.dialog {
  background: url("ui/texture-gray1.webp") no-repeat top left, url("ui/texture-gray2.webp") no-repeat bottom right, var(--dnd5e-color-parchment);
  border: 1px solid var(--dnd5e-color-gold);
}
.dnd5e2.dialog > .window-content {
  background: transparent;
}
.dnd5e2.dialog > .window-header .window-title {
  visibility: hidden;
}
.dnd5e2.dialog form {
  padding: 0 0.75rem 0.75rem;
}
.dnd5e2.dialog form > header {
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
  font-size: var(--font-size-24);
  text-align: center;
  margin-bottom: 0.75rem;
}
.dnd5e2.dialog .dialog-buttons {
  padding: 0.5rem;
  gap: 0.5rem;
}
.dnd5e2.dialog .dialog-buttons button {
  background: var(--dnd5e-color-card);
  border: 1px solid var(--color-border-light-2);
}
.dnd5e2.dialog .dialog-buttons button.default {
  border-color: var(--dnd5e-color-gold);
}
.dnd5e2.dialog.create-document .document-name:hover,
.dnd5e2.dialog.create-document .document-name:focus {
  box-shadow: none;
}
.dnd5e2.dialog-lg .window-resize-handle {
  inset: auto 0 0 auto;
  z-index: 1;
}
/* ---------------------------------- */
/*  Skill Configuration Dialog        */
/* ---------------------------------- */
.dnd5e2.config-sheet.skills [data-application-part="traits"].card {
  display: block;
  padding: 6px 10px;
}
.dnd5e2.config-sheet.skills .skills-list {
  --skill-rows: 9;
  gap: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1px), 0 calc(100% - 1px));
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--skill-rows), auto);
}
.dnd5e2.config-sheet.skills .skill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  margin-bottom: 0;
  border-bottom: var(--dnd5e-border-dotted);
}
.dnd5e2.config-sheet.skills .skill-row .name {
  font-size: var(--font-size-14);
  font-family: var(--dnd5e-font-roboto-condensed);
  flex: 1;
}
.dnd5e2.config-sheet.skills .skill-row .bonus {
  width: 20px;
  text-align: center;
  font-size: var(--font-size-14);
  font-weight: bold;
}
.dnd5e2.config-sheet.skills .skill-row .sign {
  color: var(--color-text-tertiary);
}
/* ---------------------------------- */
/*  Roll Configuration Dialog         */
/* ---------------------------------- */
.dnd5e2.application.roll-configuration .rolls .dice {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dnd5e2.application.roll-configuration .rolls .dice li {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dnd5e2.application.roll-configuration .rolls .dice img {
  border: none;
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: bottom;
}
.dnd5e2.application.roll-configuration .rolls .dice .label {
  display: block;
  width: 50%;
  text-align: center;
  margin-top: -6px;
  color: var(--dnd5e-color-gold);
  padding: 2px 0;
  background: var(--dnd5e-color-black);
  border-radius: 3px;
}
.dnd5e2.application.roll-configuration .rolls .formulas {
  padding: 6px;
}
.dnd5e2.application.roll-configuration .rolls .formulas li .formula-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dnd5e2.application.roll-configuration .rolls .formulas .formula {
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
}
.dnd5e2.application.roll-configuration .rolls .formulas .label {
  --icon-size: 20px;
  --icon-fill: var(--activity-icon-color);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
  font-style: italic;
  font-size: var(--font-size-12);
}
.dnd5e2.application.roll-configuration .dialog-buttons {
  gap: 6px;
}
/* ---------------------------------- */
/*  Config Sheets                     */
/* ---------------------------------- */
.dnd5e2.config-sheet .window-content > section:is(.flexcol, .flexrow) {
  gap: 12px;
}
.dnd5e2.config-sheet .window-content .final-value {
  font-size: var(--font-size-32);
  text-align: center;
}
.dnd5e2.config-sheet .window-content .form-group .plusSign,
.dnd5e2.config-sheet .window-content .form-group .minusSign {
  flex: 0 0 1.5em;
  font-size: var(--font-size-16);
  text-align: center;
}
.dnd5e2.config-sheet .window-content .form-group .integer {
  padding-inline-start: 4px;
}
.dnd5e2.config-sheet .header {
  margin-inline: -10px;
  padding-block: 3px 2px;
  padding-inline: 10px;
  border-radius: 0;
}
/* ---------------------------------- */
/*  Armor Class Config Sheet          */
/* ---------------------------------- */
.dnd5e2.armor-class.config-sheet .equipped {
  display: grid;
  grid-template-columns: [name] 4fr [armorValue] 1fr [magicalBonus] 1fr;
}
.dnd5e2.armor-class.config-sheet .equipped .header,
.dnd5e2.armor-class.config-sheet .equipped .form-group {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}
.dnd5e2.armor-class.config-sheet .equipped .form-group {
  margin-inline: -0.75em;
  padding-inline: 0.75em;
}
.dnd5e2.armor-class.config-sheet .equipped .form-group:nth-child(even) {
  background: var(--dnd5e-color-table-row-even);
}
.dnd5e2.armor-class.config-sheet .equipped .form-group:nth-child(odd) {
  background: var(--dnd5e-color-table-row-odd);
}
.dnd5e2.armor-class.config-sheet .equipped .name {
  grid-column: name;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dnd5e2.armor-class.config-sheet .equipped .name .gold-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}
.dnd5e2.armor-class.config-sheet .equipped .name .content-link > i {
  display: none;
}
.dnd5e2.armor-class.config-sheet .equipped .armor-value {
  grid-column: armorValue;
}
.dnd5e2.armor-class.config-sheet .equipped .magical-bonus {
  grid-column: magicalBonus;
}
.dnd5e2.armor-class.config-sheet .equipped .armor-value.empty,
.dnd5e2.armor-class.config-sheet .equipped .magical-bonus.empty {
  color: var(--color-text-tertiary);
}
/* ---------------------------------- */
/*  Creature Type Config Sheet        */
/* ---------------------------------- */
.dnd5e2.creature-type.config-sheet .card {
  padding: 6px 10px;
}
.dnd5e2.creature-type.config-sheet .final-value {
  font-size: var(--font-size-24);
}
.dnd5e2.creature-type.config-sheet .types-list {
  --type-rows: 8;
  gap: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1px), 0 calc(100% - 1px));
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--type-rows), auto);
}
.dnd5e2.creature-type.config-sheet .type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 0;
  border-block-end: var(--dnd5e-border-dotted);
  padding: 0;
}
.dnd5e2.creature-type.config-sheet .type-row label {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
}
.dnd5e2.creature-type.config-sheet .type-row label:hover {
  cursor: var(--cursor-pointer);
  background: var(--radio-list-hover);
}
.dnd5e2.creature-type.config-sheet .type-row.custom label {
  padding-block: 0;
  padding-inline: 6px 10px;
}
.dnd5e2.creature-type.config-sheet .type-row label,
.dnd5e2.creature-type.config-sheet .type-row input[type="text"] {
  font-size: var(--font-size-14);
  font-family: var(--dnd5e-font-roboto-condensed);
  flex: 1;
}
.dnd5e2.creature-type.config-sheet .type-row input[type="radio"] {
  margin-block-end: 4px;
}
.dnd5e2.creature-type.config-sheet .type-row input[type="text"] {
  padding: 6px;
}
/* ---------------------------------- */
/*  Hit Dice Config Sheet             */
/* ---------------------------------- */
.dnd5e2.hit-dice.config-sheet fieldset {
  padding-block: 8px;
}
.dnd5e2.hit-dice.config-sheet .form-group .separator {
  flex: 0;
}
.dnd5e2.hit-dice.config-sheet .form-group .max {
  font-size: var(--font-size-12);
  text-align: center;
}
.dnd5e2.hit-dice.config-sheet .form-group:not(:last-of-type) {
  border-block-end: var(--dnd5e-border-dotted);
  padding-block-end: 4px;
}
.dnd5e2.hit-dice.config-sheet input:invalid {
  outline: 1px solid var(--dnd5e-color-failure);
}
/* ---------------------------------- */
/*  Hit Points Config Sheet           */
/* ---------------------------------- */
.dnd5e2.hit-points.config-sheet .multiplier {
  flex: 0 0 4em;
  text-align: center;
}
.dnd5e2.hit-points.config-sheet .multiplier .times {
  font-size: var(--font-size-14);
}
.dnd5e2.hit-points.config-sheet .form-group > label .content-link {
  padding: 0;
}
.dnd5e2.hit-points.config-sheet .form-group > label .content-link > i {
  display: none;
}
/* ---------------------------------- */
/*  Habitat Config Sheet              */
/* ---------------------------------- */
.dnd5e2.habitat-config .form-grid {
  --rows: 7;
  gap: 0;
  clip-path: polygon(0 1px, 100% 1px, 100% 100%, 0 100%);
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--rows), auto);
}
.dnd5e2.habitat-config .form-grid li {
  margin: 0;
  border-top: var(--dnd5e-border-dotted);
  padding-left: 10px;
}
.dnd5e2.habitat-config .form-grid li.subtypes {
  border: none;
  position: relative;
  padding-left: 28px;
  margin-top: -1px;
}
.dnd5e2.habitat-config .form-grid li.subtypes::before {
  content: "┗";
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: var(--font-size-10);
  font-weight: bold;
  color: var(--color-text-secondary);
}
.dnd5e2.habitat-config .form-grid li input {
  font-size: var(--font-size-13);
  font-family: var(--dnd5e-font-roboto-condensed);
  padding: 4px;
}
.dnd5e2.habitat-config label.checkbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-13);
}
.dnd5e2.habitat-config label.checkbox > span {
  line-height: 2;
}
.dnd5e2.habitat-config fieldset > input {
  flex-shrink: 0;
}
/* ---------------------------------- */
/*  Transform Dialog                  */
/* ---------------------------------- */
.dnd5e2.transformation {
  --section-gap: 8px;
}
.dnd5e2.transformation .window-content {
  display: grid;
  gap: var(--section-gap);
}
.dnd5e2.transformation [data-application-part="details"] {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-18);
  --icon-fill: var(--activity-icon-color);
}
.dnd5e2.transformation [data-application-part="details"] > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.dnd5e2.transformation [data-application-part="details"] > div.source {
  flex-direction: row-reverse;
}
.dnd5e2.transformation [data-application-part="details"] > div img {
  block-size: 48px;
  inline-size: 48px;
  border: none;
}
.dnd5e2.transformation [data-container-id="settings-area"] {
  display: grid;
  grid-template-columns: [presets] 200px [settings] auto;
  gap: var(--section-gap);
}
.dnd5e2.transformation [data-application-part="presets"] button {
  display: grid;
  grid-template-columns: 30px 1fr;
}
.dnd5e2.transformation [data-application-part="presets"] button span {
  text-align: start;
}
.dnd5e2.transformation [data-application-part="presets"] button[aria-pressed="true"] {
  --button-background-color: var(--button-toggle-depressed-color);
  box-shadow: inset 0 0 8px var(--dnd5e-shadow-15);
}
.dnd5e2.transformation [data-application-part="settings"] {
  display: grid;
  grid-template-areas: "keep merge" "keep effects" "keep others";
  gap: var(--section-gap);
}
.dnd5e2.transformation [data-application-part="settings"] .category-effects {
  grid-area: effects;
}
.dnd5e2.transformation [data-application-part="settings"] .category-keep {
  grid-area: keep;
}
.dnd5e2.transformation [data-application-part="settings"] .category-merge {
  grid-area: merge;
}
.dnd5e2.transformation [data-application-part="settings"] .category-others {
  grid-area: others;
}
/* ---------------------------------- */
/*  Treasure Config Sheet             */
/* ---------------------------------- */
.dnd5e2.treasure-config label.checkbox {
  font-size: var(--font-size-13);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dnd5e2.treasure-config label.checkbox > span {
  line-height: 2;
}
.dnd5e2.treasure-config li {
  margin: 0;
}
.dnd5e2.treasure-config li:not(:last-child) {
  border-bottom: var(--dnd5e-border-dotted);
}
/* ---------------------------------- */
/*  Traits Config Sheet               */
/* ---------------------------------- */
.dnd5e2.trait-selector [data-application-part="traits"] {
  gap: 12px;
}
.dnd5e2.trait-selector:not(.trait-columns) [data-application-part="traits"] {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.dnd5e2.trait-selector:not(.trait-columns) [data-application-part="traits"] fieldset.traits {
  flex: 1 1 40%;
}
.dnd5e2.trait-selector:not(.trait-columns) [data-application-part="traits"] fieldset:not(.traits) {
  flex: 1 0 100%;
}
.dnd5e2.trait-selector.trait-columns [data-application-part="traits"] {
  column-count: 2;
}
.dnd5e2.trait-selector.trait-columns [data-application-part="traits"] .traits:not(:last-of-type) {
  margin-block-end: 12px;
}
.dnd5e2.trait-selector .traits {
  --checkbox-size: 16px;
  display: inline-grid;
  grid-template-columns: [name] 2fr [proficiency] 1fr;
  width: 100%;
  break-inside: avoid-column;
}
.dnd5e2.trait-selector .traits > .hint {
  grid-column: 1 / -1;
}
.dnd5e2.trait-selector .traits .header,
.dnd5e2.trait-selector .traits ol,
.dnd5e2.trait-selector .traits li {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}
.dnd5e2.trait-selector .traits .name {
  grid-column: name;
}
.dnd5e2.trait-selector .traits .trait-list {
  gap: 4px;
}
.dnd5e2.trait-selector .traits .proficiency {
  grid-column: proficiency;
  display: flex;
  justify-content: end;
  align-items: center;
}
.dnd5e2.trait-selector .traits li {
  align-items: center;
}
.dnd5e2.trait-selector .traits li:not(:last-of-type) {
  border-bottom: var(--dnd5e-border-dotted);
  padding-bottom: 4px;
}
.dnd5e2.trait-selector .traits li.category {
  gap: 4px;
}
.dnd5e2.trait-selector .traits li li {
  position: relative;
  margin: 0 0 4px 0;
}
.dnd5e2.trait-selector .traits li li::before {
  content: "┗";
  position: absolute;
  left: -1.8em;
  font-size: var(--font-size-10);
  font-weight: bold;
  top: 3px;
  color: var(--color-text-secondary);
}
/* ---------------------------------- */
.dnd5e2.tools.trait-selector .traits {
  grid-template-columns: [proficiency] 15px [name] 1fr [bonus] 20px [config] 20px;
}
.dnd5e2.tools.trait-selector .traits li {
  padding-block-start: 1px;
}
.dnd5e2.tools.trait-selector .traits li:not(:last-of-type) {
  padding-block-end: 4px;
}
.dnd5e2.tools.trait-selector .traits .bonus {
  grid-column: bonus;
}
/* ---------------------------------- */
.dnd5e2.weapons.trait-selector .traits {
  grid-template-columns: [name] 2fr [proficiency] 1fr [mastery] 1fr;
}
.dnd5e2.weapons.trait-selector .traits .header .proficiency i {
  margin-right: 2px;
}
.dnd5e2.weapons.trait-selector .traits .mastery {
  grid-column: mastery;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* ---------------------------------- */
.dnd5e2.damages-config.trait-selector .traits {
  grid-template-columns: [icon] 16px [name] 2fr [proficiency] 1fr;
}
.dnd5e2.damages-config.trait-selector .traits .trait-list li dnd5e-icon,
.dnd5e2.damages-config.trait-selector .traits .trait-list li i {
  --icon-fill: var(--damage-icon-color);
  color: var(--damage-icon-color);
}
.dnd5e2.damages-config.trait-selector .traits .trait-list li > i {
  font-family: var(--font-awesome);
  font-weight: bold;
  font-style: normal;
}
.dnd5e2.damages-config.trait-selector .traits .trait-list li > i.ada::before {
  content: "\f132";
}
.dnd5e2.damages-config.trait-selector .traits .trait-list li > i.mgc::before {
  content: "\f72b";
}
.dnd5e2.damages-config.trait-selector .traits .trait-list li > i.sil::before {
  content: "\53";
}
/* ---------------------------------- */
/*  Rest Dialogs                      */
/* ---------------------------------- */
.rest.application .window-content > section.flexcol {
  gap: 12px;
}
.rest.application [data-action="rollHitDie"] {
  flex: 0;
}
/* ---------------------------------- */
/*  Create Document Dialog            */
/* ---------------------------------- */
.dnd5e2.create-document:not(.minimized) .window-header {
  margin-block-end: 0;
}
.dnd5e2.create-document:not(.minimized) .window-header .window-title {
  display: none;
}
.dnd5e2.create-document .window-content header {
  padding: 0 0.5rem;
}
.dnd5e2.create-document [data-application-part="content"] {
  display: contents;
}
.dnd5e2.create-document .document-name {
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
  font-size: var(--font-size-24);
  text-align: center;
  background: none;
}
.dnd5e2.create-document .document-name:enabled:is(:hover, :focus, :focus-visible) {
  box-shadow: none;
}
.dnd5e2.create-document ol {
  padding: 0.25rem 0.5rem;
}
.dnd5e2.create-document ol li {
  border-bottom: var(--dnd5e-border-dotted);
}
.dnd5e2.create-document ol li:has(input:enabled):hover {
  background: var(--radio-list-hover);
}
.dnd5e2.create-document ol li:has(input:disabled) {
  opacity: 0.5;
}
.dnd5e2.create-document ol li:last-child {
  border: none;
}
.dnd5e2.create-document ol label {
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: var(--cursor-pointer);
}
.dnd5e2.create-document ol label > span {
  flex: 1;
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
  font-size: var(--font-size-14);
}
.dnd5e2.create-document ol dnd5e-icon,
.dnd5e2.create-document ol img {
  --icon-fill: var(--color-text-primary);
  --icon-size: 32px;
  width: 32px;
  height: 32px;
  display: block;
}
.dnd5e2.create-document ol img {
  object-fit: contain;
  object-position: center;
  border: none;
}
.dnd5e2.create-document select {
  border: 1px solid var(--color-border-light-2);
  background: var(--dnd5e-background-10);
  padding: 0 0.5rem;
  flex: none;
}
.dnd5e2.create-document .form-footer {
  flex-wrap: wrap;
}
.dnd5e2.create-document .form-footer select {
  flex: 1;
  min-block-size: 28px;
}
.dnd5e2.create-document .form-footer button {
  flex: 1 0 50%;
}
/* ---------------------------------- */
/*  Active Effects Pane               */
/* ---------------------------------- */
.dnd5e2 .effects-element {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: unset;
}
.dnd5e2 .effects-element .conditions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  clip-path: polygon(0 0, calc(100% - 1px) 0, calc(100% - 1px) calc(100% - 1px), 0 calc(100% - 1px));
  --icon-size: 18px;
}
.dnd5e2 .effects-element .conditions-list .condition {
  display: flex;
  gap: 0.5rem;
  padding: 0.5625rem 0.75rem;
  align-items: center;
  cursor: var(--cursor-pointer);
  border: none;
  border-bottom: var(--border-style);
  border-right: var(--border-style);
  color: var(--color-text-tertiary);
  background: unset;
  --icon-fill: var(--color-text-tertiary);
  --icon-stroke: var(--dnd5e-color-card);
}
.dnd5e2 .effects-element .conditions-list .condition.active {
  color: var(--color-text-primary);
  --icon-fill: var(--color-text-primary);
}
.dnd5e2 .effects-element .conditions-list .condition:hover {
  background: var(--dnd5e-condition-hover);
}
.dnd5e2 .effects-element .conditions-list .condition .icon {
  display: grid;
}
.dnd5e2 .effects-element .conditions-list .condition > i {
  --content-link-icon-color: currentcolor;
  font-size: unset;
  margin: 0;
  line-height: normal;
}
.dnd5e2 .effects-element .conditions-list .condition .name-stacked {
  flex: 1;
}
.dnd5e2 .effects-element .conditions-list .condition .name-stacked .title {
  font-size: var(--font-size-13);
}
.active-effect-config section.changes header div.key i {
  margin-left: 0.25rem;
  cursor: help;
}
/* ---------------------------------- */
/*  Collapsible Content               */
/* ---------------------------------- */
.dnd5e2 .collapsible.collapsed .fa-caret-down,
.collapsible.dnd5e2-collapsible.collapsed .fa-caret-down {
  transform: rotate(-90deg);
}
.dnd5e2 .collapsible.collapsed .collapsible-content,
.collapsible.dnd5e2-collapsible.collapsed .collapsible-content {
  grid-template-rows: 0fr;
}
.dnd5e2 .collapsible .fa-caret-down,
.collapsible.dnd5e2-collapsible .fa-caret-down {
  transition: transform 250ms ease;
}
.dnd5e2 .collapsible .collapsible-content,
.collapsible.dnd5e2-collapsible .collapsible-content {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 250ms ease;
}
.dnd5e2 .collapsible .collapsible-content > .wrapper,
.collapsible.dnd5e2-collapsible .collapsible-content > .wrapper {
  overflow: hidden;
}
/* ---------------------------------- */
/*  Combat Tracker                    */
/* ---------------------------------- */
.combat-sidebar .combatant-group {
  display: block;
}
.combat-sidebar .combatant-group .fa-chevron-down {
  transition: transform 250ms ease;
}
.combat-sidebar .combatant-group.collapsed .fa-chevron-down {
  transform: rotate(-90deg);
}
.combat-sidebar .combatant-group.active::after,
.combat-sidebar .combatant-group.active::before {
  transition: border-color 250ms ease;
}
.combat-sidebar .combatant-group.active:not(.collapsed)::after {
  border-color: color-mix(in oklab, var(--color-warm-2), transparent);
}
.combat-sidebar .combatant-group .group-children {
  padding: 0;
}
.combat-sidebar .combatant-group .group-header {
  cursor: var(--cursor-pointer);
}
.combat-sidebar .combatant-group .group-numbers {
  flex: 0 0 20px;
  color: var(--color-text-light-5);
  font-size: var(--font-size-12);
  line-height: 20px;
}
/* Disable pointer events on the target while the context menu is open as a workaround for core tooltip logic not
   accommodating fixed position context menus */
.dnd5e2 .context {
  pointer-events: none;
}
/* ---------------------------------- */
/*  ProseMirror                       */
/* ---------------------------------- */
#prosemirror-dropdown {
  --dropdown-background: var(--dnd5e-color-card);
  --dropdown-border: transparent;
  --color-control-hover: var(--dnd5e-color-parchment);
}
#prosemirror-dropdown ul {
  box-shadow: 0 3px 6px var(--dnd5e-shadow-45);
}
#prosemirror-dropdown li.divider {
  border-color: #ddd;
}
#prosemirror-dropdown.theme-dark {
  --dropdown-background: var(--dnd5e-color-blue-gray-2);
  --dropdown-border: transparent;
  --color-control-hover: var(--dnd5e-color-blue-gray-3);
  color: var(--color-text-light-6);
}
#prosemirror-dropdown.theme-dark li.divider {
  border-color: var(--dnd5e-color-blue-gray-3);
}
:is(.dnd5e2, .dnd5e2-journal) .prosemirror menu .pm-dropdown {
  background: none;
}
:is(.dnd5e2, .dnd5e2-journal) .prosemirror menu .pm-dropdown:hover {
  background: var(--color-hover-bg);
}
:is(.dnd5e2, .dnd5e2-journal) .prosemirror menu button {
  text-transform: unset;
  width: unset;
  box-shadow: none;
  font-family: var(--font-primary);
  font-size: var(--font-size-14);
  font-weight: normal;
  height: min(var(--menu-height), var(--menu-button-height, 100px));
  line-height: min(var(--menu-height), var(--menu-button-height, 100px));
  min-height: unset;
  background: transparent;
  border: none;
  padding: 0 5px;
  margin: 0;
  gap: 8px;
}
:is(.dnd5e2, .dnd5e2-journal) .prosemirror menu button:hover,
:is(.dnd5e2, .dnd5e2-journal) .prosemirror menu button.active {
  box-shadow: none;
  background: var(--color-hover-bg);
  color: var(--color-form-label-hover);
}
/* ---------------------------------- */
/*  Keybindings                       */
/* ---------------------------------- */
#keybindings [data-tab="system"] .control.conflicts {
  display: none;
}
.dnd5e2 {
  /* Reset button & input styles */
  /* Inputs & Buttons */
  /* Reset select styles */
  /* Reset textarea styles */
  /* Fieldset */
  /* Form Groups */
  /* Hints */
  /* Form Fields */
  /* Numeric Range Fields */
  /* Checkboxes */
  /* Radio Buttons */
  /* Checkbox Grid */
  /* FA icon-based slide-toggle */
  /* Control buttons */
  /* Pips */
}
.dnd5e2 input.uninput,
.dnd5e2 button.unbutton {
  --border: none;
  border: var(--border);
  box-shadow: none;
  outline: none;
}
.dnd5e2 input.uninput:hover,
.dnd5e2 button.unbutton:hover,
.dnd5e2 input.uninput:focus,
.dnd5e2 button.unbutton:focus {
  box-shadow: none;
  border: var(--border);
  outline: none;
}
.dnd5e2 input.uninput {
  color: inherit;
  font-weight: inherit;
  height: unset;
}
.dnd5e2 button.unbutton {
  background: none;
  margin: 0;
  border-radius: 0;
  line-height: normal;
}
.dnd5e2 button.unbutton > i {
  margin: 0;
}
.dnd5e2 button.unbutton:hover,
.dnd5e2 button.unbutton:focus {
  background: none;
}
.dnd5e2 button.dice-button {
  padding: 6px 8px;
}
.dnd5e2 button.dice-button > i {
  margin: 0;
}
.dnd5e2 fieldset.unfieldset {
  display: contents;
}
.dnd5e2 fieldset.unfieldset + fieldset.unfieldset > .form-group.full-width {
  margin-top: 2px;
}
.dnd5e2 input,
.dnd5e2 button {
  transition: all 250ms ease;
}
.dnd5e2 button {
  --button-focus-outline-color: none;
  --button-text-color: var(--color-text-primary);
  --button-hover-text-color: var(--color-text-primary);
  --button-background-color: var(--dnd5e-background-card);
  --button-hover-background-color: var(--button-background-color);
  font-size: var(--font-size-13);
  text-transform: uppercase;
  padding: 3px;
  box-shadow: 0 0 8px var(--dnd5e-shadow-15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: unset;
}
.dnd5e2 button:not(.icon) {
  font-family: var(--dnd5e-font-roboto);
  font-weight: bold;
}
.dnd5e2 button:disabled {
  --button-text-color: var(--color-text-inactive);
  --button-hover-text-color: var(--color-text-inactive);
  cursor: var(--cursor-default);
}
.dnd5e2 button:hover:not(:disabled),
.dnd5e2 button:focus {
  box-shadow: 0 0 5px var(--color-shadow-primary);
}
.dnd5e2 button.radio-button {
  width: 13px;
  height: 13px;
  border-radius: 100%;
  background: none;
  box-shadow: inset 0 0 6px var(--dnd5e-shadow-45);
  padding: 3px;
  display: grid;
  border: none;
  justify-content: unset;
}
.dnd5e2 button.radio-button:hover {
  filter: drop-shadow(0 0 6px var(--dnd5e-color-gold));
}
.dnd5e2 button.radio-button[aria-pressed="true"]::before {
  content: "";
  width: 100%;
  height: 100%;
  display: inline-block;
  border-radius: 100%;
  background: var(--color-border-dark-5);
}
.dnd5e2 .split-button {
  --control-hover-border-color: var(--dnd5e-color-gold);
  --control-active-border-color: var(--dnd5e-color-gold);
}
.dnd5e2 .split-button .split-control {
  --button-border-color: var(--control-border-color);
  --button-background-color: var(--control-background-color, transparent);
  --button-background-hover-color: var(--control-background-color, transparent);
  border-radius: 0;
  border-inline-end-width: 0;
  padding: 0 8px;
  box-shadow: none;
}
.dnd5e2 .split-button .split-control:first-child {
  border-start-start-radius: 4px;
  border-end-start-radius: 4px;
}
.dnd5e2 .split-button .split-control:last-child {
  border-start-end-radius: 4px;
  border-end-end-radius: 4px;
  border-inline-end-width: 1px;
}
.dnd5e2 .split-button .split-control:hover {
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2 .split-button .split-control:hover + .split-control {
  border-inline-start-color: var(--control-hover-border-color);
}
.dnd5e2 .split-button .split-control[aria-pressed=true] {
  --button-background-color: var(--control-active-background-color);
  border-color: var(--control-active-border-color);
}
.dnd5e2 .split-button .split-control[aria-pressed=true] + .split-control {
  border-inline-start-color: var(--control-active-border-color);
}
.dnd5e2 .split-button .split-control:focus {
  border-color: var(--control-active-border-color);
}
.dnd5e2 .split-button .split-control:focus + .split-control {
  border-inline-start-color: var(--control-active-border-color);
}
.dnd5e2 select {
  color: inherit;
}
.dnd5e2 select.unselect {
  border: none;
  padding: 0;
  background: transparent;
  height: unset;
}
.dnd5e2 textarea.untext {
  background: none;
  border: none;
}
.dnd5e2 textarea.untext:focus {
  box-shadow: none;
}
.dnd5e2 .form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.dnd5e2 .form-grid.form-grid-20 > * {
  flex-basis: 20%;
}
.dnd5e2 .form-grid.form-grid-50 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.dnd5e2 .form-grid input[type="text"],
.dnd5e2 .form-grid input[type="number"],
.dnd5e2 .form-grid input[type="search"],
.dnd5e2 .form-grid input[type="file"] {
  --input-background-color: var(--dnd5e-background-parchment);
  border: 2px solid var(--dnd5e-color-gold);
  border-radius: 8px;
  padding: 0.5rem;
  font-size: var(--font-size-14);
  height: unset;
  width: 100%;
}
.dnd5e2 .form-grid input[type="text"]:focus,
.dnd5e2 .form-grid input[type="number"]:focus,
.dnd5e2 .form-grid input[type="search"]:focus,
.dnd5e2 .form-grid input[type="file"]:focus {
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2 .form-grid input[type="number"] {
  font-weight: bold;
}
.dnd5e2 label.input-stack {
  display: flex;
  flex-direction: column;
}
.dnd5e2 label.input-stack span {
  text-align: center;
  font-size: var(--font-size-10);
  color: var(--color-text-secondary);
}
.dnd5e2 label.input-stack input {
  text-align: center;
}
.dnd5e2 label.checkbox {
  cursor: var(--cursor-pointer);
  display: flex;
  align-items: center;
  gap: 4px;
}
.dnd5e2 label.checkbox:has(input[type=checkbox]:disabled, dnd5e-checkbox[disabled]) {
  cursor: var(--cursor-default);
}
.dnd5e2 label.checkbox > span {
  line-height: calc(var(--form-field-height) + 1px);
}
.dnd5e2 fieldset {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 4px;
  border: 1px solid var(--color-fieldset-border);
  margin: 0;
}
.dnd5e2 fieldset > legend {
  text-transform: uppercase;
  font-weight: bold;
  font-size: var(--font-size-11);
  color: var(--fieldset-legend-color);
  padding: 0 6px;
}
.dnd5e2 fieldset > legend > label.checkbox {
  --checkbox-size: 14px;
  font-weight: bold;
  height: 13px;
}
.dnd5e2 fieldset > legend > label.checkbox dnd5e-checkbox {
  margin-bottom: 1px;
}
.dnd5e2 fieldset > .empty {
  padding: 6px;
  font-style: italic;
  text-align: center;
  color: var(--color-text-secondary);
}
.dnd5e2 fieldset.card:not(:has(legend)) {
  padding-block-start: 10px;
}
.dnd5e2 fieldset.card > legend {
  background: var(--dnd5e-background-card);
  position: relative;
  border-radius: 2px;
  padding: 2px 6px 0;
}
.dnd5e2 fieldset.card > legend::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  box-shadow: 0 0 6px var(--dnd5e-shadow-45);
  outline: var(--dnd5e-border-gold);
  z-index: -1;
}
.dnd5e2 fieldset.card > .header {
  font-family: var(--dnd5e-font-roboto-slab);
  font-variant: all-small-caps;
  font-size: var(--font-size-12);
  font-weight: bold;
}
.dnd5e2 fieldset:disabled .form-group label,
.dnd5e2 fieldset:disabled .hint {
  --color-form-hint: var(--color-text-tertiary);
  color: var(--color-text-tertiary);
}
.dnd5e2 .form-group {
  margin: 0;
  /* Split Groups */
  /* Full-Width Groups */
}
.dnd5e2 .form-group > label {
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
  font-size: var(--font-size-12);
}
.dnd5e2 .form-group.label-top {
  --label-height: 10px;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}
.dnd5e2 .form-group.label-top > * {
  flex: unset;
}
.dnd5e2 .form-group.label-top > label {
  font-family: var(--dnd5e-font-roboto);
  text-transform: uppercase;
  font-size: var(--font-size-10);
  font-weight: bold;
  line-height: var(--label-height);
  height: var(--label-height);
}
.dnd5e2 .form-group.label-top > label > p.hint {
  cursor: help;
  font-size: var(--font-size-10);
  display: inline-block;
  margin: 0 0 0 3px;
  line-height: var(--label-height);
  height: var(--label-height);
}
.dnd5e2 .form-group.label-top > label > p.hint:empty {
  min-height: unset;
}
.dnd5e2 .form-group.label-top > label > p.hint:hover {
  text-shadow: 0 0 6px var(--color-shadow-primary);
}
.dnd5e2 .form-group.label-top > label > p.hint::before {
  content: "\f059";
  font-family: var(--font-awesome);
  font-weight: normal;
  color: var(--hint-icon-color);
}
.dnd5e2 .form-group.label-top + .form-group {
  align-self: end;
}
.dnd5e2 .form-group.label-top.checkbox-top {
  flex: 0;
  min-width: max-content;
  align-items: center;
}
.dnd5e2 .form-group.label-top.multi-select {
  position: relative;
}
.dnd5e2 .form-group.label-top.multi-select multi-select .tags.input-element-tags {
  min-height: 10px;
  padding-left: 40%;
}
.dnd5e2 .form-group.label-top.multi-select > label {
  position: absolute;
  inset: auto auto calc(var(--form-field-height) + 2px) 0;
}
.dnd5e2 .form-group label.label-icon {
  position: relative;
}
.dnd5e2 .form-group label.label-icon::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background: transparent no-repeat center / contain;
  margin-left: 3px;
  position: absolute;
}
.dnd5e2 .form-group.split-group > .form-fields.field-groups {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
}
.dnd5e2 .form-group.split-group > .form-fields .field-group {
  display: flex;
  gap: 4px;
}
.dnd5e2 .form-group.split-group > .form-fields .field-group > .form-group {
  flex: 1;
}
.dnd5e2 .form-group.split-group > .form-fields .form-group {
  flex-wrap: nowrap;
}
.dnd5e2 .form-group.split-group > .form-fields .form-group:not(.label-top, .checkbox) {
  gap: 4px;
}
.dnd5e2 .form-group.split-group > .form-fields .form-group > * {
  flex: unset;
}
.dnd5e2 .form-group.split-group > .form-fields > .control-button,
.dnd5e2 .form-group.split-group > .form-fields .field-group > .control-button {
  position: absolute;
  inset: auto 0 0 auto;
}
.dnd5e2 .form-group.split-group > .form-fields .singleton {
  align-self: center;
  margin: 0 6px;
}
.dnd5e2 .form-group.split-group > .form-fields multi-select .tags.input-element-tags .tag {
  background: var(--dnd5e-background-parchment);
}
.dnd5e2 .form-group.split-group.full-width > .form-fields {
  position: relative;
  padding-right: 20px;
}
.dnd5e2 .form-group.full-width {
  padding: 6px;
  box-shadow: 0 0 6px var(--dnd5e-shadow-15);
}
.dnd5e2 .form-group.full-width + .full-width {
  margin-top: 2px;
}
.dnd5e2 .form-group.card {
  background: var(--separated-list-item-background-color);
  border-color: var(--separated-list-item-border-color);
}
.dnd5e2 .form-footer button {
  --button-size: var(--input-height);
}
.dnd5e2 :is(.form-group, fieldset) .hint {
  --color-form-hint: var(--color-text-secondary);
  --color-form-hint-hover: var(--color-form-hint);
  font-size: var(--font-size-11);
  margin: 4px 0 0;
}
.dnd5e2 textarea,
.dnd5e2 select,
.dnd5e2 input[type="text"],
.dnd5e2 input[type="number"],
.dnd5e2 input[type="search"],
.dnd5e2 input[type="file"] {
  --input-box-shadow: none;
  --input-text-color: var(--color-text-primary);
  transition: all 250ms ease, block-size, inline-size;
  line-height: normal;
  outline: none;
}
.dnd5e2 textarea:focus,
.dnd5e2 select:focus,
.dnd5e2 input[type="text"]:focus,
.dnd5e2 input[type="number"]:focus,
.dnd5e2 input[type="search"]:focus,
.dnd5e2 input[type="file"]:focus {
  outline: none;
}
.dnd5e2 textarea:enabled:focus-visible,
.dnd5e2 select:enabled:focus-visible,
.dnd5e2 input[type="text"]:enabled:focus-visible,
.dnd5e2 input[type="number"]:enabled:focus-visible,
.dnd5e2 input[type="search"]:enabled:focus-visible,
.dnd5e2 input[type="file"]:enabled:focus-visible,
.dnd5e2 textarea:enabled:hover,
.dnd5e2 select:enabled:hover,
.dnd5e2 input[type="text"]:enabled:hover,
.dnd5e2 input[type="number"]:enabled:hover,
.dnd5e2 input[type="search"]:enabled:hover,
.dnd5e2 input[type="file"]:enabled:hover {
  border-color: var(--input-hover-border-color);
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2 textarea:disabled,
.dnd5e2 select:disabled,
.dnd5e2 input[type="text"]:disabled,
.dnd5e2 input[type="number"]:disabled,
.dnd5e2 input[type="search"]:disabled,
.dnd5e2 input[type="file"]:disabled {
  background: var(--input-disabled-background-color);
}
.dnd5e2 select,
.dnd5e2 input[type="text"],
.dnd5e2 input[type="number"],
.dnd5e2 input[type="search"],
.dnd5e2 input[type="file"] {
  --input-height: var(--form-field-height);
  padding: 0 6px;
}
.dnd5e2 textarea {
  border: 1px solid var(--input-border-color);
  padding: 6px;
  background: rgba(0, 0, 0, 0.1);
  font-size: var(--font-size-11);
}
.dnd5e2 :is(.form-group, fieldset) :is(select, input):not([type="range"]) {
  font-size: var(--font-size-11);
}
.dnd5e2 input::placeholder,
.dnd5e2 textarea::placeholder {
  opacity: unset;
}
.dnd5e2 input.full-width {
  flex: 0 0 100%;
  margin-top: 4px;
}
.dnd5e2 option,
.dnd5e2 optgroup {
  --color-select-option-bg: var(--dnd5e-background-parchment);
}
.dnd5e2 input[type=number] {
  text-align: center;
}
.dnd5e2 select {
  height: var(--form-field-height);
}
.dnd5e2 select:not(:disabled) {
  cursor: var(--cursor-pointer);
}
.dnd5e2 :is(document-tags, multi-select) .tags.input-element-tags .tag {
  cursor: var(--cursor-pointer);
  font-size: var(--font-size-10);
  border: var(--dnd5e-border-gold);
  border: 1px solid var(--multi-select-tag-border);
  background: var(--multi-select-tag-background);
  border-radius: 3px;
}
.dnd5e2 :is(document-tags, multi-select) .tags.input-element-tags .tag:hover a {
  text-shadow: 0 0 6px var(--color-shadow-primary);
}
.dnd5e2 :is(document-tags, multi-select):has(select:disabled) .tags.input-element-tags .tag {
  cursor: var(--cursor-default);
}
.dnd5e2 :is(document-tags, multi-select):has(select:disabled) .tags.input-element-tags .tag a {
  cursor: var(--cursor-default);
}
.dnd5e2 :is(document-tags, multi-select):has(select:disabled) .tags.input-element-tags .tag:hover a {
  text-shadow: none;
}
.dnd5e2 :is(document-tags, multi-select):has(select:disabled) .tags.input-element-tags .tag .remove {
  display: unset;
}
.dnd5e2 :is(document-tags, multi-select):has(select:disabled) .tags.input-element-tags .tag .fa-xmark {
  display: none;
}
.dnd5e2 multi-select.hidden-tags .tags.input-element-tags {
  display: none;
}
.dnd5e2 :is(file-picker, document-tags) > button {
  height: var(--form-field-height);
  border: var(--dnd5e-border-gold);
}
.dnd5e2 .form-fields.range-fields .sep {
  --icon-size: 16px;
  --icon-fill: var(--color-text-tertiary);
}
.dnd5e2 range-picker input[type="range"] {
  --range-thumb-background-color: var(--dnd5e-color-card);
  --range-thumb-border-color: var(--dnd5e-color-gold);
  --range-track-border-color: transparent;
  border: none;
}
.dnd5e2 range-picker input[type="range"]:not([disabled]):hover,
.dnd5e2 range-picker input[type="range"]:not([disabled]):focus-visible {
  --range-track-border-color: var(--dnd5e-color-gold);
}
.dnd5e2 range-picker input[type="range"]:not([disabled]):hover::-moz-range-track,
.dnd5e2 range-picker input[type="range"]:not([disabled]):focus-visible::-moz-range-track {
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2 range-picker input[type="range"]:not([disabled]):hover::-webkit-slider-runnable-track,
.dnd5e2 range-picker input[type="range"]:not([disabled]):focus-visible::-webkit-slider-runnable-track {
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2 range-picker input[type="range"]::-moz-range-thumb {
  transition: all 250ms ease;
}
.dnd5e2 range-picker input[type="range"]::-moz-range-track {
  transition: all 250ms ease;
}
.dnd5e2 range-picker input[type="range"]::-webkit-slider-thumb {
  transition: all 250ms ease;
}
.dnd5e2 range-picker input[type="range"]::-webkit-slider-runnable-track {
  transition: all 250ms ease;
}
.dnd5e2 range-picker input[type="range"]::-moz-range-thumb {
  border-radius: 100%;
  box-shadow: 0 0 3px var(--dnd5e-shadow-45);
}
.dnd5e2 range-picker input[type="range"]::-webkit-slider-thumb {
  border-radius: 100%;
  box-shadow: 0 0 3px var(--dnd5e-shadow-45);
}
.dnd5e2 range-picker input[type="range"]::-moz-range-track {
  border: 1px solid var(--range-track-border-color);
  box-shadow: none;
}
.dnd5e2 range-picker input[type="range"]::-webkit-slider-runnable-track {
  border: 1px solid var(--range-track-border-color);
  box-shadow: none;
}
.dnd5e2 input[type=checkbox] {
  --checkbox-background-color: var(--dnd5e-color-gold);
  --checkbox-checked-color: var(--dnd5e-color-gold);
}
.dnd5e2 input[type=radio] {
  appearance: revert;
  -webkit-appearance: revert;
  -moz-appearance: revert;
  position: unset;
  margin: revert;
}
.dnd5e2 input[type=radio]::before,
.dnd5e2 input[type=radio]::after {
  content: unset;
}
.dnd5e2 .form-fields > dnd5e-checkbox {
  flex: none;
}
.dnd5e2 .form-group.checkbox > label,
.dnd5e2 label.checkbox {
  font-weight: normal;
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-11);
}
.dnd5e2 .form-group.checkbox {
  justify-content: space-evenly;
  flex: none;
  gap: 8px;
}
.dnd5e2 .checkbox-grid {
  --num-cols: 4;
}
.dnd5e2 .checkbox-grid.checkbox-grid-3 {
  --num-cols: 3;
}
.dnd5e2 .checkbox-grid > .form-fields {
  display: grid;
  grid-template-columns: repeat(var(--num-cols), 1fr);
}
.dnd5e2 .checkbox-grid > .form-fields > label {
  text-align: unset;
}
.dnd5e2 .checkbox-grid > .form-fields > label > span {
  line-height: normal;
}
.dnd5e2 label.slide-toggle {
  display: block;
}
.dnd5e2 label.slide-toggle > input {
  display: none;
}
.dnd5e2 label.slide-toggle:has(input:not([disabled])) {
  cursor: var(--cursor-pointer);
}
.dnd5e2 button.control-button,
.dnd5e2 button.config-button {
  padding: 0;
  width: unset;
  display: inline-block;
  color: var(--color-text-secondary);
}
.dnd5e2 button.control-button:focus-visible,
.dnd5e2 button.config-button:focus-visible,
.dnd5e2 button.control-button:hover,
.dnd5e2 button.config-button:hover {
  box-shadow: none;
  text-shadow: 0 0 5px var(--color-shadow-primary);
  background: none;
}
.dnd5e2 button.config-button {
  color: var(--color-text-secondary);
}
.dnd5e2 button.control-button {
  color: var(--control-button-text-color);
}
.dnd5e2 .form-fields > .control-button,
.dnd5e2 .form-fields .field-group > .control-button {
  padding: 0 4px;
}
.dnd5e2 .form-fields > .control-button:not(.middle),
.dnd5e2 .form-fields .field-group > .control-button:not(.middle) {
  align-self: end;
}
.dnd5e2 .pips,
.dnd5e2.standard-form .pips {
  display: flex;
  gap: 5px;
  padding: 10px 12px;
}
.dnd5e2 .pips .pip,
.dnd5e2.standard-form .pips .pip {
  --pip-size: 16px;
  background: var(--dnd5e-background-alt-1);
  border: 2px solid var(--dnd5e-color-gold);
  border-radius: 100%;
  width: var(--pip-size);
  height: var(--pip-size);
  display: grid;
  place-content: center;
  font-weight: bold;
  font-size: var(--font-size-18);
  box-shadow: 0 0 6px var(--dnd5e-shadow-45);
  margin: 0;
}
.dnd5e2 .pips .pip.filled,
.dnd5e2.standard-form .pips .pip.filled {
  background: var(--dnd5e-color-gold);
}
.dnd5e2 .pips .pip:not(:disabled):is(:hover, :focus),
.dnd5e2.standard-form .pips .pip:not(:disabled):is(:hover, :focus) {
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
  background: var(--dnd5e-background-alt-1);
}
.dnd5e2 .pips .pip:not(:disabled):is(:hover, :focus).filled,
.dnd5e2.standard-form .pips .pip:not(:disabled):is(:hover, :focus).filled {
  background: var(--dnd5e-color-gold);
}
/* App V2 Standard Form */
.dnd5e2 .standard-form,
.dnd5e2.standard-form {
  --color-form-label: var(--color-text-primary);
  --color-form-label-hover: var(--color-form-label);
  --input-height: 26px;
  gap: 0;
}
.dnd5e2 .standard-form .form-group:not(.label-top, .checkbox),
.dnd5e2.standard-form .form-group:not(.label-top, .checkbox) {
  gap: 0;
}
.dnd5e2 .standard-form .form-group:not(.label-top, .checkbox) > label,
.dnd5e2.standard-form .form-group:not(.label-top, .checkbox) > label {
  flex: 2;
  line-height: var(--input-height);
}
.dnd5e2 .standard-form .form-group:not(.label-top, .checkbox) > .form-fields,
.dnd5e2.standard-form .form-group:not(.label-top, .checkbox) > .form-fields {
  flex: 3;
}
.dnd5e2 .standard-form .form-group.checkbox-grid > .form-fields,
.dnd5e2.standard-form .form-group.checkbox-grid > .form-fields {
  flex: 0 0 100%;
}
.dnd5e2 .standard-form fieldset,
.dnd5e2.standard-form fieldset {
  padding: revert;
}
.dnd5e2 .standard-form .hint,
.dnd5e2.standard-form .hint {
  line-height: 16px;
}
.dnd5e2 .standard-form :where(button:not(.icon, .fa-solid, .fas)),
.dnd5e2.standard-form :where(button:not(.icon, .fa-solid, .fas)) {
  height: unset;
}
.dnd5e2 .standard-form :where(button:not(.icon, .fa-solid, .fas)):not(.copy-button, .unbutton, .reveal),
.dnd5e2.standard-form :where(button:not(.icon, .fa-solid, .fas)):not(.copy-button, .unbutton, .reveal) {
  line-height: 28px;
}
.dnd5e2 .standard-form :is(document-tags, multi-select) .tags.input-element-tags .tag,
.dnd5e2.standard-form :is(document-tags, multi-select) .tags.input-element-tags .tag {
  padding: 1px 4px;
  color: var(--color-text-primary);
  height: unset;
  opacity: unset;
}
.application .flexrow > dnd5e-checkbox {
  flex: 0;
}
/* Styles common to Document sheets */
.dnd5e2.sheet:is(.item, .actor) {
  /* ---------------------------------- */
  /*  Outer Window                      */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Sheet Header                      */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Sheet Body                        */
  /* ---------------------------------- */
  /* Encumbrance */
  /* Editors */
  /* ---------------------------------- */
  /*  Badges                            */
  /* ---------------------------------- */
  /* AC */
  /* Level */
  /* ---------------------------------- */
  /*  Child Creation                    */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Interactivity                     */
  /* ---------------------------------- */
}
.dnd5e2.sheet:is(.item, .actor):where(:not(.minimized)) > header {
  background: transparent;
  position: relative;
  z-index: 1;
  /* Edit Mode Toggle */
}
.dnd5e2.sheet:is(.item, .actor):where(:not(.minimized)) > header .window-title {
  visibility: hidden;
}
.dnd5e2.sheet:is(.item, .actor):where(:not(.minimized)) > header > slide-toggle {
  flex: none;
  margin-inline-end: auto;
}
.dnd5e2.sheet:is(.item, .actor):where(:not(.minimized)) > header > slide-toggle .slide-toggle-thumb {
  line-height: 12px;
}
.dnd5e2.sheet:is(.item, .actor):where(:not(.minimized)) > header > slide-toggle .slide-toggle-thumb::before {
  content: "\f0ad";
  font-family: var(--font-awesome);
  color: var(--dnd5e-background-alt-1);
  font-weight: bold;
  font-size: var(--font-size-9);
}
.dnd5e2.sheet:is(.item, .actor):where(:not(.minimized)) > header > slide-toggle[checked] .slide-toggle-thumb::before {
  color: var(--dnd5e-color-gold);
}
.dnd5e2.sheet:is(.item, .actor).minimized slide-toggle {
  display: none;
}
.dnd5e2.sheet:is(.item, .actor) .window-content {
  margin-top: calc(var(--header-height, 30px) * -1);
  padding-inline: 0;
}
.dnd5e2.sheet:is(.item, .actor) .sheet-header {
  display: flex;
}
.dnd5e2.sheet:is(.item, .actor) .sheet-header input,
.dnd5e2.sheet:is(.item, .actor) .sheet-header select {
  --input-placeholder-color: var(--color-text-tertiary);
  --input-height: var(--form-field-height, 26px);
  --input-background-color: rgba(0, 0, 0, 0.45);
  border: 1px solid transparent;
  transition: all 250ms ease;
  line-height: unset;
  padding: 1px 4px;
  border-radius: 3px;
}
.dnd5e2.sheet:is(.item, .actor) .sheet-header input:hover,
.dnd5e2.sheet:is(.item, .actor) .sheet-header select:hover,
.dnd5e2.sheet:is(.item, .actor) .sheet-header input:focus,
.dnd5e2.sheet:is(.item, .actor) .sheet-header select:focus {
  border: 1px solid var(--dnd5e-color-gold);
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2.sheet:is(.item, .actor) .sheet-header input::placeholder {
  color: var(--input-placeholder-color);
}
.dnd5e2.sheet:is(.item, .actor) .meter.progress::before {
  --bar-color-2: color-mix(in oklab, var(--dnd5e-color-blue), var(--dnd5e-color-maroon) var(--bar-percentage));
  --bar-color-1: color-mix(in oklab, var(--bar-color-2), black 33%);
  --bar-color-3: color-mix(in oklab, var(--bar-color-2), black 20%);
  background: linear-gradient(to right, var(--bar-color-1), var(--bar-color-2));
  border-right: var(--border-width) solid var(--bar-color-3);
}
.dnd5e2.sheet:is(.item, .actor) .encumbrance,
.dnd5e2.sheet:is(.item, .actor) .difficulty {
  display: flex;
  flex-direction: column;
  width: 230px;
}
.dnd5e2.sheet:is(.item, .actor) .encumbrance .meter,
.dnd5e2.sheet:is(.item, .actor) .difficulty .meter {
  --breakpoint-low: 33%;
  --breakpoint-high: 66%;
  border-radius: 3px 3px 0 0;
  height: 25px;
  border: none;
  border-bottom: var(--dnd5e-border-gold);
}
.dnd5e2.sheet:is(.item, .actor) .encumbrance .meter .label,
.dnd5e2.sheet:is(.item, .actor) .difficulty .meter .label {
  display: flex;
  align-items: center;
  gap: 0.1875rem;
}
.dnd5e2.sheet:is(.item, .actor) .encumbrance .meter .label i,
.dnd5e2.sheet:is(.item, .actor) .difficulty .meter .label i {
  font-size: var(--font-size-9);
  margin-right: 0.1875rem;
}
.dnd5e2.sheet:is(.item, .actor) .encumbrance .meter .breakpoint,
.dnd5e2.sheet:is(.item, .actor) .difficulty .meter .breakpoint {
  display: block;
  position: absolute;
  block-size: 0;
  inline-size: 0;
  border-inline: 3px solid transparent;
  transform: translateX(-50%);
  z-index: 1;
}
.dnd5e2.sheet:is(.item, .actor) .encumbrance .meter .breakpoint.breakpoint-low,
.dnd5e2.sheet:is(.item, .actor) .difficulty .meter .breakpoint.breakpoint-low {
  inset-inline-start: var(--breakpoint-low);
}
.dnd5e2.sheet:is(.item, .actor) .encumbrance .meter .breakpoint.breakpoint-high,
.dnd5e2.sheet:is(.item, .actor) .difficulty .meter .breakpoint.breakpoint-high {
  inset-inline-start: var(--breakpoint-high);
}
.dnd5e2.sheet:is(.item, .actor) .encumbrance .meter .breakpoint.arrow-up,
.dnd5e2.sheet:is(.item, .actor) .difficulty .meter .breakpoint.arrow-up {
  inset-block-end: 0;
  border-block-end: 3px solid var(--dnd5e-color-gold);
}
.dnd5e2.sheet:is(.item, .actor) .encumbrance .meter .breakpoint.arrow-down,
.dnd5e2.sheet:is(.item, .actor) .difficulty .meter .breakpoint.arrow-down {
  inset-block-start: 0;
  border-top: 3px solid var(--dnd5e-color-gold);
}
.dnd5e2.sheet:is(.item, .actor) .editor.prosemirror.sized {
  flex: 1;
  overflow: hidden;
}
.dnd5e2.sheet:is(.item, .actor) .editor.prosemirror.sized menu {
  border-radius: 0;
}
.dnd5e2.sheet:is(.item, .actor) .editor.prosemirror.sized .editor-container {
  overflow: hidden auto;
  scrollbar-gutter: stable;
  margin: 0 4px 0 16px;
  padding-right: 4px;
}
.dnd5e2.sheet:is(.item, .actor) .editor.prosemirror.sized .editor-content {
  position: unset;
  min-height: 300px;
  padding: 0;
}
.dnd5e2.sheet:is(.item, .actor) .editor.prosemirror.sized code-mirror {
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet:is(.item, .actor) .editor.prosemirror.sized code-mirror .cm-editor {
  overflow: auto;
}
.dnd5e2.sheet:is(.item, .actor) .editor.prosemirror.sized code-mirror .cm-scroller {
  position: relative;
}
.dnd5e2.sheet:is(.item, .actor) .editor.prosemirror.sized > textarea {
  flex: none;
  min-height: 300px;
}
.dnd5e2.sheet:is(.item, .actor) .badge {
  background: transparent no-repeat center / contain;
  font-family: var(--dnd5e-font-roboto);
  font-weight: bold;
  color: var(--color-text-light-0);
  display: grid;
  place-content: center;
  font-size: var(--font-size-30);
}
.dnd5e2.sheet:is(.item, .actor) .badge .config-button {
  color: inherit;
  font-size: inherit;
}
.dnd5e2.sheet:is(.item, .actor) .ac-badge {
  width: 68px;
  height: 68px;
  min-width: 68px;
  text-align: center;
  line-height: 62px;
  background-image: url("ui/ac-badge.webp");
  display: block;
  place-content: unset;
  font-size: var(--font-size-23);
  margin-top: -21px;
  filter: drop-shadow(0 0 6px var(--color-shadow-dark));
}
.dnd5e2.sheet:is(.item, .actor) .level-badge {
  width: 78px;
  height: 78px;
  background-image: url("ui/level-badge.webp");
}
.dnd5e2.sheet:is(.item, .actor) .create-child {
  display: none;
  position: absolute;
  inset: auto 16px 16px auto;
}
.dnd5e2.sheet:is(.item, .actor).standard-form .create-child {
  height: 28px;
  width: 28px;
  line-height: 24px;
}
.dnd5e2.sheet:is(.item, .actor) form:is(.tab-inventory, .tab-features, .tab-spells, .tab-effects, .tab-advancement, .tab-activities, .tab-crew) .create-child,
.dnd5e2.sheet:is(.item, .actor):is(.tab-inventory, .tab-features, .tab-spells, .tab-effects, .tab-advancement, .tab-activities, .tab-crew) .create-child {
  display: block;
}
.dnd5e2.sheet:is(.item, .actor).locked .rollable,
.dnd5e2.sheet:is(.item, .actor).locked .draggable {
  cursor: var(--cursor-default);
}
.dnd5e2.sheet:is(.item, .actor).locked .rollable:hover {
  text-shadow: none;
}
.dnd5e2.sheet:is(.item, .actor):not(.locked) .rollable.draggable {
  cursor: var(--cursor-pointer);
}
.activity.sheet {
  max-block-size: 85vh;
}
.activity.sheet .window-content {
  overflow-y: auto;
}
.activity.sheet .additional-tray {
  margin-block-start: 4px;
  transition: all 250ms ease;
}
.activity.sheet .additional-tray.collapsed {
  margin-block-end: -2px;
}
.activity.sheet .additional-tray .wrapper {
  padding-inline: 6px;
}
.activity.sheet .additional-tray .wrapper > :first-child {
  margin-block-start: 8px;
}
.activity.sheet .additional-tray .wrapper > :last-child {
  margin-block-end: 3px;
}
.activity.sheet .additional-tray > label {
  cursor: var(--cursor-pointer);
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  font-size: var(--font-size-10);
}
.activity.sheet .additional-tray > label > span {
  flex: none;
}
.activity.sheet .additional-tray > label .fa-gears {
  color: var(--color-text-tertiary);
}
.activity.sheet .additional-tray > label::before,
.activity.sheet .additional-tray > label::after {
  content: "";
  flex-basis: 50%;
  border-top: 1px dotted var(--dnd5e-color-gold);
  align-self: center;
}
.activity.sheet .separated-list {
  margin-top: 4px;
}
.activity.sheet .separated-list > li {
  padding: 6px;
  box-shadow: 0 0 6px var(--dnd5e-shadow-15);
}
.activity.sheet .separated-list > li.empty {
  border: none;
  box-shadow: none;
  font-style: italic;
  color: var(--color-text-secondary);
  padding-block: 0;
}
.activity.sheet .separated-list > li .list-controls button.control-button {
  --size: 24px;
}
.activity.sheet .separated-list .details {
  align-items: stretch;
}
.activity.sheet .separated-list .content-link {
  display: block;
  align-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: normal;
}
.activity.sheet .separated-list .name {
  flex: 1 0 175px;
}
.activity.sheet .separated-list .drop-area {
  border: var(--dnd5e-border-dashed);
  border-radius: 4px;
  padding-inline: 4px;
}
.activity.sheet .separated-list .gold-icon {
  flex: 0 0 24px;
  height: 24px;
  border-width: 1px;
}
.activity.sheet .separated-list.enchantments > li {
  padding-top: 9px;
}
.activity.sheet .separated-list .split-group.full-width {
  padding: 0;
  box-shadow: none;
}
.activity.sheet .separated-list .split-group.full-width > .form-fields {
  align-items: end;
}
.activity.sheet .separated-list .split-group.full-width .sep {
  height: var(--form-field-height);
  display: grid;
  place-content: center;
  padding: 0 1px;
}
/* ----------------------------------------- */
/*  Cast Activity                            */
/* ----------------------------------------- */
.cast-activity.sheet .spell-details {
  margin-block-end: 0;
}
.cast-activity.sheet .spell-details document-tags {
  row-gap: 0;
}
.cast-activity.sheet .spell-details document-tags input {
  font-size: var(--font-size-11);
}
/* ----------------------------------------- */
/*  Summon & Transform Activity              */
/* ----------------------------------------- */
:is(.summon-activity, .transform-activity).sheet .separated-list:not(.effects-list) .content-link,
:is(.summon-activity, .transform-activity).sheet .separated-list:not(.effects-list) .drop-area,
:is(.summon-activity, .transform-activity).sheet .separated-list:not(.effects-list) .name {
  display: flex;
  align-items: center;
  align-content: center;
}
:is(.summon-activity, .transform-activity).sheet .separated-list:not(.effects-list) .drop-area {
  justify-content: center;
  font-size: var(--font-size-11);
  font-style: italic;
  height: var(--form-field-height);
  color: var(--color-text-secondary);
}
:is(.summon-activity, .transform-activity).sheet .separated-list:not(.effects-list) .content-link {
  height: var(--form-field-height);
  text-align: center;
  border: var(--dnd5e-border-dashed);
  border-radius: 4px;
  font-size: var(--font-size-11);
}
:is(.summon-activity, .transform-activity).sheet .separated-list:not(.effects-list) .form-fields > .sep {
  flex: none;
}
/* ----------------------------------------- */
/*  Usage Dialog                             */
/* ----------------------------------------- */
.activity-usage .scaling-fields .separator,
.activity-usage .scaling-fields .max {
  flex: 0;
  padding-inline: 3px;
  font-weight: bold;
}
.activity-usage .scaling-fields .separator {
  color: var(--dnd5e-color-gold);
}
.activity-usage i.warning {
  color: var(--dnd5e-color-failure);
}
.activity-usage .hint code {
  background: none;
  border: none;
  color: var(--dnd5e-attribute-color);
  font-size: inherit;
  padding: 0;
}
.activity-usage [data-application-part="consumption"] .form-group:not(.label-top) > label {
  flex: 4;
}
.activity-usage [data-application-part=order] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activity-usage .description {
  padding: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-family: var(--dnd5e-font-roboto-condensed);
  font-size: var(--font-size-16);
}
.activity-usage fieldset.harvesting {
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.activity-usage fieldset.harvesting > ul {
  flex: 1;
}
.activity-usage fieldset.harvesting .quantity {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.activity-usage fieldset.harvesting .quantity .separator {
  color: var(--color-text-secondary);
}
.activity-usage .animals .animal {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* ---------------------------------- */
/*  Choice Dialog                     */
/* ---------------------------------- */
.activity-choice menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activity-choice menu button {
  --button-size: 38px;
  --icon-fill: var(--activity-icon-color);
  --icon-size: 24px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 6px 56px 6px 6px;
}
.activity-choice menu button > .name {
  flex: 1;
  text-transform: none;
  font-family: var(--dnd5e-font-roboto-slab);
  line-height: normal;
  font-size: var(--font-size-14);
}
.activity-choice menu button > .icon {
  flex: 0 0 50px;
  height: 24px;
  text-align: left;
}
.activity-choice menu button .gold-icon {
  border-width: 1px;
  width: 24px;
  height: 24px;
}
/* ---------------------------------- */
/*  Chat Cards                        */
/* ---------------------------------- */
.dnd5e2 .chat-card .order-description {
  padding: 8px;
  text-align: center;
}
.dnd5e2 .chat-card .order-description + .order-description {
  margin-top: -0.5em;
}
.dnd5e2 .chat-card .bastion-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dnd5e2 .chat-card .order-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--font-size-12);
}
.dnd5e2 .chat-card .item-summary {
  display: flex;
  gap: 4px;
}
.dnd5e2 .chat-card .item-summary li {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: var(--dnd5e-border-gold);
  border-radius: 3px;
  overflow: hidden;
  cursor: var(--cursor-pointer);
}
.dnd5e2 .chat-card .item-summary li > img {
  pointer-events: none;
  border: none;
  width: 100%;
  height: 100%;
  max-width: unset;
  object-fit: cover;
  background: var(--dnd5e-background-alt-2);
}
/* ----------------------------------------- */
/*  Advancement Config Sheet                 */
/* ----------------------------------------- */
.dnd5e2.advancement.sheet.grid-columns,
.dnd5e2.advancement-migration.grid-columns {
  --grid-column-left-size: 1fr;
  --grid-column-center-size: 1fr;
  --grid-column-right-size: 1fr;
}
.dnd5e2.advancement.sheet.grid-columns .window-content,
.dnd5e2.advancement-migration.grid-columns .window-content {
  display: grid;
  gap: 8px;
}
.dnd5e2.advancement.sheet.grid-columns .window-content:has( > .column-container:nth-of-type(2)),
.dnd5e2.advancement-migration.grid-columns .window-content:has( > .column-container:nth-of-type(2)) {
  grid-template-columns: [left] var(--grid-column-left-size) [right] var(--grid-column-right-size);
}
.dnd5e2.advancement.sheet.grid-columns .window-content:has( > .column-container:nth-of-type(3)),
.dnd5e2.advancement-migration.grid-columns .window-content:has( > .column-container:nth-of-type(3)) {
  grid-template-columns: [left] var(--grid-column-left-size) [center] var(--grid-column-center-size) [right] var(--grid-column-right-size);
}
.dnd5e2.advancement.sheet.grid-columns .window-content > .column-container[data-container-id="column-left"],
.dnd5e2.advancement-migration.grid-columns .window-content > .column-container[data-container-id="column-left"] {
  grid-area: left;
}
.dnd5e2.advancement.sheet.grid-columns .window-content > .column-container[data-container-id="column-center"],
.dnd5e2.advancement-migration.grid-columns .window-content > .column-container[data-container-id="column-center"] {
  grid-area: center;
}
.dnd5e2.advancement.sheet.grid-columns .window-content > .column-container[data-container-id="column-right"],
.dnd5e2.advancement-migration.grid-columns .window-content > .column-container[data-container-id="column-right"] {
  grid-area: right;
}
.dnd5e2.advancement.sheet .centered,
.dnd5e2.advancement-migration .centered {
  text-align: center;
}
.dnd5e2.advancement.sheet .drop-area,
.dnd5e2.advancement-migration .drop-area {
  border: 1px dashed var(--color-border-light-2);
  border-radius: 4px;
  padding: 4px;
}
.dnd5e2.advancement.sheet .hint.warning,
.dnd5e2.advancement-migration .hint.warning {
  color: var(--dnd5e-color-maroon);
  font-weight: bold;
}
/* ----------------------------------------- */
/*  Ability Score Improvement                */
/* ----------------------------------------- */
.dnd5e2.advancement.ability-score-improvement .ability-scores {
  contain: layout;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  padding-top: 4px;
}
.dnd5e2.advancement.ability-score-improvement .ability-scores li {
  display: grid;
  grid-template: "label label label label" "minus value value plus" "minus delta delta plus";
  row-gap: 4px;
  margin: 0;
}
.dnd5e2.advancement.ability-score-improvement .ability-scores li.hint {
  display: block;
  grid-column: 2 / 4;
  align-self: center;
  text-align: start;
}
.dnd5e2.advancement.ability-score-improvement .ability-scores li > label:first-child {
  grid-area: label;
  font-size: var(--font-size-16);
}
.dnd5e2.advancement.ability-score-improvement .ability-scores li > button {
  padding: 0.5em;
  font-size: var(--font-size-16);
}
.dnd5e2.advancement.ability-score-improvement .ability-scores li > button.minus {
  grid-area: minus;
}
.dnd5e2.advancement.ability-score-improvement .ability-scores li > button.plus {
  grid-area: plus;
}
.dnd5e2.advancement.ability-score-improvement .ability-scores li > input {
  grid-area: value;
  height: 1.5em;
  font-size: var(--font-size-24);
}
.dnd5e2.advancement.ability-score-improvement .ability-scores li > .locked {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: var(--font-size-12);
}
.dnd5e2.advancement.ability-score-improvement .ability-scores li > .locked > dnd5e-checkbox {
  width: 14px;
  height: 14px;
}
.dnd5e2.advancement.ability-score-improvement .ability-scores.disabled li {
  opacity: 60%;
}
/* ----------------------------------------- */
/*  Choose Items Advancement                 */
/* ----------------------------------------- */
.dnd5e2.advancement.item-choice.sheet {
  --grid-column-left-size: 1fr;
  --grid-column-center-size: 0.8fr;
  --grid-column-right-size: 0.5fr;
}
.dnd5e2.advancement.item-choice.sheet .card.levels {
  grid-template-columns: [level] max-content [count] 1fr [replacement] max-content;
}
.dnd5e2.advancement.item-choice.sheet .card.levels .replacement-header,
.dnd5e2.advancement.item-choice.sheet .card.levels .level-replacement {
  grid-column: replacement;
}
.dnd5e2.advancement.item-choice.sheet .card.levels .level-replacement {
  display: grid;
  align-items: center;
}
/* ----------------------------------------- */
/*  Grant Items Advancement                  */
/* ----------------------------------------- */
.dnd5e2.advancement.item-grant.sheet .card.items {
  grid-template-columns: [optional] 1fr [name] 3fr [controls] 20px;
}
.dnd5e2.advancement.item-grant.sheet .card.items .item-optional {
  grid-column: optional;
}
/* ----------------------------------------- */
/*  Scale Value Advancement                  */
/* ----------------------------------------- */
.dnd5e2.advancement.scale-value.sheet {
  --grid-column-right-size: 0.6fr;
}
.dnd5e2.advancement.scale-value.sheet .identifier-hint code {
  display: inline;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
}
.dnd5e2.advancement.scale-value.sheet .identifier-hint copyable-text {
  font-weight: bold;
}
.dnd5e2.advancement.scale-value.sheet [data-application-part="levels"] {
  grid-template-columns: [level] max-content [value] 1fr;
}
.dnd5e2.advancement.scale-value.sheet [data-application-part="levels"] .value-header,
.dnd5e2.advancement.scale-value.sheet [data-application-part="levels"] .level-value {
  grid-column: value;
}
.dnd5e2.advancement.scale-value.sheet [data-application-part="levels"][data-type="dice"] {
  grid-template-columns: [level] max-content [number] 1fr [faces] 1fr;
}
.dnd5e2.advancement.scale-value.sheet [data-application-part="levels"][data-type="dice"] .number-header,
.dnd5e2.advancement.scale-value.sheet [data-application-part="levels"][data-type="dice"] .level-number {
  grid-column: number;
}
.dnd5e2.advancement.scale-value.sheet [data-application-part="levels"][data-type="dice"] .faces-header,
.dnd5e2.advancement.scale-value.sheet [data-application-part="levels"][data-type="dice"] .level-faces {
  grid-column: faces;
}
.dnd5e2.advancement.scale-value.sheet [data-application-part="levels"] select option[value=""] {
  color: var(--color-text-tertiary);
}
.dnd5e2.advancement.scale-value.sheet [data-application-part="levels"] .new-scale-value select {
  font-weight: bold;
}
.dnd5e2.advancement.scale-value.sheet [data-application-part="levels"] li.level:not(.new-scale-value) select {
  color: var(--color-text-tertiary);
}
.dnd5e2.advancement.scale-value.sheet [data-application-part="levels"] li.level:not(.new-scale-value) select option:not([value=""]) {
  color: var(--color-text-primary);
}
/* ----------------------------------------- */
/*  Size Advancement                         */
/* ----------------------------------------- */
.dnd5e2.advancement.size.sheet .trait-list {
  column-gap: 24px;
  row-gap: 6px;
}
/* ----------------------------------------- */
/*  Advancement Manager                      */
/* ----------------------------------------- */
.dnd5e2.advancement.manager.application [data-application-part="manager"] {
  gap: 12px;
  /* V1 Compatibility */
}
.dnd5e2.advancement.manager.application [data-application-part="manager"] > .step h3 {
  padding-block-end: 0;
  color: var(--color-text-primary);
  font-family: var(--dnd5e-font-roboto-condensed);
  font-size: var(--font-size-20);
  text-shadow: none;
}
.dnd5e2.advancement.manager.application [data-application-part="manager"] > .step.dnd5e h4 {
  color: var(--color-text-primary);
  font-family: var(--dnd5e-font-roboto);
  text-shadow: none;
}
.dnd5e2.advancement.manager.application [data-application-part="manager"] nav {
  gap: 6px;
}
.dnd5e2.advancement.manager.application [data-application-part="manager"] button {
  height: var(--input-height);
}
.dnd5e2.advancement.manager.application [data-application-part="manager"] label > span {
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
  font-size: var(--font-size-12);
}
.dnd5e2.advancement.manager.application [data-application-part="manager"] input[type=checkbox]:hover,
.dnd5e2.advancement.manager.application [data-application-part="manager"] input[type=checkbox]:focus {
  box-shadow: none;
  border: none;
}
.dnd5e2.advancement.manager.application [data-application-part="manager"] .pill-lg {
  max-width: unset;
}
.dnd5e2.advancement.manager.application [data-application-part="manager"] .pill-lg.locked {
  opacity: 0.7;
}
.dnd5e2.advancement.manager.application [data-application-part="manager"] .pill-lg .name-stacked {
  flex: 1;
}
.dnd5e2.advancement.manager.application [data-application-part="manager"] .pill-lg .control-button {
  padding-inline: 4px;
}
.dnd5e2.advancement.manager.application [data-application-part="manager"] .pill-lg img[data-action] {
  cursor: var(--cursor-pointer);
}
.dnd5e2.advancement.manager.application [data-application-part="manager"] .pill-lg img[data-action]:hover {
  box-shadow: 0 0 12px var(--dnd5e-color-gold);
}
/* ----------------------------------------- */
/*  Visualizer                               */
/* ----------------------------------------- */
.advancement-visualizer .step {
  position: relative;
  padding: 4px;
}
.advancement-visualizer .step.current {
  border-color: rebeccapurple;
}
.advancement-visualizer .step.current::before {
  content: "➧";
  position: absolute;
  inset-inline-start: -12px;
  inset-block: 0;
  align-content: center;
  color: rebeccapurple;
  font-size: 18px;
}
.advancement-visualizer .step .icons i:not(.enabled) {
  opacity: 15%;
}
/* ----------------------------------------- */
/*  Trait Advancement                        */
/* ----------------------------------------- */
.dnd5e2.advancement.trait.sheet .selected-trait li {
  display: flex;
  gap: 6px;
}
.dnd5e2.advancement.trait.sheet .selected-trait li:not(:first-of-type) {
  padding-block-start: 6px;
}
.dnd5e2.advancement.trait.sheet .selected-trait label {
  flex-grow: 1;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.dnd5e2.advancement.trait.sheet .selected-trait label.selected {
  font-weight: bold;
}
.dnd5e2.advancement.trait.sheet .selected-trait label:not(.selected) {
  cursor: var(--cursor-pointer);
}
.dnd5e2.advancement.trait.sheet .selected-trait label:not(.selected):hover {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2.advancement.trait.sheet .selected-trait input[type="radio"] {
  display: none;
}
.dnd5e2.advancement.trait.sheet [data-application-part="traits"] {
  display: grid;
}
.dnd5e2.advancement.trait.sheet [data-application-part="traits"] > .form-group {
  grid-column: 1 / -1;
}
.dnd5e2.advancement.trait.sheet [data-application-part="traits"] .traits li.category {
  gap: 0;
}
/* ----------------------------------------- */
/*  Advancement Migration                    */
/* ----------------------------------------- */
.dnd5e2.advancement-migration {
  --icon-size: 32px;
}
.dnd5e2.advancement-migration .items {
  grid-template-columns: [name] 1fr [controls] 30px;
}
.dnd5e2.advancement-migration .items .item,
.dnd5e2.advancement-migration .items .item-name {
  gap: 8px;
}
.dnd5e2.advancement-migration .form-group.hint {
  padding: 0 8px 8px;
}
.dnd5e2.sheet.actor {
  --underlay-barbarian: url("ui/official/classes/barbarian.webp");
  --underlay-bard: url("ui/official/classes/bard.webp");
  --underlay-cleric: url("ui/official/classes/cleric.webp");
  --underlay-druid: url("ui/official/classes/druid.webp");
  --underlay-fighter: url("ui/official/classes/fighter.webp");
  --underlay-monk: url("ui/official/classes/monk.webp");
  --underlay-paladin: url("ui/official/classes/paladin.webp");
  --underlay-ranger: url("ui/official/classes/ranger.webp");
  --underlay-rogue: url("ui/official/classes/rogue.webp");
  --underlay-sorcerer: url("ui/official/classes/sorcerer.webp");
  --underlay-warlock: url("ui/official/classes/warlock.webp");
  --underlay-wizard: url("ui/official/classes/wizard.webp");
  --underlay-npc-aberration: url("ui/official/npcs/aberration.webp");
  --underlay-npc-beast: url("ui/official/npcs/beast.webp");
  --underlay-npc-celestial: url("ui/official/npcs/celestial.webp");
  --underlay-npc-construct: url("ui/official/npcs/construct.webp");
  --underlay-npc-dragon: url("ui/official/npcs/dragon.webp");
  --underlay-npc-elemental: url("ui/official/npcs/elemental.webp");
  --underlay-npc-fey: url("ui/official/npcs/fey.webp");
  --underlay-npc-fiend: url("ui/official/npcs/fiend.webp");
  --underlay-npc-giant: url("ui/official/npcs/giant.webp");
  --underlay-npc-humanoid: url("ui/official/npcs/humanoid.webp");
  --underlay-npc-monstrosity: url("ui/official/npcs/monstrosity.webp");
  --underlay-npc-ooze: url("ui/official/npcs/ooze.webp");
  --underlay-npc-plant: url("ui/official/npcs/plant.webp");
  --underlay-npc-undead: url("ui/official/npcs/undead.webp");
  --underlay-vehicle-land: url("ui/official/vehicles/land.webp");
  --underlay-vehicle-water: url("ui/official/vehicles/water.webp");
  --underlay-vehicle-air: url("ui/official/vehicles/air.webp");
  --underlay-vehicle-space: url("ui/official/vehicles/space.webp");
  /* ---------------------------------- */
  /*  Navigation                        */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Window Header                     */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Sheet Header                      */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Portrait                          */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Sheet Body                        */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Ability Scores                    */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Meters                            */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Classes                           */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Pills                             */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Sidebar                           */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Badges                            */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Spells                            */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Inventory                         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Biography                         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Group Members                     */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Special Traits                    */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Warnings                          */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Minimized                         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Locked                            */
  /* ---------------------------------- */
}
.dnd5e2.sheet.actor nav.tabs {
  top: calc(var(--dnd5e-sheet-header-height) + 1rem);
}
.dnd5e2.sheet.actor:not(.minimized) .window-header .header-elements {
  flex: none;
  color: var(--color-text-primary);
  font-family: var(--dnd5e-font-roboto-condensed);
  display: flex;
  align-items: center;
  line-height: 1;
  gap: 4px;
}
.dnd5e2.sheet.actor:not(.minimized) .window-header .header-elements > div:has( > span:not(:empty)) + div:not(:empty)::before {
  content: " • ";
}
.dnd5e2.sheet.actor:not(.minimized) .window-header .header-elements .source-book {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dnd5e2.sheet.actor:not(.minimized) .window-header .header-elements a {
  margin: 0;
  display: grid;
  place-content: center;
}
.dnd5e2.sheet.actor:not(.minimized) .window-header .header-elements a[hidden] {
  display: none;
}
.dnd5e2.sheet.actor:not(.minimized) .window-header .header-elements i {
  font-size: var(--font-size-11);
  color: var(--color-text-tertiary);
  margin: 0;
}
.dnd5e2.sheet.actor .sheet-header {
  /* Resting & Special Traits */
}
.dnd5e2.sheet.actor .sheet-header .sheet-header-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dnd5e2.sheet.actor .slide-toggle.header-interactable,
.dnd5e2.sheet.actor button.header-interactable {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all 250ms ease;
  background: var(--npc-header-input-background);
  padding: 0 4px;
}
.dnd5e2.sheet.actor .slide-toggle.header-interactable:hover,
.dnd5e2.sheet.actor button.header-interactable:hover {
  border-color: var(--dnd5e-color-gold);
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
  text-shadow: none;
}
.dnd5e2.sheet.actor button.header-interactable {
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
  text-transform: inherit;
}
.dnd5e2.sheet.actor .slide-toggle.header-interactable {
  font-family: var(--dnd5e-font-roboto-condensed);
  height: var(--form-field-height);
  margin-bottom: 8px;
}
.dnd5e2.sheet.actor .slide-toggle.header-interactable .fa-toggle-on {
  color: var(--npc-portrait-toggle-on);
}
.dnd5e2.sheet.actor .portrait {
  /* Initiative */
  /* Loyalty/Quality */
}
.dnd5e2.sheet.actor .portrait .initiative-wrapper {
  position: absolute;
  inset: 4px 4px auto auto;
}
.dnd5e2.sheet.actor .portrait .initiative {
  width: 44px;
  height: 44px;
  background: var(--dnd5e-color-gold) url("../../icons/svg/d20-black.svg") center / contain;
  display: grid;
  place-content: center;
  font-weight: bold;
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-18);
  text-shadow: 0 0 4px var(--dnd5e-color-gold);
  cursor: var(--cursor-pointer);
  border-radius: 100%;
  color: var(--color-text-light-0);
  border: 2px solid var(--dnd5e-color-gold);
  clip-path: polygon(48.5% 0, 91% 25%, 92% 75%, 49% 100%, 6% 75%, 7% 25%);
}
.dnd5e2.sheet.actor .portrait .initiative .config-button {
  color: inherit;
  font-size: inherit;
}
.dnd5e2.sheet.actor .portrait .initiative-score {
  --size: 19px;
  width: var(--size);
  height: var(--size);
  position: absolute;
  inset: auto auto calc((var(--size) / 3) * -1) calc(50% - var(--size) / 2);
  background: var(--dnd5e-color-gold);
  color: var(--dnd5e-color-black);
  font-weight: bold;
  display: grid;
  place-content: center;
  border-radius: 100%;
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.actor .portrait .loyalty-badge,
.dnd5e2.sheet.actor .portrait .quality-badge {
  position: absolute;
  inset: 55px 4px auto auto;
  width: 45px;
  height: 45px;
  background-image: url("ui/loyalty-badge.webp");
  font-size: var(--font-size-16);
}
.dnd5e2.sheet.actor .portrait .loyalty-badge > input,
.dnd5e2.sheet.actor .portrait .quality-badge > input {
  width: 45px;
  text-align: center;
}
.dnd5e2.sheet.actor .portrait .loyalty-badge > input:hover,
.dnd5e2.sheet.actor .portrait .quality-badge > input:hover,
.dnd5e2.sheet.actor .portrait .loyalty-badge > input:focus,
.dnd5e2.sheet.actor .portrait .quality-badge > input:focus {
  border-color: transparent;
  box-shadow: none;
}
.dnd5e2.sheet.actor .sheet-body {
  mask-image: linear-gradient(to bottom, transparent, black 8px);
}
.dnd5e2.sheet.actor .sheet-body .main-content {
  /* Tabbed Content */
}
.dnd5e2.sheet.actor .sheet-body .main-content .tab-body .tab:not(.active) {
  display: none;
}
.dnd5e2.sheet.actor .ability-scores .ability-score .sign {
  color: var(--color-text-tertiary);
}
.dnd5e2.sheet.actor .ability-scores .ability-score .label {
  text-transform: uppercase;
  font-size: var(--font-size-11);
  color: var(--dnd5e-color-gold);
  font-weight: bold;
}
.dnd5e2.sheet.actor .ability-scores .ability-score .mod {
  font-weight: bold;
  color: var(--dnd5e-ability-mod-color);
  font-size: var(--font-size-16);
  padding: 3px 0;
}
.dnd5e2.sheet.actor .ability-scores .ability-score .score {
  text-align: center;
  font-size: var(--font-size-13);
}
.dnd5e2.sheet.actor .ability-scores .ability-score .score > input {
  text-align: center;
}
.dnd5e2.sheet.actor .bars .bar {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dnd5e2.sheet.actor .bars .bar label {
  flex: 0 0 25px;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--dnd5e-color-gold);
  text-align: center;
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.actor .bars .bar .meter {
  --border-width: 0;
  flex: 1;
  height: 8px;
}
.dnd5e2.sheet.actor .bars .bar .meter.hit-points::before {
  background: linear-gradient(to right, var(--dnd5e-color-hp-1) 0%, var(--dnd5e-color-hp-2) 100%);
}
.dnd5e2.sheet.actor .bars .bar .meter.hit-dice::before {
  background: linear-gradient(to right, var(--dnd5e-color-hd-1) 0%, var(--dnd5e-color-hd-2) 100%);
}
.dnd5e2.sheet.actor .bars .bar .meter.uses::before {
  background: linear-gradient(to right, #023491 0%, var(--dnd5e-color-blue) 100%);
}
.dnd5e2.sheet.actor .bars .bar .values {
  flex: 0 0 48px;
  font-weight: bold;
  font-size: var(--font-size-11);
  text-shadow: var(--group-vitals-shadow);
}
.dnd5e2.sheet.actor .meter.hit-points {
  height: 32px;
  font-size: var(--font-size-16);
}
.dnd5e2.sheet.actor .meter.hit-points .progress::before {
  background: linear-gradient(to right, var(--dnd5e-color-hp-1) 0%, var(--dnd5e-color-hp-2) 100%);
  border-inline-end: none;
}
.dnd5e2.sheet.actor .meter.hit-points .temp-positive .label :is(.max, .bonus) {
  color: color-mix(in oklab, currentcolor, blue 25%);
}
.dnd5e2.sheet.actor .meter.hit-points .temp-negative .label :is(.max, .bonus) {
  color: color-mix(in oklab, currentcolor, red 25%);
}
.dnd5e2.sheet.actor .meter.hit-dice {
  height: 25px;
  font-size: var(--font-size-14);
}
.dnd5e2.sheet.actor .meter.hit-dice.progress::before {
  background: linear-gradient(to right, var(--dnd5e-color-hd-1) 0%, var(--dnd5e-color-hd-2) 100%);
  border-inline-end: none;
}
.dnd5e2.sheet.actor .meter.hit-points.progress::before,
.dnd5e2.sheet.actor .meter.hit-dice.progress::before,
.dnd5e2.sheet.actor .meter.uses.progress::before,
.dnd5e2.sheet.actor .meter.hit-points .progress::before,
.dnd5e2.sheet.actor .meter.hit-dice .progress::before,
.dnd5e2.sheet.actor .meter.uses .progress::before {
  block-size: unset;
  clip-path: unset;
  box-shadow: inset 0 1px 0 1px var(--dnd5e-highlight-40);
  inset: 1px auto 1px 1px;
  inline-size: calc(var(--bar-percentage) - 2px);
  border-radius: 2px;
}
.dnd5e2.sheet.actor .meter.sectioned input {
  width: 100%;
  height: 100%;
  text-align: center;
  border: none;
  font-weight: bold;
  background: none;
  color: var(--color-text-light-0);
}
.dnd5e2.sheet.actor .meter.sectioned input:hover,
.dnd5e2.sheet.actor .meter.sectioned input:focus {
  box-shadow: 0 0 8px var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor .meter.sectioned > div {
  height: 100%;
}
.dnd5e2.sheet.actor .meter.sectioned > .hit-points {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  cursor: var(--cursor-pointer);
}
.dnd5e2.sheet.actor .meter.sectioned > .hit-points > input {
  position: relative;
}
.dnd5e2.sheet.actor .meter.sectioned > .tmp {
  flex: none;
  width: 50px;
  border-inline-start: 1px dashed var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor .meter.sectioned > .tmp > input {
  color: var(--dnd5e-color-blue);
}
.dnd5e2.sheet.actor .tab.features.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dnd5e2.sheet.actor .classes.pills-lg {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.dnd5e2.sheet.actor .classes.pills-lg .class {
  width: 240px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 0.75rem;
}
.dnd5e2.sheet.actor .classes.pills-lg .class .icons,
.dnd5e2.sheet.actor .classes.pills-lg .class .name-stacked,
.dnd5e2.sheet.actor .classes.pills-lg .class .level {
  position: relative;
}
.dnd5e2.sheet.actor .classes.pills-lg .class .icons {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
}
.dnd5e2.sheet.actor .classes.pills-lg .class .icons img {
  cursor: var(--cursor-pointer);
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}
.dnd5e2.sheet.actor .classes.pills-lg .class .icons img:hover {
  box-shadow: 0 0 12px var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor .classes.pills-lg .class .icons > .controls {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 0.375rem;
}
.dnd5e2.sheet.actor .classes.pills-lg .class .icons > .controls > .item-control {
  color: var(--dnd5e-color-red);
  align-items: start;
  width: 32px;
  height: 32px;
  position: relative;
  left: 2px;
  bottom: 2px;
}
.dnd5e2.sheet.actor .classes.pills-lg .class .icons .subclass-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dnd5e-color-card);
  font-size: var(--font-size-20);
  position: relative;
  z-index: 1;
}
.dnd5e2.sheet.actor .classes.pills-lg .class .name-stacked {
  flex: 1;
}
.dnd5e2.sheet.actor .classes.pills-lg .class .level > span,
.dnd5e2.sheet.actor .classes.pills-lg .class .level > select {
  font-family: var(--dnd5e-font-roboto-slab);
  font-size: var(--font-size-20);
  font-weight: bold;
}
.dnd5e2.sheet.actor .classes.pills-lg .class .level > span {
  text-shadow: 0 0 12px var(--dnd5e-shadow-15);
  color: var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor .classes.pills-lg .class .level > select {
  width: 55px;
  text-align: center;
  padding: 0;
  height: unset;
  border: none;
  background: none;
}
.dnd5e2.sheet.actor .classes.pills-lg .class .level > select option {
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-13);
}
.dnd5e2.sheet.actor .classes.pills-lg.editing {
  padding-right: 0.5rem;
}
.dnd5e2.sheet.actor .classes.pills-lg .pill-lg.empty {
  width: 240px;
}
.dnd5e2.sheet.actor .pills-group .pill > i {
  font-family: var(--font-awesome);
  font-weight: bold;
  font-style: normal;
}
.dnd5e2.sheet.actor .pills-group .pill > i.ada::before {
  content: "\f132";
}
.dnd5e2.sheet.actor .pills-group .pill > i.mgc::before {
  content: "\f72b";
}
.dnd5e2.sheet.actor .pills-group .pill > i.sil::before {
  content: "\53";
}
.dnd5e2.sheet.actor .pills-group .pill > i.mastery::before {
  content: "\f5a2";
}
.dnd5e2.sheet.actor .sidebar-collapser {
  position: absolute;
  inset: 0 auto 0 var(--sidebar-size);
  width: 16px;
  padding: 0;
  color: var(--dnd5e-color-gold);
  transition: left 450ms ease;
}
.dnd5e2.sheet.actor .sidebar-collapser:hover,
.dnd5e2.sheet.actor .sidebar-collapser:focus-visible {
  box-shadow: none;
  background: var(--dnd5e-background-5);
}
.dnd5e2.sheet.actor .cr-badge {
  width: 45px;
  height: 45px;
  background-image: url("ui/cr-badge.webp");
  font-size: var(--font-size-18);
}
.dnd5e2.sheet.actor .card.spellcasting .header {
  background: linear-gradient(to right, var(--dnd5e-color-sc-1), var(--dnd5e-color-sc-2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 0.5rem;
}
.dnd5e2.sheet.actor .tab[data-tab=inventory] {
  /* Containers */
}
.dnd5e2.sheet.actor .tab[data-tab=inventory] .top {
  display: flex;
  align-items: start;
  gap: 1rem;
}
.dnd5e2.sheet.actor .tab[data-tab=inventory] .containers {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(39px, max-content));
  gap: 0.5rem;
}
.dnd5e2.sheet.actor .tab[data-tab=inventory] .containers .container {
  max-width: 78px;
  max-height: 78px;
  aspect-ratio: 1;
  border: var(--dnd5e-border-gold);
  border-radius: 4px;
  box-shadow: 0 0 6px var(--dnd5e-shadow-45);
  background-color: var(--dnd5e-background-alt-1);
}
.dnd5e2.sheet.actor .tab[data-tab=inventory] .containers .container a {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.dnd5e2.sheet.actor .tab[data-tab=inventory] .containers .container a:hover {
  text-shadow: none;
}
.dnd5e2.sheet.actor .tab[data-tab=inventory] .containers .container a .meter {
  flex: 0 0 6px;
  border: none;
  border-radius: 3px 3px 0 0;
}
.dnd5e2.sheet.actor .tab[data-tab=inventory] .containers .container a .meter.progress::before {
  --border-width: 1px;
  box-shadow: none;
  clip-path: none;
}
.dnd5e2.sheet.actor .tab[data-tab=inventory] .containers .container a img {
  flex: 1;
  border: none;
  object-fit: cover;
  border-radius: 0 0 3px 3px;
  min-height: 0;
}
.dnd5e2.sheet.actor .textbox textarea {
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-12);
  padding: 0.375rem;
  width: 100%;
  height: 60px;
  scrollbar-width: thin;
  scrollbar-color: var(--dnd5e-color-scrollbar) transparent;
  background: var(--dnd5e-background-5);
}
.dnd5e2.sheet.actor .textbox textarea::-webkit-scrollbar-track {
  box-shadow: none;
  border-radius: 0;
}
.dnd5e2.sheet.actor .textbox textarea::-webkit-scrollbar-thumb {
  border: none;
  background: var(--dnd5e-color-scrollbar);
}
.dnd5e2.sheet.actor .tab[data-tab=biography] code-mirror .cm-scroller {
  position: absolute;
  inset: 0;
}
.dnd5e2.sheet.actor .tab[data-tab=members] .member {
  display: flex;
  justify-content: center;
}
.dnd5e2.sheet.actor .tab[data-tab=members] .member .vitals {
  position: relative;
  display: flex;
  padding: 8px;
  gap: 8px;
  min-height: 77px;
}
.dnd5e2.sheet.actor .tab[data-tab=members] .member .vitals > * {
  position: relative;
}
.dnd5e2.sheet.actor .tab[data-tab=members] .member .vitals::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--underlay, var(--underlay-npc-humanoid, var(--dnd5e-color-card))) top center / cover;
  mask-image: linear-gradient(155deg, transparent 35%, black);
  opacity: var(--group-underlay-opacity);
  filter: var(--group-underlay-filter);
  border-radius: 3px;
}
.dnd5e2.sheet.actor .tab[data-tab=members] .member .vitals .portrait {
  flex: 0 0 64px;
}
.dnd5e2.sheet.actor .tab[data-tab=members] .member .vitals .portrait img,
.dnd5e2.sheet.actor .tab[data-tab=members] .member .vitals .portrait video {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transform: scale(1.25);
  margin-top: -10px;
}
.dnd5e2.sheet.actor .tab[data-tab=members] .member .controls,
.dnd5e2.sheet.actor .sheet-stations .station .controls {
  position: absolute;
  inset: -8px 0 auto auto;
  display: flex;
  gap: 8px;
  padding-inline: 8px;
}
.dnd5e2.sheet.actor .tab[data-tab=members] .member .controls [data-action=removeMember],
.dnd5e2.sheet.actor .sheet-stations .station .controls [data-action=removeMember] {
  background: var(--dnd5e-background-card);
  color: var(--dnd5e-color-red);
  width: 16px;
  height: 15px;
  font-size: 19px;
  display: inline-grid;
  place-content: center;
}
.dnd5e2.sheet.actor .special-traits > section {
  gap: 12px;
  isolation: isolate;
}
.dnd5e2.sheet.actor dialog.warnings:is(#tooltip, .locked-tooltip) {
  /* :is used here to override specificity of base tooltip styles */
  position: fixed;
  width: 300px;
  max-width: unset;
  max-height: unset;
  margin: 0;
  outline: none;
  padding: 4px 8px;
  font-family: var(--dnd5e-font-roboto-condensed);
}
.dnd5e2.sheet.actor dialog.warnings:is(#tooltip, .locked-tooltip) li {
  padding: 6px 8px;
  border-bottom: 1px dotted var(--dnd5e-color-gold);
  border-bottom: var(--dnd5e-border-separator-warning);
}
.dnd5e2.sheet.actor dialog.warnings:is(#tooltip, .locked-tooltip) li:last-child {
  border: none;
}
.dnd5e2.sheet.actor dialog.warnings:is(#tooltip, .locked-tooltip) li a:hover {
  text-shadow: none;
  text-decoration: underline dotted;
}
.dnd5e2.sheet.actor dialog.warnings:is(#tooltip, .locked-tooltip) li.warning::before,
.dnd5e2.sheet.actor dialog.warnings:is(#tooltip, .locked-tooltip) li.error::before {
  font-family: var(--font-awesome);
  font-weight: bold;
  color: var(--color-text-secondary);
  margin-right: 2px;
}
.dnd5e2.sheet.actor dialog.warnings:is(#tooltip, .locked-tooltip) li.warning::before {
  content: "\f071";
}
.dnd5e2.sheet.actor dialog.warnings:is(#tooltip, .locked-tooltip) li.error::before {
  content: "\f06a";
}
.dnd5e2.sheet.actor.minimized {
  box-shadow: 0 0 20px var(--color-shadow-dark);
  background: url("../../ui/denim075.png");
  border: unset;
}
.dnd5e2.sheet.actor.minimized::after {
  content: unset;
}
.dnd5e2.sheet.actor.minimized .window-header .header-elements {
  display: none;
}
.dnd5e2.sheet.actor.minimized .window-content {
  display: none;
}
.dnd5e2.sheet.actor.minimized > header {
  align-items: center;
}
.dnd5e2.sheet.actor.minimized > header .header-button,
.dnd5e2.sheet.actor.minimized > header .pseudo-header-button {
  margin-top: 0;
}
.dnd5e2.sheet.actor.minimized > header .window-title {
  visibility: visible;
}
.dnd5e2.sheet.actor.minimized nav.tabs,
.dnd5e2.sheet.actor.minimizing nav.tabs,
.dnd5e2.sheet.actor.maximizing nav.tabs {
  display: none;
}
.dnd5e2.sheet.actor.locked .meter.sectioned > .hit-points {
  cursor: var(--cursor-default);
}
/* -------------------------------------------- */
/*  Actors Sidebar                              */
/* -------------------------------------------- */
.actors-sidebar .primary-party .entry-name::after {
  content: " ✦";
  color: var(--dnd5e-color-blue);
}
.dnd5e2.sheet.item {
  /* ---------------------------------- */
  /*  Outer Window                      */
  /* ---------------------------------- */
  --dnd5e-sheet-header-height: 170px;
  border: var(--dnd5e-border-gold);
  /* ---------------------------------- */
  /*  Sheet Header                      */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Tabs                              */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Sheet Body                        */
  /* ---------------------------------- */
  /* Descriptions */
  /* Container Contents */
  /* Advancements */
  /* Details */
  /* Activities */
  /* Facilities */
  /* ---------------------------------- */
  /*  Editable                          */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Locked                            */
  /* ---------------------------------- */
}
.dnd5e2.sheet.item:not(.minimized)::before {
  content: var(--dnd5e-item-header-content, none);
  background: var(--dnd5e-item-header-image) no-repeat top center / cover;
  position: absolute;
  inset: 0 0 auto 0;
  height: 150px;
  border-radius: 5px 5px 0 0;
  opacity: 0.2;
  mask-image: linear-gradient(to bottom, black, transparent);
}
.dnd5e2.sheet.item .window-header {
  flex-wrap: nowrap;
}
.dnd5e2.sheet.item .window-header .header-elements {
  display: contents;
  flex: none;
  color: var(--color-text-primary);
  font-family: var(--dnd5e-font-roboto-condensed);
  line-height: 1;
}
.dnd5e2.sheet.item .window-header .header-elements .source-book {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dnd5e2.sheet.item .window-header .header-elements button {
  margin: 0;
  display: grid;
  place-content: center;
}
.dnd5e2.sheet.item .window-header .header-elements button[hidden] {
  display: none;
}
.dnd5e2.sheet.item .window-header .header-elements i {
  font-size: var(--font-size-11);
  color: var(--color-text-tertiary);
  margin: 0;
}
.dnd5e2.sheet.item .window-header .state-toggle.active {
  color: var(--item-state-toggle-active);
}
.dnd5e2.sheet.item:not(.minimized) .window-content {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 12px 8px;
  gap: 8px;
}
.dnd5e2.sheet.item.minimized {
  box-shadow: 0 0 20px var(--color-shadow-dark);
  background: url("../../ui/denim075.png");
  border: unset;
}
.dnd5e2.sheet.item.minimized .window-header .window-title {
  visibility: visible;
}
.dnd5e2.sheet.item.minimized .window-header :is(slide-toggle, .header-elements) {
  display: none;
}
.dnd5e2.sheet.item .sheet-header {
  display: flex;
  padding: 0 12px;
  margin-top: 8px;
  align-items: stretch;
  gap: 8px;
  min-height: 104px;
  /* Icon */
  /* Name */
  /* Subtitles */
  /* Spell School */
  /* Weight, Price, & Quantity */
}
.dnd5e2.sheet.item .sheet-header input,
.dnd5e2.sheet.item .sheet-header select {
  background: var(--dnd5e-background-5);
}
.dnd5e2.sheet.item .sheet-header > .left {
  flex: none;
}
.dnd5e2.sheet.item .sheet-header > .middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
.dnd5e2.sheet.item .sheet-header > .right {
  flex: 0 0 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: end;
}
.dnd5e2.sheet.item .sheet-header .item-image {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  border: 2px solid var(--dnd5e-color-gold);
  box-shadow: 0 0 4px var(--dnd5e-shadow-45);
  object-fit: cover;
  background: var(--dnd5e-background-alt-1);
  margin: 0;
  color: var(--color-light-1);
  text-align: center;
  align-content: center;
}
.dnd5e2.sheet.item .sheet-header .document-name {
  text-align: center;
  font-size: var(--font-size-32);
  font-family: var(--dnd5e-font-modesto);
  font-weight: bold;
}
.dnd5e2.sheet.item .sheet-header input.document-name {
  text-align: center;
}
.dnd5e2.sheet.item .sheet-header .identity-info .subtitles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  font-family: var(--dnd5e-font-roboto-condensed);
  font-size: var(--font-size-14);
  height: 32px;
  /* Rarity */
}
.dnd5e2.sheet.item .sheet-header .identity-info .subtitles:empty {
  display: none;
}
.dnd5e2.sheet.item .sheet-header .identity-info .subtitles li::after {
  content: "•";
  margin-left: 4px;
}
.dnd5e2.sheet.item .sheet-header .identity-info .subtitles li:last-child::after,
.dnd5e2.sheet.item .sheet-header .identity-info .subtitles li:has(+ .full-width)::after {
  content: "";
  margin: 0;
}
.dnd5e2.sheet.item .sheet-header .identity-info .subtitles li.full-width {
  flex: 1 0 100%;
  font-size: var(--font-size-12);
  text-align: center;
}
.dnd5e2.sheet.item .sheet-header .identity-info .subtitles li.full-width::before {
  display: none;
}
.dnd5e2.sheet.item .sheet-header .identity-info .subtitles .item-rarity {
  text-transform: capitalize;
}
.dnd5e2.sheet.item .sheet-header .identity-info .subtitles .item-rarity > select {
  text-transform: capitalize;
}
.dnd5e2.sheet.item .sheet-header .school {
  --icon-size: 48px;
  --icon-fill: var(--dnd5e-color-gold);
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
}
.dnd5e2.sheet.item .sheet-header .common-fields {
  color: var(--color-text-secondary);
  font-size: var(--font-size-13);
  gap: 8px;
}
.dnd5e2.sheet.item .sheet-header .common-fields.physical {
  justify-content: start;
  padding-top: 10px;
}
.dnd5e2.sheet.item .sheet-header .common-fields .weight,
.dnd5e2.sheet.item .sheet-header .common-fields .price,
.dnd5e2.sheet.item .sheet-header .common-fields .quantity {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dnd5e2.sheet.item .sheet-header .common-fields input {
  text-align: center;
}
.dnd5e2.sheet.item .sheet-header .common-fields select {
  color: var(--color-text-primary);
  font-size: var(--font-size-11);
  padding: 0;
}
.dnd5e2.sheet.item nav.tabs {
  justify-content: space-evenly;
  font-family: var(--dnd5e-font-roboto);
  text-transform: uppercase;
  font-size: var(--font-size-13);
  font-weight: bold;
  align-items: start;
  border: none;
}
.dnd5e2.sheet.item nav.tabs .item {
  color: var(--color-text-secondary);
  text-align: center;
  flex: 1;
}
.dnd5e2.sheet.item nav.tabs .item > span {
  padding-bottom: 1px;
}
.dnd5e2.sheet.item nav.tabs .item.active {
  color: var(--color-text-primary);
  text-shadow: none;
}
.dnd5e2.sheet.item nav.tabs .item.active > span {
  border-bottom: 3px solid var(--dnd5e-color-gold);
}
.dnd5e2.sheet.item form > hr.ampersand {
  margin-bottom: -4px;
}
.dnd5e2.sheet.item .tab {
  max-height: calc(min(max(70vh, 1000px), 95vh) - var(--dnd5e-sheet-header-height));
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: -6px -11px -6px -6px;
  padding: 6px 2px 6px 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--dnd5e-color-scrollbar) transparent;
  scrollbar-gutter: stable;
}
.dnd5e2.sheet.item .tab:not(.active) {
  display: none;
}
.dnd5e2.sheet.item .tab.effects,
.dnd5e2.sheet.item .tab.activities {
  padding: 12px 2px 58px 6px;
}
.dnd5e2.sheet.item .tab > .pills .pill {
  font-size: var(--font-size-10);
  padding: 3px 6px;
  line-height: 1;
}
.dnd5e2.sheet.item .tab.single-description {
  padding-right: 9px;
  scrollbar-gutter: auto;
}
.dnd5e2.sheet.item .tab.editing {
  scrollbar-gutter: auto;
  margin-inline: -12px;
  padding-inline: 0;
}
.dnd5e2.sheet.item .tab.editing .pills {
  padding-inline: 12px;
}
.dnd5e2.sheet.item .spell-block {
  width: 250px;
  margin: 4px auto 4px;
}
.dnd5e2.sheet.item .info-block {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 16px;
}
.dnd5e2.sheet.item .info-block > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dnd5e2.sheet.item .info-block > div .label {
  font-family: var(--dnd5e-font-roboto-condensed);
  font-size: var(--font-size-11);
  color: var(--color-text-secondary);
  text-transform: uppercase;
}
.dnd5e2.sheet.item .info-block > div .label .config-button {
  color: var(--color-text-tertiary);
}
.dnd5e2.sheet.item .info-block > div div.value {
  font-size: var(--font-size-14);
  font-family: var(--dnd5e-font-roboto);
}
.dnd5e2.sheet.item .info-block > div.info-sm div.value {
  margin-top: 4px;
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.item .info-block > div.info-lg div.value {
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
  font-size: var(--font-size-24);
}
.dnd5e2.sheet.item .info-block > div .sign {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-18);
}
.dnd5e2.sheet.item .info-block > div.info-grid div.value {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px;
}
.dnd5e2.sheet.item .info-block > div.damage div.value {
  --icon-fill: var(--color-text-secondary);
  color: var(--color-text-secondary);
}
.dnd5e2.sheet.item .item-descriptions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dnd5e2.sheet.item .item-descriptions .description {
  padding: 8px;
  font-family: var(--dnd5e-font-roboto-condensed);
  box-shadow: 0 0 6px var(--dnd5e-shadow-15);
}
.dnd5e2.sheet.item .item-descriptions .description > .header {
  background: none;
  border: none;
  color: var(--color-text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dnd5e2.sheet.item .item-descriptions .description > .header > span {
  flex: 1;
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
  text-align: center;
  font-size: var(--font-size-14);
}
.dnd5e2.sheet.item .item-descriptions .description > .header > button {
  flex: none;
  width: unset;
}
.dnd5e2.sheet.item .item-descriptions .description > .header > button:hover,
.dnd5e2.sheet.item .item-descriptions .description > .header > button:focus-visible {
  box-shadow: none;
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2.sheet.item .item-descriptions .description:not(.collapsible) > .header {
  padding-left: 14px;
}
.dnd5e2.sheet.item .item-descriptions .description.collapsible > .header {
  cursor: var(--cursor-pointer);
}
.dnd5e2.sheet.item .item-descriptions .description.collapsible > .header::before {
  content: "\f078";
  font-family: var(--font-awesome);
  font-weight: bold;
  color: var(--color-text-secondary);
  transition: all 250ms ease;
}
.dnd5e2.sheet.item .item-descriptions .description.collapsible.empty > .header {
  cursor: unset;
}
.dnd5e2.sheet.item .item-descriptions .description.collapsible.empty > .header::before {
  visibility: hidden;
}
.dnd5e2.sheet.item .item-descriptions .description.collapsible.collapsed > .header::before {
  transform: rotate(-90deg);
}
.dnd5e2.sheet.item .item-descriptions .description.collapsible .editor {
  overflow: hidden;
}
.dnd5e2.sheet.item .item-descriptions .description .editor {
  padding: 0 6px;
}
.dnd5e2.sheet.item .inventory-element .top .containers {
  justify-content: end;
}
.dnd5e2.sheet.item .inventory-element .items-section .item-uses,
.dnd5e2.sheet.item .inventory-element .items-section .item-charges {
  display: none;
}
.dnd5e2.sheet.item .inventory-element .items-section .item-price {
  display: flex;
}
.dnd5e2.sheet.item .inventory-element .bottom {
  position: sticky;
  bottom: -6px;
}
.dnd5e2.sheet.item .inventory-element .bottom .encumbrance {
  border: var(--dnd5e-border-gold);
  border-radius: 3px;
  box-shadow: 0 0 6px var(--dnd5e-shadow-45);
  width: unset;
}
.dnd5e2.sheet.item .inventory-element .bottom .encumbrance .breakpoint {
  display: none;
}
.dnd5e2.sheet.item .inventory-element .bottom .encumbrance .meter {
  border-radius: 3px;
}
.dnd5e2.sheet.item .tab.advancement {
  padding: 12px 2px 58px 6px;
}
.dnd5e2.sheet.item .tab.advancement .items-header .item-controls {
  align-items: center;
  justify-content: end;
  padding-right: 12px;
}
.dnd5e2.sheet.item .tab.advancement .items-header .info-control,
.dnd5e2.sheet.item .tab.advancement .items-header .item-control {
  position: unset;
  color: var(--dnd5e-color-gold);
}
.dnd5e2.sheet.item .tab.advancement .item-name .name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dnd5e2.sheet.item .tab.advancement .item-name .tags {
  --icon-size: 18px;
}
.dnd5e2.sheet.item .tab.advancement .item-name .title {
  font-family: var(--dnd5e-font-roboto-slab);
  font-size: var(--font-size-13);
  font-weight: bold;
}
.dnd5e2.sheet.item .tab.advancement .item-name .summary {
  display: flex;
  flex-wrap: wrap;
  font-size: var(--font-size-10);
  color: var(--color-text-secondary);
}
.dnd5e2.sheet.item .tab.advancement .item-name .summary p {
  margin: 0;
}
.dnd5e2.sheet.item .tab.advancement .item-name .summary .content-link {
  color: var(--advancement-summary-link-color);
  text-decoration-style: dotted;
}
.dnd5e2.sheet.item .tab.advancement .item-name .summary .content-link > i {
  color: var(--advancement-summary-link-color);
}
.dnd5e2.sheet.item .tab.advancement .item-name .summary .tag {
  padding: 0 3px;
  text-decoration: underline dotted;
}
.dnd5e2.sheet.item .tab.advancement .advancement-value {
  width: 50px;
}
.dnd5e2.sheet.item .tab.advancement .item-detail.advancement-value {
  font-size: var(--font-size-13);
}
.dnd5e2.sheet.item .tab.advancement .svg .item-image {
  border: none;
  background: none;
  box-shadow: none;
  filter: var(--advancement-icon-filter, none);
}
.dnd5e2.sheet.item .tab.details .starting-equipment {
  font-family: var(--dnd5e-font-roboto-condensed);
}
.dnd5e2.sheet.item .tab.details .starting-equipment.empty {
  padding: 8px;
  text-align: center;
  font-style: italic;
  color: var(--color-text-secondary);
}
.dnd5e2.sheet.item .tab.details .starting-equipment li {
  line-height: 1.5;
}
.dnd5e2.sheet.item .tab.details .form-group .sep.unit {
  margin-inline: 4px;
  font-weight: bold;
}
.dnd5e2.sheet.item .tab.details legend .control-button {
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.item .activities {
  gap: 0;
}
.dnd5e2.sheet.item .activities-list .activity:first-child {
  border-left: 4px solid var(--dnd5e-color-gold);
}
.dnd5e2.sheet.item fieldset.harvesting {
  display: grid;
  grid-template: "a a" "b c" / 1fr 60px;
  column-gap: 8px;
}
.dnd5e2.sheet.item fieldset.harvesting > .form-group {
  grid-area: a;
}
.dnd5e2.sheet.item fieldset.harvesting .facility-craft {
  grid-area: b;
}
.dnd5e2.sheet.item fieldset.harvesting .quantity {
  grid-area: c;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dnd5e2.sheet.item fieldset.harvesting .quantity .separator {
  color: var(--color-text-secondary);
}
.dnd5e2.sheet.item form.editable .sheet-header .common-fields {
  gap: 4px;
}
.dnd5e2.sheet.item form.editable .sheet-header .common-fields .separator {
  padding: 0 4px 0 6px;
}
.dnd5e2.sheet.item form.editable .sheet-header .common-fields.physical {
  justify-content: center;
  padding: 0;
}
.dnd5e2.sheet.item form.locked .item-descriptions .description:not(.collapsible) > .header {
  display: none;
}
/* ----------------------------------------- */
/*  Starting Equipment Configuration         */
/* ----------------------------------------- */
.dnd5e2.starting-equipment select,
.dnd5e2.starting-equipment input {
  height: calc(var(--form-field-height) + 1px);
}
.dnd5e2.starting-equipment button[data-action="add-entry"] {
  width: 100%;
}
.dnd5e2.starting-equipment ul {
  margin-block-end: 0;
  padding: 0;
  list-style: none;
  gap: 12px;
}
.dnd5e2.starting-equipment li[data-entry-id] {
  position: relative;
  padding: 8px;
  background: var(--background-depth-1);
  border: var(--dnd5e-border-gold);
  border-radius: 4px;
  box-shadow: 0 0 4px var(--dnd5e-shadow-45);
}
.dnd5e2.starting-equipment li[data-entry-id]:has(.drag-bar) {
  padding-inline-end: 18px;
}
.dnd5e2.starting-equipment li[data-entry-id][data-depth="2"] {
  background: var(--background-depth-2);
}
.dnd5e2.starting-equipment li[data-entry-id][data-depth="3"] {
  background: var(--background-depth-3);
}
.dnd5e2.starting-equipment li[data-entry-id] .controls,
.dnd5e2.starting-equipment li[data-entry-id] .data {
  gap: 4px;
}
.dnd5e2.starting-equipment li[data-entry-id] .controls {
  justify-content: space-between;
  margin-block-end: 4px;
}
.dnd5e2.starting-equipment li[data-entry-id] .drag-bar {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  inset-block: 0;
  inset-inline-end: 0;
  inline-size: 16px;
  cursor: var(--cursor-grab);
  color: var(--dnd5e-color-faint);
}
.dnd5e2.starting-equipment li[data-entry-id] [data-action="delete-entry"] {
  --size: 26px;
  flex: 0 0 var(--size);
  margin: 0;
  padding: 0;
  block-size: var(--size);
  inline-size: var(--size);
  border: none;
  background: none;
  text-align: center;
}
.dnd5e2.starting-equipment li[data-entry-id] [data-action="delete-entry"]:hover,
.dnd5e2.starting-equipment li[data-entry-id] [data-action="delete-entry"]:focus {
  box-shadow: none;
}
.dnd5e2.starting-equipment li[data-entry-id] [data-action="delete-entry"]:hover,
.dnd5e2.starting-equipment li[data-entry-id] [data-action="delete-entry"]:focus-visible {
  text-shadow: 0 0 5px var(--color-shadow-primary);
}
.dnd5e2.starting-equipment li[data-entry-id] [name$=".count"] {
  flex: 0 0 3em;
}
.dnd5e2.starting-equipment li[data-entry-id] .content-link,
.dnd5e2.starting-equipment li[data-entry-id] .drop-area {
  display: flex;
  align-items: center;
}
.dnd5e2.starting-equipment li[data-entry-id] .drop-area {
  border: 1px dashed var(--color-border-light-2);
  border-radius: 4px;
  padding: 6px;
  font-size: var(--font-size-11);
  color: var(--color-text-secondary);
}
.dnd5e2.starting-equipment li[data-entry-id] .require-proficiency {
  flex: 0.66;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-11);
  text-align: end;
}
.dnd5e2.starting-equipment li[data-entry-id] .require-proficiency dnd5e-checkbox {
  width: 14px;
  height: 14px;
}
/* ---------------------------------- */
/*  Basic Structure                   */
/* ---------------------------------- */
.dnd5e2.sheet.actor.character {
  --dnd5e-sheet-header-height: 170px;
  --dnd5e-sheet-header-right-width: 280px;
  --dnd5e-sheet-sidebar-width: 230px;
  box-shadow: none;
  /* ---------------------------------- */
  /*  Sheet Header                      */
  /* ---------------------------------- */
  /* Name */
  /* ---------------------------------- */
  /*  Sheet Body                        */
  /* ---------------------------------- */
  /* Editors */
  /* Features */
  /* ---------------------------------- */
  /*  Ability Scores                    */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Spells                            */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Biography                         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Bastion                           */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Collapsed                         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Limited Sheets                    */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Edit Mode                         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Accessibility                     */
  /* ---------------------------------- */
}
.dnd5e2.sheet.actor.character:not(.minimized, .minimizing, .maximizing) {
  min-width: 800px;
  min-height: 700px;
}
.dnd5e2.sheet.actor.character .window-content {
  margin-block-start: -65px;
  padding-block: 0;
  gap: 0;
  overflow: visible;
}
.dnd5e2.sheet.actor.character:not(.minimized) .window-content::before {
  content: var(--dnd5e-character-background-content, none);
  background: var(--dnd5e-character-background-image) no-repeat top center / cover;
  position: absolute;
  inset: 0 0 auto 0;
  height: 300px;
  border-radius: 5px 5px 0 0;
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, black, transparent);
}
.dnd5e2.sheet.actor.character .sheet-header {
  flex: 0 0 var(--dnd5e-sheet-header-height);
  background: var(--dnd5e-character-header-image) no-repeat center / cover;
  border: none;
  border-radius: 5px 5px 0 0;
  display: grid;
  grid-template-columns: 1fr var(--dnd5e-sheet-header-right-width);
  align-items: center;
  position: relative;
  /* Name & Class */
  /* Level, XP, & Buttons */
}
.dnd5e2.sheet.actor.character .sheet-header .document-name {
  color: var(--color-text-light-0);
  font-size: var(--font-size-46);
  text-shadow: 2px 2px 2px var(--color-shadow-dark);
  letter-spacing: 2px;
}
.dnd5e2.sheet.actor.character .sheet-header > .left {
  padding: 0 1.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  /* Class */
}
.dnd5e2.sheet.actor.character .sheet-header > .left.optional-ability-1 {
  padding-right: 8.5rem;
}
.dnd5e2.sheet.actor.character .sheet-header > .left.optional-ability-1 .document-name {
  font-size: var(--font-size-42);
}
.dnd5e2.sheet.actor.character .sheet-header > .left.optional-ability-2 {
  padding-right: 14rem;
}
.dnd5e2.sheet.actor.character .sheet-header > .left.optional-ability-2 .document-name {
  font-size: var(--font-size-36);
}
.dnd5e2.sheet.actor.character .sheet-header > .left .class {
  color: var(--dnd5e-color-gold);
  font-size: var(--font-size-14);
}
.dnd5e2.sheet.actor.character .sheet-header > .right {
  --level-size: 78px;
  --padding-right: 3rem;
  padding-right: var(--padding-right);
  display: flex;
  flex-direction: column;
  position: relative;
  /* Level */
  /* Inspiration */
  /* Epic Boons */
  /* XP & Buttons */
}
.dnd5e2.sheet.actor.character .sheet-header > .right .level-badge {
  width: var(--level-size);
  height: var(--level-size);
  margin-left: auto;
}
.dnd5e2.sheet.actor.character .sheet-header > .right .inspiration {
  --size: 36px;
  padding: 0;
  position: absolute;
  right: calc(var(--level-size) + var(--padding-right) - var(--size) / 2);
  top: calc(var(--level-size) / 2 - var(--size) / 2);
  width: var(--size);
  height: var(--size);
  background: transparent url("ui/inspiration.webp") no-repeat center / contain;
  filter: drop-shadow(0 3px 4px var(--dnd5e-shadow-45));
  display: grid;
  place-content: center;
}
.dnd5e2.sheet.actor.character .sheet-header > .right .inspiration:hover {
  box-shadow: none;
  filter: drop-shadow(0 3px 4px rgba(255, 255, 255, 0.5));
}
.dnd5e2.sheet.actor.character .sheet-header > .right .inspiration[aria-pressed="true"]::after {
  content: "";
  width: calc(var(--size) / 4 - 1px);
  height: calc(var(--size) / 4 - 1px);
  background: white;
  transform: rotate(45deg);
  box-shadow: 0 0 8px 3px var(--color-shadow-highlight);
  animation: pulsate-inspiration 3s infinite ease-in-out;
}
@keyframes pulsate-inspiration {
  0% {
    box-shadow: 0 0 8px 3px var(--color-shadow-highlight);
  }
  50% {
    box-shadow: 0 0 8px 4px var(--color-shadow-highlight);
  }
  100% {
    box-shadow: 0 0 8px 3px var(--color-shadow-highlight);
  }
}
@media (prefers-reduced-motion) {
  .dnd5e2.sheet.actor.character .sheet-header > .right .inspiration[aria-pressed="true"]::after {
    animation: none;
  }
}
.dnd5e2.sheet.actor.character .sheet-header > .right .boon-badge {
  --size: 36px;
  position: absolute;
  right: calc(var(--padding-right) + var(--level-size) / 6 - var(--size) / 2);
  top: calc(var(--level-size) / 5 - var(--size) / 2);
  width: var(--size);
  height: var(--size);
  background: transparent url("ui/boon-badge.webp") no-repeat center / contain;
  filter: drop-shadow(0 3px 4px var(--dnd5e-shadow-45));
  font-size: var(--font-size-15);
  font-family: var(--dnd5e-font-roboto-slab);
  display: flex;
  padding-top: 4px;
  text-shadow: 0 0 2px black;
}
.dnd5e2.sheet.actor.character .sheet-header > .right > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: -0.5rem;
  /* Resting & Special Traits */
  /* XP */
}
.dnd5e2.sheet.actor.character .sheet-header > .right > div:last-child .sheet-header-buttons {
  position: absolute;
  top: 1.5625rem;
}
.dnd5e2.sheet.actor.character .sheet-header > .right > div:last-child .xp-label {
  color: var(--dnd5e-color-gold);
  font-size: var(--font-size-12);
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.dnd5e2.sheet.actor.character .sheet-header > .right > div:last-child .xp-label > input {
  width: 55px;
  text-align: right;
  padding: 0.125rem 0.25rem;
}
.dnd5e2.sheet.actor.character .sheet-header > .right > div:last-child .xp-bar {
  --bar-percentage: 0%;
  border: 1px solid var(--dnd5e-color-gold);
  border-radius: 3px;
  background: black;
  width: 100%;
  height: 8px;
  overflow: hidden;
}
.dnd5e2.sheet.actor.character .sheet-header > .right > div:last-child .xp-bar::after {
  content: "";
  height: 100%;
  width: var(--bar-percentage);
  background: var(--dnd5e-color-red);
  display: block;
  box-shadow: inset 0 1px 0 1px var(--dnd5e-highlight-40);
  border-radius: 2px;
}
.dnd5e2.sheet.actor.character .document-name {
  font-family: var(--dnd5e-font-modesto);
  font-weight: bold;
  padding: 0;
  margin: 0;
  transition: all 250ms ease;
}
.dnd5e2.sheet.actor.character input.document-name {
  padding: 5px 12px;
  border-radius: 6px;
}
.dnd5e2.sheet.actor.character.tab-details .tab-body {
  padding-top: 56px;
}
.dnd5e2.sheet.actor.character .sheet-body {
  flex: 1;
  border-radius: 5px;
  position: relative;
  background: var(--dnd5e-character-body-image);
  /* Main Content */
  /* Sidebar */
  /* Tabbed Content */
  /* Skills, Tools, & Saving Throws */
  /* Background Pills */
  /* Senses & Traits */
  /* Item Sections */
}
.dnd5e2.sheet.actor.character .sheet-body .main-content {
  display: grid;
  grid-template-columns: var(--dnd5e-sheet-sidebar-width) 1fr;
  gap: 12px;
  position: absolute;
  inset: 0;
  padding: 8px;
  padding-inline-end: 0;
  overflow: hidden auto;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  scrollbar-color: var(--dnd5e-color-scrollbar) transparent;
  transition: all 450ms ease;
}
.dnd5e2.sheet.actor.character .sheet-body .main-content::-webkit-scrollbar-track {
  box-shadow: none;
  border-radius: 0;
}
.dnd5e2.sheet.actor.character .sheet-body .main-content::-webkit-scrollbar-thumb {
  border: none;
  background: var(--dnd5e-color-scrollbar);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: margin-left 450ms ease;
  /* Character Card */
  /* Favorites */
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card {
  box-shadow: 0 0 9px var(--color-shadow-dark);
  border-radius: 3px;
  border: none;
  position: relative;
  background: var(--dnd5e-background-alt-2);
  transform-style: preserve-3d;
  transform: translateZ(1px);
  z-index: 1;
  /* Tabs */
  /* Collapser */
  /* Portrait */
  /* Stats */
  /* Hit Points & Hit Dice */
  /* Death Saves */
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card > .portrait,
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card > .stats {
  transform: translateZ(2px);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .card-tab {
  display: grid;
  place-content: center;
  background: var(--dnd5e-background-alt-2);
  cursor: var(--cursor-pointer);
  box-shadow: 0 0 6px var(--color-shadow-dark);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .card-tab:hover,
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .card-tab:focus {
  box-shadow: 0 0 6px var(--color-shadow-dark);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .card-tab.horizontal {
  width: 32px;
  height: 20px;
  border-radius: 0 0 3px 3px;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .card-tab.vertical {
  width: 20px;
  height: 32px;
  border-radius: 0 3px 3px 0;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .card-tab > i {
  color: var(--dnd5e-color-gold);
  font-size: 12px;
  margin: 0;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .card-tab.collapser {
  position: absolute;
  inset: 0.5rem auto auto 100%;
  transform: translateZ(-1px);
  width: 16px;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .portrait {
  position: relative;
  width: 100%;
  cursor: var(--cursor-pointer);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .portrait > img,
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .portrait > video {
  display: block;
  object-fit: cover;
  object-position: top center;
  border: none;
  width: 100%;
  max-height: 300px;
  min-height: var(--dnd5e-sheet-sidebar-width);
  border-radius: 3px 3px 0 0;
  border-bottom: 2px solid var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .portrait::after {
  content: "";
  position: absolute;
  inset: 6px 6px 8px;
  border: 2px solid var(--dnd5e-color-gold);
  pointer-events: none;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .portrait > label.slide-toggle {
  position: absolute;
  z-index: 1;
  padding: 1rem 0;
  width: 100%;
  text-align: center;
  color: var(--dnd5e-color-gold);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 75%, transparent);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .portrait > label.slide-toggle:has(input:not([disabled])):hover {
  text-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .portrait.token::after {
  display: none;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .portrait.token > img,
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .portrait.token > video {
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  margin-bottom: -1rem;
  border: none;
  filter: drop-shadow(0 0 8px var(--dnd5e-color-black));
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .stats {
  padding-bottom: 0.5rem;
  border-radius: 0 0 3px 3px;
  /* Initiative, Speed, & Proficiency */
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .stats .top {
  display: flex;
  align-items: start;
  justify-content: center;
  position: relative;
  /* Exhaustion */
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .stats .top .pips {
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .stats .top .pips .pip.filled.death::before {
  content: "\f54c";
  font-family: var(--font-awesome);
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .stats .lozenges {
  display: flex;
  justify-content: space-evenly;
  padding: 0 0.5rem;
  margin-top: -7px;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .stats .lozenges .lozenge {
  width: 68px;
  height: 45px;
  background: transparent url("ui/lozenge.svg") no-repeat top center / contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  filter: drop-shadow(0 0 6px var(--dnd5e-shadow-45));
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .stats .lozenges .lozenge .value {
  font-family: var(--dnd5e-font-roboto);
  font-size: 20px;
  font-weight: bold;
  color: var(--color-text-light-0);
  height: 100%;
  line-height: 30px;
  text-shadow: 0 0 4px var(--dnd5e-highlight-45);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .stats .lozenges .lozenge .value .config-button {
  color: inherit;
  font-size: inherit;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .stats .lozenges .lozenge .label {
  font-size: 10px;
  color: var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .stats .lozenges .lozenge:nth-child(2) {
  margin-top: 24px;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .stats .lozenges .lozenge.rollable:hover .value {
  cursor: var(--cursor-pointer);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .stats .lozenges .lozenge.rollable:hover .value > span {
  display: none;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .stats .lozenges .lozenge.rollable:hover .value::before {
  content: "\f6cf";
  font-family: var(--font-awesome);
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .stats .top:has([data-n="7"]) + .lozenges {
  margin-block-start: 0;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .meter-group {
  padding: 0 0.5rem;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .meter-group + .meter-group {
  margin-top: 0.5rem;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .meter-group > .label {
  font-size: var(--font-size-11);
  color: var(--dnd5e-color-gold);
  text-shadow: 0 0 6px var(--dnd5e-shadow-45);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .meter-group > .label > .config-button {
  color: inherit;
  font-size: inherit;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .death-tray {
  --lip: 6px;
  --tray-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
  position: absolute;
  width: 100%;
  top: calc(100% - var(--tray-height));
  transform: translateZ(-1px);
  transition: top 450ms cubic-bezier(0.36, 0, 0.66, -0.56);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .death-tray.open {
  top: calc(100% - var(--lip));
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .death-tray .death-saves {
  --padding: 6px;
  background: black;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 0 6px var(--color-shadow-dark);
  padding: calc(var(--padding) * 2 + var(--lip)) var(--padding) calc(var(--padding) * 2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .death-tray .death-saves::after {
  content: "";
  border: 1px solid var(--dnd5e-color-gold);
  border-radius: 4px;
  position: absolute;
  inset: calc(var(--padding) + var(--lip)) var(--padding) var(--padding);
  pointer-events: none;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .death-tray .death-saves .death-save {
  width: 40px;
  height: 40px;
  padding: 0;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .death-tray .death-saves .death-save dnd5e-icon {
  --icon-size: 40px;
  --icon-fill: var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .death-tray .death-saves .death-save .fas {
  color: var(--dnd5e-color-gold);
  font-size: 32px;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .death-tray .death-saves .death-save:hover {
  background: none;
  box-shadow: none;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .death-tray .death-saves .death-save:not(:disabled):hover {
  filter: drop-shadow(0 0 4px var(--color-shadow-primary));
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .death-tray .death-saves .pip {
  background: black;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .death-tray .death-saves .pip.filled {
  background: var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .death-tray .death-saves .pip.filled.failure::before {
  content: "\f00d";
  font-family: var(--font-awesome);
  font-size: var(--font-size-14);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites {
  flex: 1;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > h3 {
  border-bottom-color: currentcolor;
  color: var(--dnd5e-color-gold);
  margin-bottom: 0.5rem;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: var(--dnd5e-border-separator-faint);
  padding-top: 0.375rem;
  margin-top: 0.375rem;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul li:first-child:not(.drop) {
  margin: 0;
  border: none;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul li.effect:not(.suppressed) {
  cursor: var(--cursor-pointer);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul li.effect:not(.suppressed):hover .title {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul li.effect:not(.suppressed):hover .primary i {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul li.effect.suppressed {
  color: var(--color-text-tertiary);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .drop {
  border: 2px dashed var(--drop-region-border-color);
  border-radius: 4px;
  color: var(--drop-region-text-color);
  padding: 0.625rem 0.5rem;
  font-size: var(--font-size-13);
  opacity: 0.25;
  justify-content: center;
  margin-top: 0.75rem;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul figure {
  width: unset;
  position: relative;
  margin: 0;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul img {
  width: 32px;
  height: 32px;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .deletion-control {
  position: absolute;
  inset: auto auto 2px 2px;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .name-stacked {
  flex: 1;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .name-stacked .title {
  font-size: var(--font-size-13);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .name-stacked.rollable {
  cursor: var(--cursor-pointer);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .name-stacked.rollable:hover .title {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info {
  flex: 0 0 60px;
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: var(--font-size-16);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary.uses-sm {
  font-size: var(--font-size-13);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary.uses {
  justify-content: space-between;
  gap: unset;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary.uses .value,
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary.uses .max {
  width: 24px;
  text-align: center;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary.uses .separator,
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary.uses .max {
  color: var(--color-text-tertiary);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary.uses input {
  background: none;
  padding: 0;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary.uses input:hover,
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary.uses input:focus {
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary.save {
  flex-direction: column;
  gap: unset;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary.save .ability {
  text-transform: uppercase;
  color: var(--dnd5e-color-gold);
  font-size: var(--font-size-10);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary.disabled i,
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary .sign,
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary .passive {
  color: var(--color-text-tertiary);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .primary .passive {
  font-size: var(--font-size-13);
  margin-left: 0.25rem;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .info .secondary {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-10);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul.value {
  justify-content: center;
}
.dnd5e2.sheet.actor.character .sheet-body .tab-body .col-2 {
  --skills-col-width: 260px;
  display: grid;
  grid-template-columns: var(--skills-col-width) 1fr;
  gap: 0.75rem;
}
.dnd5e2.sheet.actor.character .sheet-body .tab-body .col-2 > .left,
.dnd5e2.sheet.actor.character .sheet-body .tab-body .col-2 .right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dnd5e2.sheet.actor.character .sheet-body .tab-body .col-2 .right .top {
  gap: 0.5rem;
  align-items: start;
}
.dnd5e2.sheet.actor.character .sheet-body .tab-body .tab:not([data-tab="details"]) {
  padding-inline: 0.5rem;
}
.dnd5e2.sheet.actor.character .sheet-body .tab-body .tab:not([data-tab="details"], [data-tab="biography"], [data-tab="bastion"], [data-tab="specialTraits"]) {
  padding-bottom: calc(1.5rem + 30px);
}
.dnd5e2.sheet.actor.character .sheet-body .skills > ul,
.dnd5e2.sheet.actor.character .sheet-body .tools > ul,
.dnd5e2.sheet.actor.character .sheet-body .saves > ul {
  list-style: none;
  padding: 0 1rem 0.75rem;
  margin: 0;
}
.dnd5e2.sheet.actor.character .sheet-body .skills > ul > li,
.dnd5e2.sheet.actor.character .sheet-body .tools > ul > li,
.dnd5e2.sheet.actor.character .sheet-body .saves > ul > li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.375rem;
  border-bottom: var(--dnd5e-border-dotted);
}
.dnd5e2.sheet.actor.character .sheet-body .skills > ul > li:last-child,
.dnd5e2.sheet.actor.character .sheet-body .tools > ul > li:last-child,
.dnd5e2.sheet.actor.character .sheet-body .saves > ul > li:last-child {
  border: none;
}
.dnd5e2.sheet.actor.character .sheet-body .skills > ul > li .config-button,
.dnd5e2.sheet.actor.character .sheet-body .tools > ul > li .config-button,
.dnd5e2.sheet.actor.character .sheet-body .saves > ul > li .config-button {
  font-size: var(--font-size-11);
  color: var(--color-text-tertiary);
  width: 20px;
  text-align: center;
}
.dnd5e2.sheet.actor.character .sheet-body .skills .trait-selector,
.dnd5e2.sheet.actor.character .sheet-body .tools .trait-selector,
.dnd5e2.sheet.actor.character .sheet-body .saves .trait-selector {
  position: absolute;
  inset: 0.875rem 1.6875rem auto auto;
  font-size: var(--font-size-11);
  color: var(--color-text-tertiary);
}
.dnd5e2.sheet.actor.character .sheet-body .skills .ability,
.dnd5e2.sheet.actor.character .sheet-body .tools .ability,
.dnd5e2.sheet.actor.character .sheet-body .saves .ability {
  font-size: var(--font-size-12);
  color: var(--dnd5e-ability-color);
  width: 30px;
}
.dnd5e2.sheet.actor.character .sheet-body .skills select.ability,
.dnd5e2.sheet.actor.character .sheet-body .tools select.ability,
.dnd5e2.sheet.actor.character .sheet-body .saves select.ability {
  height: 14px;
  width: 48px;
  padding: 0;
}
.dnd5e2.sheet.actor.character .sheet-body .skills .name,
.dnd5e2.sheet.actor.character .sheet-body .tools .name,
.dnd5e2.sheet.actor.character .sheet-body .saves .name {
  flex: 1;
  font-family: var(--dnd5e-font-roboto-condensed);
  font-size: var(--font-size-14);
}
.dnd5e2.sheet.actor.character .sheet-body .skills .bonus,
.dnd5e2.sheet.actor.character .sheet-body .tools .bonus,
.dnd5e2.sheet.actor.character .sheet-body .saves .bonus {
  width: 20px;
  font-size: var(--font-size-14);
  font-weight: bold;
  text-align: center;
}
.dnd5e2.sheet.actor.character .sheet-body .skills .bonus > .sign,
.dnd5e2.sheet.actor.character .sheet-body .tools .bonus > .sign,
.dnd5e2.sheet.actor.character .sheet-body .saves .bonus > .sign {
  color: var(--color-text-tertiary);
}
.dnd5e2.sheet.actor.character .sheet-body .skills .passive,
.dnd5e2.sheet.actor.character .sheet-body .tools .passive,
.dnd5e2.sheet.actor.character .sheet-body .saves .passive {
  width: 20px;
  height: 11px;
  font-size: var(--font-size-11);
  color: var(--color-text-secondary);
  text-align: center;
}
.dnd5e2.sheet.actor.character .sheet-body .saves {
  container-type: inline-size;
  min-width: var(--skills-col-width);
}
.dnd5e2.sheet.actor.character .sheet-body .saves > ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.dnd5e2.sheet.actor.character .sheet-body .saves > ul > li {
  --border-style: var(--dnd5e-border-dotted);
  border-bottom: none;
  border-top: var(--border-style);
}
.dnd5e2.sheet.actor.character .sheet-body .saves > ul > li.concentration {
  --icon-fill: var(--dnd5e-color-gold);
  padding-left: 8px;
}
.dnd5e2.sheet.actor.character .sheet-body .saves > ul > li.concentration .name {
  text-align: center;
}
.dnd5e2.sheet.actor.character .sheet-body .saves > ul > li.colspan {
  grid-column: auto / span 2;
}
.dnd5e2.sheet.actor.character .sheet-body .saves > ul > li:nth-child(1),
.dnd5e2.sheet.actor.character .sheet-body .saves > ul > li:nth-child(2) {
  border-top: none;
}
.dnd5e2.sheet.actor.character .sheet-body .saves > ul > li:last-child {
  border-top: var(--border-style);
}
.dnd5e2.sheet.actor.character .sheet-body .saves .name.abbr {
  font-family: var(--dnd5e-font-roboto);
  text-transform: uppercase;
  font-weight: bold;
}
.dnd5e2.sheet.actor.character .sheet-body .saves .name.full {
  display: none;
  font-family: var(--dnd5e-font-roboto-condensed);
}
@container (min-width: 300px) {
  .dnd5e2.sheet.actor.character .sheet-body .saves .name.abbr {
    display: none;
  }
  .dnd5e2.sheet.actor.character .sheet-body .saves .name.full {
    display: block;
  }
}
.dnd5e2.sheet.actor.character .sheet-body [data-tab="details"] .pills-lg {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dnd5e2.sheet.actor.character .sheet-body [data-tab="details"] .pills-lg > div {
  width: 100%;
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg {
  position: relative;
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg .name .title {
  color: var(--color-text-title);
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.race,
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.background {
  cursor: var(--cursor-pointer);
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.race:hover:not(:has(a:hover)),
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.background:hover:not(:has(a:hover)) {
  box-shadow: 0 0 12px var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.texture {
  background-blend-mode: var(--pill-background-blend-mode);
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.texture.type {
  background: url("ui/official/pill-texture-type.webp") no-repeat right, var(--pill-background-color);
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.texture.race {
  background: url("ui/official/pill-texture-race.webp") no-repeat right, var(--pill-background-color);
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.texture.background {
  background: url("ui/official/pill-texture-background.webp") no-repeat right, var(--pill-background-color);
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.texture::before {
  --gradient-start: var(--dnd5e-background-card);
  --gradient-end: transparent;
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--gradient-start) 35%, var(--gradient-end));
  border-radius: 5px;
  mix-blend-mode: unset;
  filter: unset;
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.texture > * {
  position: relative;
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg > .creature-type {
  background: transparent no-repeat center / cover;
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg [data-action] {
  color: var(--color-text-secondary);
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg .actor-size {
  width: fit-content;
  height: unset;
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.actor.character .sheet-body .pills-group {
  margin-top: 0.5rem;
}
.dnd5e2.sheet.actor.character .sheet-body .pills-group h3 {
  margin-bottom: 2px;
}
.dnd5e2.sheet.actor.character .sheet-body .pills-group.empty {
  opacity: 0.4;
}
.dnd5e2.sheet.actor.character .sheet-body .pills-group.empty > h3 > a {
  color: var(--dnd5e-color-black);
}
.dnd5e2.sheet.actor.character .sheet-body .pills-group .pill {
  padding: 0.25rem 0.5rem;
}
.dnd5e2.sheet.actor.character .sheet-body .inventory-element {
  gap: 16px;
}
.dnd5e2.sheet.actor.character .sheet-body .inventory-element .items-list {
  gap: 16px;
}
.dnd5e2.sheet.actor.character .sheet-body .effects-element {
  gap: 16px;
}
.dnd5e2.sheet.actor.character .sheet-body .effects-element .effects-list {
  gap: 16px;
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] > .bottom,
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .description {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] > .bottom h3,
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .description h3 {
  margin-right: 1.5rem;
  position: relative;
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] > .bottom h3 i.fa-feather,
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .description h3 i.fa-feather {
  position: absolute;
  inset: auto auto -1px 100%;
  font-size: var(--font-size-18);
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] > .bottom .editor,
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .description .editor {
  flex: 1;
  min-height: 500px;
  overflow-y: visible;
}
.dnd5e2.sheet.actor.character .tab[data-tab=features] {
  gap: 16px;
}
.dnd5e2.sheet.actor.character .ability-scores {
  position: absolute;
  top: 0;
  right: 0;
  left: calc(var(--dnd5e-sheet-sidebar-width) + 18px);
  pointer-events: none;
  container-type: inline-size;
}
.dnd5e2.sheet.actor.character .ability-scores .rows {
  padding: 76px 0 76px 24px;
  display: flex;
  flex-wrap: wrap;
  width: 546px;
  margin-left: auto;
}
.dnd5e2.sheet.actor.character .ability-scores .rows > div {
  display: flex;
  gap: 22px;
}
.dnd5e2.sheet.actor.character .ability-scores.optional-ability-0 .rows {
  width: unset;
  margin: 0;
  justify-content: center;
  padding-inline: 12px;
}
.dnd5e2.sheet.actor.character .ability-scores .top {
  padding-right: calc(var(--dnd5e-sheet-header-right-width) + 49px);
  min-height: 72px;
  margin-left: auto;
}
.dnd5e2.sheet.actor.character .ability-scores .ability-score {
  width: 64px;
  height: 64px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-family: var(--dnd5e-font-roboto);
  padding-top: 12px;
  filter: drop-shadow(0 0 6px var(--dnd5e-shadow-45));
  pointer-events: all;
}
.dnd5e2.sheet.actor.character .ability-scores .ability-score::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent var(--dnd5e-ability-tab) no-repeat top center / contain;
  z-index: -1;
}
.dnd5e2.sheet.actor.character .ability-scores .ability-score.flipped {
  padding: 0 0 8px 0;
  height: 72px;
  justify-content: start;
  gap: 2px;
}
.dnd5e2.sheet.actor.character .ability-scores .ability-score.flipped::before {
  transform: scaleY(-1);
}
.dnd5e2.sheet.actor.character .ability-scores .ability-score.flipped .mod {
  padding: 0;
}
.dnd5e2.sheet.actor.character .ability-scores .ability-score.flipped .score {
  margin: 0;
  order: -1;
}
.dnd5e2.sheet.actor.character .ability-scores .ability-score .mod > button {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.dnd5e2.sheet.actor.character .ability-scores .ability-score .score {
  width: 50px;
  height: 23px;
  padding: 4px;
  color: var(--dnd5e-color-gold);
  background: var(--dnd5e-color-black);
  border-radius: 3px;
  margin-top: -2px;
}
.dnd5e2.sheet.actor.character .ability-scores .ability-score .score > input {
  --input-background-color: transparent;
  padding: 4px;
  color: var(--dnd5e-color-gold);
  width: 50px;
  height: 23px;
  border-radius: 3px;
  border: 1px solid transparent;
}
.dnd5e2.sheet.actor.character .ability-scores .ability-score .score > input:hover,
.dnd5e2.sheet.actor.character .ability-scores .ability-score .score > input:focus {
  border: 1px solid var(--dnd5e-color-gold);
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
@container (min-width: 700px) {
  .dnd5e2.sheet.actor.character .ability-scores .rows {
    justify-content: center;
    gap: 22px;
    padding-top: 148px;
    width: unset;
    margin: 0;
  }
  .dnd5e2.sheet.actor.character .ability-scores .rows .top {
    padding: 0;
    margin: 0;
    min-height: unset;
    order: 2;
  }
  .dnd5e2.sheet.actor.character .ability-scores .rows .ability-score.flipped {
    padding: 12px 0 0;
    height: 64px;
    justify-content: space-between;
    gap: unset;
  }
  .dnd5e2.sheet.actor.character .ability-scores .rows .ability-score.flipped::before {
    transform: unset;
  }
  .dnd5e2.sheet.actor.character .ability-scores .rows .ability-score.flipped .mod {
    padding: 3px 0;
  }
  .dnd5e2.sheet.actor.character .ability-scores .rows .ability-score.flipped .score {
    margin: -2px 0 0;
    order: unset;
  }
}
.dnd5e2.sheet.actor.character:not(.tab-details) .ability-scores {
  display: none;
}
.dnd5e2.sheet.actor.character .tab[data-tab="spells"].active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dnd5e2.sheet.actor.character .tab[data-tab="spells"] .top {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.dnd5e2.sheet.actor.character .tab[data-tab="spells"] .top .card.spellcasting {
  width: 230px;
}
.dnd5e2.sheet.actor.character .tab[data-tab="spells"] .top .card.spellcasting .prepared .value.max-preparations {
  font-size: var(--font-size-14);
}
.dnd5e2.sheet.actor.character .tab[data-tab="spells"] .top .card.spellcasting .prepared .value .separator,
.dnd5e2.sheet.actor.character .tab[data-tab="spells"] .top .card.spellcasting .prepared .value .max {
  color: var(--color-text-tertiary);
}
.dnd5e2.sheet.actor.character .spells-list .items-header .item-name {
  cursor: var(--cursor-pointer);
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"].active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] > .top {
  display: flex;
  padding-left: 0.25rem;
  margin-bottom: 1.5rem;
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] > .middle {
  display: flex;
  gap: 1rem;
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] > .middle > * {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] > .middle .right .textbox-half:last-child textarea {
  height: 156px;
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] > .bottom h3 span {
  font-size: var(--font-size-14);
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] .characteristics {
  width: 520px;
  display: grid;
  grid-template-columns: 180px 160px 140px;
  gap: 1rem;
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] .characteristics label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] .characteristics label .label {
  font-size: var(--font-size-10);
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] .characteristics label input,
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] .characteristics label .value {
  flex: 1;
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] .characteristics label input {
  height: unset;
  padding: 0.25rem;
  background: transparent;
  border: 1px solid var(--color-border-light-tertiary);
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] .characteristics label .value {
  min-height: 1em;
  border-bottom: 1px solid var(--color-text-primary);
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] .textbox-half p {
  font-size: var(--font-size-12);
  padding: 0.375rem;
}
.dnd5e2.sheet.actor.character .tab[data-tab="biography"] .textbox-half p:empty {
  padding: 0;
  margin: 0;
  min-height: unset;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] {
  flex-direction: column;
  gap: 16px;
  /* Roster */
  /* Facilities */
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"].active {
  display: flex;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .name {
  flex: none;
  padding: 6px 6px 0;
  margin-bottom: -8px;
  font-size: var(--font-size-42);
  text-align: center;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .name input.document-name {
  font-size: var(--font-size-42);
  text-align: center;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .contents {
  flex: none;
  display: grid;
  grid-template: "a a" auto "b c" 1fr / minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .contents .roster {
  grid-area: a;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .contents .facilities.basic {
  grid-area: b;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .contents .facilities.special {
  grid-area: c;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .contents .facilities.special h3 > span {
  line-height: 1;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .contents > section ul {
  flex-wrap: wrap;
  display: flex;
  gap: 8px;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .contents > section ul li {
  border: 2px solid var(--dnd5e-color-gold);
  border-radius: 5px;
  box-shadow: 0 0 6px var(--dnd5e-shadow-15);
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .contents > section ul li.empty {
  display: inline-grid;
  place-content: center;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .roster ul li {
  width: 48px;
  height: 48px;
  cursor: var(--cursor-pointer);
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .roster ul li.empty {
  width: 100%;
  border: none;
  box-shadow: none;
  font-style: italic;
  color: var(--color-text-secondary);
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .roster img {
  border: none;
  border-radius: 3px;
  width: 100%;
  height: 100%;
  max-width: unset;
  object-fit: cover;
  background: var(--dnd5e-background-alt-2);
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facilities ul {
  flex-direction: column;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility {
  --bar-height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility > * {
  position: relative;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility.empty {
  min-height: 50px;
  color: var(--dnd5e-color-gold);
  cursor: var(--cursor-pointer);
  border-style: dashed;
  opacity: 0.5;
  transition: all 250ms ease;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility.empty:hover {
  opacity: 1;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility.damaged,
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility.building {
  filter: grayscale(1);
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility:not(.empty) {
  border: var(--dnd5e-border-gold);
  background: var(--dnd5e-background-card);
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility:not(.empty)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--underlay) center / cover;
  mask-image: linear-gradient(135deg, transparent 35%, black);
  border-radius: 5px;
  opacity: 0.5;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility:not(.empty):has(> .facility-progress)::before {
  top: var(--bar-height);
  border-radius: 0 0 5px 5px;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility .facility-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 0;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility .facility-header .name-stacked {
  flex: 1;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility .facility-header .title {
  font-size: var(--font-size-13);
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility .facility-header .slots {
  flex: none;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility .facility-header .name-stacked.rollable {
  cursor: var(--cursor-pointer);
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility .facility-header .name-stacked.rollable:hover .title {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility .facility-progress {
  height: var(--bar-height);
  border: none;
  border-radius: 0;
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility .facility-progress::before {
  background: linear-gradient(to right, var(--dnd5e-color-hp-1), var(--dnd5e-color-hp-2));
  border-inline-end: var(--border-width) solid var(--dnd5e-color-hp-3);
  border-radius: 0;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility .facility-progress + .facility-header {
  margin-top: -4px;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility .facility-occupants {
  padding-inline: 8px;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility .order-slot {
  --icon-size: 22px;
  --icon-fill: var(--dnd5e-color-gold);
  padding: 4px;
  box-shadow: inset 0 0 3px var(--dnd5e-shadow-45);
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility .order-slot.empty::before {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  background: url("icons/svg/facilities/maintain.svg") no-repeat center / cover;
  filter: var(--dnd5e-slot-filter);
  opacity: 0.15;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility .occupant-slot {
  --slot-size: 26px;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .facility > :last-child {
  padding-bottom: 8px;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .defender {
  position: relative;
}
.dnd5e2.sheet.actor.character .tab[data-tab="bastion"] .defender .deletion-control {
  width: unset;
  height: unset;
  cursor: var(--cursor-pointer);
  position: absolute;
  inset: -3px -3px 0 0;
}
.dnd5e2.sheet.actor.character.sidebar-collapsed .main-content {
  grid-template-columns: 0 1fr;
  padding-left: 0;
}
.dnd5e2.sheet.actor.character.sidebar-collapsed .main-content > .sidebar {
  margin-left: calc(var(--dnd5e-sheet-sidebar-width) * -1);
}
.dnd5e2.sheet.actor.character.sidebar-collapsed .sheet-header > .left:is(.optional-ability-1, .optional-ability-2) {
  padding-right: 24px;
}
.dnd5e2.sheet.actor.character.sidebar-collapsed .sheet-header > .left:is(.optional-ability-1, .optional-ability-2) .document-name {
  font-size: var(--font-size-46);
}
.dnd5e2.sheet.actor.character.sidebar-collapsed .ability-scores {
  left: 0;
}
.dnd5e2.sheet.actor.character.limited:not(.minimized, .minimizing, .maximizing) {
  min-width: 600px;
  min-height: 600px;
}
.dnd5e2.sheet.actor.character.limited .sheet-header {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
}
.dnd5e2.sheet.actor.character.limited .sheet-header > * {
  flex: unset;
}
.dnd5e2.sheet.actor.character.limited .sheet-header .portrait {
  width: 128px;
  height: 128px;
  border-radius: 100%;
  border: 4px solid var(--dnd5e-color-gold);
  box-shadow: 0 0 6px var(--dnd5e-color-black);
  overflow: hidden;
}
.dnd5e2.sheet.actor.character.limited .sheet-header .portrait > img,
.dnd5e2.sheet.actor.character.limited .sheet-header .portrait > video {
  border: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  background-color: var(--dnd5e-background-alt-1);
  margin: 0;
}
.dnd5e2.sheet.actor.character.limited .tab-body {
  padding-top: 0;
}
.dnd5e2.sheet.actor.character.limited .tab[data-tab="biography"] > .bottom {
  padding: 0.5rem;
}
.dnd5e2.sheet.actor.character.limited .tab[data-tab="biography"] > .bottom .editor {
  min-height: unset;
}
.dnd5e2.sheet.actor.character.limited .main-content {
  display: unset;
}
.dnd5e2.sheet.actor.character.limited .sheet-body .tab-body .tab:not([data-tab="details"]) {
  padding: 0;
}
.dnd5e2.sheet.actor.character.editable .ability-scores .ability-score .score {
  padding: 0;
}
.dnd5e2.sheet.actor.character.editable :is(.skills, .tools, .saves) > ul > li {
  gap: 0.25rem;
}
@media (prefers-reduced-motion) {
  .dnd5e2.sheet.actor.character .sheet-body .main-content,
  .dnd5e2.sheet.actor.character .sheet-body .sidebar,
  .dnd5e2.sheet.actor.character .sheet-body .sidebar .card .death-tray {
    transition: unset;
  }
}
/* ---------------------------------- */
/*  Basic Structure                   */
/* ---------------------------------- */
.dnd5e2.sheet.actor.npc {
  --dnd5e-sheet-header-height: 68px;
  --dnd5e-sheet-sidebar-width: 180px;
  /* ---------------------------------- */
  /*  Outer Window                      */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Sheet Header                      */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Sheet Body                        */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Child Creation                    */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Edit Mode                         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Collapsed                         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Limited Sheets                    */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Interactable                      */
  /* ---------------------------------- */
}
.dnd5e2.sheet.actor.npc:not(.minimized)::before {
  content: var(--dnd5e-npc-header-content, none);
  background: var(--dnd5e-npc-header-image) no-repeat top center / cover;
  position: absolute;
  inset: 0 0 auto 0;
  height: 300px;
  border-radius: 5px 5px 0 0;
  opacity: 0.05;
  mask-image: linear-gradient(to bottom, black, transparent);
}
.dnd5e2.sheet.actor.npc:not(.minimized, .minimizing, .maximizing) {
  min-width: 700px;
  min-height: 700px;
}
.dnd5e2.sheet.actor.npc:not(.minimized, .minimizing, .maximizing) .window-content {
  overflow: visible;
}
.dnd5e2.sheet.actor.npc:not(.minimized).window-content {
  display: flex;
  flex-direction: column;
  padding-block: 4px 0;
  gap: 0;
  margin-top: -26px;
}
.dnd5e2.sheet.actor.npc .sheet-header {
  gap: 12px;
  padding-inline: 12px;
  align-items: stretch;
  z-index: 1;
  /* Portrait */
  /* Name */
  /* Size, Type, & Alignment */
  /* Proficiency */
  /* Resting & Special Traits */
  /* Ability Scores */
  /* Legendary Actions */
  /* AC & HP */
}
.dnd5e2.sheet.actor.npc .sheet-header > .left {
  flex: 0 0 var(--dnd5e-sheet-sidebar-width);
}
.dnd5e2.sheet.actor.npc .sheet-header input {
  --input-background-color: var(--dnd5e-background-5);
  background: var(--input-background-color);
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait {
  position: relative;
  /* Death Saves */
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait:not(.token) {
  border-radius: 100%;
  border: 1px solid var(--dnd5e-color-black);
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait > img,
.dnd5e2.sheet.actor.npc .sheet-header .portrait > video {
  width: var(--dnd5e-sheet-sidebar-width);
  height: var(--dnd5e-sheet-sidebar-width);
  border-radius: 100%;
  border: 6px solid var(--dnd5e-color-gold);
  box-shadow: 0 0 6px var(--dnd5e-color-black);
  overflow: hidden;
  object-fit: cover;
  object-position: top;
  margin: 0;
  display: block;
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait.token > img,
.dnd5e2.sheet.actor.npc .sheet-header .portrait.token > video {
  border-radius: 0;
  box-shadow: none;
  border: none;
  object-fit: contain;
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait .death-saves {
  position: absolute;
  inset: 4px auto auto 4px;
  width: 90px;
  display: flex;
  align-items: center;
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait .death-saves button.death-save {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 48px;
  clip-path: polygon(0 0, 38px 0, 38px 100%, 0 100%);
  --icon-fill: var(--dnd5e-color-gold);
  --icon-size: 42px;
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait .death-saves button.death-save:hover {
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 0 4px var(--color-shadow-primary));
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait .death-saves .results {
  background: var(--dnd5e-color-black);
  position: relative;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  margin-left: -18px;
  padding-left: 8px;
  font-weight: bold;
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait .death-saves .results input {
  --input-placeholder-color: #cfd2da;
  --input-height: 24px;
  --form-field-height: 24px;
  background: transparent;
  color: inherit;
  font-size: var(--font-size-15);
  padding: 0 0 1px;
  text-align: center;
  width: 100%;
  border-color: transparent;
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait .death-saves .results .success {
  color: #009b01;
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait .death-saves .results .success input {
  border-right: 1px dashed var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait .death-saves .results .failure {
  color: var(--dnd5e-color-red);
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait .death-saves .results > div {
  display: flex;
  align-items: center;
  padding-block: 2px;
  position: relative;
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait .death-saves .results > div > i {
  --size: 13px;
  position: absolute;
  font-size: var(--size);
  top: calc(100% - var(--size) / 2);
  left: calc(50% - var(--size) / 2);
  background: var(--dnd5e-color-black);
  border-radius: 100%;
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait .death-saves .results::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid var(--dnd5e-color-gold);
  border-radius: 3px;
  pointer-events: none;
}
.dnd5e2.sheet.actor.npc .sheet-header .stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 8px;
  margin-top: -10px;
}
.dnd5e2.sheet.actor.npc .sheet-header .stats > .top {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dnd5e2.sheet.actor.npc .sheet-header .stats > .top > .left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dnd5e2.sheet.actor.npc .sheet-header .stats > .top > .right {
  display: flex;
  gap: 8px;
}
.dnd5e2.sheet.actor.npc .sheet-header .stats > .top > .right > .left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
}
.dnd5e2.sheet.actor.npc .sheet-header .stats > .bottom {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.npc .sheet-header .stats > .bottom .classes {
  padding-top: 2px;
}
.dnd5e2.sheet.actor.npc .sheet-header .stats > .bottom .classes .gold-icon {
  margin: 0;
}
.dnd5e2.sheet.actor.npc .sheet-header .stats > .bottom .classes + .legendary {
  margin-top: 8px;
}
.dnd5e2.sheet.actor.npc .sheet-header .document-name {
  font-size: var(--font-size-28);
  font-family: var(--dnd5e-font-modesto);
  font-weight: bold;
}
.dnd5e2.sheet.actor.npc .sheet-header .labels {
  display: flex;
  gap: 4px;
  font-family: var(--dnd5e-font-roboto-condensed);
}
.dnd5e2.sheet.actor.npc .sheet-header .labels li + li::before {
  content: "•";
}
.dnd5e2.sheet.actor.npc .sheet-header .labels li:has(> span:empty) {
  display: none;
}
.dnd5e2.sheet.actor.npc .sheet-header .proficiency {
  text-align: right;
}
.dnd5e2.sheet.actor.npc .sheet-header .proficiency .sign {
  color: var(--color-text-tertiary);
}
.dnd5e2.sheet.actor.npc .sheet-header .proficiency > span {
  font-family: var(--dnd5e-font-roboto-condensed);
}
.dnd5e2.sheet.actor.npc .sheet-header .sheet-header-buttons > button {
  width: 26px;
  height: 26px;
  font-size: var(--font-size-12);
}
.dnd5e2.sheet.actor.npc .sheet-header .ability-scores {
  display: flex;
  padding: 10px 0;
  font-family: var(--dnd5e-font-roboto);
  position: relative;
  box-shadow: none;
}
.dnd5e2.sheet.actor.npc .sheet-header .ability-scores::after {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  pointer-events: none;
  border-radius: 4px;
  box-shadow: 0 0 6px var(--dnd5e-shadow-45);
}
.dnd5e2.sheet.actor.npc .sheet-header .ability-scores .ability-score {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4px;
  border-right: var(--dnd5e-border-separator-heavy);
}
.dnd5e2.sheet.actor.npc .sheet-header .ability-scores .ability-score:last-child {
  border: none;
}
.dnd5e2.sheet.actor.npc .sheet-header .ability-scores .ability-score > * {
  position: relative;
}
.dnd5e2.sheet.actor.npc .sheet-header .ability-scores .ability-score > img {
  border: none;
  position: absolute;
  object-fit: contain;
  opacity: 0.035;
  margin: 0;
  height: 100%;
  width: 50%;
  filter: var(--npc-ability-score-filter, none);
}
.dnd5e2.sheet.actor.npc .sheet-header .ability-scores .save-tab {
  position: absolute;
  top: calc(100% + 10px);
  margin: auto;
  width: 80%;
  background: var(--dnd5e-background-card);
  border-radius: 0 0 3px 3px;
  border: var(--dnd5e-border-gold);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 4px var(--dnd5e-shadow-45);
  clip-path: polygon(-5% 0, 105% 0, 105% 105%, -5% 105%);
  font-weight: bold;
}
.dnd5e2.sheet.actor.npc .sheet-header .ability-scores .save-tab.rollable {
  cursor: var(--cursor-pointer);
}
.dnd5e2.sheet.actor.npc .sheet-header .ability-scores .save-tab.rollable:hover .save {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2.sheet.actor.npc .sheet-header .ability-scores .save-tab > i {
  color: var(--color-text-tertiary);
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary > label,
.dnd5e2.sheet.actor.npc .sheet-header .legendary > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 125px;
  gap: 4px;
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary > label > span.label,
.dnd5e2.sheet.actor.npc .sheet-header .legendary > div > span.label {
  color: var(--color-text-secondary);
  font-size: var(--font-size-10);
  font-weight: normal;
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary > label > input,
.dnd5e2.sheet.actor.npc .sheet-header .legendary > div > input,
.dnd5e2.sheet.actor.npc .sheet-header .legendary > label > span.value,
.dnd5e2.sheet.actor.npc .sheet-header .legendary > div > span.value {
  font-weight: bold;
  font-family: var(--dnd5e-font-roboto-slab);
  font-size: var(--font-size-16);
  text-align: center;
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary > label > span.value,
.dnd5e2.sheet.actor.npc .sheet-header .legendary > div > span.value {
  font-size: var(--font-size-20);
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary > div {
  max-width: unset;
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary > div > .pips {
  flex-wrap: wrap;
  padding: 0;
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary :is(.legact, .legres) .pip {
  --pip-size: 28px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  filter: grayscale(1);
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary :is(.legact, .legres) .pip:hover,
.dnd5e2.sheet.actor.npc .sheet-header .legendary :is(.legact, .legres) .pip:focus {
  box-shadow: none;
  filter: grayscale(1) drop-shadow(0 0 6px var(--dnd5e-color-gold));
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary :is(.legact, .legres) .pip.filled {
  filter: none;
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary :is(.legact, .legres) .pip.filled:is(:hover, :focus) {
  filter: drop-shadow(0 0 6px var(--dnd5e-color-gold));
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary .legact .pip {
  background: transparent url("ui/legact-inactive.webp") center / contain;
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary .legact .pip.filled {
  background-image: url("ui/legact-active.webp");
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary .legres .pip {
  background: transparent url("ui/legres-inactive.webp") center / contain;
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary .legres .pip.filled {
  background-image: url("ui/legres-active.webp");
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary .lair slide-toggle {
  --slide-toggle-track-color-checked: #d66d29;
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary .lair .spacer {
  display: grid;
  place-content: center;
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary .lair .spacer.checkbox {
  height: 26px;
}
.dnd5e2.sheet.actor.npc .sheet-header .legendary .lair .spacer.toggle {
  height: 28px;
}
.dnd5e2.sheet.actor.npc .sheet-header .vitals {
  display: flex;
  margin-top: -40px;
  padding: 0 12px 0 6px;
  transform: scale(1.1);
  /* Meters */
}
.dnd5e2.sheet.actor.npc .sheet-header .vitals .right {
  padding-top: 6px;
  margin-left: -10px;
  flex: 1;
}
.dnd5e2.sheet.actor.npc .sheet-header .vitals .ac-badge {
  filter: unset;
  margin: unset;
  position: relative;
  width: 52px;
  height: 52px;
  min-width: unset;
  line-height: 48px;
  font-size: var(--font-size-18);
  z-index: 1;
}
.dnd5e2.sheet.actor.npc .sheet-header .vitals .meter {
  border-radius: 0 4px 0 0;
}
.dnd5e2.sheet.actor.npc .sheet-header .vitals .meter + .meter {
  border-radius: 0 0 4px 0;
}
.dnd5e2.sheet.actor.npc .sheet-header .vitals .meter:is(.hit-points, .hit-dice) .label {
  padding-inline-start: 12px;
}
.dnd5e2.sheet.actor.npc .sheet-header .vitals .meter.hit-points {
  block-size: 20px;
  font-size: var(--font-size-12);
}
.dnd5e2.sheet.actor.npc .sheet-header .vitals .meter.hit-points .bonus {
  font-size: var(--font-size-10);
}
.dnd5e2.sheet.actor.npc .sheet-header .vitals .meter.hit-dice,
.dnd5e2.sheet.actor.npc .sheet-header .vitals .meter.split {
  block-size: 16px;
  font-size: var(--font-size-10);
  margin-top: -1px;
}
.dnd5e2.sheet.actor.npc .sheet-header .vitals .meter.split > div.temp input {
  color: var(--dnd5e-color-blue);
}
.dnd5e2.sheet.actor.npc .sheet-header .vitals .meter.split > div.tempmax input {
  color: var(--dnd5e-color-purple);
}
.dnd5e2.sheet.actor.npc .sheet-header .vitals .meter.split > div input::placeholder {
  text-transform: uppercase;
}
.dnd5e2.sheet.actor.npc .sheet-header .vitals .meter.split > div:last-child {
  border-inline-start: 1px dashed var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor.npc .sheet-header .vitals .tmp {
  width: 35px;
}
.dnd5e2.sheet.actor.npc .sheet-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden auto;
  scrollbar-gutter: stable;
  scrollbar-color: var(--dnd5e-color-gold) transparent;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content {
  --sidebar-padding: 8px;
  --sidebar-size: calc(var(--dnd5e-sheet-sidebar-width) + var(--sidebar-padding));
  padding: 0 0 0 var(--sidebar-padding);
  display: flex;
  position: absolute;
  width: 100%;
  min-height: 100%;
  /* Sidebar */
  /* Tabbed Content */
  /* Inventory */
  /* Spells */
  /* Effects */
  /* Biography */
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .sidebar {
  padding-top: 12px;
  flex: 0 0 var(--dnd5e-sheet-sidebar-width);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: margin-left 450ms ease;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .sidebar .pills-group h3.icon {
  padding-bottom: 2px;
  margin-bottom: 4px;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .sidebar .pills-group h3.icon > i,
.dnd5e2.sheet.actor.npc .sheet-body .main-content .sidebar .pills-group h3.icon > span {
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .sidebar .pills-group .pill {
  font-size: var(--font-size-10);
  padding: 2px 4px;
  gap: 3px;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .tab-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .tab-body .tab {
  flex: 1;
  display: flex;
  padding: 8px 4px 8px 16px;
  gap: 8px;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .tab-body .tab[data-tab="spells"],
.dnd5e2.sheet.actor.npc .sheet-body .main-content .tab-body .tab[data-tab="biography"] {
  flex-direction: column;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .tab-body .tab:not(.active) {
  display: none;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .tab-body .tab:not([data-tab="biography"], [data-tab="inventory"], [data-tab="specialTraits"]) {
  padding-bottom: calc(1.5rem + 30px);
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .inventory-element {
  flex: 1;
  width: 100%;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .inventory-element .spells-list {
  gap: 12px;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .spellcasting.card input {
  background: var(--dnd5e-background-5);
  border: 1px solid transparent;
  transition: all 250ms ease;
  text-align: center;
  font-weight: bold;
  font-family: var(--dnd5e-font-roboto-slab);
  font-size: var(--font-size-16);
  height: 22px;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .spellcasting.card input:hover,
.dnd5e2.sheet.actor.npc .sheet-body .main-content .spellcasting.card input:focus {
  border: 1px solid var(--dnd5e-color-gold);
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .effects-element {
  flex: 1;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .effects-element .effects-list {
  flex-grow: 0;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .effects-element .conditions-list {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .effects-element .conditions-list .condition {
  padding: 9px 10px;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content [data-tab="biography"] .top {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content [data-tab="biography"] :is(.middle, .bottom) > h3 {
  margin-right: 24px;
  position: relative;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content [data-tab="biography"] :is(.middle, .bottom) > h3 .editor-edit {
  position: absolute;
  inset: auto auto -3px 100%;
  font-size: var(--font-size-18);
  color: var(--color-text-primary);
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content [data-tab="biography"] > .editor {
  flex: 1;
}
.dnd5e2.sheet.actor.npc.tab-inventory .window-content > .create-child {
  display: none;
}
.dnd5e2.sheet.actor.npc.editable .sheet-header .document-name,
.dnd5e2.sheet.actor.npc.editable .sheet-header .labels .creature-alignment input {
  background: var(--npc-header-input-background);
}
.dnd5e2.sheet.actor.npc.editable .sheet-header .labels,
.dnd5e2.sheet.actor.npc.editable .sheet-header > .left {
  color: var(--color-text-primary);
}
.dnd5e2.sheet.actor.npc.editable .sheet-header .labels li + li::before,
.dnd5e2.sheet.actor.npc.editable .sheet-header > .left li + li::before {
  content: "";
}
.dnd5e2.sheet.actor.npc.editable .sheet-header .labels > li,
.dnd5e2.sheet.actor.npc.editable .sheet-header > .left > li {
  flex: 1;
  margin: 0;
}
.dnd5e2.sheet.actor.npc.editable .sheet-header .labels li.creature-size,
.dnd5e2.sheet.actor.npc.editable .sheet-header > .left li.creature-size {
  display: grid;
}
.dnd5e2.sheet.actor.npc.editable .sheet-header .labels li.creature-size select,
.dnd5e2.sheet.actor.npc.editable .sheet-header > .left li.creature-size select {
  background: var(--npc-header-input-background);
}
.dnd5e2.sheet.actor.npc.editable .sheet-header .labels li.creature-size select:hover,
.dnd5e2.sheet.actor.npc.editable .sheet-header > .left li.creature-size select:hover {
  cursor: var(--cursor-pointer);
}
.dnd5e2.sheet.actor.npc.editable .sheet-header .cr-badge > input {
  --input-background-color: var(--npc-cr-input-background);
  width: 45px;
  text-align: center;
  font-size: var(--font-size-18);
  border-color: transparent;
}
.dnd5e2.sheet.actor.npc.editable .sheet-header .cr-badge > input:hover,
.dnd5e2.sheet.actor.npc.editable .sheet-header .cr-badge > input:focus {
  border-color: transparent;
  box-shadow: none;
}
.dnd5e2.sheet.actor.npc.editable .sheet-header .vitals .hit-points .label {
  padding-inline-end: 6px;
}
.dnd5e2.sheet.actor.npc.editable .sheet-header .vitals .hit-points .label .config-button {
  color: inherit;
  font-size: var(--font-size-10);
  margin-left: auto;
}
.dnd5e2.sheet.actor.npc.editable .sheet-header .vitals .hit-points .label .bonus + .config-button {
  margin-left: 2px;
}
.dnd5e2.sheet.actor.npc.editable .sheet-header .legendary label > span.value {
  font-size: var(--font-size-16);
}
.dnd5e2.sheet.actor.npc.sidebar-collapsed .sheet-body .main-content .sidebar-collapser {
  left: 0;
}
.dnd5e2.sheet.actor.npc.sidebar-collapsed .sidebar {
  margin-left: calc(var(--sidebar-size) * -1);
}
.dnd5e2.sheet.actor.npc.limited:not(.minimized, .minimizing, .maximizing) {
  min-width: 600px;
  min-height: 550px;
}
.dnd5e2.sheet.actor.npc.limited .window-content {
  overflow: auto;
}
.dnd5e2.sheet.actor.npc.limited .sheet-header {
  display: block;
  padding: 0 20px 16px;
}
.dnd5e2.sheet.actor.npc.limited .sheet-header .document-name {
  margin-top: -12px;
}
.dnd5e2.sheet.actor.npc.limited .sheet-header .portrait {
  float: left;
  width: 148px;
  height: 148px;
  margin: 0 20px 16px 0;
}
.dnd5e2.sheet.actor.npc.limited .sheet-header .portrait > img,
.dnd5e2.sheet.actor.npc.limited .sheet-header .portrait > video {
  width: 100%;
  height: 100%;
  border-width: 4px;
}
.dnd5e2.sheet.actor.npc form:is(.interactable, .editable) .biography .editor-edit {
  display: block;
}
/* ---------------------------------- */
/*  Basic Structure                   */
/* ---------------------------------- */
.dnd5e2.sheet.actor.group {
  --dnd5e-sheet-header-height: calc(var(--header-height) + 164px);
  /* ---------------------------------- */
  /*  Sheet Header                      */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Sheet Body                        */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Group Members                     */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Inventory                         */
  /* ---------------------------------- */
  /* -------------------------------------------- */
  /*  Child Creation                              */
  /* -------------------------------------------- */
  /* -------------------------------------------- */
  /*  Locked                                      */
  /* -------------------------------------------- */
}
.dnd5e2.sheet.actor.group:not(.minimized)::before {
  content: var(--dnd5e-group-header-content, none);
  background: var(--dnd5e-group-header-image) no-repeat bottom center / cover;
  position: absolute;
  inset: 0 0 auto 0;
  height: 255px;
  border-radius: 5px 5px 0 0;
  opacity: 0.1;
  mask-image: linear-gradient(to bottom, black, transparent);
  z-index: -1;
  filter: grayscale(1);
}
.dnd5e2.sheet.actor.group:not(.minimized, .minimizing, .maximizing) {
  min-width: 700px;
  min-height: 700px;
}
.dnd5e2.sheet.actor.group .window-content {
  gap: 0;
  padding: var(--header-height) 0 0;
}
.dnd5e2.sheet.actor.group nav.tabs {
  top: 90px;
}
.dnd5e2.sheet.actor.group .sheet-header {
  display: flex;
  gap: 0;
  flex: none;
  padding-inline: 16px;
}
.dnd5e2.sheet.actor.group .sheet-header .sheet-header-buttons {
  position: absolute;
  left: 16px;
  top: var(--header-height);
  justify-content: center;
  width: 226px;
  gap: 4px;
}
.dnd5e2.sheet.actor.group .sheet-header > .left {
  flex: 0 0 226px;
}
.dnd5e2.sheet.actor.group .sheet-header > .right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dnd5e2.sheet.actor.group .sheet-header > .right > .bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.dnd5e2.sheet.actor.group .sheet-header .portrait {
  height: 164px;
}
.dnd5e2.sheet.actor.group .sheet-header .portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.dnd5e2.sheet.actor.group .sheet-header .document-name {
  --input-background-color: var(--npc-header-input-background);
  font-size: var(--font-size-46);
  font-family: var(--dnd5e-font-modesto);
  font-weight: bold;
  text-align: center;
}
.dnd5e2.sheet.actor.group .sheet-header .card {
  width: 206px;
  height: 80px;
}
.dnd5e2.sheet.actor.group .sheet-header .card .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 8px;
}
.dnd5e2.sheet.actor.group .sheet-header .card .header h3 {
  color: white;
  font-size: var(--font-size-12);
  padding: 8px 0;
}
.dnd5e2.sheet.actor.group .sheet-header .card .header.travel-pace {
  padding-right: 0;
}
.dnd5e2.sheet.actor.group .sheet-header .card .header.travel-pace h3 {
  flex: 1;
}
.dnd5e2.sheet.actor.group .sheet-header .card .header.travel-pace .subtitle {
  padding-top: 1px;
}
.dnd5e2.sheet.actor.group .sheet-header .card .header.travel-pace [data-action=showConfiguration] {
  margin-right: 8px;
}
.dnd5e2.sheet.actor.group .sheet-header .card .header.travel-pace [data-action=changePace] {
  width: 24px;
  line-height: 28px;
  font-size: var(--font-size-10);
}
.dnd5e2.sheet.actor.group .sheet-header .card .header.travel-pace [data-action=changePace].suppressed {
  visibility: hidden;
}
.dnd5e2.sheet.actor.group .sheet-header .card.currency {
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.group .sheet-header .card.currency > menu {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: 6px;
  padding-block: 6px;
}
.dnd5e2.sheet.actor.group .sheet-header .card.currency > menu > li {
  flex: 0 0 33%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.dnd5e2.sheet.actor.group .sheet-header .card.xp .value {
  font-size: var(--font-size-14);
}
.dnd5e2.sheet.actor.group .sheet-header .card input {
  --input-background-color: var(--dnd5e-background-5);
  font-family: var(--dnd5e-font-roboto);
  font-weight: normal;
  height: unset;
  font-size: var(--font-size-12);
}
.dnd5e2.sheet.actor.group .sheet-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.group .sheet-body .main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.group .sheet-body .main-content .tab-body {
  flex: 1;
  position: relative;
}
.dnd5e2.sheet.actor.group .sheet-body .tab-body .tab {
  position: absolute;
  inset: 0;
}
.dnd5e2.sheet.actor.group .sheet-body .tab-body [data-application-part=members] {
  overflow: hidden auto;
  scrollbar-gutter: stable;
  inset: 0 4px 0 0;
  gap: 0;
}
.dnd5e2.sheet.actor.group .sheet-body .tab-body [data-application-part=members] h3 {
  padding-left: 12px;
}
.dnd5e2.sheet.actor.group .sheet-body .tab-body [data-application-part=members] > section:first-child h3 {
  padding-top: 8px;
}
.dnd5e2.sheet.actor.group menu.members {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 4px 16px 16px;
}
.dnd5e2.sheet.actor.group menu.members.stats .member {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dnd5e2.sheet.actor.group menu.members.stats .vitals {
  flex: unset;
}
.dnd5e2.sheet.actor.group menu.members .vitals {
  flex-basis: 50%;
}
.dnd5e2.sheet.actor.group menu.members .vitals > * {
  position: relative;
}
.dnd5e2.sheet.actor.group menu.members .vitals .bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.dnd5e2.sheet.actor.group menu.members .vitals .name {
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
  font-size: var(--font-size-14);
}
.dnd5e2.sheet.actor.group menu.members .vitals .name a:not([data-action=showDocument]):hover {
  cursor: var(--cursor-default);
  text-shadow: none;
}
.dnd5e2.sheet.actor.group menu.members .vitals .classes img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: var(--dnd5e-border-gold);
  box-shadow: 0 0 6px var(--dnd5e-shadow-45);
  cursor: var(--cursor-pointer);
  transition: all 250ms ease;
}
.dnd5e2.sheet.actor.group menu.members .vitals .classes img:hover {
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor.group menu.members .vitals .pills {
  margin-top: -5px;
}
.dnd5e2.sheet.actor.group menu.members .vitals .pills .pill {
  font-size: var(--font-size-10);
  line-height: 1;
  padding: 3px 6px;
}
.dnd5e2.sheet.actor.group menu.members .vitals .primary-vehicle {
  position: absolute;
  inset: -4px -6px auto auto;
  font-size: var(--font-size-18);
  --fa-primary-color: black;
  --fa-secondary-opacity: 1;
  --fa-secondary-color: var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor.group menu.members div.stats {
  display: flex;
  justify-content: center;
  border: var(--dnd5e-border-gold);
  border-radius: 4px;
  padding-block: 8px;
}
.dnd5e2.sheet.actor.group menu.members div.stats .empty {
  display: inline grid;
  place-content: center;
  opacity: 0.25;
  font-weight: bold;
  font-size: var(--font-size-16);
}
.dnd5e2.sheet.actor.group menu.members div.stats .info {
  display: flex;
  justify-content: space-evenly;
}
.dnd5e2.sheet.actor.group menu.members div.stats .info:first-child {
  flex: 2;
  gap: 8px;
  border-right: var(--dnd5e-border-gold);
}
.dnd5e2.sheet.actor.group menu.members div.stats .info:last-child {
  flex: 3;
}
.dnd5e2.sheet.actor.group menu.members div.stats .info > div {
  justify-content: space-around;
  align-items: stretch;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.group menu.members div.stats .info i {
  font-size: var(--font-size-12);
  color: var(--color-text-dark-5);
}
.dnd5e2.sheet.actor.group menu.members div.stats .info .modifier {
  color: var(--color-text-tertiary);
}
.dnd5e2.sheet.actor.group menu.members div.stats .info .value {
  font-size: var(--font-size-16);
}
.dnd5e2.sheet.actor.group menu.members div.stats .info .value,
.dnd5e2.sheet.actor.group menu.members div.stats .info .skill {
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
}
.dnd5e2.sheet.actor.group menu.members div.stats .info .skill {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-14);
}
.dnd5e2.sheet.actor.group menu.members div.stats .info .skill .passive {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-13);
}
.dnd5e2.sheet.actor.group menu.members div.stats .info a.skill:not(.rollable):hover {
  cursor: var(--cursor-default);
  text-shadow: none;
}
.dnd5e2.sheet.actor.group [data-application-part=inventory] {
  gap: 0;
  grid-template-columns: 196px auto;
}
.dnd5e2.sheet.actor.group [data-application-part=inventory].active {
  display: grid;
}
.dnd5e2.sheet.actor.group [data-application-part=inventory] .sidebar {
  padding: 6px 4px 0 12px;
  scrollbar-gutter: stable;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dnd5e2.sheet.actor.group [data-application-part=inventory] .sidebar .encumbrance {
  width: 100%;
}
.dnd5e2.sheet.actor.group [data-application-part=inventory] .sidebar .encumbrance .meter {
  height: 20px;
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.actor.group [data-application-part=inventory] .sidebar .encumbrance .meter i {
  font-size: var(--font-size-8);
}
.dnd5e2.sheet.actor.group [data-application-part=inventory] .sidebar .encumbrance .stats {
  display: flex;
  gap: 8px;
  padding: 8px;
  align-items: center;
}
.dnd5e2.sheet.actor.group [data-application-part=inventory] .sidebar .encumbrance .pane {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dnd5e2.sheet.actor.group [data-application-part=inventory] .sidebar .encumbrance .pane .name {
  font-family: var(--dnd5e-font-roboto-condensed);
  font-size: var(--font-size-12);
  font-weight: bold;
}
.dnd5e2.sheet.actor.group [data-application-part=inventory] .sidebar .encumbrance .pane .currency {
  font-size: var(--font-size-9);
}
.dnd5e2.sheet.actor.group [data-application-part=inventory] .sidebar .encumbrance .pane .currency .pill {
  border: none;
  padding: 1px 4px;
}
.dnd5e2.sheet.actor.group [data-application-part=inventory] .sidebar .encumbrance .portrait {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}
.dnd5e2.sheet.actor.group [data-application-part=inventory] .sidebar .encumbrance .portrait img {
  border: none;
  max-width: unset;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: var(--dnd5e-background-alt-1);
}
.dnd5e2.sheet.actor.group [data-application-part=inventory] .body {
  padding: 6px 4px calc(1.5rem + 30px) 4px;
  margin-right: 4px;
  scrollbar-gutter: stable;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.group [data-application-part=inventory] .body .inventory-element {
  flex: 1;
}
.dnd5e2.sheet.actor.group.vehicle-inventory [data-application-part=inventory] .body {
  padding-bottom: 8px;
}
.dnd5e2.sheet.actor.group.tab-inventory.vehicle-inventory .window-content > .create-child {
  display: none;
}
.dnd5e2.sheet.actor.group.locked .sheet-header-buttons > button,
.dnd5e2.sheet.actor.group.locked [data-action=editDescription],
.dnd5e2.sheet.actor.group.locked [data-action=award] {
  display: none;
}
.dnd5e2.sheet.actor.group.locked [data-action=changePace] {
  visibility: hidden;
}
/* ---------------------------------- */
/*  Biography                         */
/* ---------------------------------- */
.dnd5e2.sheet.actor.group .tab[data-tab=biography],
.dnd5e2.sheet.actor.encounter .tab[data-tab=biography],
.dnd5e2.sheet.actor.group .tab[data-tab=description],
.dnd5e2.sheet.actor.encounter .tab[data-tab=description] {
  padding-block: 8px;
  gap: 16px;
}
.dnd5e2.sheet.actor.group .tab[data-tab=biography] :is(.middle, .bottom),
.dnd5e2.sheet.actor.encounter .tab[data-tab=biography] :is(.middle, .bottom),
.dnd5e2.sheet.actor.group .tab[data-tab=description] :is(.middle, .bottom),
.dnd5e2.sheet.actor.encounter .tab[data-tab=description] :is(.middle, .bottom) {
  padding-inline: 16px;
}
.dnd5e2.sheet.actor.group .tab[data-tab=biography] :is(.middle, .bottom) > h3,
.dnd5e2.sheet.actor.encounter .tab[data-tab=biography] :is(.middle, .bottom) > h3,
.dnd5e2.sheet.actor.group .tab[data-tab=description] :is(.middle, .bottom) > h3,
.dnd5e2.sheet.actor.encounter .tab[data-tab=description] :is(.middle, .bottom) > h3 {
  margin-right: 24px;
  position: relative;
}
.dnd5e2.sheet.actor.group .tab[data-tab=biography] :is(.middle, .bottom) > h3 .editor-edit,
.dnd5e2.sheet.actor.encounter .tab[data-tab=biography] :is(.middle, .bottom) > h3 .editor-edit,
.dnd5e2.sheet.actor.group .tab[data-tab=description] :is(.middle, .bottom) > h3 .editor-edit,
.dnd5e2.sheet.actor.encounter .tab[data-tab=description] :is(.middle, .bottom) > h3 .editor-edit {
  position: absolute;
  inset: auto auto -3px 100%;
  font-size: var(--font-size-18);
  color: var(--color-text-primary);
}
.dnd5e2.sheet.actor.group .tab[data-tab=biography] > .editor,
.dnd5e2.sheet.actor.encounter .tab[data-tab=biography] > .editor,
.dnd5e2.sheet.actor.group .tab[data-tab=description] > .editor,
.dnd5e2.sheet.actor.encounter .tab[data-tab=description] > .editor {
  flex: 1;
}
.dnd5e2.sheet.actor.group .tab[data-tab=biography] > .editor menu,
.dnd5e2.sheet.actor.encounter .tab[data-tab=biography] > .editor menu,
.dnd5e2.sheet.actor.group .tab[data-tab=description] > .editor menu,
.dnd5e2.sheet.actor.encounter .tab[data-tab=description] > .editor menu {
  border-radius: 0;
}
.dnd5e2.sheet.actor.group .tab[data-tab=biography] > .editor .editor-content,
.dnd5e2.sheet.actor.encounter .tab[data-tab=biography] > .editor .editor-content,
.dnd5e2.sheet.actor.group .tab[data-tab=description] > .editor .editor-content,
.dnd5e2.sheet.actor.encounter .tab[data-tab=description] > .editor .editor-content {
  padding: 0 4px 0 16px;
  margin-right: 4px;
}
/* -------------------------------------------- */
/*  Limited                                     */
/* -------------------------------------------- */
.dnd5e2.sheet.actor.group.limited:not(.minimized, .minimizing, .maximizing) {
  min-width: 600px;
  min-height: 650px;
}
.dnd5e2.sheet.actor.group.limited .window-content,
.dnd5e2.sheet.actor.encounter.limited .window-content {
  padding: 0;
}
.dnd5e2.sheet.actor.group.limited .sheet-header,
.dnd5e2.sheet.actor.encounter.limited .sheet-header {
  flex-direction: column;
  align-items: center;
}
.dnd5e2.sheet.actor.group.limited .tab[data-tab=biography] h3,
.dnd5e2.sheet.actor.encounter.limited .tab[data-tab=biography] h3 {
  margin-right: 1.5rem;
  position: relative;
}
.dnd5e2.sheet.actor.group.limited .tab[data-tab=biography] h3 i.fa-feather,
.dnd5e2.sheet.actor.encounter.limited .tab[data-tab=biography] h3 i.fa-feather {
  position: absolute;
  inset: auto auto -1px 100%;
  font-size: var(--font-size-18);
}
/* -------------------------------------------- */
/*  Basic Structure                             */
/* -------------------------------------------- */
.dnd5e2.sheet.actor.encounter {
  /* -------------------------------------------- */
  /*  Outer Window                                */
  /* -------------------------------------------- */
  --dnd5e-sheet-header-height: 170px;
  /* -------------------------------------------- */
  /*  Sheet Header                                */
  /* -------------------------------------------- */
  /* -------------------------------------------- */
  /*  Sheet Body                                  */
  /* -------------------------------------------- */
  /* -------------------------------------------- */
  /*  Group Members                               */
  /* -------------------------------------------- */
  /* -------------------------------------------- */
  /*  Inventory                                   */
  /* -------------------------------------------- */
  /* -------------------------------------------- */
  /*  Description                                 */
  /* -------------------------------------------- */
  /* -------------------------------------------- */
  /*  Limited                                     */
  /* -------------------------------------------- */
}
.dnd5e2.sheet.actor.encounter:not(.minimized)::before {
  content: var(--dnd5e-encounter-header-content, none);
  background: var(--dnd5e-encounter-header-image) no-repeat top center / cover;
  position: absolute;
  inset: 0 0 auto 0;
  height: 150px;
  border-radius: 5px 5px 0 0;
  opacity: 0.1;
  mask-image: linear-gradient(to bottom, black, transparent);
  filter: grayscale(1);
  z-index: -1;
  pointer-events: none;
}
.dnd5e2.sheet.actor.encounter .window-content {
  overflow: hidden;
  padding: 0;
  gap: 0;
}
.dnd5e2.sheet.actor.encounter .sheet-header {
  display: flex;
  padding: 0 16px;
  align-items: stretch;
  gap: 8px;
}
.dnd5e2.sheet.actor.encounter .sheet-header > .left {
  flex: none;
}
.dnd5e2.sheet.actor.encounter .sheet-header > .middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
.dnd5e2.sheet.actor.encounter .sheet-header > .right {
  flex: 0 0 96px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dnd5e2.sheet.actor.encounter .sheet-header .portrait {
  width: 96px;
  height: 96px;
}
.dnd5e2.sheet.actor.encounter .sheet-header .portrait img {
  max-width: unset;
  width: 100%;
  height: 100%;
  border: none;
  margin: 0;
  object-fit: contain;
  border-radius: 8px;
}
.dnd5e2.sheet.actor.encounter .sheet-header .document-name {
  --input-background-color: var(--npc-header-input-background);
  text-align: center;
  font-size: var(--font-size-32);
  font-family: var(--dnd5e-font-modesto);
  font-weight: bold;
}
.dnd5e2.sheet.actor.encounter .sheet-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.encounter .sheet-body .main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.encounter .sheet-body .main-content .tab-body {
  flex: 1;
  position: relative;
}
.dnd5e2.sheet.actor.encounter .sheet-tabs {
  margin-top: 8px;
}
.dnd5e2.sheet.actor.encounter .tab {
  max-height: calc(min(max(70vh, 1000px), 95vh) - var(--dnd5e-sheet-header-height));
  overflow: hidden auto;
  scrollbar-gutter: stable;
  padding: 16px 4px 8px 16px;
  margin-right: 4px;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .pill-lg.empty {
  max-width: unset;
  margin-inline: 16px;
  margin-bottom: 8px;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .member {
  padding-inline: 16px;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .card {
  flex: 1;
  padding-right: 16px;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .name-stacked {
  flex: 1;
  justify-content: center;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .name-stacked .title {
  font-size: var(--font-size-14);
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .name-stacked .subtitle {
  font-size: var(--font-size-12);
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .cr-badge {
  align-self: center;
  width: 36px;
  height: 36px;
  font-size: var(--font-size-14);
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .formula {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .formula > div {
  --input-text-color: var(--dnd5e-color-gold);
  border-radius: 4px;
  background: var(--dnd5e-color-black);
  color: var(--dnd5e-color-gold);
  padding: 8px;
  transition: all 250ms ease;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .formula > div label {
  font-weight: bold;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .formula > div.editable:hover,
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .formula > div.editable:focus-within {
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .formula > div input {
  --input-background-color: transparent;
  width: 45px;
  padding: 0;
  text-align: center;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .formula > div input:hover,
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .formula > div input:focus {
  box-shadow: none;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .formula > div .value {
  min-width: 45px;
  text-align: center;
  display: inline-block;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .quantity .adjustment-button {
  color: var(--item-control-active-color);
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .slot {
  --slot-size: 36px;
  flex: 0 0 var(--slot-size);
  height: var(--slot-size);
  width: var(--slot-size);
  border: var(--dnd5e-slot-border);
  border-radius: 3px;
  overflow: hidden;
  background: var(--dnd5e-background-card);
  box-shadow: inset 0 0 3px var(--dnd5e-shadow-45);
  text-align: center;
  line-height: 34px;
  font-family: var(--dnd5e-font-roboto-condensed);
  font-weight: bold;
  font-size: var(--font-size-20);
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .slot.empty::before {
  content: "—";
  color: var(--color-text-tertiary);
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .controls [data-action=rollQuantity] {
  --button-border-color: var(--group-control-border);
  --button-hover-border-color: var(--group-control-hover-border);
  width: 20px;
  height: 20px;
  font-size: var(--font-size-10);
  margin-top: -2px;
  color: var(--item-control-active-color);
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .bottom {
  width: 100%;
  position: sticky;
  bottom: -8px;
  margin-top: auto;
  display: flex;
  gap: 6px;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .bottom .difficulty {
  border: var(--dnd5e-border-gold);
  border-radius: 3px;
  box-shadow: 0 0 6px var(--dnd5e-shadow-45);
  flex: 1;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=members] .bottom .meter {
  border-radius: 3px;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=inventory] {
  padding: 8px 4px calc(1.5rem + 30px) 16px;
  margin-right: 4px;
  scrollbar-gutter: stable;
  overflow-y: auto;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=description].editing {
  padding: 8px 0;
  margin: 0;
  scrollbar-gutter: auto;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=description] .middle,
.dnd5e2.sheet.actor.encounter .tab[data-tab=description] .bottom {
  padding: 0;
}
.dnd5e2.sheet.actor.encounter .tab[data-tab=description] > .editor .editor-content {
  padding: 0;
  margin: 0;
}
.dnd5e2.sheet.actor.encounter.limited .tab[data-tab=biography] .bottom {
  padding: 0;
}
/* -------------------------------------------- */
/*  Basic Structure                             */
/* -------------------------------------------- */
.dnd5e2.sheet.actor.vehicle {
  --dnd5e-sheet-sidebar-width: 180px;
  /* -------------------------------------------- */
  /*  Sidebar                                     */
  /* -------------------------------------------- */
  /* -------------------------------------------- */
  /*  Sheet Body                                  */
  /* -------------------------------------------- */
  /* -------------------------------------------- */
  /*  Sheet Tabs                                  */
  /* -------------------------------------------- */
  /* -------------------------------------------- */
  /*  Stations                                    */
  /* -------------------------------------------- */
  /* -------------------------------------------- */
  /*  Crew                                        */
  /* -------------------------------------------- */
  /* -------------------------------------------- */
  /*  Description                                 */
  /* -------------------------------------------- */
  /* -------------------------------------------- */
  /*  Child Creation                              */
  /* -------------------------------------------- */
  /* -------------------------------------------- */
  /*  Editable                                    */
  /* -------------------------------------------- */
}
.dnd5e2.sheet.actor.vehicle:not(.minimized)::before {
  content: var(--dnd5e-vehicle-header-content, none);
  background: var(--dnd5e-vehicle-header-image) no-repeat bottom center / cover;
  position: absolute;
  inset: 0 0 auto 0;
  height: 300px;
  border-radius: 5px 5px 0 0;
  opacity: 0.1;
  mask-image: linear-gradient(to bottom, black, transparent);
  z-index: -1;
}
.dnd5e2.sheet.actor.vehicle:not(.minimized, .minimizing, .maximizing) {
  min-width: 700px;
  min-height: 800px;
}
.dnd5e2.sheet.actor.vehicle:not(.minimized, .minimizing, .maximizing).has-stations {
  min-width: 1000px;
}
.dnd5e2.sheet.actor.vehicle .window-content {
  --sidebar-padding: 8px;
  --sidebar-margin: 8px;
  --sidebar-size: calc(var(--dnd5e-sheet-sidebar-width) + var(--sidebar-padding) * 2);
  --stations-size: 332px;
  display: grid;
  grid-template: "a c" auto "a d" 1fr / calc(var(--sidebar-size) + var(--sidebar-margin)) 1fr;
  gap: 0;
  transition: grid-template-columns 450ms ease;
}
.dnd5e2.sheet.actor.vehicle.has-stations .window-content {
  grid-template: "a b c" auto "a b d" 1fr / calc(var(--sidebar-size) + var(--sidebar-margin)) var(--stations-size) 1fr;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar {
  grid-area: a;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations {
  grid-area: b;
}
.dnd5e2.sheet.actor.vehicle [data-application-part=tabs] {
  grid-area: c;
}
.dnd5e2.sheet.actor.vehicle .sheet-body {
  grid-area: d;
}
.dnd5e2.sheet.actor.vehicle:not(.has-stations) .sheet-stations {
  display: none;
}
.dnd5e2.sheet.actor.vehicle .sidebar-collapser {
  z-index: 1;
}
.dnd5e2.sheet.actor.vehicle.sidebar-collapsed .window-content {
  grid-template-columns: var(--sidebar-margin) 1fr;
}
.dnd5e2.sheet.actor.vehicle.sidebar-collapsed.has-stations .window-content {
  grid-template-columns: var(--sidebar-margin) var(--stations-size) 1fr;
}
.dnd5e2.sheet.actor.vehicle.sidebar-collapsed .sheet-sidebar {
  margin-left: calc(var(--sidebar-size) * -1);
}
.dnd5e2.sheet.actor.vehicle.sidebar-collapsed .sidebar-collapser {
  left: 0;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar {
  display: flex;
  flex-direction: column;
  padding-inline: var(--sidebar-padding);
  margin-right: var(--sidebar-margin);
  overflow: hidden auto;
  gap: 8px;
  transition: margin-left 450ms ease;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar label.slide-toggle {
  margin: 2px 0 0;
  line-height: var(--form-field-height);
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .document-name {
  --input-background-color: var(--npc-header-input-background);
  text-align: center;
  font-size: var(--font-size-24);
  font-family: var(--dnd5e-font-modesto);
  font-weight: bold;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .portrait {
  position: relative;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pips {
  padding: 0;
  justify-content: center;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pips .pip {
  box-shadow: none;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .name {
  margin-bottom: 2px;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .name em {
  display: block;
  text-align: center;
  font-size: var(--font-size-13);
  color: var(--color-text-secondary);
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .name select {
  padding: 4px;
  background: var(--npc-header-input-background);
  font-family: var(--dnd5e-font-roboto-condensed);
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group {
  padding-left: 8px;
  margin-top: 6px;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group h3 {
  padding: 0;
  margin: 0;
  font-size: var(--font-size-12);
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group h3 > i,
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group h3 > span {
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group h3 .counter {
  font-family: var(--dnd5e-font-roboto);
  font-weight: normal;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group h3 input,
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group h3 select {
  flex: 1;
  line-height: unset;
  font-size: inherit;
  text-align: center;
  padding: 0;
  margin-left: auto;
  font-family: var(--dnd5e-font-roboto);
  font-weight: normal;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group h3 input.value,
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group h3 select.value {
  flex: 0 0 55px;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group h3 .fa-arrows-left-right.fa-rotate-by {
  --fa-rotate-angle: 135deg;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group .pills {
  padding-top: 6px;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group.edit-inline .value {
  font-family: var(--dnd5e-font-roboto);
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group.edit-inline h3 > span:first-of-type {
  flex: 0 0 45px;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group.edit-inline input,
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group.edit-inline select {
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group.edit-inline select {
  text-align: left;
  padding-inline: 4px;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group.edit-inline.units select {
  flex: 0 0 34px;
  width: 34px;
  padding: 0;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group.edit-inline .counter {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group .pill {
  font-size: var(--font-size-10);
  padding: 2px 4px;
  gap: 3px;
}
.dnd5e2.sheet.actor.vehicle .sheet-sidebar .pills-group .form-fields input {
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.actor.vehicle .sheet-body {
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.vehicle .sheet-body .main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.vehicle .sheet-body .main-content .tab-body {
  flex: 1;
  position: relative;
}
.dnd5e2.sheet.actor.vehicle .sheet-body .main-content .tab-body .tab {
  overflow: hidden auto;
  scrollbar-gutter: stable;
  inset: 0 2px 0 0;
  position: absolute;
  flex-direction: column;
}
.dnd5e2.sheet.actor.vehicle .sheet-body .main-content .tab-body .tab.active {
  display: flex;
}
.dnd5e2.sheet.actor.vehicle .main-content {
  /* Inventory */
  /* Effects */
}
.dnd5e2.sheet.actor.vehicle .main-content .inventory-element {
  padding: 8px 4px 0;
  flex: 1;
}
.dnd5e2.sheet.actor.vehicle .main-content .inventory-element .encumbrance .breakpoint {
  display: none;
}
.dnd5e2.sheet.actor.vehicle .main-content .effects-element {
  padding: 8px 4px 0;
}
.dnd5e2.sheet.actor.vehicle .sheet-tabs [data-tab=crew] {
  flex: none;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations {
  padding: 8px 4px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden auto;
  scrollbar-gutter: stable;
  /* Abilities */
  /* Features */
  /* Stations */
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .abilities {
  display: grid;
  grid-template-columns: 16px 1fr 1fr 1fr 1fr 16px 16px 1fr 1fr 1fr 1fr 16px;
  gap: 4px;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .abilities .header,
.dnd5e2.sheet.actor.vehicle .sheet-stations .abilities .ability {
  display: grid;
  grid-column: span 6;
  grid-template-columns: subgrid;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .abilities .header {
  font-size: var(--font-size-10);
  color: var(--color-text-secondary);
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .abilities .header .roboto-upper {
  font-weight: normal;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .abilities .ability {
  align-items: center;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .abilities .name {
  font-variant: small-caps;
  text-transform: capitalize;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .abilities .score,
.dnd5e2.sheet.actor.vehicle .sheet-stations .abilities .modifier,
.dnd5e2.sheet.actor.vehicle .sheet-stations .abilities .saving-throw {
  text-align: center;
  line-height: 24px;
  background: var(--npc-header-input-background);
  font-size: var(--font-size-11);
  border: 1px solid transparent;
  border-radius: 3px;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .abilities .config {
  text-align: center;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .abilities .config button {
  font-size: var(--font-size-11);
  color: var(--color-text-tertiary);
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .abilities .score input {
  background: transparent;
  line-height: 24px;
  text-align: center;
  padding: 0;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .abilities .score input:hover,
.dnd5e2.sheet.actor.vehicle .sheet-stations .abilities .score input:focus {
  border: none;
  box-shadow: none;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .items-section:has(.item-list:empty) {
  display: none;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .station {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: var(--dnd5e-border-gold);
  background: var(--dnd5e-background-card);
  border-radius: 5px;
  box-shadow: 0 0 6px var(--dnd5e-shadow-15);
  position: relative;
  padding: 8px;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .station > * {
  position: relative;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .station > .controls {
  position: absolute;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .station::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("ui/texture-gray2.webp") no-repeat bottom right;
  transform: scaleX(-1);
  opacity: 0.75;
  mask-image: linear-gradient(190deg, transparent 15%, black);
  mix-blend-mode: var(--dnd5e-vehicle-station-blend-mode);
  border-radius: 4px;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .station-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .station-header .name-stacked {
  flex: 1;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .station-header .name-stacked.rollable:hover {
  cursor: var(--cursor-pointer);
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .station-header .name-stacked.rollable:hover .title {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .bars {
  margin-top: 4px;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .bars.rollable:hover {
  cursor: var(--cursor-pointer);
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .bars.rollable:hover .values {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .bars label {
  flex: 0 0 27px;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .bars input {
  text-align: center;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .bars .note {
  margin: 0;
  font-size: var(--font-size-11);
  font-style: italic;
  color: var(--color-text-secondary);
  text-align: center;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .enriched {
  margin: 0;
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .speed {
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .stations .crew .slot {
  --slot-size: 26px;
}
.dnd5e2.sheet.actor.vehicle .sheet-stations .drop-areas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dnd5e2.sheet.actor.vehicle .sheet-body .main-content .tab-body .tab.sheet-crew {
  left: 4px;
}
.dnd5e2.sheet.actor.vehicle .sheet-body .main-content .tab-body .tab.sheet-crew.active {
  display: grid;
}
.dnd5e2.sheet.actor.vehicle .sheet-crew {
  padding-top: 8px;
  container: crew / inline-size;
  grid-template: "a a" min-content "c c" min-content;
}
.dnd5e2.sheet.actor.vehicle .sheet-crew.has-assigned {
  grid-template: "a b" min-content "c c" min-content / 1fr 1fr;
}
@container crew (width < 650px) {
  .dnd5e2.sheet.actor.vehicle .sheet-crew.has-assigned .crew .subtitle {
    display: none;
  }
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .unassigned {
  grid-area: a;
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .passengers {
  grid-area: c;
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .drop-area {
  background: none;
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .assigned {
  grid-area: b;
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .assigned .crew img {
  filter: grayscale(1);
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .crew-area {
  border: var(--dnd5e-border-gold);
  border-radius: 4px;
  padding: 8px;
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .crew-area header {
  color: var(--dnd5e-color-gold);
  text-align: center;
  margin-bottom: 4px;
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .crew-area header .quantity {
  float: right;
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .crew-area ol {
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .crew-area .crew {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-block: 4px;
  border-bottom: 1px dotted var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .crew-area .crew:last-child {
  padding-bottom: 0;
  border: none;
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .crew-area .crew .quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 60px;
  font-weight: bold;
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .crew-area .crew .quantity .sign {
  color: var(--color-text-tertiary);
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .crew-area .name-stacked {
  flex: 1;
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .crew-area .name-stacked.rollable:hover {
  cursor: var(--cursor-pointer);
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .crew-area .name-stacked.rollable:hover .title {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .crew-area .name-stacked .subtitle {
  font-size: var(--font-size-12);
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .crew-area .adjustment-button {
  color: var(--color-text-secondary);
}
.dnd5e2.sheet.actor.vehicle .sheet-crew .crew-area input {
  --input-background-color: none;
  width: 30px;
  text-align: center;
}
.dnd5e2.sheet.actor.vehicle .sheet-body .main-content .tab-body .tab.sheet-description {
  left: 4px;
}
.dnd5e2.sheet.actor.vehicle .sheet-description {
  padding-top: 8px;
}
.dnd5e2.sheet.actor.vehicle .sheet-description .editor.prosemirror.sized .editor-container {
  overflow: hidden;
  scrollbar-gutter: auto;
  margin: 0 0 0 8px;
}
.dnd5e2.sheet.actor.vehicle .sheet-description .editor.prosemirror.sized .editor-content {
  position: absolute;
  padding-right: 4px;
}
.dnd5e2.sheet.actor.vehicle .sheet-description .prosemirror menu {
  border-radius: 6px;
}
.dnd5e2.sheet.actor.vehicle .sheet-description:not(.editing) .editor-content {
  padding-inline: 8px;
}
.dnd5e2.sheet.actor.vehicle.tab-inventory .window-content > .create-child {
  display: none;
}
.dnd5e2.sheet.actor.vehicle.tab-crew .create-child {
  display: none;
}
.dnd5e2.sheet.actor.vehicle.editable .sheet-sidebar .pills-group {
  padding-left: 0;
}
.dnd5e2.sheet.actor.vehicle.editable .sheet-sidebar .edit-inline + .edit-inline {
  margin: 0;
}
.dnd5e2.sheet.actor.vehicle.editable .sheet-stations .abilities .score {
  transition: all 250ms ease;
}
.dnd5e2.sheet.actor.vehicle.editable .sheet-stations .abilities .score:hover,
.dnd5e2.sheet.actor.vehicle.editable .sheet-stations .abilities .score:focus-within {
  border-color: var(--dnd5e-color-gold);
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
@property --calendar-day-progress {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --calendar-night-progress {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
#calendar-hud {
  --calendar-animation-time: 250ms;
  --calendar-animation: var(--calendar-animation-time) ease-in-out;
  --calendar-gap: 0.5rem;
  --calendar-sun-size: 6px;
  display: flex;
  gap: var(--calendar-gap);
  block-size: var(--control-size);
  margin-block-start: 16px;
  margin-inline: 16px;
  align-content: center;
  color: var(--control-icon-color);
  font-size: var(--font-size-12);
  pointer-events: all;
}
#calendar-hud .calendar-core,
#calendar-hud .calendar-button {
  background: var(--control-bg-color);
  border: 1px solid var(--control-border-color);
  border-radius: 4px;
}
#calendar-hud .calendar-buttons {
  display: flex;
  gap: var(--calendar-gap);
  align-items: center;
}
#calendar-hud .calendar-buttons .dropdown {
  position: absolute;
  inline-size: min-content;
  padding: var(--calendar-gap);
  gap: var(--calendar-gap);
  transition-behavior: allow-discrete;
  transition-duration: var(--ui-fade-duration);
  transition-property: opacity, display;
}
#calendar-hud .calendar-buttons[data-application-part="startButtons"] .dropdown {
  inset-inline-end: calc(var(--calendar-gap) * -1);
}
#calendar-hud .calendar-buttons[data-application-part="endButtons"] .dropdown {
  inset-inline-start: calc(var(--calendar-gap) * -1);
}
#calendar-hud .calendar-buttons .calendar-button {
  position: relative;
}
#calendar-hud .calendar-buttons .calendar-button:not(:hover, :focus-visible) .dropdown {
  opacity: 0;
  visibility: hidden;
}
#calendar-hud .calendar-button {
  block-size: 24px;
  inline-size: 24px;
}
#calendar-hud .calendar-button .calendar-button {
  block-size: unset;
  inline-size: unset;
}
#calendar-hud .calendar-button .calendar-button button {
  font-size: var(--font-size-12);
}
#calendar-hud .calendar-button button {
  block-size: 100%;
  inline-size: 100%;
  padding: 6px;
  background: none;
  border: none;
  color: inherit;
  text-transform: none;
}
#calendar-hud .calendar-core {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 80px minmax(110px, 1fr);
  align-items: center;
  gap: 6px;
}
#calendar-hud .calendar-date,
#calendar-hud .calendar-time {
  padding: 6px;
  text-align: center;
}
#calendar-hud .calendar-widget {
  --sky-top-color: #0073bc;
  --sky-bottom-color: #a1b0d1;
  position: relative;
  margin-block: 2px;
  align-self: stretch;
  border: 1px solid var(--dnd5e-color-gold);
  border-radius: 3px;
  overflow: hidden;
  isolation: isolate;
}
#calendar-hud .calendar-widget::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--sky-top-color), var(--sky-bottom-color));
  z-index: -1;
  opacity: calc(.75 + sin((var(--calendar-day-progress) * pi)));
  transition: opacity var(--calendar-animation);
}
#calendar-hud .calendar-stars,
#calendar-hud .calendar-sun {
  position: absolute;
  block-size: 100px;
  inline-size: 100px;
  top: 6px;
  left: -10px;
  border-radius: 100%;
  transition: rotate var(--calendar-animation);
}
#calendar-hud .calendar-stars {
  rotate: calc(var(--calendar-night-progress) * -0.5turn);
  z-index: -2;
}
#calendar-hud .calendar-stars::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='filter'%3E%3CfeTurbulence baseFrequency='0.3'/%3E%3CfeColorMatrix values='0 0 0 9 -4 0 0 0 9 -4 0 0 0 9 -4 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23filter)'/%3E%3C/svg%3E%0A");
}
#calendar-hud .calendar-sun {
  --calendar-sun-adjustment-factor: 0.45;
  --_offset: mod(calc(var(--calendar-day-progress) + 0.5), 2);
  --_adjusted-distance: calc(var(--calendar-sun-adjustment-factor) * (1 - var(--_offset)));
  --_sun-progress: calc(var(--calendar-day-progress) + var(--_adjusted-distance));
  rotate: calc(var(--_sun-progress) * -0.5turn);
  opacity: calc(1 + sin((var(--calendar-day-progress) * pi)));
  transition: opacity var(--calendar-animation), rotate var(--calendar-animation);
}
#calendar-hud .calendar-sun::before,
#calendar-hud .calendar-sun::after {
  content: "";
  position: absolute;
}
#calendar-hud .calendar-sun::before {
  block-size: 100%;
  inline-size: 100%;
  inset-inline-start: 50%;
  background: radial-gradient(20px 10px, rgba(252, 249, 214, 0.7), transparent), radial-gradient(30px 20px, rgba(248, 243, 161, 0.5), transparent), radial-gradient(35px 25px, rgba(250, 188, 90, 0.3), transparent), radial-gradient(40px 30px, rgba(234, 158, 111, 0.2), transparent);
  rotate: calc(var(--_sun-progress) * 0.5turn);
  opacity: calc(1 - sin((var(--calendar-day-progress) * pi)));
  transition: opacity var(--calendar-animation), rotate var(--calendar-animation);
}
#calendar-hud .calendar-sun::after {
  block-size: var(--calendar-sun-size);
  inline-size: var(--calendar-sun-size);
  inset-block-end: calc(var(--calendar-sun-size) * -0.5 + 50%);
  inset-inline-end: calc(var(--calendar-sun-size) * -0.5);
  background: yellow;
  border-radius: 100%;
  outline-offset: 5px;
}
#calendar-hud.debug {
  opacity: 1;
}
#calendar-hud.debug .calendar-widget {
  overflow: visible;
}
#calendar-hud.debug .calendar-sun {
  opacity: 1;
  outline: 1px solid white;
}
#calendar-hud.debug .calendar-sun::before {
  opacity: 1;
  outline: 1px solid greenyellow;
}
#calendar-hud.debug .calendar-sun::after {
  outline: 1px solid red;
}
.dnd5e2.compendium-browser {
  --icon-size: 32px;
  border: none;
}
.dnd5e2.compendium-browser .window-resize-handle {
  inset: auto 0 0 auto;
  z-index: 1;
}
.dnd5e2.compendium-browser .mode-toggle {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: end;
  gap: 4px;
  z-index: 1;
  font-family: var(--dnd5e-font-roboto-condensed);
}
.dnd5e2.compendium-browser:not(.minimized) .window-content {
  --header-size: calc(var(--header-height) + var(--font-size-24) + 6px);
}
.dnd5e2.compendium-browser .window-content {
  display: grid;
  grid-template-areas: "sidebar results" "sidebar footer";
  grid-template-columns: 230px auto;
  grid-template-rows: auto 2.75rem;
  margin-top: calc(var(--header-size) * -1);
  padding: 0;
  overflow: hidden;
  column-gap: 0;
}
.dnd5e2.compendium-browser .window-content:has(> .footer:empty) {
  grid-template-rows: auto 0;
}
.dnd5e2.compendium-browser .window-content .sidebar {
  grid-area: sidebar;
}
.dnd5e2.compendium-browser .window-content .results {
  grid-area: results;
}
.dnd5e2.compendium-browser .window-content .footer {
  grid-area: footer;
}
.dnd5e2.compendium-browser .window-content > .header {
  position: absolute;
  top: 0;
}
.dnd5e2.compendium-browser .window-content h2 {
  color: var(--color-text-primary);
  text-shadow: none;
  font-size: var(--font-size-24);
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
  text-align: center;
  margin: 0 0 10px 0;
}
.dnd5e2.compendium-browser nav.tabs {
  top: 64px;
}
.dnd5e2.compendium-browser nav.tabs > .item {
  --icon-size: 20px;
  height: 44px;
}
.dnd5e2.compendium-browser nav.tabs > .item i {
  font-size: var(--font-size-20);
}
.dnd5e2.compendium-browser .sidebar {
  height: 100%;
  overflow-y: auto;
  gap: 12px;
  padding: 6px 4px 3px 12px;
  font-family: var(--dnd5e-font-roboto-condensed);
  scrollbar-gutter: stable;
}
.dnd5e2.compendium-browser .sidebar [data-application-part="types"] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dnd5e2.compendium-browser .sidebar [data-application-part="types"][hidden] {
  display: none;
}
.dnd5e2.compendium-browser .sidebar [data-application-part="types"] .type-group-header {
  margin-bottom: 4px;
}
.dnd5e2.compendium-browser .sidebar [data-application-part="types"] .type-entry,
.dnd5e2.compendium-browser .sidebar [data-application-part="types"] .type-group-header {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}
.dnd5e2.compendium-browser .sidebar [data-application-part="types"] .type-entry label,
.dnd5e2.compendium-browser .sidebar [data-application-part="types"] .type-group-header label {
  cursor: var(--cursor-pointer);
  display: flex;
  gap: 4px;
  align-items: center;
}
.dnd5e2.compendium-browser .sidebar [data-application-part="types"] .type-group .wrapper {
  margin-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dnd5e2.compendium-browser .sidebar [data-application-part="types"] [data-action="toggleCollapsed"] {
  width: 20px;
  margin-inline-start: auto;
  cursor: var(--cursor-pointer);
  text-align: center;
}
.dnd5e2.compendium-browser .sidebar [data-application-part="filters"] {
  gap: 8px;
}
.dnd5e2.compendium-browser .sidebar .filter-header > label {
  cursor: var(--cursor-pointer);
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: var(--font-size-11);
}
.dnd5e2.compendium-browser .sidebar .filter-header > label > span {
  flex: none;
}
.dnd5e2.compendium-browser .sidebar .filter-header > label::before,
.dnd5e2.compendium-browser .sidebar .filter-header > label::after {
  content: "";
  flex-basis: 50%;
  border-top: 1px dotted var(--dnd5e-color-gold);
  align-self: center;
}
.dnd5e2.compendium-browser .sidebar filter-state {
  --filter-state-background-color: var(--dnd5e-color-gold);
}
.dnd5e2.compendium-browser .sidebar filter-state:disabled .indicator:not([data-value="0"]) {
  position: relative;
  font-weight: bold;
}
.dnd5e2.compendium-browser .sidebar filter-state:disabled .indicator:not([data-value="0"])::before {
  content: "\f0c8";
}
.dnd5e2.compendium-browser .sidebar filter-state:disabled .indicator:not([data-value="0"])::after {
  content: "\f023";
  position: absolute;
  color: var(--color-light-1);
  font-family: var(--font-awesome);
  font-size: calc(var(--filter-state-size) * 0.6);
  inset-block: 3.5px;
  inset-inline: 2.5px;
}
.dnd5e2.compendium-browser .sidebar .filter > label {
  line-height: 1;
}
.dnd5e2.compendium-browser .sidebar .filter .filter-header label > span {
  color: var(--filter-header-label-color);
}
.dnd5e2.compendium-browser .sidebar .filter.filter-set:has(> .collapsible-content > .wrapper:empty) {
  display: none;
}
.dnd5e2.compendium-browser .sidebar .filter.filter-set .filter-choice,
.dnd5e2.compendium-browser .sidebar .filter.filter-boolean > label {
  cursor: var(--cursor-pointer);
}
.dnd5e2.compendium-browser .sidebar .filter.filter-set .wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dnd5e2.compendium-browser .sidebar .filter.filter-range {
  flex-direction: column;
  align-items: start;
  gap: 4px;
}
.dnd5e2.compendium-browser .sidebar .filter.filter-range > .form-fields {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dnd5e2.compendium-browser .sidebar .filter.filter-range > label {
  font-weight: normal;
  font-size: var(--font-size-11);
  color: var(--filter-range-label-color);
}
.dnd5e2.compendium-browser .sidebar .filter.filter-range .sep {
  --icon-size: 16px;
  --icon-fill: var(--color-text-secondary);
  height: var(--form-field-height);
  display: inline-grid;
  place-content: center;
}
.dnd5e2.compendium-browser .sidebar .filter.filter-range input[type=number] {
  --input-border-color: transparent;
  transition: all 250ms ease;
  outline: 0;
  text-align: center;
  height: unset;
  line-height: normal;
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-11);
  padding: 6px;
}
.dnd5e2.compendium-browser .sidebar .filter.filter-range input[type=number]:hover,
.dnd5e2.compendium-browser .sidebar .filter.filter-range input[type=number]:focus {
  --input-border-color: var(--dnd5e-color-gold);
  outline: 0;
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2.compendium-browser .results {
  --results-padding: 6px;
  padding: var(--results-padding) 4px 12px 4px;
  margin-right: 4px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.dnd5e2.compendium-browser .results > .note {
  margin-inline: 4px;
}
.dnd5e2.compendium-browser .results .results-loading {
  text-align: center;
  padding: 20px;
  font-size: 18px;
  color: var(--color-text-tertiary);
}
.dnd5e2.compendium-browser .results .results-loading > i {
  height: 16px;
}
.dnd5e2.compendium-browser .results .items-header {
  position: sticky;
  top: calc(var(--results-padding) * -1);
  z-index: 1;
}
.dnd5e2.compendium-browser .results .items-section .item-controls {
  width: 50px;
  align-items: center;
  padding: 0;
}
.dnd5e2.compendium-browser .results .item.selected {
  border-left: 4px solid var(--dnd5e-color-gold);
}
.dnd5e2.compendium-browser .results ol li {
  margin: 0;
}
.dnd5e2.compendium-browser .footer:not(:empty) {
  padding: 4px 24px;
  font-family: var(--dnd5e-font-roboto-condensed);
  font-size: var(--font-size-14);
}
.dnd5e2.compendium-browser .footer:not(:empty) .count .value {
  font-weight: bold;
}
.dnd5e2.compendium-browser .footer:not(:empty) .count:not(.invalid) .value {
  color: var(--dnd5e-color-green);
}
.dnd5e2.compendium-browser .footer:not(:empty) .count.invalid .value {
  color: var(--dnd5e-color-maroon);
}
.dnd5e2.compendium-browser.minimized nav.tabs {
  display: none;
}
.dnd5e2.compendium-browser.minimized .window-title {
  visibility: unset;
}
.dnd5e2.compendium-browser.minimized .mode-toggle {
  display: none;
}
.dnd5e2.compendium-browser.minimized .window-content {
  background: var(--dnd5e-color-dark-gray) url("../../ui/denim075.png");
}
.dnd5e2.compendium-browser.minimized::after {
  border-color: var(--dnd5e-color-blue-gray-1);
}
.compendium-sidebar .open-compendium-browser {
  flex: 0 0 100%;
}
/* ---------------------------------- */
/*  Source Configuration              */
/* ---------------------------------- */
#compendium-browser-source-config {
  --checkbox-size: 16px;
  /* Sidebar */
  /* Packs */
}
#compendium-browser-source-config .window-content {
  display: grid;
  grid-template-columns: 230px 1fr;
  padding: 0;
}
#compendium-browser-source-config .sidebar {
  scrollbar-gutter: stable;
  padding: 6px 4px 0 12px;
  overflow: hidden auto;
}
#compendium-browser-source-config .sidebar search {
  margin-bottom: 16px;
}
#compendium-browser-source-config .package-list {
  padding: 0;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#compendium-browser-source-config .package-list.base {
  padding-bottom: 8px;
  position: relative;
}
#compendium-browser-source-config .package-list.base::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--dnd5e-color-gold), transparent);
}
#compendium-browser-source-config .package-list li {
  align-items: center;
  gap: 8px;
}
#compendium-browser-source-config .package-list li:not([hidden]) {
  display: flex;
}
#compendium-browser-source-config .package-list li.active .package {
  font-weight: bold;
}
#compendium-browser-source-config .package-list .package {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--dnd5e-font-roboto-condensed);
  border: none;
  padding: 0;
  cursor: var(--cursor-pointer);
}
#compendium-browser-source-config .package-list .package:hover {
  text-shadow: 0 0 6px var(--color-shadow-primary);
}
#compendium-browser-source-config .package-list .package .value {
  font-family: var(--dnd5e-font-roboto);
  font-weight: bold;
  color: var(--color-text-secondary);
  font-size: var(--font-size-12);
}
#compendium-browser-source-config .packs {
  display: flex;
  scrollbar-gutter: stable;
  padding: 6px 8px 0 4px;
  overflow: hidden auto;
  gap: 12px;
  align-items: start;
}
#compendium-browser-source-config .packs .packs-section {
  flex: 1;
  max-width: 50%;
}
#compendium-browser-source-config .packs .packs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#compendium-browser-source-config .packs .packs-list li {
  border-bottom: var(--dnd5e-border-dotted);
  padding-bottom: 6px;
}
#compendium-browser-source-config .packs .packs-list li:last-child {
  border: none;
  padding: 0;
}
#compendium-browser-source-config .packs .packs-list li.all {
  padding-top: 2px;
  border-bottom: var(--dnd5e-border-dark);
}
#compendium-browser-source-config .packs .packs-list li.all .title {
  text-transform: capitalize;
}
#compendium-browser-source-config .packs .packs-list li label {
  font-size: unset;
  height: unset;
  line-height: normal;
}
#compendium-browser-source-config .packs .packs-list li label > span {
  line-height: normal;
}
#compendium-browser-source-config .packs .packs-list li label > .tag {
  margin-inline: auto 4px;
  padding-inline: 4px;
  border: var(--dnd5e-border-dark);
  border-radius: 3px;
  font-weight: bold;
}
.dnd5e2 .inventory-element {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* ------------------------------------ */
  /*  Searching & Filtering, & Attunement */
  /* ------------------------------------ */
  /* ---------------------------------- */
  /*  Encumbrance                       */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Spell Slots                       */
  /* ---------------------------------- */
}
.dnd5e2 .inventory-element .middle {
  display: flex;
  gap: 0.5rem;
}
.dnd5e2 .inventory-element .middle item-list-controls {
  flex: 1;
}
.dnd5e2 .inventory-element .middle .attunement {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--dnd5e-background-card);
  border-radius: 4px;
  box-shadow: 0 0 6px var(--dnd5e-shadow-45);
  border: var(--dnd5e-border-gold);
  padding: 0 0.875rem 0 0.5rem;
  font-weight: bold;
}
.dnd5e2 .inventory-element .middle .attunement .fa-sun,
.dnd5e2 .inventory-element .middle .attunement .separator {
  color: var(--dnd5e-color-gold);
}
.dnd5e2 .inventory-element .middle .attunement .config-button {
  color: var(--color-text-tertiary);
}
.dnd5e2 .inventory-element .middle .attunement .max {
  color: var(--color-text-secondary);
}
.dnd5e2 .inventory-element .middle .attunement input.max {
  width: 22px;
  text-align: center;
  font-weight: bold;
  background: var(--dnd5e-background-5);
  border: none;
  padding: 0;
  transition: box-shadow 250ms ease;
}
.dnd5e2 .inventory-element .middle .attunement input.max:focus-visible,
.dnd5e2 .inventory-element .middle .attunement input.max:hover {
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2 .inventory-element .bottom.with-child {
  width: 100%;
  position: sticky;
  bottom: 0;
  margin-top: auto;
  display: flex;
  gap: 6px;
}
.dnd5e2 .inventory-element .bottom.with-child .encumbrance {
  border: var(--dnd5e-border-gold);
  border-radius: 3px;
  box-shadow: 0 0 6px var(--dnd5e-shadow-45);
  flex: 1;
  overflow: hidden;
}
.dnd5e2 .inventory-element .bottom.with-child .meter {
  border-radius: unset;
  height: 100%;
  border: none;
}
.dnd5e2 .inventory-element .bottom.with-child .create-child {
  position: relative;
  inset: unset;
}
.dnd5e2 .inventory-element .spells-list .items-section {
  position: relative;
}
.dnd5e2 .inventory-element .spells-list .items-section .pips {
  position: absolute;
  right: 0.5rem;
  top: -0.5rem;
  display: flex;
  align-items: center;
  padding: 0;
  gap: 1px;
}
.dnd5e2 .inventory-element .spells-list .items-section .pips .pip {
  border: none;
  background: none;
  --icon-size: 13px;
  --icon-fill: var(--dnd5e-background-alt-1);
  box-shadow: none;
  filter: drop-shadow(0 0 1px var(--dnd5e-color-black));
}
.dnd5e2 .inventory-element .spells-list .items-section .pips .pip.tmp.filled {
  --icon-fill: var(--dnd5e-color-sc-2);
  --icon-stroke: var(--dnd5e-color-sc-2);
}
.dnd5e2 .inventory-element .spells-list .items-section .pips .pip.tmp:hover {
  filter: drop-shadow(0 0 2px var(--dnd5e-color-sc-2));
}
.dnd5e2 .inventory-element .spells-list .items-section .pips .pip.filled {
  --icon-fill: var(--dnd5e-color-gold);
}
.dnd5e2 .inventory-element .spells-list .items-section .pips .pip:focus {
  background: none;
}
.dnd5e2 .inventory-element .spells-list .items-section .pips .pip:hover {
  background: none;
  filter: drop-shadow(0 0 2px var(--dnd5e-color-gold));
}
/* ---------------------------------- */
/*  Entries                           */
/* ---------------------------------- */
.dnd5e2 {
  /* Sections / Categories */
}
.dnd5e2 .items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  container-type: inline-size;
}
.dnd5e2 .items-section {
  border: var(--dnd5e-inventory-border);
}
.dnd5e2 .items-section .items-header,
.dnd5e2 .items-section .item {
  /* Item Image */
  /* Item Weight & Price */
  /* Item Quantity & Uses */
  /* Item Recovery */
  /* Spell School, Cast Time, & To Hit / DC */
  /* Capacity */
  /* Spell Range */
  /* Spell Target & Formula */
  /* Effect Duration */
  /* Effect Source */
  /* Item Controls */
  /* Effect Controls */
  /* Item Description */
}
.dnd5e2 .items-section .items-header[hidden],
.dnd5e2 .items-section .item[hidden] {
  display: none;
}
.dnd5e2 .items-section .items-header .condensed,
.dnd5e2 .items-section .item .condensed {
  font-family: var(--dnd5e-font-roboto-condensed);
}
.dnd5e2 .items-section .items-header .item-row,
.dnd5e2 .items-section .item .item-row {
  display: flex;
  align-items: stretch;
}
.dnd5e2 .items-section .items-header .item-name,
.dnd5e2 .items-section .item .item-name {
  flex: 1;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  line-height: 1;
  position: relative;
}
.dnd5e2 .items-section .items-header .item-name:not(h3),
.dnd5e2 .items-section .item .item-name:not(h3) {
  padding: 0.25rem;
}
.dnd5e2 .items-section .items-header .item-name.rollable,
.dnd5e2 .items-section .item .item-name.rollable {
  cursor: var(--cursor-pointer);
}
.dnd5e2 .items-section .items-header .item-name.rollable:hover .title,
.dnd5e2 .items-section .item .item-name.rollable:hover .title {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2 .items-section .items-header .item-name .title,
.dnd5e2 .items-section .item .item-name .title {
  transition: text-shadow 250ms ease;
  font-size: var(--font-size-13);
}
.dnd5e2 .items-section .items-header .item-name .name,
.dnd5e2 .items-section .item .item-name .name {
  flex: 1;
}
.dnd5e2 .items-section .items-header .item-name .tags,
.dnd5e2 .items-section .item .item-name .tags {
  opacity: var(--tag-opacity);
  font-size: var(--font-size-14);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.dnd5e2 .items-section .items-header .item-name > .concentration,
.dnd5e2 .items-section .item .item-name > .concentration {
  position: absolute;
  inset: 0.25rem auto 0.25rem 0.25rem;
  width: 32px;
  font-size: var(--font-size-24);
  display: grid;
  place-content: center;
  color: var(--dnd5e-color-gold);
  opacity: 0.5;
}
@media (prefers-reduced-motion) {
  .dnd5e2 .items-section .items-header .item-name > .concentration,
  .dnd5e2 .items-section .item .item-name > .concentration {
    animation: none;
  }
}
.dnd5e2 .items-section .items-header .item-header,
.dnd5e2 .items-section .item .item-header {
  font-family: var(--dnd5e-font-roboto-condensed);
  text-transform: uppercase;
  font-size: var(--font-size-11);
}
.dnd5e2 .items-section .items-header .item-detail,
.dnd5e2 .items-section .item .item-detail,
.dnd5e2 .items-section .items-header .item-header,
.dnd5e2 .items-section .item .item-header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dnd5e2 .items-section .items-header .item-detail.hidden-width:not(.always-visible),
.dnd5e2 .items-section .item .item-detail.hidden-width:not(.always-visible),
.dnd5e2 .items-section .items-header .item-header.hidden-width:not(.always-visible),
.dnd5e2 .items-section .item .item-header.hidden-width:not(.always-visible),
.dnd5e2 .items-section .items-header .item-detail.hidden-column:not(.always-visible),
.dnd5e2 .items-section .item .item-detail.hidden-column:not(.always-visible),
.dnd5e2 .items-section .items-header .item-header.hidden-column:not(.always-visible),
.dnd5e2 .items-section .item .item-header.hidden-column:not(.always-visible) {
  display: none;
}
.dnd5e2 .items-section .items-header .item-detail.empty::after,
.dnd5e2 .items-section .item .item-detail.empty::after {
  content: "–";
  color: var(--color-text-tertiary);
  font-weight: normal;
}
.dnd5e2 .items-section .items-header .item-image,
.dnd5e2 .items-section .item .item-image {
  --icon-size: 32px;
  --icon-fill: var(--activity-icon-color);
  width: 32px;
  height: 32px;
  object-fit: cover;
  min-width: 32px;
  min-height: 32px;
}
.dnd5e2 .items-section .items-header .item-weight,
.dnd5e2 .items-section .item .item-weight,
.dnd5e2 .items-section .items-header .item-price,
.dnd5e2 .items-section .item .item-price {
  gap: 0.25rem;
}
.dnd5e2 .items-section .items-header .item-weight i,
.dnd5e2 .items-section .item .item-weight i,
.dnd5e2 .items-section .items-header .item-price i,
.dnd5e2 .items-section .item .item-price i {
  font-size: var(--font-size-9);
  color: var(--color-text-tertiary);
}
.dnd5e2 .items-section .items-header .item-weight,
.dnd5e2 .items-section .item .item-weight {
  width: 60px;
}
.dnd5e2 .items-section .items-header .item-source,
.dnd5e2 .items-section .item .item-source {
  width: 120px;
}
.dnd5e2 .items-section .items-header .item-price,
.dnd5e2 .items-section .item .item-price {
  width: 80px;
  justify-content: end;
  padding-right: 0.5rem;
}
.dnd5e2 .items-section .items-header .item-quantity,
.dnd5e2 .items-section .item .item-quantity,
.dnd5e2 .items-section .items-header .item-uses,
.dnd5e2 .items-section .item .item-uses,
.dnd5e2 .items-section .items-header .item-charges,
.dnd5e2 .items-section .item .item-charges {
  width: 70px;
  justify-content: space-evenly;
}
.dnd5e2 .items-section .items-header .item-quantity i,
.dnd5e2 .items-section .item .item-quantity i,
.dnd5e2 .items-section .items-header .item-uses i,
.dnd5e2 .items-section .item .item-uses i,
.dnd5e2 .items-section .items-header .item-charges i,
.dnd5e2 .items-section .item .item-charges i {
  font-size: var(--font-size-11);
}
.dnd5e2 .items-section .items-header .item-quantity input,
.dnd5e2 .items-section .item .item-quantity input,
.dnd5e2 .items-section .items-header .item-uses input,
.dnd5e2 .items-section .item .item-uses input,
.dnd5e2 .items-section .items-header .item-charges input,
.dnd5e2 .items-section .item .item-charges input {
  background: none;
  border: none;
  padding: 0;
  font-weight: bold;
  transition: box-shadow 250ms ease;
}
.dnd5e2 .items-section .items-header .item-quantity input:focus-visible,
.dnd5e2 .items-section .item .item-quantity input:focus-visible,
.dnd5e2 .items-section .items-header .item-uses input:focus-visible,
.dnd5e2 .items-section .item .item-uses input:focus-visible,
.dnd5e2 .items-section .items-header .item-charges input:focus-visible,
.dnd5e2 .items-section .item .item-charges input:focus-visible,
.dnd5e2 .items-section .items-header .item-quantity input:hover,
.dnd5e2 .items-section .item .item-quantity input:hover,
.dnd5e2 .items-section .items-header .item-uses input:hover,
.dnd5e2 .items-section .item .item-uses input:hover,
.dnd5e2 .items-section .items-header .item-charges input:hover,
.dnd5e2 .items-section .item .item-charges input:hover {
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2 .items-section .items-header .item-quantity input,
.dnd5e2 .items-section .item .item-quantity input {
  text-align: center;
  width: 30px;
}
.dnd5e2 .items-section .items-header .item-uses,
.dnd5e2 .items-section .item .item-uses,
.dnd5e2 .items-section .items-header .item-charges,
.dnd5e2 .items-section .item .item-charges {
  gap: unset;
}
.dnd5e2 .items-section .items-header .item-uses.item-detail,
.dnd5e2 .items-section .item .item-uses.item-detail,
.dnd5e2 .items-section .items-header .item-charges.item-detail,
.dnd5e2 .items-section .item .item-charges.item-detail {
  font-weight: bold;
}
.dnd5e2 .items-section .items-header .item-uses .max,
.dnd5e2 .items-section .item .item-uses .max,
.dnd5e2 .items-section .items-header .item-charges .max,
.dnd5e2 .items-section .item .item-charges .max,
.dnd5e2 .items-section .items-header .item-uses input,
.dnd5e2 .items-section .item .item-uses input,
.dnd5e2 .items-section .items-header .item-charges input,
.dnd5e2 .items-section .item .item-charges input {
  width: 20px;
}
.dnd5e2 .items-section .items-header .item-uses .separator,
.dnd5e2 .items-section .item .item-uses .separator,
.dnd5e2 .items-section .items-header .item-charges .separator,
.dnd5e2 .items-section .item .item-charges .separator {
  color: var(--dnd5e-color-gold);
}
.dnd5e2 .items-section .items-header .item-uses .max,
.dnd5e2 .items-section .item .item-uses .max,
.dnd5e2 .items-section .items-header .item-charges .max,
.dnd5e2 .items-section .item .item-charges .max {
  color: var(--color-text-secondary);
  text-align: start;
}
.dnd5e2 .items-section .items-header .item-uses input,
.dnd5e2 .items-section .item .item-uses input,
.dnd5e2 .items-section .items-header .item-charges input,
.dnd5e2 .items-section .item .item-charges input {
  text-align: end;
}
.dnd5e2 .items-section .items-header .item-uses i.fa-bolt,
.dnd5e2 .items-section .item .item-uses i.fa-bolt,
.dnd5e2 .items-section .items-header .item-charges i.fa-bolt,
.dnd5e2 .items-section .item .item-charges i.fa-bolt {
  color: var(--dnd5e-color-gold);
}
.dnd5e2 .items-section .items-header .item-recovery,
.dnd5e2 .items-section .item .item-recovery {
  width: 60px;
}
.dnd5e2 .items-section .items-header .item-school,
.dnd5e2 .items-section .item .item-school,
.dnd5e2 .items-section .items-header .item-time,
.dnd5e2 .items-section .item .item-time,
.dnd5e2 .items-section .items-header .item-roll,
.dnd5e2 .items-section .item .item-roll {
  width: 40px;
}
.dnd5e2 .items-section .items-header .item-capacity,
.dnd5e2 .items-section .item .item-capacity {
  width: 200px;
}
.dnd5e2 .items-section .items-header .item-capacity .meter,
.dnd5e2 .items-section .item .item-capacity .meter {
  width: 100%;
  height: 25px;
}
.dnd5e2 .items-section .items-header .item-capacity .meter i,
.dnd5e2 .items-section .item .item-capacity .meter i {
  font-size: var(--font-size-9);
}
.dnd5e2 .items-section .items-header .item-school,
.dnd5e2 .items-section .item .item-school {
  --icon-fill: var(--dnd5e-color-gold);
  --icon-size: 18px;
}
.dnd5e2 .items-section .items-header .item-roll .stacked,
.dnd5e2 .items-section .item .item-roll .stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dnd5e2 .items-section .items-header .item-roll .stacked .value,
.dnd5e2 .items-section .item .item-roll .stacked .value {
  font-size: var(--font-size-13);
}
.dnd5e2 .items-section .items-header .item-roll.item-detail,
.dnd5e2 .items-section .item .item-roll.item-detail {
  font-weight: bold;
}
.dnd5e2 .items-section .items-header .item-roll .value,
.dnd5e2 .items-section .item .item-roll .value {
  font-size: var(--font-size-14);
}
.dnd5e2 .items-section .items-header .item-roll .sign,
.dnd5e2 .items-section .item .item-roll .sign {
  color: var(--color-text-tertiary);
}
.dnd5e2 .items-section .items-header .item-roll .ability,
.dnd5e2 .items-section .item .item-roll .ability {
  text-transform: uppercase;
  font-size: var(--font-size-10);
  color: var(--dnd5e-color-gold);
}
.dnd5e2 .items-section .items-header .item-range,
.dnd5e2 .items-section .item .item-range {
  width: 50px;
  display: block;
  align-self: center;
}
.dnd5e2 .items-section .items-header .item-range .integer,
.dnd5e2 .items-section .item .item-range .integer {
  font-weight: bold;
}
.dnd5e2 .items-section .items-header .item-range .unit,
.dnd5e2 .items-section .item .item-range .unit {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-12);
}
.dnd5e2 .items-section .items-header .item-target,
.dnd5e2 .items-section .item .item-target,
.dnd5e2 .items-section .items-header .item-formula,
.dnd5e2 .items-section .item .item-formula {
  width: 80px;
}
.dnd5e2 .items-section .items-header .item-formula,
.dnd5e2 .items-section .item .item-formula {
  flex-direction: column;
}
.dnd5e2 .items-section .items-header .item-formula dnd5e-icon,
.dnd5e2 .items-section .item .item-formula dnd5e-icon {
  font-size: var(--font-size-14);
  --icon-fill: var(--color-text-secondary);
}
.dnd5e2 .items-section .items-header .item-formula .row,
.dnd5e2 .items-section .item .item-formula .row {
  display: flex;
  gap: 0.1875rem;
}
.dnd5e2 .items-section .items-header .item-formula,
.dnd5e2 .items-section .item .item-formula {
  display: flex;
}
.dnd5e2 .items-section .items-header .effect-name .name,
.dnd5e2 .items-section .item .effect-name .name {
  flex: 1;
}
.dnd5e2 .items-section .items-header .effect-source,
.dnd5e2 .items-section .item .effect-source {
  width: 150px;
  border: none;
}
.dnd5e2 .items-section .items-header .effect-source.item-detail,
.dnd5e2 .items-section .item .effect-source.item-detail {
  color: var(--color-text-secondary);
}
.dnd5e2 .items-section .items-header .item-controls,
.dnd5e2 .items-section .item .item-controls {
  width: 70px;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  color: var(--item-control-color);
  padding: 0 38px 0 4px;
  position: relative;
}
.dnd5e2 .items-section .items-header .item-controls > .control-button,
.dnd5e2 .items-section .item .item-controls > .control-button {
  color: var(--item-control-color);
}
.dnd5e2 .items-section .items-header .item-controls .item-control,
.dnd5e2 .items-section .item .item-controls .item-control {
  display: flex;
  align-items: center;
  font-size: var(--font-size-11);
  color: var(--item-control-color);
}
.dnd5e2 .items-section .items-header .item-controls .item-control.always-interactive,
.dnd5e2 .items-section .item .item-controls .item-control.always-interactive {
  color: var(--item-control-interactive-color);
}
.dnd5e2 .items-section .items-header .item-controls .item-control.active,
.dnd5e2 .items-section .item .item-controls .item-control.active {
  color: var(--item-control-active-color);
}
.dnd5e2 .items-section .items-header .item-controls.item-detail .radio-button,
.dnd5e2 .items-section .item .item-controls.item-detail .radio-button {
  background: none;
}
.dnd5e2 .items-section .items-header .item-controls.item-detail .radio-button[aria-pressed="true"]::before,
.dnd5e2 .items-section .item .item-controls.item-detail .radio-button[aria-pressed="true"]::before {
  background: var(--color-border-dark-5);
}
.dnd5e2 .items-section .items-header .item-controls [data-context-menu],
.dnd5e2 .items-section .item .item-controls [data-context-menu],
.dnd5e2 .items-section .items-header .item-controls [data-toggle-description],
.dnd5e2 .items-section .item .item-controls [data-toggle-description] {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: end;
  padding: 0 10px 0 5px;
}
.dnd5e2 .items-section .items-header .item-controls [data-toggle-description],
.dnd5e2 .items-section .item .item-controls [data-toggle-description] {
  right: 20px;
  padding: 0;
}
.dnd5e2 .items-section .items-header .item-header.effect-controls,
.dnd5e2 .items-section .item .item-header.effect-controls {
  padding-right: 0.75rem;
  justify-content: end;
  color: var(--item-control-header-color);
  align-items: center;
}
.dnd5e2 .items-section .items-header .item-description .item-summary,
.dnd5e2 .items-section .item .item-description .item-summary {
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-11);
  padding: 1px 8px 8px;
  background: var(--item-summary-background);
}
.dnd5e2 .items-section .items-header .item-description .item-summary .item-properties,
.dnd5e2 .items-section .item .item-description .item-summary .item-properties {
  padding-top: 7px;
}
.dnd5e2 .items-section .items-header .item-description .item-summary > * + .item-properties,
.dnd5e2 .items-section .item .item-description .item-summary > * + .item-properties {
  padding-top: 0;
}
.dnd5e2 .items-section .items-header {
  display: flex;
  align-items: stretch;
}
.dnd5e2 .items-section .items-header .config-button {
  position: absolute;
  inset: 0.5rem 1.5rem auto auto;
  color: var(--dnd5e-color-gold);
  font-size: var(--font-size-12);
}
.dnd5e2 .items-section .items-header .item-price {
  justify-content: center;
  padding: 0;
}
.dnd5e2 .items-section .items-header h3 {
  color: inherit;
}
.dnd5e2 .items-section .item {
  border-bottom: var(--dnd5e-border-dotted);
}
.dnd5e2 .items-section .item:last-child {
  border: none;
}
.dnd5e2 .items-section .activities .activity-row {
  position: relative;
  border-top: var(--activity-row-border);
  padding-left: 20px;
}
.dnd5e2 .items-section .activities .activity-row:last-child {
  border-bottom: var(--activity-row-border);
}
.dnd5e2 .items-section .activities .activity-row::before {
  content: "┗";
  position: absolute;
  inset: 9px auto auto 5px;
  font-size: var(--font-size-12);
  font-weight: bold;
  color: var(--activity-row-indent-color);
}
.dnd5e2 .items-section .activities .activity-row .item-image {
  --icon-size: 24px;
  --gold-icon-size: 24px;
  --icon-fill: var(--activity-icon-color);
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-width: 1px;
  border-radius: 3px;
}
.dnd5e2 .items-section .activities .activity-row .item-name .title {
  font-size: var(--font-size-12);
}
.dnd5e2 .effect-name .duration,
.dnd5e2.effect-tooltip .duration {
  padding: 0.25rem;
  border: var(--dnd5e-border-dashed-faint);
  border-radius: 4px;
  font-family: var(--dnd5e-font-roboto-condensed);
  text-transform: uppercase;
  font-size: var(--font-size-11);
  color: var(--color-text-secondary);
}
.dnd5e2 .effect-name .duration .separator,
.dnd5e2.effect-tooltip .duration .separator,
.dnd5e2 .effect-name .duration .least-significant,
.dnd5e2.effect-tooltip .duration .least-significant {
  color: var(--color-text-tertiary);
}
/* ---------------------------------- */
/*  Currency                          */
/* ---------------------------------- */
.dnd5e2 section.currency,
.dnd5e2 .currency-style {
  display: flex;
  gap: 8px;
}
.dnd5e2 section.currency label,
.dnd5e2 .currency-style label {
  position: relative;
}
.dnd5e2 section.currency label i,
.dnd5e2 .currency-style label i {
  display: inline-block;
  position: absolute;
  inset: -2px auto auto -2px;
  filter: drop-shadow(0 0 1px black);
}
.dnd5e2 section.currency input,
.dnd5e2 .currency-style input,
.dnd5e2 section.currency button:not(.split-control),
.dnd5e2 .currency-style button:not(.split-control) {
  border: var(--dnd5e-border-gold);
  background: var(--dnd5e-background-parchment);
  box-shadow: 0 0 6px var(--dnd5e-shadow-15);
}
.dnd5e2 section.currency input:hover,
.dnd5e2 .currency-style input:hover,
.dnd5e2 section.currency button:not(.split-control):hover,
.dnd5e2 .currency-style button:not(.split-control):hover,
.dnd5e2 section.currency input:focus,
.dnd5e2 .currency-style input:focus,
.dnd5e2 section.currency button:not(.split-control):focus,
.dnd5e2 .currency-style button:not(.split-control):focus {
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
  border: 1px solid var(--dnd5e-color-gold);
}
.dnd5e2 section.currency input,
.dnd5e2 .currency-style input {
  border-radius: 6px;
  padding: 0.375rem 0.5rem 0.3755rem 1rem;
  text-align: right;
  font-family: var(--dnd5e-font-roboto);
  font-weight: bold;
  font-size: var(--font-size-11);
  max-width: 80px;
}
.dnd5e2 section.currency button:not(.split-control),
.dnd5e2 .currency-style button:not(.split-control) {
  --button-text-color: var(--color-text-secondary);
  border-radius: 4px;
  width: 30px;
}
/* ---------------------------------- */
/*  Locked                            */
/* ---------------------------------- */
.dnd5e2 .locked .inventory-element .item :is(.item-quantity, .item-uses, .item-charges) input:is(:focus-visible, :hover) {
  box-shadow: none;
}
/* ---------------------------------- */
/*  Edit Mode                         */
/* ---------------------------------- */
.dnd5e2.editable .inventory-element .items-section .pips,
.dnd5e2 .editable .inventory-element .items-section .pips {
  display: none;
}
.dnd5e2.editable .inventory-element .items-section .item-controls .item-control,
.dnd5e2 .editable .inventory-element .items-section .item-controls .item-control {
  color: var(--item-control-interactive-color);
}
/* ---------------------------------- */
/*  Award & Currency                  */
/* ---------------------------------- */
.dnd5e2:is(.award, .currency-manager) {
  --award-gap: 8px;
}
.dnd5e2:is(.award, .currency-manager) [data-tab="convert"] p {
  font-size: var(--font-size-14);
  margin: 0;
  padding-inline: 4px;
}
.dnd5e2:is(.award, .currency-manager) .xp {
  flex-direction: column;
  gap: 0;
  margin-block-end: var(--award-gap);
}
.dnd5e2:is(.award, .currency-manager) .xp span {
  font-size: var(--font-size-10);
}
.dnd5e2:is(.award, .currency-manager) .xp input {
  max-width: unset;
}
.dnd5e2:is(.award, .currency-manager) section.currency {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: 1fr 1fr;
  gap: var(--award-gap);
}
.dnd5e2:is(.award, .currency-manager) section.currency button[data-action] {
  padding-inline: 6px;
  width: unset;
  line-height: unset;
  font-size: var(--font-size-10);
}
.dnd5e2:is(.award, .currency-manager) section.currency input {
  max-width: unset;
}
.dnd5e2:is(.award, .currency-manager).award header {
  margin-bottom: 0.25rem;
}
.dnd5e2:is(.award, .currency-manager) .distribution {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--font-size-12);
  margin-bottom: 0.25rem;
}
.dnd5e2:is(.award, .currency-manager) .distribution span:has( + slide-toggle:not([checked])),
.dnd5e2:is(.award, .currency-manager) .distribution slide-toggle[checked] + span {
  font-weight: bold;
}
.dnd5e2:is(.award, .currency-manager) .destinations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-block: 4px;
  text-align: start;
}
.dnd5e2:is(.award, .currency-manager) .destinations label {
  display: flex;
  gap: 0.5em;
  margin: 0;
  padding: 4px;
  align-items: center;
  cursor: var(--cursor-pointer);
  --icon-fill: var(--color-text-primary);
}
.dnd5e2:is(.award, .currency-manager) .destinations input {
  flex: unset;
  width: 1em;
  height: 1em;
  margin: 0;
  align-self: center;
}
.dnd5e2:is(.award, .currency-manager) .destinations .no-destinations,
.dnd5e2:is(.award, .currency-manager) .destinations .no-primary-party {
  grid-column: 1 / -1;
  text-align: center;
  text-wrap: pretty;
  color: var(--color-text-secondary);
}
.dnd5e2:is(.award, .currency-manager) .destinations .no-destinations {
  font-weight: bold;
}
.dnd5e2:is(.award, .currency-manager) button[type=submit] {
  width: 100%;
}
/* ---------------------------------- */
/*  Chat Cards                        */
/* ---------------------------------- */
:is(.chat-popout, #chat-log, .chat-log) .message {
  padding: 0.5rem;
  border-width: 1px;
  border-block-end-width: 2px;
  border-radius: 6px;
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-13);
  position: relative;
  background: var(--dnd5e-color-parchment);
  /* Header */
}
:is(.chat-popout, #chat-log, .chat-log) .message::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent url("ui/texture-gray1.webp") no-repeat top left;
  border-radius: 6px;
}
:is(.chat-popout, #chat-log, .chat-log) .message > .message-header,
:is(.chat-popout, #chat-log, .chat-log) .message > .message-content {
  position: relative;
}
:is(.chat-popout, #chat-log, .chat-log) .message.emote {
  background-color: #f3edde;
}
:is(.chat-popout, #chat-log, .chat-log) .message.whisper {
  background-color: #e8e8ef;
}
:is(.chat-popout, #chat-log, .chat-log) .message.whisper::before {
  filter: grayscale(1);
}
:is(.chat-popout, #chat-log, .chat-log) .message.blind {
  background-color: #f5eaf5;
}
:is(.chat-popout, #chat-log, .chat-log) .message.blind::before {
  mix-blend-mode: luminosity;
}
:is(.chat-popout, #chat-log, .chat-log) .message .message-header {
  margin-bottom: 0.375rem;
}
:is(.chat-popout, #chat-log, .chat-log) .message .message-header .message-delete {
  display: none;
}
:is(.chat-popout, #chat-log, .chat-log) .message .message-header .message-sender {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  white-space: unset;
}
:is(.chat-popout, #chat-log, .chat-log) .message .message-header .message-sender .avatar {
  height: 100%;
  display: grid;
  place-content: center;
}
:is(.chat-popout, #chat-log, .chat-log) .message .message-header .message-sender img,
:is(.chat-popout, #chat-log, .chat-log) .message .message-header .message-sender video {
  width: 38px;
  height: 38px;
  border: none;
  flex: none;
}
:is(.chat-popout, #chat-log, .chat-log) .message .message-header .message-sender .avatar:not(.token) img {
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.85);
  background: var(--dnd5e-background-alt-1);
  object-fit: cover;
  object-position: top;
}
:is(.chat-popout, #chat-log, .chat-log) .message .message-header .message-sender .avatar.token :is(img, video) {
  object-fix: contain;
  object-position: center;
}
:is(.chat-popout, #chat-log, .chat-log) .message .message-header .name-stacked {
  flex: 1;
  display: flex;
  min-height: 32px;
  flex-direction: column;
  justify-content: center;
  line-height: normal;
}
:is(.chat-popout, #chat-log, .chat-log) .message .message-header .title {
  font-family: var(--dnd5e-font-roboto-slab);
  font-size: var(--font-size-16);
  font-weight: bold;
  color: var(--color-text-primary);
}
:is(.chat-popout, #chat-log, .chat-log) .message .message-header .subtitle {
  font-size: var(--font-size-11);
  color: var(--color-text-secondary);
}
:is(.chat-popout, #chat-log, .chat-log) .message .message-header .message-metadata {
  font-size: var(--font-size-10);
  transform: translate(2px, -4px);
  flex: none;
}
:is(.chat-popout, #chat-log, .chat-log) .message .message-header time {
  color: var(--color-text-secondary);
}
:is(.chat-popout, #chat-log, .chat-log) .message .message-header .flavor-text {
  margin-block-start: 4px;
  margin-block-end: -4px;
  font-style: italic;
}
/* Modifier Keys */
:is(.chat-popout, #chat-log, .chat-log)[data-modifier-shift] .message .message-header .message-delete {
  display: unset;
}
:is(.chat-popout, #chat-log, .chat-log)[data-modifier-shift] .message .message-header:has(.message-delete) .chat-control {
  display: none;
}
/* ---------------------------------- */
/*  Dice Rolls                        */
/* ---------------------------------- */
.dice-result {
  display: flex;
  flex-direction: column;
}
.dice-result .dice-formula,
.dice-result .dice-total {
  border-radius: 3px;
  background: var(--dnd5e-background-5);
  padding: 0.25rem;
  line-height: normal;
  flex: auto;
  margin: 0;
}
.dice-result .dice-total {
  font-weight: bold;
  font-size: var(--font-size-28);
  padding: 0.125rem;
  margin-top: 0.25rem;
  font-family: var(--font-primary);
  position: relative;
}
.dice-result .dice-total::before,
.dice-result .dice-total::after {
  position: absolute;
  inset: 6px 0 6px auto;
}
.dice-result .dice-total::before {
  content: "";
  width: 36px;
  border-left: 1px solid #bbb;
}
.dice-result .dice-total::after {
  content: "\f054";
  font-family: var(--font-awesome);
  display: grid;
  place-content: center;
  padding: 0 0.8125rem;
  color: var(--color-text-secondary);
  font-size: var(--font-size-16);
  transition: all 250ms ease;
}
.dice-result .dice-total.success:not(.fumble),
.dice-result .dice-total.critical {
  background: var(--dnd5e-color-success-background);
  border-color: var(--dnd5e-color-success);
  color: var(--dnd5e-color-success-critical);
}
.dice-result .dice-total.success:not(.fumble)::after,
.dice-result .dice-total.critical::after {
  color: var(--dnd5e-color-success);
}
.dice-result .dice-total.failure:not(.critical),
.dice-result .dice-total.fumble {
  background: var(--dnd5e-color-failure-background);
  border-color: var(--dnd5e-color-failure);
  color: var(--dnd5e-color-failure-critical);
}
.dice-result .dice-total.failure:not(.critical)::after,
.dice-result .dice-total.fumble::after {
  color: var(--dnd5e-color-failure);
}
.dice-result .dice-total.critical,
.dice-result .dice-total.fumble {
  border-width: 3px;
  border-style: double;
}
.dice-result .dice-total > .icons {
  position: absolute;
  inset: 0 auto 0 8px;
  display: flex;
  align-items: center;
  opacity: 0.35;
}
.dice-result .dice-tooltip-collapser {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms ease;
}
.dice-result .dice-tooltip {
  flex: auto;
  order: unset;
  display: block;
  overflow: hidden;
}
.dice-result .dice-tooltip .tooltip-part {
  border-bottom: var(--dnd5e-border-separator-heavy);
  padding: 0.125rem 0;
}
.dice-result .dice-tooltip .tooltip-part:last-child {
  border: none;
  padding-bottom: 0;
}
.dice-result .dice-tooltip .tooltip-part.constant {
  padding-right: 6px;
  min-height: 40px;
  display: grid;
}
.dice-result .dice-tooltip .dice {
  display: flex;
  align-items: center;
}
.dice-result .dice-tooltip .dice .dice-rolls {
  flex: 1;
  margin: 5px 0 5px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
}
.dice-result .dice-tooltip .dice .dice-rolls .roll {
  float: unset;
  margin: 0;
}
.dice-result .dice-tooltip .dice .dice-rolls .constant {
  font-family: var(--font-primary);
  font-weight: bold;
  font-size: var(--font-size-18);
  margin-left: 0.25rem;
}
.dice-result .dice-tooltip .dice .dice-rolls .constant .sign {
  font-weight: normal;
  color: var(--color-text-tertiary);
  margin-right: 2px;
}
.dice-result .dice-tooltip .dice .total {
  flex-basis: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.dice-result .dice-tooltip .dice .total > img {
  top: 6px;
  position: absolute;
  width: 32px;
  border: none;
  opacity: 0.1;
}
.dice-result .dice-tooltip .dice .total .label {
  font-family: var(--dnd5e-font-roboto-condensed);
  font-size: var(--font-size-10);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  text-align: center;
}
.dice-result .dice-tooltip .dice .total .value {
  font-family: var(--font-primary);
  font-weight: bold;
  font-size: var(--font-size-20);
}
.dice-result .dice-tooltip .dice .total .sign {
  color: var(--color-text-tertiary);
  font-weight: normal;
  margin-right: 2px;
}
.dice-roll {
  cursor: var(--cursor-pointer);
}
.dice-roll .dice-flavor {
  display: none;
}
.dice-roll.expanded .dice-total::after {
  transform: rotate(-90deg);
}
.dice-roll.expanded .dice-tooltip-collapser {
  grid-template-rows: 1fr;
}
.dice-roll.secret-roll {
  cursor: initial;
}
.dice-roll.secret-roll .dice-total::before,
.dice-roll.secret-roll .dice-total::after {
  content: none;
}
.dice-roll.secret-roll .dice-total > i {
  display: none;
}
/* ----------------------------------------- */
/*  Inline Roll Actions                      */
/* ----------------------------------------- */
.roll-link-group a:first-child,
.roll-link a:first-child,
.reference-link a:first-child {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}
.roll-link-group a:last-child,
.roll-link a:last-child,
.reference-link a:last-child {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}
.roll-link-group a i,
.roll-link a i,
.reference-link a i {
  color: var(--color-text-dark-inactive);
  margin-inline-end: 0.25em;
}
.roll-link-group a.enricher-action,
.roll-link a.enricher-action,
.reference-link a.enricher-action {
  padding-inline-end: 1px;
}
.roll-link-group a + a,
.roll-link a + a,
.reference-link a + a {
  margin-inline-start: 2px;
}
/* ---------------------------------- */
/*  Chat Notifications                */
/* ---------------------------------- */
#chat-notifications .chat-message .chat-control {
  display: none;
}
/* ---------------------------------- */
/*  Chat Popouts                      */
/* ---------------------------------- */
.chat-popout {
  margin: 0;
  background: none;
  box-shadow: none;
}
.chat-popout .window-header {
  border: none;
  inset: 0 0 auto 0;
  z-index: 1;
  padding: 7px 6px 0 8px;
  background: none;
}
.chat-popout .window-header :is(a, button).header-button,
.chat-popout .window-header .header-control {
  height: 15px;
  border-radius: 100%;
  background: rgba(0, 0, 0, 0.25);
  font-size: var(--font-size-10);
  min-height: unset;
}
.chat-popout .window-header :is(a, button):is(.header-button, .header-control) {
  width: 15px;
  display: inline-grid;
  place-content: center;
  color: var(--color-text-light-highlight);
  margin: 0;
  padding: 0;
}
.chat-popout .window-header :is(a, button):is(.header-button, .header-control) > i {
  margin: 0;
}
.chat-popout .window-header .header-control {
  flex: 0 0 15px;
}
.chat-popout .window-header .header-control:hover {
  text-shadow: 0 0 8px red;
}
.chat-popout:not(.minimized) .window-header .window-title {
  block-size: 1px;
  visibility: hidden;
}
.chat-popout .window-content {
  padding: 0;
  background: none;
  overflow: visible;
}
.chat-popout .window-content .message {
  margin: 0;
  box-shadow: 0 0 20px var(--color-shadow-dark);
}
.chat-popout.minimized {
  background: url("../../ui/denim075.png");
  max-height: var(--header-height);
}
.chat-popout.minimized .window-header {
  padding-block: 0;
}
.chat-popout:not(.minimized) .window-header {
  position: absolute;
}
.chat-popout .message-metadata {
  padding-right: 18px;
}
/* ---------------------------------- */
/*  Item Cards                        */
/* ---------------------------------- */
.dnd5e2 .chat-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.dnd5e2 .chat-card + .dice-roll {
  margin-top: 0.375rem;
}
.dnd5e2 .chat-card .description {
  padding: 0.5rem;
  border: 1px solid var(--dnd5e-color-gold);
  border-radius: 3px;
  background: var(--dnd5e-color-card);
  overflow: hidden;
}
.dnd5e2 .chat-card .description .summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dnd5e2 .chat-card .description .summary > img {
  width: 32px;
  height: 32px;
}
.dnd5e2 .chat-card .description .summary .name-stacked {
  flex: 1;
  padding-right: 0.5rem;
}
.dnd5e2 .chat-card .description .summary > i {
  font-size: var(--font-size-14);
  color: var(--color-text-secondary);
  margin-right: 8px;
  transition: all 250ms ease;
}
.dnd5e2 .chat-card .description .details {
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-11);
  padding: 0;
  display: grid;
  grid-template-rows: 1fr;
  transition: all 250ms ease;
}
.dnd5e2 .chat-card .description .details > .wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
  /* Immediate children vert margins
         * are handled by the column gap */
}
.dnd5e2 .chat-card .description .details > .wrapper > * {
  margin-block: 0;
}
.dnd5e2 .chat-card .description .details p {
  margin: 0;
}
.dnd5e2 .chat-card .description .details p:first-child {
  padding-top: 0.5rem;
}
.dnd5e2 .chat-card .description.critical {
  border-width: 3px;
  border-style: double;
}
.dnd5e2 .chat-card .description.critical .summary .subtitle {
  color: var(--dnd5e-color-success);
  text-transform: uppercase;
}
.dnd5e2 .chat-card .description.collapsible .summary {
  cursor: var(--cursor-pointer);
}
.dnd5e2 .chat-card .description.collapsed .summary > i {
  transform: rotate(-90deg);
}
.dnd5e2 .chat-card .description.collapsed .details {
  grid-template-rows: 0fr;
  opacity: 0;
}
.dnd5e2 .chat-card .card-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.dnd5e2 .chat-card .card-buttons [hidden] {
  display: none;
}
.dnd5e2 .chat-card .pills .pill {
  font-size: var(--font-size-10);
  line-height: 1;
}
.dice-roll + .chat-card {
  margin-block-start: 0.375rem;
}
.chat-sidebar:not([data-gm-user]) .card-header[data-concealed] .summary,
.chat-popout:not([data-gm-user]) .card-header[data-concealed] .summary,
#chat-notifications:not([data-gm-user]) .card-header[data-concealed] .summary {
  cursor: inherit;
}
.chat-sidebar:not([data-gm-user]) .card-header[data-concealed] .fa-chevron-down,
.chat-popout:not([data-gm-user]) .card-header[data-concealed] .fa-chevron-down,
#chat-notifications:not([data-gm-user]) .card-header[data-concealed] .fa-chevron-down,
.chat-sidebar:not([data-gm-user]) .card-header[data-concealed] .details,
.chat-popout:not([data-gm-user]) .card-header[data-concealed] .details,
#chat-notifications:not([data-gm-user]) .card-header[data-concealed] .details {
  display: none;
}
.message p.supplement {
  margin: 0;
  font-size: var(--font-size-11);
  color: var(--color-text-secondary);
  padding: 0 0.25rem;
}
.message p.supplement > strong {
  color: var(--color-text-primary);
  text-transform: uppercase;
  font-size: var(--font-size-10);
  margin-right: 0.25rem;
}
.message .dice-roll + p.supplement {
  margin: 0.5rem 0;
}
/* Damage & Effects Trays */
.message.dnd5e2:not(:nth-last-child(-n + 5)) :is(.card-tray, .effects-tray, .targets-tray) {
  content-visibility: auto;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) {
  margin-top: 0.125rem;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray).damage-tray,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray).effects-tray {
  margin-block-start: 8px;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray).targets-tray {
  margin-top: 6px;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray).targets-tray:not(.collapsed) > label {
  padding-bottom: 4px;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) > label {
  cursor: var(--cursor-pointer);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--font-size-11);
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) > label > span {
  flex: none;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) > label > i:first-of-type {
  color: var(--color-text-tertiary);
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) > label .fa-caret-down {
  transition: all 250ms ease;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) > label::before,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) > label::after {
  content: "";
  flex-basis: 50%;
  border-top: 1px dotted var(--dnd5e-color-gold);
  align-self: center;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .target-source-control {
  justify-content: space-evenly;
  gap: 4px;
  margin-block-start: 1px;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .target-source-control:not([hidden]) {
  display: flex;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .target-source-control button {
  width: unset;
  font-size: var(--font-size-10);
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .target-source-control button:hover,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .target-source-control button:focus,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .target-source-control button[aria-pressed="true"] {
  box-shadow: none;
  text-shadow: 0 0 5px var(--color-shadow-highlight);
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .effects,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets {
  display: flex;
  flex-direction: column;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .effects .effect,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .effect,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .effects .target,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
  border-bottom: var(--dnd5e-border-separator-faint);
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .effects .effect:last-child,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .effect:last-child,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .effects .target:last-child,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target:last-child {
  padding: 0;
  margin: 0;
  border: none;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .effects .effect > img,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .effect > img,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .effects .target > img,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target > img {
  width: 32px;
  height: 32px;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .effects .effect .name-stacked,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .effect .name-stacked,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .effects .target .name-stacked,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .name-stacked {
  flex: 1;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .effects > .none,
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets > .none {
  text-align: center;
  margin-block: 4px;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .effects .effect > button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 4px;
  font-size: var(--font-size-12);
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target {
  flex-wrap: wrap;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .subtitle {
  display: flex;
  gap: 4px;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .change-source {
  width: 13px;
  height: 13px;
  --icon-size: 13px;
  padding: 0;
  border-radius: 4px;
  display: grid;
  grid-template-areas: "overlay";
  font-size: inherit;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .change-source > * {
  grid-area: overlay;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .change-source > dnd5e-icon {
  display: block;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .change-source > i {
  color: red;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .change-source:not([aria-pressed="true"]) .fa-slash {
  display: none;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .change-source:not([aria-pressed="mixed"]) .fa-arrow-turn-down {
  display: none;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .change-source .fa-arrow-turn-down {
  position: relative;
  left: 8px;
  top: -1px;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .calculated {
  padding-inline-end: 4px;
  font-size: var(--font-size-14);
  font-weight: bold;
  color: var(--dnd5e-color-application-damage);
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .calculated.healing {
  color: var(--dnd5e-color-application-healing);
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .calculated.temp {
  color: var(--dnd5e-color-application-temp);
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .damage-multipliers {
  flex: 1 0 calc(100% - 6px);
  display: grid;
  grid-template-columns: auto repeat(6, 1fr);
  gap: 2px;
  margin-inline: 3px;
  font-size: var(--font-size-11);
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .damage-multipliers::before {
  content: "\f00d";
  align-self: center;
  padding-inline-end: 2px;
  color: var(--dnd5e-color-tan);
  font-family: var(--font-awesome);
  font-weight: 900;
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .damage-multipliers button {
  width: 100%;
  height: unset;
  border-radius: 3px;
  padding: 2px;
  font-size: inherit;
  line-height: unset;
  cursor: var(--cursor-pointer);
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .damage-multipliers button::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background-color: var(--dnd5e-color-faint);
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .damage-multipliers button[aria-pressed="true"] {
  border-color: var(--dnd5e-color-crimson);
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .targets .target .damage-multipliers button[aria-pressed="true"]::after {
  background-color: var(--dnd5e-color-crimson);
}
.dnd5e2 :is(.card-tray, .effects-tray, .targets-tray) .wrapper > button {
  margin: 3px;
  width: calc(100% - 6px);
  margin-block-start: 6px;
}
.hidden-dc {
  display: contents;
}
.visible-dc {
  display: none;
}
[data-display-challenge] .hidden-dc {
  display: none;
}
[data-display-challenge] .visible-dc {
  display: contents;
}
/* ---------------------------------- */
/*  Enchantment                       */
/* ---------------------------------- */
enchantment-application {
  margin: 4px;
}
enchantment-application .drop-area {
  display: grid;
  gap: 4px;
  min-block-size: 40px;
  border: 1px dashed var(--dnd5e-color-crimson);
  border-radius: 4px;
  padding: 4px;
  background: var(--dnd5e-color-card);
}
enchantment-application .drop-area p {
  place-content: center;
  text-align: center;
}
enchantment-application .drop-area .preview {
  display: flex;
  align-items: center;
  gap: 6px;
}
enchantment-application .drop-area .preview:not(:last-child) {
  border-block-end: 1px dotted var(--color-border-light-2);
  padding-block-end: 4px;
}
enchantment-application .drop-area .preview > img {
  block-size: 32px;
  inline-size: 32px;
  flex: 0 0 32px;
}
enchantment-application .drop-area .preview > .name {
  flex: 1;
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
}
enchantment-application .drop-area .preview > a {
  flex: 0 0 20px;
}
enchantment-application .count-area {
  margin-block-start: 2px;
  margin-inline-end: 4px;
  font-size: var(--font-size-10);
  text-align: end;
  text-transform: uppercase;
}
/* ---------------------------------- */
/*  Target Evaluations                */
/* ---------------------------------- */
:is(.chat-popout, #chat-log, .chat-log) .message .evaluation {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
:is(.chat-popout, #chat-log, .chat-log) .message .evaluation .target {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 8px;
  cursor: var(--cursor-pointer);
}
:is(.chat-popout, #chat-log, .chat-log) .message .evaluation .target > i {
  font-size: var(--font-size-14);
}
:is(.chat-popout, #chat-log, .chat-log) .message .evaluation .target .name {
  font-family: var(--dnd5e-font-roboto-slab);
  font-size: var(--font-size-14);
  font-weight: bold;
}
:is(.chat-popout, #chat-log, .chat-log) .message .evaluation .target .name-stacked {
  flex: 1;
  line-height: normal;
  min-height: 24px;
}
:is(.chat-popout, #chat-log, .chat-log) .message .evaluation .target .name-stacked .title {
  font-size: var(--font-size-16);
  display: flex;
  align-items: center;
  gap: 0.325rem;
}
:is(.chat-popout, #chat-log, .chat-log) .message .evaluation .target .name-stacked .title > i {
  font-size: var(--font-size-14);
}
:is(.chat-popout, #chat-log, .chat-log) .message .evaluation .target .ac {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--font-size-14);
  margin-left: auto;
  opacity: 0.75;
}
:is(.chat-popout, #chat-log, .chat-log) .message .evaluation .target .ac > span {
  font-weight: bold;
  font-family: var(--font-primary);
  word-break: keep-all;
}
:is(.chat-popout, #chat-log, .chat-log) .message .evaluation .target.hit > i {
  color: var(--dnd5e-color-success);
}
:is(.chat-popout, #chat-log, .chat-log) .message .evaluation .target.miss > i {
  color: var(--dnd5e-color-failure);
  height: 12px;
}
/* ---------------------------------- */
/*  Rest & Turn Cards                 */
/* ---------------------------------- */
.dnd5e2 .chat-card section > strong:first-child {
  display: block;
  margin-block-start: 1em;
}
.dnd5e2 .chat-card ul.action-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-block-start: 8px;
}
.dnd5e2 .chat-card ul.action-list li {
  gap: 8px;
  align-items: center;
}
.dnd5e2 .chat-card ul.action-list a.rollable:hover .subtitle {
  text-shadow: none;
}
.dnd5e2 .chat-card ul.action-list .status {
  flex: 0 0 30px;
  text-align: center;
}
.dnd5e2 .chat-card ul.action-list .status.success,
.dnd5e2 .chat-card ul.action-list .status.failure {
  flex-basis: 60px;
  display: flex;
  align-items: center;
}
.dnd5e2 .chat-card ul.action-list .status.success .total,
.dnd5e2 .chat-card ul.action-list .status.failure .total,
.dnd5e2 .chat-card ul.action-list .status.success i,
.dnd5e2 .chat-card ul.action-list .status.failure i {
  flex: 0 0 30px;
  text-align: center;
}
.dnd5e2 .chat-card ul.action-list .status.success i,
.dnd5e2 .chat-card ul.action-list .status.failure i {
  height: 14px;
}
.dnd5e2 .chat-card ul.action-list .status.success {
  color: var(--dnd5e-color-success);
}
.dnd5e2 .chat-card ul.action-list .status.failure {
  color: var(--dnd5e-color-failure);
}
.dnd5e2 .chat-card ul.action-list .total {
  font-weight: bold;
  font-family: var(--dnd5e-font-roboto-condensed);
}
.dnd5e2 .chat-card .deltas ul .delta {
  display: flex;
  justify-content: space-between;
}
.dnd5e2 .chat-card .deltas ul .delta .label {
  flex-grow: 1;
}
.dnd5e2 .chat-card .deltas ul .delta .roll {
  font-size: var(--font-size-12);
}
.dnd5e2 .chat-card .deltas ul :is(.operation-create, .operation-delete) .label {
  font-style: italic;
}
:is(#tooltip, .locked-tooltip) {
  /* ---------------------------------- */
  /*  Item Tooltips                     */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Passive Tooltips                  */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Rule Tooltips                     */
  /* ---------------------------------- */
}
:is(#tooltip, .locked-tooltip).dnd5e-tooltip {
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-13);
  text-align: start;
  color: var(--color-text-primary);
  border-radius: 5px;
  padding: 6px 8px;
  background: var(--dnd5e-application-background);
  box-shadow: 0 0 16px var(--dnd5e-shadow-45);
  border: var(--dnd5e-border-gold);
  border-width: 2px;
}
:is(#tooltip, .locked-tooltip).dnd5e-tooltip .content {
  padding: 0 0.5rem 0.25rem;
}
:is(#tooltip, .locked-tooltip).dnd5e-tooltip h1,
:is(#tooltip, .locked-tooltip).dnd5e-tooltip h2,
:is(#tooltip, .locked-tooltip).dnd5e-tooltip h3,
:is(#tooltip, .locked-tooltip).dnd5e-tooltip h4 {
  line-height: normal;
  text-shadow: none;
  color: var(--color-text-primary);
}
:is(#tooltip, .locked-tooltip).dnd5e-tooltip .header h2 {
  margin: 0;
  border: none;
  font-family: var(--dnd5e-font-roboto-slab);
  font-size: 1.5em;
  font-weight: bold;
}
:is(#tooltip, .locked-tooltip).dnd5e-tooltip h3 {
  font-size: 1.25em;
  margin: 0;
  padding: 0;
  border: none;
}
:is(#tooltip, .locked-tooltip).locked-tooltip {
  z-index: calc(var(--z-index-tooltip) - 1);
}
:is(#tooltip, .locked-tooltip).locked-tooltip.dnd5e-tooltip::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: var(--dnd5e-border-gold);
  border-radius: 4px;
  pointer-events: none;
}
:is(#tooltip, .locked-tooltip).locked-tooltip .lock-hint {
  display: none;
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) {
  width: 300px;
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .loading {
  display: flex;
  justify-content: center;
  padding: 0.75rem;
  font-size: var(--font-size-24);
  opacity: 0.25;
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .header .top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .header .top .subtitle {
  font-size: var(--font-size-11);
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .header img {
  width: 64px;
  height: 64px;
  border: 2px solid var(--dnd5e-color-gold);
  box-shadow: 0 0 4px var(--dnd5e-shadow-45);
  border-radius: 8px;
  object-fit: cover;
  background: var(--dnd5e-background-alt-1);
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .header .bottom {
  display: flex;
  font-size: var(--font-size-11);
  color: var(--color-text-secondary);
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .header .weight,
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .header .price {
  width: 70px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .header .weight span,
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .header .price span {
  height: 14px;
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .header .weight {
  justify-content: end;
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .header .weight i {
  font-size: var(--font-size-9);
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .header .charges {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .header .school {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  --icon-fill: var(--dnd5e-color-gold);
  --icon-size: 32px;
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .description {
  text-align: left;
  font-size: var(--font-size-12);
  line-height: normal;
  max-height: 450px;
  overflow: hidden;
  padding-right: 0.5rem;
  margin-right: -0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--dnd5e-color-gold) transparent;
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .description table {
  display: none;
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .description.overflowing {
  mask-image: linear-gradient(to bottom, black 90%, transparent);
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .description:empty {
  margin-bottom: 0.5rem;
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip).locked-tooltip .description {
  overflow-y: scroll;
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip).locked-tooltip .description.overflowing {
  mask-image: unset;
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .pill {
  font-size: var(--font-size-10);
  padding: 0.1875rem 0.375rem;
  line-height: 1;
}
:is(#tooltip, .locked-tooltip).passive-tooltip {
  max-width: unset;
}
:is(#tooltip, .locked-tooltip).passive-tooltip .header {
  margin-block: 6px 10px;
}
:is(#tooltip, .locked-tooltip).passive-tooltip .party {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
:is(#tooltip, .locked-tooltip).passive-tooltip .party .member {
  display: grid;
  grid-template-columns: max-content 140px 20px max-content;
  align-items: center;
  gap: 4px;
}
:is(#tooltip, .locked-tooltip).passive-tooltip .party img {
  width: 38px;
  height: 38px;
  border: 2px solid var(--dnd5e-color-gold);
  box-shadow: 0 0 4px var(--dnd5e-shadow-45);
  border-radius: 100%;
  object-fit: cover;
  object-position: top;
  background: var(--dnd5e-background-alt-1);
}
:is(#tooltip, .locked-tooltip).passive-tooltip .party .name {
  padding-inline-start: 4px;
  font-size: var(--font-size-14);
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
}
:is(#tooltip, .locked-tooltip).passive-tooltip .party .passive {
  font-weight: bold;
  text-align: end;
}
:is(#tooltip, .locked-tooltip).passive-tooltip .party .status {
  font-family: var(--font-awesome);
  font-weight: 900;
}
:is(#tooltip, .locked-tooltip).passive-tooltip .party .status.success::after {
  content: "\f058";
  color: var(--dnd5e-color-success);
}
:is(#tooltip, .locked-tooltip).passive-tooltip .party .status.failure::after {
  content: "\f057";
  color: var(--dnd5e-color-failure);
}
:is(#tooltip, .locked-tooltip).rule-tooltip {
  max-width: 450px;
}
:is(#tooltip, .locked-tooltip).rule-tooltip .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block: 6px 10px;
}
/* ---------------------------------- */
/*  Journal v2 Styles                 */
/* ---------------------------------- */
/* Journal-only */
.sheet.dnd5e2-journal {
  /* Background Texture & Headings */
  /* Edit Button */
  /* ProseMirror */
  /* Navigation */
}
.sheet.dnd5e2-journal .window-resizable-handle {
  bottom: 0;
  padding: 0;
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 0;
  background: transparent url("ui/resize-handle.webp") no-repeat center / contain;
}
.sheet.dnd5e2-journal .window-resizable-handle > i {
  transform: unset;
}
.sheet.dnd5e2-journal .window-resizable-handle > i::before {
  content: unset;
}
.sheet.dnd5e2-journal.journal-entry .scrollable,
.sheet.dnd5e2-journal.journal-entry-page.editor-content,
.sheet.dnd5e2-journal .toc {
  scrollbar-width: thin;
  scrollbar-color: var(--dnd5e-color-gold) transparent;
}
.sheet.dnd5e2-journal.journal-entry .scrollable::-webkit-scrollbar-track,
.sheet.dnd5e2-journal.journal-entry-page.editor-content::-webkit-scrollbar-track,
.sheet.dnd5e2-journal .toc::-webkit-scrollbar-track {
  box-shadow: none;
  border-radius: 0;
}
.sheet.dnd5e2-journal.journal-entry .scrollable::-webkit-scrollbar-thumb,
.sheet.dnd5e2-journal.journal-entry-page.editor-content::-webkit-scrollbar-thumb,
.sheet.dnd5e2-journal .toc::-webkit-scrollbar-thumb {
  border: none;
  background: var(--dnd5e-color-gold);
}
.sheet.dnd5e2-journal .journal-entry-content,
.sheet.dnd5e2-journal.journal-entry-page .window-content {
  /* Page Title */
}
.sheet.dnd5e2-journal .journal-entry-content h1,
.sheet.dnd5e2-journal.journal-entry-page .window-content h1 {
  font-size: var(--dnd5e-journal-h1-size);
}
.sheet.dnd5e2-journal .journal-entry-content h2,
.sheet.dnd5e2-journal.journal-entry-page .window-content h2 {
  font-size: var(--dnd5e-journal-h2-size);
}
.sheet.dnd5e2-journal .journal-entry-content h3,
.sheet.dnd5e2-journal.journal-entry-page .window-content h3 {
  font-size: var(--dnd5e-journal-h3-size);
}
.sheet.dnd5e2-journal .journal-entry-content h4,
.sheet.dnd5e2-journal.journal-entry-page .window-content h4,
.sheet.dnd5e2-journal .journal-entry-content h5,
.sheet.dnd5e2-journal.journal-entry-page .window-content h5 {
  font-size: var(--dnd5e-journal-h4-size);
}
.sheet.dnd5e2-journal .journal-entry-content .journal-header .title,
.sheet.dnd5e2-journal.journal-entry-page .window-content .journal-header .title {
  border: 1px transparent;
  transition: border 250ms ease;
  font-size: var(--dnd5e-journal-title-size);
  font-family: var(--dnd5e-font-modesto);
  font-weight: bold;
  letter-spacing: 1px;
}
.sheet.dnd5e2-journal .journal-entry-content .journal-header .title:hover,
.sheet.dnd5e2-journal.journal-entry-page .window-content .journal-header .title:hover,
.sheet.dnd5e2-journal .journal-entry-content .journal-header .title:focus,
.sheet.dnd5e2-journal.journal-entry-page .window-content .journal-header .title:focus {
  border: 1px solid var(--dnd5e-color-gold);
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.sheet.dnd5e2-journal .journal-entry-content .journal-header .title:disabled,
.sheet.dnd5e2-journal.journal-entry-page .window-content .journal-header .title:disabled {
  background: none;
  color: var(--color-text-primary);
}
.sheet.dnd5e2-journal.journal-entry .edit-container :is(.editor-edit, button) {
  background: transparent;
  border: none;
  box-shadow: none;
}
.sheet.dnd5e2-journal.journal-entry .edit-container :is(.editor-edit, button) > i::before,
.sheet.dnd5e2-journal.journal-entry .edit-container :is(.editor-edit, button)::before {
  --fa: "\f52d";
}
.sheet.dnd5e2-journal.journal-entry-page prose-mirror {
  margin: 0;
}
.sheet.dnd5e2-journal.journal-entry-page prose-mirror .editor-content {
  scrollbar-gutter: stable;
  margin: 0 4px 0 16px;
  padding-right: 4px;
}
.sheet.dnd5e2-journal.journal-entry .book-navigation {
  flex-grow: 0;
  padding: 5px 0px;
  margin: 0 10px 10px;
  border: none;
  opacity: 0.2;
  transition: opacity 0.5s ease-out;
}
.sheet.dnd5e2-journal.journal-entry .book-navigation:hover {
  opacity: 1;
}
.sheet.dnd5e2-journal.journal-entry .book-navigation ul {
  display: flex;
  gap: 5px;
  margin: 0;
  padding-inline: 1rem;
  list-style: none;
}
.sheet.dnd5e2-journal.journal-entry .book-navigation li {
  flex: 1 1 33%;
}
.sheet.dnd5e2-journal.journal-entry .book-navigation a {
  display: block;
  border: none;
  background: none;
  text-align: center;
  text-decoration: none;
}
.sheet.dnd5e2-journal.journal-entry .book-navigation a[rel="prev"] {
  text-align: start;
}
.sheet.dnd5e2-journal.journal-entry .book-navigation a[rel="prev"]::before {
  content: "\f060";
  font-family: var(--font-awesome);
  font-weight: bold;
  padding-inline-end: 2px;
}
.sheet.dnd5e2-journal.journal-entry .book-navigation a[rel="next"] {
  text-align: end;
}
.sheet.dnd5e2-journal.journal-entry .book-navigation a[rel="next"]::after {
  content: "\f061";
  font-family: var(--font-awesome);
  font-weight: bold;
  padding-inline-start: 2px;
}
.sheet.dnd5e2-journal.journal-entry .book-navigation a.parent {
  text-align: center;
}
.sheet.dnd5e2-journal.journal-entry .book-navigation a.parent::before {
  content: "\f062";
  font-family: var(--font-awesome);
  font-weight: bold;
  padding-inline-end: 3px;
}
.sheet.dnd5e2-journal.journal-entry.application {
  --dnd5e-application-background: var(--dnd5e-background-texture-denim);
  border: none;
}
.sheet.dnd5e2-journal.journal-entry.application.titlebar:not(.minimized) .window-header .window-title {
  color: var(--color-text-light-1);
}
.sheet.dnd5e2-journal.journal-entry.application .window-content {
  flex-direction: row;
  padding: 0;
  border-radius: 0;
}
.sheet.dnd5e2-journal.journal-entry.application .edit-container button {
  color: var(--color-text-primary);
}
.sheet.dnd5e2-journal.journal-entry.application .journal-sidebar {
  font-family: var(--font-body);
}
.sheet.dnd5e2-journal.journal-entry.application .journal-sidebar input {
  --input-text-color: var(--dnd5e-color-blue-white);
  --input-placeholder-color: var(--dnd5e-color-blue-gray-3);
  --input-background-color: var(--dnd5e-background-10);
  outline: none;
  border: 1px solid transparent;
  transition: all 250ms ease;
}
.sheet.dnd5e2-journal.journal-entry.application .journal-sidebar input:hover,
.sheet.dnd5e2-journal.journal-entry.application .journal-sidebar input:focus {
  border-color: var(--dnd5e-color-gold);
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.sheet.dnd5e2-journal.journal-entry.application .journal-sidebar .inline-control,
.sheet.dnd5e2-journal.journal-entry.application .journal-sidebar .create {
  --button-background-color: transparent;
  --button-hover-background-color: var(--color-warm-2);
  --button-text-color: var(--color-light-1);
  --button-hover-text-color: var(--color-light-1);
}
.sheet.dnd5e2-journal.journal-entry.application .journal-sidebar .inline-control:focus,
.sheet.dnd5e2-journal.journal-entry.application .journal-sidebar .create:focus,
.sheet.dnd5e2-journal.journal-entry.application .journal-sidebar .inline-control:focus-visible,
.sheet.dnd5e2-journal.journal-entry.application .journal-sidebar .create:focus-visible,
.sheet.dnd5e2-journal.journal-entry.application .journal-sidebar .inline-control:hover,
.sheet.dnd5e2-journal.journal-entry.application .journal-sidebar .create:hover {
  box-shadow: none;
}
.sheet.dnd5e2-journal.journal-entry.application .journal-sidebar .inline-control:disabled,
.sheet.dnd5e2-journal.journal-entry.application .journal-sidebar .create:disabled {
  --button-hover-background-color: transparent;
}
.sheet.dnd5e2-journal.journal-entry.application .journal-sidebar .inline-control {
  --button-border-color: transparent;
  --button-hover-border-color: transparent;
}
.sheet.dnd5e2-journal.journal-entry.application .journal-header input {
  --input-background-color: var(--dnd5e-journal-header-background);
}
.sheet.dnd5e2-journal.journal-entry.application .action-buttons .previous,
.sheet.dnd5e2-journal.journal-entry.application .action-buttons .next {
  --button-background-color: transparent;
  flex: 0 0 var(--button-size);
  transition: background-color 250ms ease;
}
.sheet.dnd5e2-journal.journal-entry.application .action-buttons .create {
  --button-size: 28px;
  --button-border-color: var(--color-light-5);
  --button-hover-border-color: var(--color-light-3);
  text-transform: none;
  font-weight: normal;
}
.sheet.dnd5e2-journal.journal-entry.application:not(.expanded) .create,
.sheet.dnd5e2-journal.journal-entry.application:not(.expanded) .lock-mode {
  display: none;
}
.sheet.dnd5e2-journal.journal-entry.application .journal-entry-content {
  background: var(--dnd5e-journal-content-background, unset);
  font-size: var(--font-size-14);
}
.sheet.dnd5e2-journal .controls-dropdown .header-control button {
  --button-background-color: transparent;
  --button-hover-background-color: var(--color-warm-2);
  text-transform: unset;
  border: none;
  font-size: var(--font-size-12);
  font-family: var(--font-body);
  font-weight: normal;
  transition: all 250ms ease;
  justify-content: start;
}
/* ----------------------------------------- */
/*  Journal Pages                            */
/* ----------------------------------------- */
.dnd5e2.journal-editor .window-content {
  padding: 0;
  border-radius: 0;
}
.dnd5e2.journal-editor [data-application-part],
.dnd5e2.journal-editor .editor {
  height: 100%;
}
.dnd5e2.journal-editor .prosemirror menu {
  border-radius: 0;
}
.dnd5e2.journal-editor .prosemirror .editor-container {
  overflow-y: auto;
  margin: 0 4px 0 16px;
}
.dnd5e2.journal-editor .prosemirror .editor-content {
  scrollbar-gutter: stable;
  padding: 0 4px 0 0;
}
.dnd5e2.journal-editor h1,
.dnd5e2.journal-editor h2,
.dnd5e2.journal-editor h3,
.dnd5e2.journal-editor h4,
.dnd5e2.journal-editor h5,
.dnd5e2.journal-editor h6 {
  color: revert-layer;
  text-shadow: revert-layer;
}
.dnd5e2.journal-entry-page.application.titlebar .window-title {
  visibility: hidden;
}
.dnd5e2.journal-entry-page.application.text .journal-header {
  gap: 1rem;
}
.dnd5e2.journal-entry-page.application.text .journal-footer {
  display: none;
}
.dnd5e2.journal-entry-page.application.text .window-content {
  padding: 0;
  gap: 0;
}
.dnd5e2.journal-entry-page.application.text .prosemirror menu {
  border-radius: 0;
}
.dnd5e2.journal-entry-page.application.video .window-content .standard-form,
.dnd5e2.journal-entry-page.application.image .window-content .standard-form,
.dnd5e2.journal-entry-page.application.pdf .window-content .standard-form {
  gap: 8px;
}
.journal-entry-page.sheet:is(.class, .spells):not(.minimized, .minimizing, .maximized) {
  min-block-size: 600px;
  min-inline-size: 400px;
}
.journal-entry-page.sheet:is(.class, .spells) .standard-form {
  gap: 8px;
}
.journal-entry-page.sheet.class .journal-header {
  margin: 0;
}
.journal-entry-page.sheet.class .form-group {
  align-items: start;
}
.journal-entry-page.sheet.class .form-group:has(button[data-action="launchTextEditor"]) .form-fields {
  flex: 0 0 125px;
}
.journal-entry-page.sheet.class .form-group button[data-action="launchTextEditor"] {
  flex: 1;
}
.journal-entry-page.sheet.class .items-list .item {
  align-items: center;
  padding-block: 0.35em;
  padding-inline: 2px;
  margin: 0;
}
.journal-entry-page.sheet.class .items-list .item .item-controls {
  flex: 0;
  flex-wrap: nowrap;
  gap: 8px;
}
.journal-entry-page.class .core-traits caption,
.journal-entry-page.class .core-traits th {
  text-align: start;
}
.journal-entry-page.class .core-traits th,
.journal-entry-page.class .core-traits td {
  padding-inline: 8px;
}
.journal-entry-page.class .features-table th[scope="col"] {
  padding-inline: 0.25em;
}
.journal-entry-page.class .features-table td:is(.level, .prof, .scale, .spell-slots) {
  text-align: center;
}
.journal-entry-page.rule .window-content .editor:first-of-type {
  flex: 2;
}
.journal-entry-page.rule .window-content .separator {
  flex: 0 1;
  border-block-start: 1px dashed var(--color-border-dark-5);
}
.journal-entry-page.rule .window-content .separator > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 1em;
}
.journal-entry-page.rule .window-content .separator h3 {
  border: none;
  margin: 0;
}
.journal-entry-page.rule .window-content .separator select {
  min-width: 8em;
  width: auto;
}
.journal-entry-page.map .journal-header {
  flex-direction: column;
}
.journal-entry-page.map .journal-header > div {
  flex: 1;
  display: flex;
  gap: 1rem;
}
.journal-entry-page.map .journal-header [name="system.code"] {
  block-size: 100%;
  inline-size: 3em;
  font-size: var(--font-size-24);
  text-align: center;
}
.journal-entry-page.map .journal-header .page-level {
  margin-inline-start: 0;
}
.journal-entry-page.map [data-map-location-code]::before {
  content: attr(data-map-location-code) ': ';
}
.journal-entry-page.sheet.spells:not(.minimized, .minimizing, .maximized) {
  min-inline-size: 550px;
}
.journal-entry-page.sheet.spells .journal-header {
  margin: 0;
}
.journal-entry-page.sheet.spells .journal-header .heading-level {
  max-width: unset;
}
.journal-entry-page.sheet.spells .window-content {
  padding: 0 4px 0 0;
  display: grid;
  grid-template-columns: auto 280px;
  overflow: hidden;
  gap: 0;
}
.journal-entry-page.sheet.spells .window-content > .left {
  padding: 16px 8px 16px 16px;
  overflow-x: hidden;
}
.journal-entry-page.sheet.spells .window-content > .right {
  overflow-y: auto;
  padding: 16px 4px 16px 8px;
  scrollbar-gutter: stable;
}
.journal-entry-page.sheet.spells .window-content h3 {
  margin-block-start: 1rem;
}
.journal-entry-page.sheet.spells .window-content .control-button {
  color: white;
}
.journal-entry-page.sheet.spells .window-content .editor-content {
  margin: 0;
  padding: 0;
}
.journal-entry-page.sheet.spells .window-content .cm-scroller {
  position: absolute;
  inset: 0;
}
.journal-entry-page.sheet.spells .window-content .items .header button {
  --button-size: 15px;
  margin-left: auto;
  grid-column: 1 / -1;
  color: var(--dnd5e-color-gold);
}
.journal-entry-page.sheet.spells .window-content .items-list .empty {
  margin: 2px -4px -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--color-border-light-2);
  border-radius: 4px;
  padding: 8px;
}
.journal-entry-page.sheet.spells .window-content [data-application-part=config] {
  flex: 1;
}
.journal-entry-page.spells .grouping,
document-embed.spells .grouping {
  font-size: var(--font-size-12);
}
.journal-entry-page.spells .grouping select,
document-embed.spells .grouping select {
  margin-inline-start: 1em;
  height: 1.75em;
  width: auto;
}
.journal-entry-page.spells ul,
document-embed.spells ul {
  column-width: 200px;
  padding-inline-start: 0;
}
.journal-entry-page.spells ul li,
document-embed.spells ul li {
  list-style: none;
  line-height: 1.8em;
}
/* ----------------------------------------- */
/*  SRD Compendium                           */
/* ----------------------------------------- */
.table-of-contents {
  --dnd5e-srd-color-background: #efefef99;
  --dnd5e-srd-color-border: #ba2828;
  --dnd5e-srd-color-box-header: var(--color-text-light-1);
  --dnd5e-srd-color-chapter-header: var(--color-text-hyperlink);
}
.table-of-contents:not(.minimized, .minimizing, .maximizing) {
  min-height: 480px;
  min-width: 640px;
}
.table-of-contents:is(.app, .application) .window-header {
  background: var(--color-header-background);
}
.table-of-contents:is(.app, .application) .window-content {
  background: var(--dnd5e-sheet-background);
  color: var(--color-text-dark-primary);
}
.table-of-contents.application .window-content {
  overflow: auto;
}
.table-of-contents.application h2 {
  font-family: var(--font-sans);
  font-size: 1.5em;
  font-weight: normal;
}
.table-of-contents article {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
}
.table-of-contents article aside,
.table-of-contents article .contents {
  border: 4px solid var(--dnd5e-srd-color-border);
  background: var(--dnd5e-srd-color-background);
}
.table-of-contents article aside header h2,
.table-of-contents article .contents header h2 {
  border: none;
  background: var(--dnd5e-srd-color-border);
  color: var(--dnd5e-srd-color-box-header);
  padding: 0 0.25rem 0.25rem 0.25rem;
  margin: 0;
}
.table-of-contents article aside section,
.table-of-contents article .contents section {
  padding: 0.625rem 1rem;
}
.table-of-contents article aside blockquote {
  border: none;
  margin: 0;
  padding: 0;
}
.table-of-contents article .contents {
  flex-grow: 1;
}
.table-of-contents article .contents .chapter {
  margin-block-end: 0.5rem;
  break-inside: avoid-column;
}
.table-of-contents article .contents h3 {
  border: none;
  font-weight: bold;
  font-size: var(--font-size-18);
  color: var(--dnd5e-srd-color-chapter-header);
}
.table-of-contents article .contents ul {
  list-style-type: none;
  margin: 0 0 0 0.375rem;
  padding: 0;
}
.table-of-contents article .contents ul li {
  font-size: var(--font-size-16);
}
.table-of-contents article .contents ul li.special-entry > a {
  font-weight: bold;
}
.table-of-contents article .contents section {
  column-count: 3;
}
/* ----------------------------------------- */
/*  Tracking Sheets                          */
/* ----------------------------------------- */
/* Tracker CSS */
.app.sheet .srd-tracker {
  --entry-border-color: #d3cbd1;
  margin-bottom: 1em;
}
.app.sheet .srd-tracker h1 {
  text-align: center;
}
.app.sheet .srd-tracker h2 {
  text-align: center;
  margin: 0;
}
.app.sheet .srd-tracker h3:not(.label) {
  width: fit-content;
  padding: 0 15%;
  margin-left: auto;
  margin-right: auto;
}
.app.sheet .srd-tracker h4,
.app.sheet .srd-tracker h5 {
  font-family: var(--font-h5);
  text-align: center;
}
.app.sheet .srd-tracker h4.highlight,
.app.sheet .srd-tracker h5.highlight {
  font-size: larger;
}
.app.sheet .srd-tracker td {
  padding: 0 0 0 1em;
}
.app.sheet .srd-tracker .settlement-size {
  display: grid;
  grid: auto / auto-flow 1fr;
}
.app.sheet .srd-tracker .travel-info {
  display: grid;
  grid: ". ." 1fr ". ." 1fr ". ." 1fr / 1.5fr 1fr;
  grid-auto-flow: column;
  gap: 0 2em;
  padding: 0 5px 5px;
  margin-bottom: 1em;
}
.app.sheet .srd-tracker .travel-info :is(h3, h4) {
  margin: 0 10px 0 0;
}
.app.sheet .srd-tracker .travel-info .inline {
  margin: 0;
}
.app.sheet .srd-tracker .inline {
  display: flex;
  flex-grow: 1;
  align-items: center;
  margin: 10px 0;
}
.app.sheet .srd-tracker .highlight {
  text-align: center;
  padding: 5px;
}
.app.sheet .srd-tracker .label,
.app.sheet .srd-tracker .label:is(h4, h5) {
  margin: 0 10px 0 0;
  text-align: left;
}
.app.sheet .srd-tracker .field {
  border-bottom: 2px solid var(--color-text-dark-primary);
  flex-grow: 1;
  padding: 5px;
}
.app.sheet .srd-tracker .field p {
  margin-bottom: 0;
}
.app.sheet .srd-tracker .field.bubble {
  background-color: #fff;
  box-shadow: 0px 0px 2px 1px;
  border-radius: 100%;
  min-width: 20px;
  max-width: 20px;
  min-height: 20px;
  max-height: 20px;
  text-align: center;
  margin: 3px;
}
.app.sheet .srd-tracker .field.bubble p {
  margin-top: -3px;
}
.app.sheet .srd-tracker .travel-info,
.app.sheet .srd-tracker .field.block {
  min-height: 4em;
  background: linear-gradient(to top, var(--dnd5e-block-background) 65%, transparent);
  border: 1px solid var(--entry-border-color);
  border-top: none;
  border-radius: 0 0 10px 10px;
}
.app.sheet .srd-tracker .col {
  flex-grow: 1;
  margin: 5px;
}
/* -------------------------------------------- */
/*  Legacy                                      */
/* -------------------------------------------- */
.dnd5e2-journal.app .journal-entry-content {
  background: var(--dnd5e-background-texture-paper-red);
}
.dnd5e2-journal.app .editable .journal-header {
  flex: 0;
  flex-wrap: nowrap;
}
.dnd5e2-journal.app .editable .journal-header .title {
  height: 50px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  font-size: var(--font-size-32);
  line-height: 50px;
}
.dnd5e2-journal.app .editable .journal-header .page-level {
  flex: 0 0 110px;
  align-items: flex-end;
}
.dnd5e2-journal.app .editable .journal-header .heading-level {
  width: 100%;
  align-items: center;
}
.rotate-area.region-behavior-config .position {
  gap: 8px;
}
.rotate-area.region-behavior-config .position .control {
  flex: 0;
}
/* ------------------------------------------- */
/* Inline Rich Text Formatting Utility Classes */
/* ------------------------------------------- */
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) {
  /* Positioning */
  /* Sizing */
  /* Layout */
  /* Hidden Content */
  /* Common Typography for Callouts */
  /* Notable Callout */
  /* Narrative Callout */
  /* Quest/Advice Callout */
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .float-left {
  float: left;
  clear: left;
  margin-right: 0.5em;
  max-width: var(--dnd5e-block-float-max);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .float-right {
  float: right;
  clear: right;
  margin-left: 0.5em;
  max-width: var(--dnd5e-block-float-max);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .float-clear {
  clear: both;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .margin-center {
  margin: auto;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .size-four {
  --local-width: calc(4 * var(--dnd5e-block-width-base));
  width: var(--local-width);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .size-three {
  --local-width: calc(3 * var(--dnd5e-block-width-base));
  width: var(--local-width);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .size-two {
  --local-width: calc(2 * var(--dnd5e-block-width-base));
  width: var(--local-width);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .size-one {
  --local-width: var(--dnd5e-block-width-base);
  width: var(--local-width);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .flex-between,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .flex-around {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  clear: both;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .flex-around {
  justify-content: space-around;
  gap: 10px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .flex-wrap {
  flex-wrap: wrap;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .align-start {
  align-items: start;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .hide-secrets .content-embed .secret,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .hide-secrets.content-embed .secret {
  display: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .content-embed .hide-in-embed {
  display: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.notable, .quest, .advice, .narrative) {
  display: flow-root;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.notable, .quest, .advice, .narrative) :is(h1, h2, h3, h4, h5) {
  border: none;
  font-variant: small-caps;
  font-weight: bold;
  font-family: var(--dnd5e-block-header-font);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .notable {
  background: var(--dnd5e-block-background);
  margin: 1.4em;
  padding: 1.4em;
  border-width: 3px 1px;
  border-style: solid;
  border-color: var(--dnd5e-block-border-color);
  filter: drop-shadow(0 5px 8px var(--dnd5e-shadow-15));
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .notable::before,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .notable::after {
  content: "";
  background: var(--dnd5e-notable-decor);
  height: 11px;
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  filter: var(--dnd5e-notable-filter, none);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .notable::before {
  top: -13px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .notable::after {
  bottom: -13px;
  transform: scaleY(-1);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .notable > :first-child {
  margin-block-start: 0;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .notable > :last-child {
  margin-block-end: 0;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .narrative {
  --dot-size: 0.6em;
  --offset: calc(var(--dot-size) / -2);
  position: relative;
  margin: 1.5em 1em;
  padding: 1em 1.5em;
  background: var(--dnd5e-block-background);
  border-left: 1px solid var(--dnd5e-block-border-color);
  border-right: 1px solid var(--dnd5e-block-border-color);
  text-align: justify;
  /* Adding dots to corner of block */
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .narrative::after,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .narrative::before,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .narrative > :last-child::after,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .narrative > :last-child::before {
  content: "";
  display: block;
  position: absolute;
  background-color: var(--dnd5e-block-border-color);
  border-radius: 100%;
  width: var(--dot-size);
  height: var(--dot-size);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .narrative::before {
  top: var(--offset);
  left: var(--offset);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .narrative::after {
  top: var(--offset);
  right: var(--offset);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .narrative > :last-child::before {
  bottom: var(--offset);
  left: var(--offset);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .narrative > :last-child::after {
  bottom: var(--offset);
  right: var(--offset);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.quest, .advice) {
  --img-size: 64px;
  position: relative;
  background: var(--dnd5e-block-background);
  border: 2px solid var(--dnd5e-block-border-color);
  box-shadow: 1px 3px 5px var(--dnd5e-shadow-15);
  margin: 1rem 1rem 1rem calc(var(--img-size) / 2);
  padding: 0.75rem 0.75rem 0.75rem calc(var(--img-size) / 2 + 0.75rem);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.quest, .advice) article > :last-child {
  margin-block-end: 0;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.quest, .advice) > figure {
  position: absolute;
  width: var(--img-size);
  height: var(--img-size);
  margin: 0;
  left: calc(var(--img-size) / -2);
  top: calc(50% - var(--img-size) / 2);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.quest, .advice) > figure img {
  width: 100%;
  height: 100%;
  border: none;
  box-shadow: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) :is(.quest, .advice) > figure img.round {
  border-radius: 100%;
  background: var(--dnd5e-background-alt-1);
  border: 4px solid var(--dnd5e-block-border-color);
  box-shadow: 0 0 4px var(--dnd5e-shadow-45);
}
/* High Contrast */
.dnd5e-flag-high-contrast .dnd5e2.sheet,
.dnd5e2.dnd5e-flag-high-contrast.sheet {
  --color-text-dark-primary: #000000;
  --dnd5e-color-gold: #e3ce9e;
  --dnd5e-color-scrollbar: var(--dnd5e-color-maroon);
}
.dnd5e-flag-high-contrast .dnd5e2 .card,
.dnd5e2.dnd5e-flag-high-contrast .card {
  border-color: var(--dnd5e-color-dark);
}
.dnd5e-flag-high-contrast .dnd5e2 .pill-lg,
.dnd5e2.dnd5e-flag-high-contrast .pill-lg {
  border-color: var(--dnd5e-color-dark);
}
.dnd5e-flag-high-contrast .dnd5e2 .pill-lg.empty,
.dnd5e2.dnd5e-flag-high-contrast .pill-lg.empty {
  opacity: 0.5;
}
.dnd5e-flag-high-contrast .dnd5e2 .meter .label :is(.value, .max),
.dnd5e2.dnd5e-flag-high-contrast .meter .label :is(.value, .max) {
  text-shadow: 0 0 2px var(--dnd5e-color-dark);
  filter: drop-shadow(0 0 2px var(--dnd5e-color-dark));
}
/* ---------------------------------- */
/*  Custom Elements                   */
/* ---------------------------------- */
.dnd5e-flag-high-contrast item-list-controls search {
  border: var(--dnd5e-border-dark);
}
.dnd5e-flag-high-contrast item-list-controls search .filter-list > li:hover button {
  font-weight: bold;
}
.dnd5e-flag-high-contrast .effects-element .conditions-list .condition {
  --border-style: var(--dnd5e-border-dark);
}
.dnd5e-flag-high-contrast .effects-element .conditions-list .condition span {
  color: var(--color-text-dark-5);
}
.dnd5e-flag-high-contrast .effects-element .conditions-list .condition.active span {
  color: var(--color-text-dark-1);
}
/* ---------------------------------- */
/*  Light Mode                        */
/* ---------------------------------- */
.dnd5e-flag-high-contrast:is(.dnd5e-theme-light, .theme-light) .dnd5e2.sheet,
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-light.sheet {
  --filigree-background-color: #ffffff;
  --filigree-border-color: var(--dnd5e-color-dark);
  --dnd5e-background-card: #ffffff;
  --dnd5e-background-parchment: #ffffff;
  --dnd5e-border-dark: 1px solid #000;
  --proficiency-cycle-enabled-color: color-mix(in oklab, var(--dnd5e-color-blue), black 20%);
  --proficiency-cycle-disabled-color: var(--dnd5e-color-dark);
}
.dnd5e-flag-high-contrast.dnd5e-theme-light item-list-controls search .filter-list .filter-item.active::after {
  color: var(--color-text-dark-3);
}
.dnd5e-flag-high-contrast.dnd5e-theme-light item-list-controls search .dropdown:focus-within .filter {
  color: var(--dnd5e-color-dark);
}
/* ---------------------------------- */
/*  Dark Mode                         */
/* ---------------------------------- */
.dnd5e-flag-high-contrast:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet,
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-dark.sheet {
  --color-text-dark-primary: #fff;
  --color-text-dark-secondary: var(--color-text-light-3);
  --dnd5e-background-card: #000000;
  --dnd5e-background-parchment: #000000;
  --dnd5e-border-dark: 1px solid #999;
  --dnd5e-color-blue-white: #fff;
  --dnd5e-color-card: #fff;
  --filigree-background-color: #000000;
  --filigree-border-color: #999;
  --proficiency-cycle-enabled-color: unset;
  --proficiency-cycle-disabled-color: unset;
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .card,
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-dark .card {
  border: var(--dnd5e-border-dark);
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-dark, .theme-dark) item-list-controls search .filter-control:not(.active) {
  color: var(--color-text-light-6);
}
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .sidebar .card .stats .lozenges .lozenge .value,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .sidebar .card .stats .lozenges .lozenge .value {
  text-shadow: 0 0 2px var(--dnd5e-color-dark);
  filter: drop-shadow(0 0 2px var(--dnd5e-color-dark));
}
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .sidebar .card .meter.sectioned > .tmp > input::placeholder,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .sidebar .card .meter.sectioned > .tmp > input::placeholder {
  color: var(--color-text-light-6);
}
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .sidebar .favorites > ul .drop,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .sidebar .favorites > ul .drop {
  opacity: 0.5;
}
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .skills > ul > li,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .skills > ul > li,
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .tools > ul > li,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .tools > ul > li {
  border-bottom: var(--dnd5e-border-dark);
}
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .skills .ability,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .skills .ability,
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .tools .ability,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .tools .ability,
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .skills .passive,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .skills .passive,
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .tools .passive,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .tools .passive {
  color: var(--color-text-dark-primary);
}
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .saves > ul > li,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .saves > ul > li {
  --border-style: var(--dnd5e-border-dark);
}
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .saves > ul > li:nth-child(odd),
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .saves > ul > li:nth-child(odd) {
  border-inline-end: var(--border-style);
}
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .pill-lg.empty:hover,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .pill-lg.empty:hover {
  opacity: 1;
}
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .pill-lg.texture::before,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .pill-lg.texture::before {
  --gradient-end: color-mix(in oklab, var(--dnd5e-background-card), transparent 40%);
}
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .ability-scores .ability-score::before,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .ability-scores .ability-score::before {
  background: transparent url("ui/ability-score-tab-hc.svg") no-repeat top center / contain;
}
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .ability-scores .ability-score .label,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .ability-scores .ability-score .label {
  color: var(--dnd5e-color-dark);
}
.dnd5e-flag-high-contrast .dnd5e2.sheet.actor.character .ability-scores .ability-score .score,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast .ability-scores .ability-score .score {
  color: var(--color-text-light-1);
}
/* ---------------------------------- */
/*  Light Mode                        */
/* ---------------------------------- */
.dnd5e-flag-high-contrast:is(.dnd5e-theme-light, .theme-dark) .dnd5e2.sheet.actor.character .sheet-header,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast.dnd5e-theme-light .sheet-header {
  background: var(--dnd5e-color-maroon);
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-light, .theme-dark) .dnd5e2.sheet.actor.character .sidebar .favorites > h3,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast.dnd5e-theme-light .sidebar .favorites > h3 {
  color: var(--dnd5e-color-dark);
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-light, .theme-dark) .dnd5e2.sheet.actor.character .tab.features .classes .class .level > span,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast.dnd5e-theme-light .tab.features .classes .class .level > span {
  color: var(--dnd5e-color-dark);
}
/* ---------------------------------- */
/*  Dark Mode                         */
/* ---------------------------------- */
.dnd5e-flag-high-contrast:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .sheet-header,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast.dnd5e-theme-dark .sheet-header {
  background: none;
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .sidebar .favorites > h3,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast.dnd5e-theme-dark .sidebar .favorites > h3 {
  color: var(--dnd5e-color-light);
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .tab.features .classes .class .level > span,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast.dnd5e-theme-dark .tab.features .classes .class .level > span {
  color: var(--dnd5e-color-light);
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .ability-scores .ability-score::before,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast.dnd5e-theme-dark .ability-scores .ability-score::before {
  filter: invert(100%);
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .ability-scores .ability-score .label,
.dnd5e2.sheet.actor.character.dnd5e-flag-high-contrast.dnd5e-theme-dark .ability-scores .ability-score .label {
  color: var(--color-text-light-1);
}
.dnd5e-flag-high-contrast .dnd5e2 .inventory-element .encumbrance .meter,
.dnd5e2.dnd5e-flag-high-contrast .inventory-element .encumbrance .meter {
  border-block-end: var(--dnd5e-border-dark);
}
.dnd5e-flag-high-contrast .dnd5e2 .inventory-element .middle .attunement,
.dnd5e2.dnd5e-flag-high-contrast .inventory-element .middle .attunement {
  border: var(--dnd5e-border-dark);
}
.dnd5e-flag-high-contrast .dnd5e2 section.currency input,
.dnd5e2.dnd5e-flag-high-contrast section.currency input,
.dnd5e-flag-high-contrast .dnd5e2 .currency-style input,
.dnd5e2.dnd5e-flag-high-contrast .currency-style input,
.dnd5e-flag-high-contrast .dnd5e2 section.currency button,
.dnd5e2.dnd5e-flag-high-contrast section.currency button,
.dnd5e-flag-high-contrast .dnd5e2 .currency-style button,
.dnd5e2.dnd5e-flag-high-contrast .currency-style button {
  border: var(--dnd5e-border-dark);
}
/* ---------------------------------- */
/*  Light Mode                        */
/* ---------------------------------- */
.dnd5e-flag-high-contrast:is(.dnd5e-theme-light, .theme-light) .dnd5e2 .inventory-element .encumbrance .meter,
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-light .inventory-element .encumbrance .meter {
  border-color: var(--dnd5e-color-dark);
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-light, .theme-light) .dnd5e2 .inventory-element .middle .attunement,
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-light .inventory-element .middle .attunement {
  border-color: var(--dnd5e-color-dark);
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-light, .theme-light) .dnd5e2 .inventory-element .middle .attunement .fa-sun,
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-light .inventory-element .middle .attunement .fa-sun,
.dnd5e-flag-high-contrast:is(.dnd5e-theme-light, .theme-light) .dnd5e2 .inventory-element .middle .attunement .separator,
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-light .inventory-element .middle .attunement .separator {
  color: var(--dnd5e-color-dark);
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-light, .theme-light) .dnd5e2 .items-section :is(.items-header, .item) .item-name .tags,
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-light .items-section :is(.items-header, .item) .item-name .tags {
  opacity: 0.5;
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-light, .theme-light) .dnd5e2 .items-section .item-school,
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-light .items-section .item-school {
  --icon-fill: var(--dnd5e-color-black);
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-light, .theme-light) .dnd5e2 .items-section .item-roll .ability,
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-light .items-section .item-roll .ability {
  color: var(--color-text-dark-4);
}
/* ---------------------------------- */
/*  Dark Mode                         */
/* ---------------------------------- */
.dnd5e-flag-high-contrast:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .inventory-element .middle .attunement .fa-sun,
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-dark .inventory-element .middle .attunement .fa-sun,
.dnd5e-flag-high-contrast:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .inventory-element .middle .attunement .separator,
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-dark .inventory-element .middle .attunement .separator {
  color: var(--dnd5e-color-light);
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .items-section :is(.items-header, .item) .item-name .tags,
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-dark .items-section :is(.items-header, .item) .item-name .tags {
  opacity: 1;
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .items-section .item-school,
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-dark .items-section .item-school {
  --icon-fill: var(--dnd5e-color-blue-white);
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .items-section .item-roll .ability,
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-dark .items-section .item-roll .ability {
  color: var(--color-text-light-4);
}
.dnd5e-flag-high-contrast:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .items-section .item .item-controls .item-control:not(.active),
.dnd5e2.dnd5e-flag-high-contrast.dnd5e-theme-dark .items-section .item .item-controls .item-control:not(.active) {
  color: var(--color-text-light-6);
}
/*# sourceMappingURL=dnd5e.css.map */