/* Common Styles */
/* ----------------------------------------- */
/*  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-6: #999;
  --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-color-table-row-even: var(--dnd5e-color-parchment);
  --dnd5e-color-table-row-odd: var(--dnd5e-color-card);
  --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-card: var(--dnd5e-color-card);
  --dnd5e-background-parchment: var(--dnd5e-color-parchment);
  --dnd5e-border-dark: 1px solid #999;
  --dnd5e-border-light: 1px solid #CCC;
  --dnd5e-border-groove: 2px groove var(--dnd5e-color-groove);
  --dnd5e-border-dotted: 1px dotted #bbb;
  --dnd5e-border-gold: 1px solid var(--dnd5e-color-gold);
  --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-45: rgba(255, 255, 255, 0.45);
  --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-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);
}
#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);
}
/* ---------------------------------- */
/*  Copyable Text                     */
/* ---------------------------------- */
copyable-text {
  text-decoration: underline;
  text-decoration-style: dashed;
  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: 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-track-color-unchecked: black;
  --slide-toggle-track-color-checked: #3ba55d;
  --slide-toggle-thumb-color: white;
  --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: pointer;
  /* Checked state */
}
slide-toggle .slide-toggle-track {
  width: 100%;
  height: 100%;
  background: var(--slide-toggle-track-color-unchecked);
  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);
  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);
}
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"] {
  --input-placeholder-color: var(--color-text-dark-secondary);
  color: var(--color-text-dark-primary);
  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-light-6);
  position: absolute;
  left: 0.75rem;
}
.dnd5e2 item-list-controls search .filter-list,
.dnd5e2 .filter-element search .filter-list {
  display: none;
  position: absolute;
  flex-direction: column;
  inset: 100% auto auto -50px;
  border-radius: 3px;
  box-shadow: 0 3px 6px var(--dnd5e-shadow-45);
  background: var(--dnd5e-background-card);
  min-width: 145px;
  z-index: 1;
}
.dnd5e2 item-list-controls search .filter-list > li,
.dnd5e2 .filter-element search .filter-list > li {
  padding: 0 0.75rem;
}
.dnd5e2 item-list-controls search .filter-list > li:hover,
.dnd5e2 .filter-element search .filter-list > li:hover {
  background: var(--dnd5e-background-parchment);
}
.dnd5e2 item-list-controls search .filter-list > li:first-child,
.dnd5e2 .filter-element search .filter-list > li:first-child {
  border-radius: 3px 3px 0 0;
}
.dnd5e2 item-list-controls search .filter-list > li:last-child,
.dnd5e2 .filter-element search .filter-list > li:last-child {
  border-radius: 0 0 3px 3px;
}
.dnd5e2 item-list-controls search .filter-list > li:last-child .filter-item,
.dnd5e2 .filter-element search .filter-list > li:last-child .filter-item {
  border: none;
}
.dnd5e2 item-list-controls search .filter-list .filter-item,
.dnd5e2 .filter-element search .filter-list .filter-item {
  font-weight: normal;
  padding: 0.5rem 1.75rem 0.5rem 0;
  justify-content: start;
  text-align: start;
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-13);
  background: none;
  border-radius: 0;
  border: none;
  margin: 0;
  line-height: normal;
  border-bottom: 1px solid var(--color-border-light-1);
  box-shadow: none;
  text-transform: unset;
}
.dnd5e2 item-list-controls search .filter-list .filter-item:hover,
.dnd5e2 .filter-element search .filter-list .filter-item:hover,
.dnd5e2 item-list-controls search .filter-list .filter-item:focus,
.dnd5e2 .filter-element search .filter-list .filter-item:focus {
  box-shadow: none;
}
.dnd5e2 item-list-controls search .filter-list .filter-item.active,
.dnd5e2 .filter-element search .filter-list .filter-item.active {
  font-weight: bold;
  position: relative;
}
.dnd5e2 item-list-controls search .filter-list .filter-item.active::after,
.dnd5e2 .filter-element search .filter-list .filter-item.active::after {
  content: "\f00c";
  font-family: var(--font-awesome);
  position: absolute;
  right: 0.5rem;
  color: var(--dnd5e-color-gold);
}
.dnd5e2 item-list-controls search .dropdown,
.dnd5e2 .filter-element search .dropdown {
  position: relative;
}
.dnd5e2 item-list-controls search .dropdown:focus-within .filter,
.dnd5e2 .filter-element search .dropdown:focus-within .filter {
  color: var(--dnd5e-color-gold);
  border-right: 1px solid var(--color-border-light-1);
}
.dnd5e2 item-list-controls search .dropdown:focus-within .filter-list,
.dnd5e2 .filter-element search .dropdown:focus-within .filter-list {
  display: flex;
}
.dnd5e2 item-list-controls search .dropdown:has(.filter-item.active) .filter,
.dnd5e2 .filter-element search .dropdown:has(.filter-item.active) .filter {
  color: var(--dnd5e-color-red);
}
.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(--color-text-light-6);
  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(--color-text-dark-primary);
}
.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: 1px solid var(--color-border-light-1);
  padding-right: 0.625rem;
}
.dnd5e2 item-list-controls search .filter-control.filter:hover,
.dnd5e2 .filter-element search .filter-control.filter:hover {
  border-right: 1px solid var(--color-border-light-1);
}
.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: pointer;
}
/* ---------------------------------- */
/*  Document Tags                     */
/* ---------------------------------- */
document-tags:has(> .content-link) {
  display: flex;
  flex-wrap: wrap;
}
/* ---------------------------------- */
/*  Secrets                           */
/* ---------------------------------- */
section.secret > button.reveal {
  width: unset;
  height: unset;
  line-height: unset;
  padding: 2px 16px;
  margin-top: 8px;
  font-size: var(--font-size-13);
}
/* 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 .locked .secret .reveal {
  display: none;
}
.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: 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 {
  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: 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: pointer;
  position: relative;
}
.accordion-content {
  overflow: hidden;
  transition: height 500ms ease;
}
.dnd5e.sheet.actor {
  --dnd5e-actor-name-height: 60px;
  /* ----------------------------------------- */
  /*  Shared Styles                            */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Sheet Header                             */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  General Styles                           */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Attributes                               */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Ability Scores                           */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Skills                                   */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Tools                                    */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Statuses                                 */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Traits                                   */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Inventory Lists                          */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Spellbook                                */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Features Tab                             */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  TinyMCE                                  */
  /* ----------------------------------------- */
}
.dnd5e.sheet.actor .config-button {
  color: var(--dnd5e-color-olive);
  font-size: var(--font-size-10);
  font-weight: normal;
}
.dnd5e.sheet.actor .sheet-header img.profile {
  flex: 0 0 160px;
  max-width: 160px;
  height: 160px;
}
.dnd5e.sheet.actor .sheet-header h1.charname {
  flex: 1;
  height: var(--dnd5e-actor-name-height);
  padding: 0;
}
.dnd5e.sheet.actor .sheet-header h1.charname input {
  height: calc(var(--dnd5e-actor-name-height) - 20px);
  margin: 10px 0;
}
.dnd5e.sheet.actor .sheet-header .header-exp {
  flex: 0 0 150px;
  max-width: 18em;
  margin-right: 3px;
  height: var(--dnd5e-actor-name-height);
  justify-content: flex-end;
  text-align: right;
}
.dnd5e.sheet.actor .sheet-header .summary {
  height: calc(1.5rem + 6px);
  border-bottom: var(--dnd5e-border-groove);
  font-size: var(--font-size-18);
}
.dnd5e.sheet.actor .sheet-header .summary input,
.dnd5e.sheet.actor .sheet-header .summary span {
  display: block;
  height: 24px;
  line-height: 24px;
}
.dnd5e.sheet.actor .sheet-header .summary span {
  margin-inline: 4px;
  border-block-start: 1px solid transparent;
  white-space: nowrap;
}
.dnd5e.sheet.actor .sheet-header .summary select {
  position: relative;
  top: -4px;
}
.dnd5e.sheet.actor .sheet-header .attributes {
  flex: 0 0 100%;
  margin: 0;
}
.dnd5e.sheet.actor .sheet-header .attributes .attribute {
  position: relative;
  height: 70px;
  margin: 0;
  border: none;
  border-right: var(--dnd5e-border-groove);
  border-radius: 0;
}
.dnd5e.sheet.actor .sheet-header .attributes .attribute:last-child {
  border-right: none;
}
.dnd5e.sheet.actor .sheet-header .attributes .attribute .attribute-name {
  position: relative;
}
.dnd5e.sheet.actor .sheet-header .attributes .attribute .attribute-value {
  height: 30px;
  line-height: 30px;
}
.dnd5e.sheet.actor .sheet-header .attributes .attribute .config-button {
  position: absolute;
  padding: 4px;
  right: 0;
  top: 0;
  display: none;
}
.dnd5e.sheet.actor .sheet-header .attributes .attribute:hover .config-button {
  display: block;
}
.dnd5e.sheet.actor .sheet-header .attributes .attribute input.temphp {
  width: 48%;
}
.dnd5e.sheet.actor h4.box-title {
  height: 18px;
  line-height: 16px;
  margin: 4px 8px 2px;
  font-family: var(--dnd5e-font-modesto);
  font-size: var(--font-size-18);
  font-weight: 700;
  color: var(--dnd5e-color-olive);
  border-bottom: 1px solid var(--dnd5e-color-faint);
  white-space: nowrap;
}
.dnd5e.sheet.actor .tab.attributes {
  overflow: hidden;
  align-items: flex-start;
}
.dnd5e.sheet.actor ul.attributes {
  flex: 0 0 60px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dnd5e.sheet.actor ul.attributes li.attribute {
  height: 60px;
  margin: 0 5px 0 0;
  border: var(--dnd5e-border-groove);
  border-radius: 4px;
  text-align: center;
}
.dnd5e.sheet.actor ul.attributes li.attribute:last-child {
  margin: 0;
}
.dnd5e.sheet.actor ul.attributes li.attribute .attribute-value {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  line-height: 28px;
  font-family: var(--dnd5e-font-modesto);
  font-size: var(--font-size-20);
  font-weight: 700;
}
.dnd5e.sheet.actor ul.attributes li.attribute .attribute-value > * {
  font-weight: 400;
  font-size: var(--font-size-24);
}
.dnd5e.sheet.actor ul.attributes li.attribute .attribute-value.multiple input,
.dnd5e.sheet.actor ul.attributes li.attribute .attribute-value.multiple span:not(.sep) {
  flex: 0 0 33%;
}
.dnd5e.sheet.actor ul.attributes li.attribute .attribute-footer {
  flex: 0 0 18px;
  margin-top: -1px;
  line-height: 18px;
  font-family: "Signika", sans-serif;
  font-size: var(--font-size-12);
  font-weight: 400;
  white-space: nowrap;
}
.dnd5e.sheet.actor .ability-scores {
  flex: 0 0 100px;
  align-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--dnd5e-font-modesto);
  font-size: var(--font-size-20);
  font-weight: 700;
  border: var(--dnd5e-border-groove);
  border-radius: 3px;
}
.dnd5e.sheet.actor .ability-scores .ability {
  min-width: 100%;
  height: 70px;
  text-align: center;
  border-bottom: var(--dnd5e-border-groove);
  position: relative;
}
.dnd5e.sheet.actor .ability-scores .ability:last-child {
  border-bottom: none;
  margin-bottom: -3px;
}
.dnd5e.sheet.actor .ability-scores .ability input.ability-score {
  height: 30px;
  width: 36px;
  margin: 0 auto;
  line-height: 32px;
  font-size: var(--font-size-24);
}
.dnd5e.sheet.actor .ability-scores .ability .config-button {
  right: 2px;
  top: 3px;
  position: absolute;
  display: none;
}
.dnd5e.sheet.actor .ability-scores .ability:hover .config-button {
  display: block;
}
.dnd5e.sheet.actor .ability-scores .ability .ability-modifiers {
  height: 24px;
  margin: -8px 0 0;
}
.dnd5e.sheet.actor .ability-scores .ability .ability-modifiers span.ability-mod,
.dnd5e.sheet.actor .ability-scores .ability .ability-modifiers span.ability-save {
  flex: 0 0 24px;
  height: 22px;
  line-height: 22px;
  font-size: var(--font-size-16);
  border-top: var(--dnd5e-border-groove);
}
.dnd5e.sheet.actor .ability-scores .ability .ability-modifiers span.ability-mod {
  border-right: var(--dnd5e-border-groove);
}
.dnd5e.sheet.actor .ability-scores .ability .ability-modifiers .ability-proficiency {
  line-height: 30px;
}
.dnd5e.sheet.actor .ability-scores .ability .ability-modifiers span.ability-save {
  border-left: var(--dnd5e-border-groove);
}
.dnd5e.sheet.actor .proficiency-toggle {
  color: var(--dnd5e-color-beige);
  font-size: var(--font-size-12);
}
.dnd5e.sheet.actor .proficiency-toggle.disabled {
  cursor: default;
  text-shadow: none;
}
.dnd5e.sheet.actor .proficient .proficiency-toggle {
  color: var(--dnd5e-color-olive);
}
.dnd5e.sheet.actor .locked .proficiency-toggle {
  color: var(--dnd5e-color-beige);
  text-shadow: none;
  cursor: default;
}
.dnd5e.sheet.actor ul.skills-list {
  flex: 0 0 180px;
  list-style: none;
  margin: 0 5px 0;
  padding: 0;
  border: var(--dnd5e-border-groove);
  border-radius: 3px;
}
.dnd5e.sheet.actor ul.skills-list li.skill {
  height: 24px;
  padding: 3px 2px;
}
.dnd5e.sheet.actor ul.skills-list li.skill:nth-child(even) {
  background: rgba(0, 0, 0, 0.05);
}
.dnd5e.sheet.actor ul.skills-list li.skill h4 {
  flex: 1px;
  margin: 0;
  font-size: var(--font-size-11);
  line-height: 18px;
}
.dnd5e.sheet.actor ul.skills-list li.skill .skill-proficiency {
  flex: 0 0 16px;
  line-height: 18px;
}
.dnd5e.sheet.actor ul.skills-list li.skill .skill-name-controls {
  position: relative;
}
.dnd5e.sheet.actor ul.skills-list li.skill .skill-name-controls .config-button {
  right: 3px;
  top: 4px;
  position: absolute;
  display: none;
}
.dnd5e.sheet.actor ul.skills-list li.skill .skill-name-controls:hover .config-button {
  display: block;
}
.dnd5e.sheet.actor ul.skills-list li.skill .skill-ability {
  flex: 0 0 26px;
  text-transform: capitalize;
}
.dnd5e.sheet.actor ul.skills-list li.skill .skill-mod {
  flex: 0 0 20px;
}
.dnd5e.sheet.actor ul.skills-list li.skill .skill-passive {
  flex: 0 0 26px;
  text-align: center;
  color: var(--dnd5e-color-tan);
}
.dnd5e.sheet.actor .tag.tool {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 4px;
}
.dnd5e.sheet.actor .tag.tool a:is(.proficiency-toggle, .config-button) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
}
.dnd5e.sheet.actor .tag.tool a:is(.proficiency-toggle, .config-button) > i {
  margin: 0;
}
.dnd5e.sheet.actor .tag.tool h4 {
  margin: 0;
}
.dnd5e.sheet.actor .counters {
  flex: none;
  padding: 5px 0;
  margin: 0;
  border-bottom: var(--dnd5e-border-groove);
}
.dnd5e.sheet.actor .counters .counter {
  height: 20px;
  line-height: 20px;
}
.dnd5e.sheet.actor .counters .counter label {
  cursor: pointer;
  align-items: center;
}
.dnd5e.sheet.actor .counters .counter label input[type=checkbox] {
  top: unset;
  flex: none;
}
.dnd5e.sheet.actor .counters .counter h4 {
  flex: auto;
  margin: 0;
  font-size: var(--font-size-13);
  font-weight: bold;
  color: var(--dnd5e-color-olive);
}
.dnd5e.sheet.actor .counters .counter .counter-value {
  flex: none;
  text-align: right;
}
.dnd5e.sheet.actor .counters .counter .counter-value > * {
  display: inline;
}
.dnd5e.sheet.actor .counters .counter input[type="text"],
.dnd5e.sheet.actor .counters .counter input[type="number"] {
  height: 20px;
  max-width: 20px;
  margin: 0;
  padding: 0;
  text-align: center;
}
.dnd5e.sheet.actor .counters .counter input[type="checkbox"] {
  position: relative;
  width: 16px;
  height: 16px;
  margin: 0;
  top: 4px;
}
.dnd5e.sheet.actor .counters .counter span.sep {
  font-size: var(--font-size-12);
}
.dnd5e.sheet.actor .center-pane {
  height: 100%;
  padding: 0 5px 0 3px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.dnd5e.sheet.actor .traits .form-group,
.dnd5e.sheet.actor .traits .form-group-stacked {
  margin: 0 0 3px 0;
  justify-content: space-between;
}
.dnd5e.sheet.actor .traits .config-button {
  flex: 1;
}
.dnd5e.sheet.actor .traits label {
  flex: none;
  line-height: 20px;
  font-weight: bold;
  margin: 0 10px 0 0;
}
.dnd5e.sheet.actor .traits select {
  max-width: 200px;
}
.dnd5e.sheet.actor .traits input {
  text-align: right;
}
.dnd5e.sheet.actor .traits i.fas {
  float: right;
  margin-right: 3px;
  text-align: right;
  color: #999;
}
.dnd5e.sheet.actor .traits i.fas:hover {
  color: #111;
  text-shadow: 0 0 10px red;
}
.dnd5e.sheet.actor .traits .inactive {
  color: var(--dnd5e-color-tan);
}
.dnd5e.sheet.actor .tab.features,
.dnd5e.sheet.actor .tab.inventory,
.dnd5e.sheet.actor .tab.spellbook {
  overflow-y: hidden;
}
.dnd5e.sheet.actor .spellcasting-ability {
  flex: 0 0 240px;
  margin: 0;
}
.dnd5e.sheet.actor .spellcasting-ability label,
.dnd5e.sheet.actor .spellcasting-ability span {
  flex: none;
}
.dnd5e.sheet.actor .spellcasting-ability input {
  flex: 0 0 28px;
  text-align: center;
}
.dnd5e.sheet.actor .spellcasting-ability select {
  margin: 0 5px;
  flex: 0 0 120px;
}
.dnd5e.sheet.actor .spell-slots,
.dnd5e.sheet.actor .spell-comps {
  flex: none;
  padding: 0 5px;
  font-size: var(--font-size-12);
  color: var(--dnd5e-color-tan);
  border-right: 1px solid var(--dnd5e-color-faint);
}
.dnd5e.sheet.actor .spell-slots input {
  display: inline;
  max-width: 20px;
}
.dnd5e.sheet.actor .spell-slots .sep {
  font-size: var(--font-size-13);
  font-weight: normal;
}
.dnd5e.sheet.actor .spellbook .spell-uses {
  padding-right: 5px;
  text-align: right;
  color: var(--dnd5e-color-tan);
}
.dnd5e.sheet.actor .spell-school,
.dnd5e.sheet.actor .spell-action,
.dnd5e.sheet.actor .spell-target {
  flex: 0 0 100px;
  font-size: var(--font-size-12);
  color: var(--dnd5e-color-tan);
  text-align: center;
  border-right: 1px solid var(--dnd5e-color-faint);
}
.dnd5e.sheet.actor .spell-component {
  line-height: 14px;
}
.dnd5e.sheet.actor .spell-component.tag {
  display: inline-block;
  text-align: center;
  padding-top: 1px;
  width: 16px;
  color: var(--dnd5e-color-faint);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid transparent;
  border-radius: 8px;
}
.dnd5e.sheet.actor .spellbook-empty .item-controls {
  flex: 1;
}
.dnd5e.sheet.actor .features i.original-class {
  color: #4b4a44;
}
.dnd5e.sheet.actor .features .item-detail select {
  max-width: 90%;
}
.dnd5e.sheet.actor .editor {
  padding: 0 8px;
}
#actor-flags .window-content {
  overflow-y: hidden;
}
#actor-flags form {
  height: 100%;
}
#actor-flags .form-body {
  height: calc(100% - 40px);
  padding-right: 8px;
  margin-bottom: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
}
/* ----------------------------------------- */
/*  Sidebar                                  */
/* ----------------------------------------- */
.actors-sidebar .primary-party .entry-name::after {
  content: " ✦";
  color: var(--dnd5e-color-blue);
}
.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: 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;
}
.dnd5e.advancement-migration .items-list {
  margin-block-end: 1em;
}
/* ----------------------------------------- */
/*  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;
}
.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 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 input[type=checkbox] {
  flex: none;
}
.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%;
}
.dnd5e.sheet.item {
  min-height: 400px;
  max-height: 95%;
  min-width: 480px;
  /* ----------------------------------------- */
  /*  Sheet Header                             */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Item Description                         */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Item Details Form                        */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Item Actions                             */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Item Actions                             */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Unidentified Items                       */
  /* ----------------------------------------- */
}
.dnd5e.sheet.item .sheet-header img.profile {
  border: 2px solid #000;
}
.dnd5e.sheet.item .sheet-header .item-subtitle {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  height: 60px;
  margin: 0;
  padding: 5px;
  text-align: right;
  white-space: nowrap;
  color: var(--dnd5e-color-tan);
}
.dnd5e.sheet.item .sheet-header .item-subtitle .item-type {
  flex-grow: 1;
  font-size: var(--font-size-20);
  line-height: 1em;
  margin: 0;
}
.dnd5e.sheet.item .sheet-header .item-subtitle .item-status {
  font-size: var(--font-size-14);
  line-height: 1em;
}
.dnd5e.sheet.item .sheet-header .item-subtitle label {
  display: block;
  font-size: var(--font-size-14);
}
.dnd5e.sheet.item .sheet-header .item-subtitle label > input {
  display: none;
}
.dnd5e.sheet.item .sheet-header .item-subtitle label:has(input:not([disabled])) {
  cursor: pointer;
}
.dnd5e.sheet.item .sheet-header .item-subtitle label:has(input:not([disabled])):hover,
.dnd5e.sheet.item .sheet-header .item-subtitle label:has(input:not([disabled])):focus-visible {
  text-shadow: 0 0 4px color-mix(in oklab, var(--color-shadow-primary), transparent);
}
.dnd5e.sheet.item .sheet-header .summary .class-level {
  flex: 0 0 4em;
  padding: 0 0.25em;
  text-align: right;
}
.dnd5e.sheet.item .sheet-header .summary li {
  display: flex;
  justify-content: space-between;
  gap: 0.25em;
}
.dnd5e.sheet.item .sheet-header .summary li span {
  padding-inline: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}
.dnd5e.sheet.item .sheet-header .summary li .config-button {
  display: none;
  font-size: var(--font-size-14);
  font-weight: normal;
  padding-inline-end: 0.25em;
}
.dnd5e.sheet.item .sheet-header .summary li:hover .config-button {
  display: block;
}
.dnd5e.sheet.item .sheet-navigation {
  margin-bottom: 5px;
}
.dnd5e.sheet.item .sheet-navigation .item {
  font-size: var(--font-size-18);
}
.dnd5e.sheet.item .sheet-body {
  overflow: hidden;
}
.dnd5e.sheet.item .sheet-body .tab {
  padding: 0 5px;
  overflow: hidden auto;
}
.dnd5e.sheet.item .sheet-body .item-properties {
  flex: 0 0 120px;
  margin: 0 5px 0 0;
  padding: 5px 5px 0 0;
  border-right: var(--dnd5e-border-groove);
  overflow: hidden auto;
  height: 100%;
}
.dnd5e.sheet.item .sheet-body .item-properties .form-group {
  margin: 0;
}
.dnd5e.sheet.item .sheet-body .item-properties .form-group label {
  line-height: 20px;
}
.dnd5e.sheet.item .sheet-body .item-properties .form-group input {
  text-align: right;
}
.dnd5e.sheet.item .sheet-body .item-properties .properties-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dnd5e.sheet.item .sheet-body .item-properties .properties-list li {
  margin: 3px 0;
  padding: 0 2px;
  background: rgba(0, 0, 0, 0.05);
  border: var(--dnd5e-border-groove);
  text-align: center;
  font-size: var(--font-size-12);
  line-height: 18px;
}
.dnd5e.sheet.item .sheet-body .item-properties .properties-header {
  font-weight: bold;
  color: var(--dnd5e-color-olive);
  margin: 0.5em 0 0 0;
  font-size: var(--font-size-13);
}
.dnd5e.sheet.item .sheet-body .item-properties :is([name="system.price.denomination"], [name="system.weight.units"]) {
  border: none;
}
.dnd5e.sheet.item .form-group .config-button,
.dnd5e.sheet.item h4 .config-button {
  color: var(--dnd5e-color-olive);
  font-size: var(--font-size-10);
  font-weight: normal;
  opacity: 0;
}
.dnd5e.sheet.item .form-group:hover .config-button,
.dnd5e.sheet.item h4:hover .config-button {
  display: inline;
  opacity: 1;
}
.dnd5e.sheet.item [data-tab="description"] {
  align-content: stretch;
}
.dnd5e.sheet.item [data-tab="description"] .item-description .description-header {
  display: flex;
  align-items: first baseline;
  gap: 0.5em;
  margin-block-end: 0;
  padding: 0.25rem;
  background-color: rgba(0, 0, 0, 0.05);
}
.dnd5e.sheet.item [data-tab="description"] .item-description .description-header .description-edit {
  margin-inline-start: auto;
  opacity: 20%;
}
.dnd5e.sheet.item [data-tab="description"] .item-description .description-header .description-edit .fa-solid.fa-edit {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  padding: 6px;
}
.dnd5e.sheet.item [data-tab="description"] .item-description .description-header .description-edit[aria-disabled] {
  cursor: not-allowed;
}
.dnd5e.sheet.item [data-tab="description"] .item-description .description-header .description-edit[aria-disabled]:hover {
  text-shadow: none;
}
.dnd5e.sheet.item [data-tab="description"] .item-description .description-header:hover .description-edit:not[aria-disabled] {
  opacity: 100%;
}
.dnd5e.sheet.item [data-tab="description"] .item-description .editor + .description-header {
  margin-block-start: 0.5rem;
}
.dnd5e.sheet.item [data-tab="description"] .item-description .accordion .editor:not(.prosemirror) {
  height: auto;
  padding-inline: 0.25rem;
}
.dnd5e.sheet.item [data-tab="description"] .item-description .accordion {
  margin-block-end: 0.5rem;
}
.dnd5e.sheet.item [data-tab="description"] .item-description .accordion p:last-child {
  margin-block-end: 0;
}
.dnd5e.sheet.item [data-tab="description"] .item-description .accordion.collapsed > .editor.accordion-content {
  height: 0;
}
.dnd5e.sheet.item [data-tab="description"] .item-description .editor.accordion-content > .editor-content {
  overflow: hidden;
}
.dnd5e.sheet.item [data-tab="description"] .item-description .accordion-indicator {
  align-self: center;
  opacity: 0.5;
  font-size: 0.75em;
}
.dnd5e.sheet.item [data-tab="description"] .item-description figure.content-embed {
  margin: 0.5em 0;
}
.dnd5e.sheet.item [data-tab="description"] .item-description figure.content-embed strong.embed-caption {
  margin-right: 0.3em;
}
.dnd5e.sheet.item [data-tab="description"] .item-description figure.content-embed .roll-table-embed thead tr th:first-child,
.dnd5e.sheet.item [data-tab="description"] .item-description figure.content-embed .roll-table-embed tbody tr td:first-child {
  white-space: nowrap;
  text-align: center;
  padding-right: 2px;
}
.dnd5e.sheet.item [data-tab="description"] .item-description figure.content-embed.caption-top {
  display: flex;
  flex-direction: column;
  margin-top: 0;
}
.dnd5e.sheet.item [data-tab="description"] .item-description figure.content-embed.caption-top p + p {
  margin-top: 0;
}
.dnd5e.sheet.item [data-tab="description"] .item-description figure.content-embed.caption-top .roll-table-embed,
.dnd5e.sheet.item [data-tab="description"] .item-description figure.content-embed.caption-top img {
  order: 2;
}
.dnd5e.sheet.item [data-tab="description"] .item-description figure.content-embed.caption-top figcaption {
  padding: initial;
  margin-top: 0;
  text-align: left;
}
.dnd5e.sheet.item [data-tab="description"] .item-description figure.content-embed.caption-top .embed-caption {
  text-align: left;
  font-style: inherit;
}
.dnd5e.sheet.item [data-tab="description"] .item-description figure.content-embed.caption-top .roll-table-embed + figcaption {
  font-weight: inherit;
}
.dnd5e.sheet.item [data-tab="description"] .item-description figure.content-embed.caption-top .roll-table-embed + figcaption cite {
  display: block;
  font-weight: bold;
  margin-top: 0.5em;
}
.dnd5e.sheet.item [data-tab="description"] .item-description figure.content-embed.no-tables table {
  display: none;
}
.dnd5e.sheet.item [data-tab="description"] .item-description figure.content-embed.no-secrets .secret {
  display: none;
}
.dnd5e.sheet.item .details input[type="text"],
.dnd5e.sheet.item .details input[type="number"],
.dnd5e.sheet.item .details select {
  height: 24px;
  border: 1px solid var(--dnd5e-color-tan);
  background: rgba(0, 0, 0, 0.05);
}
.dnd5e.sheet.item .details h3.form-header .config-button {
  display: block;
  padding: 3px;
  float: right;
  color: var(--dnd5e-color-tan);
  font-size: var(--font-size-14);
  text-align: end;
}
.dnd5e.sheet.item .details .form-group span {
  text-align: center;
  line-height: 24px;
}
.dnd5e.sheet.item .details .form-group.input-select select {
  flex: 1.8;
}
.dnd5e.sheet.item .details .form-group.input-select-select select {
  flex: 1.5;
}
.dnd5e.sheet.item .details .form-group.uses-per .form-fields {
  flex-wrap: nowrap;
}
.dnd5e.sheet.item .details .form-group.uses-per span {
  flex: 0 0 16px;
  margin: 0 4px 0 0;
}
.dnd5e.sheet.item .details .form-group.consumption .form-fields {
  flex-wrap: wrap;
}
.dnd5e.sheet.item .details .form-group.consumption .form-fields > * {
  margin: 0;
}
.dnd5e.sheet.item .details .form-group.consumption .form-fields [name="system.consume.amount"] {
  flex: 0 0 32px;
}
.dnd5e.sheet.item .details .form-group.consumption .form-fields [name="system.consume.type"] {
  flex: 0 0 100%;
}
.dnd5e.sheet.item .details span.sep {
  flex: 0 0 8px;
}
.dnd5e.sheet.item .details .prepared {
  flex: 1.3 !important;
  text-align: right;
  padding-right: 10px;
}
.dnd5e.sheet.item .details .spell-materials {
  flex: 0 0 100%;
  margin: 0.25em 0;
  justify-content: flex-end;
}
.dnd5e.sheet.item .details .spell-materials label {
  flex: 0 0 64px;
  text-align: right;
  margin-right: 5px;
  font-size: var(--font-size-12);
  line-height: 24px;
}
.dnd5e.sheet.item .details .spell-materials input[type="number"] {
  flex: 0 0 48px;
  margin-right: 10px;
}
.dnd5e.sheet.item h4.damage-header {
  margin: 0;
  padding: 0;
  font-weight: bold;
  line-height: 24px;
  color: var(--dnd5e-color-olive);
}
.dnd5e.sheet.item .damage-parts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dnd5e.sheet.item .damage-parts .damage-part {
  flex: 0 0 100%;
  padding: 0;
}
.dnd5e.sheet.item .damage-parts .damage-part input {
  flex: 3;
}
.dnd5e.sheet.item .damage-parts .damage-part select {
  margin-left: 5px;
  flex: 1;
}
.dnd5e.sheet.item .damage-control {
  width: 18px;
  flex: 0 0 18px;
  line-height: 24px;
  float: right;
  text-align: right;
  color: var(--dnd5e-color-tan);
}
.dnd5e.sheet.item .recharge.form-group span {
  text-align: right;
  padding-right: 3px;
}
.dnd5e.sheet.item .recharge.form-group input[type="number"] {
  flex: 0 0 32px;
  text-align: center;
}
.dnd5e.sheet.item .recharge.form-group label.checkbox {
  flex: none;
}
.dnd5e.sheet.item .recharge.form-group label.checkbox input {
  width: 16px;
  height: 16px;
  top: 4px;
}
.dnd5e.sheet.item :is(.enchantment, .summoning).form-group .config-button {
  opacity: 1;
  font-size: var(--font-size-12);
}
.dnd5e.sheet.item :is(.enchantment, .summoning).form-group .separated-list {
  flex: 1 0 100%;
}
.dnd5e.sheet.item :is(.enchantment, .summoning).form-group .separated-list .gold-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}
.dnd5e.sheet.item :is(.enchantment, .summoning).form-group .separated-list .name {
  flex: 1 0 175px;
  text-align: start;
}
.dnd5e.sheet.item :is(.enchantment, .summoning).form-group .separated-list .details {
  align-items: center;
}
.dnd5e.sheet.item :is(.enchantment, .summoning).form-group .separated-list .list-controls button {
  --size: 32px;
}
.dnd5e.sheet.item .weapon-properties label.checkbox {
  flex: 0 0 98px;
}
.dnd5e.sheet.item [inert] {
  filter: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cfilter%20id%3D%22b%22%20color-interpolation-filters%3D%22sRGB%22%20x%3D%220%22%20y%3D%220%22%3E%3CfeComponentTransfer%20in%3D%22SourceGraphic%22%20result%3D%22t%22%3E%3CfeFuncA%20type%3D%22table%22%20tableValues%3D%22-1%200.5%22/%3E%3C/feComponentTransfer%3E%3CfeMerge%20result%3D%22a%22%3E%3CfeMergeNode%20in%3D%22t%22/%3E%3CfeMergeNode%20in%3D%22SourceGraphic%22/%3E%3C/feMerge%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.025%22%20numOctaves%3D%221%22%20result%3D%22w%22/%3E%3CfeDisplacementMap%20xChannelSelector%3D%22R%22%20yChannelSelector%3D%22G%22%20scale%3D%2250%22%20in%3D%22a%22%20in2%3D%22w%22%20result%3D%22displacement-map-0%22/%3E%3C/filter%3E%3C/svg%3E#b") blur(3px) opacity(50%);
}
.dnd5e.sheet.item [data-tab]:has(.unidentified-notice) {
  position: relative;
}
.dnd5e.sheet.item [data-tab]:has(.unidentified-notice) .unidentified-notice {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: start center;
}
.dnd5e.sheet.item [data-tab]:has(.unidentified-notice) .unidentified-notice > div {
  margin-block-start: 4em;
  margin-inline: auto;
  padding: 2em;
  border: 1px solid var(--dnd5e-color-tan);
  border-radius: 4px;
  box-shadow: 0 0 12px var(--dnd5e-shadow-45);
  background: var(--dnd5e-sheet-background);
  text-align: center;
}
.dnd5e.sheet.item [data-tab]:has(.unidentified-notice) .unidentified-notice strong {
  font-size: var(--font-size-24);
}
/* ----------------------------------------- */
/*  Item Advancement                         */
/* ----------------------------------------- */
.dnd5e .advancement .items-list {
  height: 100%;
}
.dnd5e .advancement .items-list .main-controls .configuration-mode-control {
  flex: 1 0;
  margin-inline-start: 0.5em;
}
.dnd5e .advancement .items-list .main-controls .configuration-mode-control a {
  text-align: start;
}
.dnd5e .advancement .items-list .main-controls .item-add {
  padding-block-start: 0.2em;
}
.dnd5e .advancement .items-list .items-header .item-checkmark {
  flex: 0 0 44px;
  color: #119111;
  text-shadow: white 0 0 1px;
}
.dnd5e .advancement .items-list .items-header .item-warning {
  flex: 0 0 44px;
  color: #faff23;
  text-shadow: black 0 0 1px;
}
.dnd5e .advancement .items-list .item-name {
  flex: 1 0 10em;
}
.dnd5e .advancement .items-list .item-controls {
  border-left: 1px solid var(--dnd5e-color-faint);
  flex: 0 0 44px;
}
.dnd5e .advancement .items-list .item-summary {
  flex: 0 0 100%;
  font-size: var(--font-size-12);
  line-height: 16px;
  padding: 0 0.5em 0.5em 34px;
  margin-top: -4px;
  color: var(--dnd5e-color-dark);
}
.dnd5e .advancement .items-list .item-summary .item-list .item-name {
  display: flex;
}
.dnd5e .advancement .items-list .tag {
  font-size: var(--font-size-11);
  padding: 0.1em 0.5em;
}
/* ----------------------------------------- */
/*  Enchantment Configuration                */
/* ----------------------------------------- */
.dnd5e.enchantment-config {
  max-block-size: 90vh;
}
.dnd5e.enchantment-config .unbutton {
  width: unset;
  border: none;
  background: none;
  line-height: unset;
}
.dnd5e.enchantment-config .unbutton:hover,
.dnd5e.enchantment-config .unbutton:focus {
  box-shadow: none;
}
.dnd5e.enchantment-config .unbutton:hover {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e.enchantment-config .unbutton:focus-visible {
  outline: 2px solid black;
}
.dnd5e.enchantment-config .form-header {
  justify-content: space-between;
}
.dnd5e.enchantment-config .form-header button {
  flex: unset;
}
.dnd5e.enchantment-config .separated-list .content-link,
.dnd5e.enchantment-config .separated-list .drop-area,
.dnd5e.enchantment-config .separated-list .name {
  flex: 0 0 175px;
  display: flex;
  align-items: center;
  align-content: center;
}
.dnd5e.enchantment-config .separated-list .content-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dnd5e.enchantment-config .separated-list .name {
  flex: 1 0 175px;
}
.dnd5e.enchantment-config .separated-list .drop-area {
  border: 1px dashed black;
  border-radius: 4px;
  padding-inline: 4px;
}
.dnd5e.enchantment-config .separated-list input::placeholder {
  opacity: 0.5;
}
.dnd5e.enchantment-config .separated-list .details > label {
  display: flex;
  gap: 4px;
}
.dnd5e.enchantment-config .separated-list .details > label strong {
  align-self: center;
}
.dnd5e.enchantment-config .additional-tray {
  margin-block-start: 8px;
}
.dnd5e.enchantment-config .additional-tray > label {
  cursor: pointer;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  font-size: var(--font-size-11);
}
.dnd5e.enchantment-config .additional-tray > label > span {
  flex: none;
}
.dnd5e.enchantment-config .additional-tray > label .fa-gears {
  color: var(--color-text-light-6);
}
.dnd5e.enchantment-config .additional-tray > label::before,
.dnd5e.enchantment-config .additional-tray > label::after {
  content: "";
  flex-basis: 50%;
  border-top: 1px dotted var(--dnd5e-color-gold);
  align-self: center;
}
.dnd5e.enchantment-config .additional-tray .form-group:last-child {
  margin-block-end: -3px;
}
.dnd5e .inventory-element {
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
}
.dnd5e .inventory-element .inventory-header,
.dnd5e .inventory-element .inventory-filters {
  margin: 0 8px;
  flex: 0 0 20px;
  justify-content: flex-end;
}
.dnd5e .inventory-element .inventory-header .currency,
.dnd5e .inventory-element .inventory-filters .currency {
  flex: 0 0 100%;
  align-items: first baseline;
  justify-content: flex-end;
  margin: 4px 0 8px;
  padding: 0;
  font-size: var(--font-size-12);
}
.dnd5e .inventory-element .inventory-header .currency label,
.dnd5e .inventory-element .inventory-filters .currency label {
  flex: 0;
  margin-inline-start: 8px;
  text-align: end;
  line-height: 20px;
  color: var(--dnd5e-color-tan);
}
.dnd5e .inventory-element .inventory-header .currency input[type="text"],
.dnd5e .inventory-element .inventory-filters .currency input[type="text"],
.dnd5e .inventory-element .inventory-header .currency input[type="number"],
.dnd5e .inventory-element .inventory-filters .currency input[type="number"] {
  min-inline-size: 24px;
  max-inline-size: 48px;
  text-align: center;
  margin-inline-start: 8px;
  border-block-end: var(--dnd5e-border-groove);
}
.dnd5e .inventory-element .attunement {
  color: var(--dnd5e-color-tan);
  font-size: var(--font-size-12);
}
.dnd5e .inventory-element .attunement [name="system.attributes.attunement.max"] {
  display: inline;
  max-inline-size: 23px;
  text-align: center;
}
.dnd5e .inventory-element .inventory-list {
  flex-grow: 1;
  padding: 0 5px;
}
.dnd5e .inventory-element .inventory-list .item[hidden] {
  display: none;
}
.dnd5e .inventory-element .inventory-list .item .item-name {
  cursor: pointer;
  flex: auto;
}
.dnd5e .inventory-element .inventory-list .item .item-name.rollable:hover .item-image {
  background-image: url("../../icons/svg/d20-grey.svg") !important;
}
.dnd5e .inventory-element .inventory-list .item .item-name.rollable .item-image:hover {
  background-image: url("../../icons/svg/d20-black.svg") !important;
}
.dnd5e .inventory-element .inventory-list .item .item-name i.attuned {
  color: var(--dnd5e-color-crimson);
}
.dnd5e .inventory-element .inventory-list .item .item-name i.not-attuned {
  color: var(--dnd5e-color-tan);
}
.dnd5e .inventory-element .inventory-list .item .item-name h4 {
  line-height: 30px;
}
.dnd5e .inventory-element .inventory-list .item .item-uses input {
  width: 24px;
  text-align: center;
}
.dnd5e .inventory-element .inventory-list .item .item-properties {
  margin-block-start: 3px;
}
.dnd5e .inventory-element .inventory-list .item .item-recharge {
  flex: 0 0 80px;
  text-align: end;
  font-size: var(--font-size-11);
  white-space: nowrap;
}
.dnd5e .inventory-element .inventory-list .inventory-header .item-controls a.item-create {
  flex: 0 0 100%;
}
.dnd5e .inventory-element .inventory-list .item-detail {
  flex: 0 0 70px;
  min-block-size: 1.5em;
  font-size: var(--font-size-12);
  text-align: center;
  border-inline-end: 1px solid var(--dnd5e-color-faint);
  word-break: break-word;
  white-space: nowrap;
  overflow: hidden;
}
.dnd5e .inventory-element .inventory-list .item-detail:last-child {
  border-inline-end: none;
}
.dnd5e .inventory-element .inventory-list .item-detail.item-action {
  flex: 0 0 100px;
}
.dnd5e .inventory-element .inventory-list .item-detail.item-quantity {
  flex: 0 0 40px;
}
.dnd5e .inventory-element .inventory-list .item-detail.attunement {
  flex: 0 0 24px;
}
.dnd5e .inventory-element .inventory-list .item-weight {
  flex: 0 0 60px;
  border-inline-start: 1px solid var(--dnd5e-color-faint);
  border-inline-end: 1px solid var(--dnd5e-color-faint);
}
.dnd5e .inventory-element .inventory-list .item-controls {
  flex: 0 0 68px;
}
.dnd5e .inventory-element .inventory-list .item-controls [data-action="crew"],
.dnd5e .inventory-element .inventory-list .item-controls [data-action="equip"],
.dnd5e .inventory-element .inventory-list .item-controls [data-action="prepare"] {
  color: var(--dnd5e-color-beige);
}
.dnd5e .inventory-element .inventory-list .item-controls [data-action="crew"].active,
.dnd5e .inventory-element .inventory-list .item-controls [data-action="equip"].active,
.dnd5e .inventory-element .inventory-list .item-controls [data-action="prepare"].active {
  color: var(--dnd5e-color-olive);
}
.dnd5e .inventory-element .inventory-list .item-controls [data-action="crew"].fixed,
.dnd5e .inventory-element .inventory-list .item-controls [data-action="equip"].fixed,
.dnd5e .inventory-element .inventory-list .item-controls [data-action="prepare"].fixed {
  color: var(--dnd5e-color-crimson);
}
.dnd5e .inventory-element .inventory-list .item-controls [data-action="crew"].fixed:hover,
.dnd5e .inventory-element .inventory-list .item-controls [data-action="equip"].fixed:hover,
.dnd5e .inventory-element .inventory-list .item-controls [data-action="prepare"].fixed:hover {
  text-shadow: none;
}
.dnd5e .inventory-element .inventory-list .item-summary {
  flex: 0 0 100%;
  font-size: var(--font-size-12);
  line-height: 16px;
  padding: 0.25em 0.5em;
  color: var(--dnd5e-color-dark);
  border-top: 1px solid var(--dnd5e-color-faint);
}
.dnd5e .inventory-element .capacity,
.dnd5e .inventory-element .encumbrance {
  flex: 0 0 12px;
  margin-inline-end: 18px;
  position: relative;
  background: var(--dnd5e-capacity-container-background-color);
  border: 1px solid var(--dnd5e-capacity-container-border-color);
  border-radius: 3px;
}
.dnd5e .inventory-element .capacity::after,
.dnd5e .inventory-element .encumbrance::after {
  content: "";
  position: absolute;
  inset: 0;
  inline-size: var(--percentage);
  max-inline-size: calc(100% - 4px);
  margin: 1px;
  border: 1px solid var(--dnd5e-capacity-border-color);
  border-radius: 2px;
  background: var(--dnd5e-capacity-background-color);
}
.dnd5e .inventory-element .capacity label,
.dnd5e .inventory-element .encumbrance label {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  padding-inline: 5px;
  color: var(--dnd5e-capacity-text-color);
  font-size: var(--font-size-13);
  text-shadow: 0 0 5px #000;
  line-height: 0.8em;
  z-index: 1;
}
.dnd5e .inventory-element .capacity .breakpoint,
.dnd5e .inventory-element .encumbrance .breakpoint {
  display: block;
  position: absolute;
  block-size: 0;
  inline-size: 0;
  border-inline: 4px solid transparent;
  z-index: 1;
}
.dnd5e .inventory-element .capacity .breakpoint.encumbrance-33,
.dnd5e .inventory-element .encumbrance .breakpoint.encumbrance-33 {
  inset-inline-start: 33%;
}
.dnd5e .inventory-element .capacity .breakpoint.encumbrance-66,
.dnd5e .inventory-element .encumbrance .breakpoint.encumbrance-66 {
  inset-inline-start: 66%;
}
.dnd5e .inventory-element .capacity .breakpoint.arrow-up,
.dnd5e .inventory-element .encumbrance .breakpoint.arrow-up {
  inset-block-end: 0;
  border-block-end: 4px solid #666;
}
.dnd5e .inventory-element .capacity .breakpoint.arrow-down,
.dnd5e .inventory-element .encumbrance .breakpoint.arrow-down {
  inset-block-start: 0;
  border-top: 4px solid #666;
}
.dnd5e .inventory-element .capacity.encumbered .arrow-up,
.dnd5e .inventory-element .encumbrance.encumbered .arrow-up {
  border-block-end: 4px solid #000;
}
.dnd5e .inventory-element .capacity.encumbered .arrow-down,
.dnd5e .inventory-element .encumbrance.encumbered .arrow-down {
  border-block-start: 4px solid #000;
}
/* ----------------------------------------- */
/*  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:is(.app, .application) {
  min-height: 480px;
  min-width: 640px;
}
.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 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;
}
/* ----------------------------------------- */
/*  Journal Styles                           */
/* ----------------------------------------- */
.passive-check {
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: help;
}
.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;
}
.award-block [data-action="awardRequest"]:hover,
.award-block [data-action="awardRequest"]:focus {
  border-style: solid;
}
.award-entry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sidebar-block {
  margin-block-end: 4px;
  background-color: rgba(238, 236, 228, 0.75);
  padding: 8px;
  padding-block-end: 2px;
}
.sidebar-block h4 {
  font-size: var(--font-size-16);
  font-weight: bold;
}
/* ----------------------------------------- */
/*  Journal Pages                            */
/* ----------------------------------------- */
.journal-entry-page.sheet:is(.class-journal, .spells) {
  min-block-size: 600px;
  min-inline-size: 400px;
}
.journal-entry-page.sheet:is(.class-journal, .spells) form .form-group {
  align-items: start;
}
.journal-entry-page.sheet:is(.class-journal, .spells) form .form-group:has(button.launch-text-editor) .form-fields {
  flex: 0 0 125px;
}
.journal-entry-page.sheet:is(.class-journal, .spells) form .form-group button.launch-text-editor {
  flex: unset;
}
.journal-entry-page.sheet:is(.class-journal, .spells) form .items-list .item {
  align-items: center;
  padding-block: 0.35em 0;
  padding-inline: 2px;
}
.journal-entry-page.sheet:is(.class-journal, .spells) form .items-list .item .item-controls {
  flex: 0;
  flex-wrap: nowrap;
  gap: 8px;
}
.journal-entry-page.sheet:is(.class-journal, .spells) form .items-list .item:not(:last-of-type) {
  border-bottom: 1px solid var(--color-border-light-secondary);
}
.journal-entry-page.sheet:is(.class-journal, .spells) form h3 {
  justify-content: space-between;
}
.journal-entry-page.sheet:is(.class-journal, .spells) form h3 a {
  flex: 0;
  padding-inline-end: 12px;
  font-size: var(--font-size-14);
}
.journal-entry-page.sheet.spells {
  min-inline-size: 550px;
}
.journal-entry-page.sheet.spells form {
  display: grid;
  grid-template-columns: auto 250px;
  overflow: hidden;
}
.journal-entry-page.sheet.spells form > .right {
  overflow-y: auto;
}
.journal-entry-page.sheet.spells form h3 {
  margin-block-start: 1rem;
}
.journal-entry-page.sheet.spells form .editor {
  margin-inline-end: 0.5rem;
}
.journal-entry-page.sheet.spells form .items-list {
  margin-block-end: 1em;
  margin-inline-end: 10px;
  padding-inline-start: 0;
  list-style: none;
}
.journal-entry-page.sheet.spells form .items-list .empty {
  min-block-size: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed black;
  border-radius: 10px;
  padding: 12px;
}
.journal-entry-page.class h4 {
  border-block-end: 1px solid var(--color-underline-header);
  font-weight: bold;
}
.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.map .journal-header {
  gap: 1rem;
}
.journal-entry-page.map .journal-header [name="system.code"] {
  block-size: 100%;
  inline-size: 3em;
  background: rgba(0, 0, 0, 0.1);
  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.rule .window-content .editor:first-of-type {
  flex: 2;
}
.journal-entry-page.rule .window-content .separator {
  flex: 0 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-block-start: 1px dashed var(--color-border-dark-4);
  padding-block: 0.5em;
  padding-inline: 1em;
}
.journal-entry-page.rule .window-content .separator h3 {
  border: none;
  margin: 0;
}
.journal-entry-page.rule .window-content .separator select {
  min-width: 8em;
}
.journal-entry-page.spells .grouping,
.content-embed.spells .grouping {
  font-size: var(--font-size-12);
}
.journal-entry-page.spells .grouping select,
.content-embed.spells .grouping select {
  margin-inline-start: 1em;
  height: 1.75em;
}
.journal-entry-page.spells ul,
.content-embed.spells ul {
  column-width: 200px;
  padding-inline-start: 0;
}
.journal-entry-page.spells ul li,
.content-embed.spells ul li {
  list-style: none;
  line-height: 1.8em;
}
/* ----------------------------------------- */
/*  Chat Cards                               */
/* ----------------------------------------- */
.dnd5e.chat-card {
  font-style: normal;
  font-size: var(--font-size-12);
}
.dnd5e.chat-card .card-header {
  padding: 3px 0;
  border-top: 2px groove #FFF;
  border-bottom: 2px groove #FFF;
}
.dnd5e.chat-card .card-header img {
  flex: 0 0 36px;
  margin-right: 5px;
}
.dnd5e.chat-card .card-header h3 {
  flex: 1;
  margin: 0;
  line-height: 36px;
  font-family: var(--dnd5e-font-modesto);
  font-size: var(--font-size-20);
  font-weight: 700;
  color: var(--dnd5e-color-olive);
}
.dnd5e.chat-card .card-header h3:hover {
  color: #111;
  text-shadow: 0 0 10px red;
}
.dnd5e.chat-card .card-content {
  margin: 5px 0;
}
.dnd5e.chat-card .card-content h3 {
  font-size: var(--font-size-12);
  margin: 0;
  font-weight: bold;
}
.dnd5e.chat-card .card-content > * {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
.dnd5e.chat-card .card-buttons {
  margin: 5px 0;
}
.dnd5e.chat-card .card-buttons span {
  display: block;
  line-height: 28px;
  text-align: center;
  border: 1px solid var(--dnd5e-border-light);
}
.dnd5e.chat-card .card-buttons button {
  font-size: var(--font-size-12);
  height: 24px;
  line-height: 20px;
  margin: 2px 0;
}
.dnd5e.chat-card .card-footer {
  padding: 3px 0 0;
  border-top: 2px groove #FFF;
}
.dnd5e.chat-card .card-footer span {
  border-right: 2px groove #FFF;
  padding: 0 3px 0 0;
  font-size: var(--font-size-10);
}
.dnd5e.chat-card .card-footer span:last-child {
  border-right: none;
  padding-right: 0;
}
.dice-roll .dice-total.success {
  color: inherit;
  background: var(--dnd5e-color-success-background);
  border-color: var(--dnd5e-color-success);
}
.dice-roll .dice-total.failure {
  color: inherit;
  background: var(--dnd5e-color-failure-background);
  border-color: var(--dnd5e-color-failure);
}
.dice-roll .dice-total.critical {
  color: var(--dnd5e-color-success-critical);
}
.dice-roll .dice-total.fumble {
  color: var(--dnd5e-color-failure-critical);
}
/* ----------------------------------------- */
/*  Inline Roll Actions                      */
/* ----------------------------------------- */
.roll-link-group a,
.roll-link a,
.reference-link a {
  background: #DDD;
  border: 1px solid var(--color-border-dark-tertiary);
  white-space: nowrap;
  word-break: break-all;
}
.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;
}
/* ----------------------------------------- */
/*  Basic Structure                          */
/* ----------------------------------------- */
.dnd5e.sheet.actor.character {
  min-width: 720px;
  min-height: 680px;
  /* ----------------------------------------- */
  /*  Sheet Header                             */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Sheet Body                               */
  /* ----------------------------------------- */
  /* ----------------------------------------- */
  /*  Biography                                */
  /* ----------------------------------------- */
}
.dnd5e.sheet.actor.character .sheet-header img.profile {
  flex: 0 0 160px;
  max-width: 160px;
  height: 160px;
}
.dnd5e.sheet.actor.character .sheet-header .charlevel {
  flex: 0 0 20px;
  height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--font-size-18);
  color: var(--dnd5e-color-tan);
  white-space: nowrap;
}
.dnd5e.sheet.actor.character .sheet-header .experience {
  flex: 0 0 32px;
  margin-bottom: -5px;
  align-items: center;
  font-size: var(--font-size-18);
}
.dnd5e.sheet.actor.character .sheet-header .experience span.max {
  color: var(--dnd5e-color-tan);
  flex: none;
  margin-left: 3px;
}
.dnd5e.sheet.actor.character .sheet-header .xpbar {
  flex: 0 0 8px;
  width: 100%;
  margin-bottom: 5px;
  background: var(--dnd5e-color-tan);
  border: 1px solid #000;
  border-radius: 3px;
}
.dnd5e.sheet.actor.character .sheet-header .xpbar .bar {
  height: 4px;
  margin: 1px;
  display: block;
  background: #afebff;
  border: 1px solid #000;
  border-radius: 2px;
}
.dnd5e.sheet.actor.character .sheet-header .attributes a.rest {
  border: 1px solid var(--dnd5e-color-beige);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.05);
  padding: 0 3px;
  margin: 0 3px;
}
.dnd5e.sheet.actor.character .sheet-header .attributes .hit-dice {
  font-size: var(--font-size-24);
}
.dnd5e.sheet.actor.character .sheet-header .attributes .initiative .attribute-footer input {
  width: 32px;
}
.dnd5e.sheet.actor.character .sheet-header .summary .proficiency {
  text-align: right;
}
.dnd5e.sheet.actor.character .resource .attribute-value > input {
  flex: 0 0 25%;
}
.dnd5e.sheet.actor.character .resource .attribute-value label.recharge {
  height: 32px;
  position: relative;
  font-family: "Signika", sans-serif;
  font-size: var(--font-size-11);
  text-align: center;
  color: var(--dnd5e-color-olive);
  align-items: center;
}
.dnd5e.sheet.actor.character .resource .attribute-value label.recharge input[type="checkbox"] {
  flex-basis: 14px;
  height: 14px;
  width: 14px;
  margin: 0;
  top: -6px;
}
.dnd5e.sheet.actor.character ul.skills-list {
  flex: 0 0 212px;
}
.dnd5e.sheet.actor.character ul.skills-list li.skill {
  padding: 3px;
}
.dnd5e.sheet.actor.character ul.skills-list li.skill h4 {
  flex: 1px;
  margin: 0;
  font-size: var(--font-size-13);
}
.dnd5e.sheet.actor.character .item-detail.player-class {
  flex: 0 0 180px;
  text-align: right;
  padding-right: 10px;
}
.dnd5e.sheet.actor.character .characteristics {
  flex: 0 0 180px;
  height: 100%;
  padding: 0 3px 3px;
}
.dnd5e.sheet.actor.character .characteristics label {
  flex: 0 0 20px;
  font-family: var(--dnd5e-font-modesto);
  font-size: var(--font-size-16);
  font-weight: normal;
  line-height: 20px;
  text-align: center;
}
.dnd5e.sheet.actor.character .characteristics textarea {
  font-family: "Signika", serif;
  font-size: var(--font-size-13);
  border: 1px solid var(--dnd5e-color-faint);
  resize: none;
}
.dnd5e.sheet.actor.character .biography {
  max-width: calc(100% - 180px);
}
/* ----------------------------------------- */
/*  Basic Structure                          */
/* ----------------------------------------- */
.dnd5e.sheet.actor.npc {
  min-width: 600px;
  min-height: 680px;
}
.dnd5e.sheet.actor.npc .header-exp {
  flex: 0 0 80px;
  justify-content: center;
}
.dnd5e.sheet.actor.npc .header-exp .cr {
  flex: 0 0 32px;
  line-height: 28px;
  margin-bottom: -5px;
  font-size: var(--font-size-24);
}
.dnd5e.sheet.actor.npc .header-exp .cr input {
  width: 32px;
  padding: 0;
  text-align: center;
}
.dnd5e.sheet.actor.npc .header-exp .experience,
.dnd5e.sheet.actor.npc .header-exp .proficiency {
  flex: 0 0 18px;
  color: var(--dnd5e-color-tan);
  font-size: var(--font-size-16);
}
.dnd5e.sheet.actor.npc .header-exp .proficiency {
  margin-top: -0.3em;
}
.dnd5e.sheet.actor.npc .summary {
  font-size: var(--font-size-18);
}
.dnd5e.sheet.actor.npc .summary li {
  display: flex;
  justify-content: space-between;
  gap: 0.25em;
}
.dnd5e.sheet.actor.npc .summary li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dnd5e.sheet.actor.npc .summary li .config-button {
  display: none;
  font-size: var(--font-size-12);
  font-weight: normal;
  line-height: 2em;
}
.dnd5e.sheet.actor.npc .summary li:hover .config-button {
  display: block;
}
.dnd5e.sheet.actor.npc .summary .creature-type {
  width: 1em;
  padding: 0 3px;
}
.dnd5e.sheet.actor.npc .summary .source {
  width: 1em;
}
.dnd5e.sheet.actor.vehicle {
  min-width: 720px;
  min-height: 680px;
}
.dnd5e.sheet.actor.vehicle .source {
  display: flex;
  justify-content: space-between;
  gap: 0.25em;
}
.dnd5e.sheet.actor.vehicle .source span {
  padding-inline: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dnd5e.sheet.actor.vehicle .source .config-button {
  display: none;
  font-size: var(--font-size-11);
  font-weight: normal;
  padding-inline-end: 0.25em;
}
.dnd5e.sheet.actor.vehicle .source:hover .config-button {
  display: block;
  margin-block-start: -5px;
}
.dnd5e.sheet.actor.vehicle .features .item-controls {
  flex: 0 0 68px;
}
.dnd5e.sheet.actor.vehicle .features .item-controls .item-toggle,
.dnd5e.sheet.actor.vehicle .features .item-controls [data-action="crew"] {
  color: var(--dnd5e-color-beige);
}
.dnd5e.sheet.actor.vehicle .features .item-controls .item-toggle.active,
.dnd5e.sheet.actor.vehicle .features .item-controls [data-action="crew"].active {
  color: var(--dnd5e-color-olive);
}
.dnd5e.sheet.actor.vehicle .counters .counter.creature-cap .counter-value {
  flex: 1;
}
.dnd5e.sheet.actor.vehicle .counters .counter.creature-cap input {
  max-width: none;
  text-align: right;
}
.dnd5e.sheet.actor.vehicle .counters .counter.cargo-cap input {
  max-width: 40px;
  text-align: right;
}
.dnd5e.sheet.group {
  min-width: 620px;
  min-height: 620px;
  /** Members Directory */
}
.dnd5e.sheet.group .member-controls {
  max-width: calc(100% - 2px);
  gap: 8px;
  justify-content: flex-end;
  margin-block: 4px;
  padding: 0;
  list-style: none;
  font-size: var(--font-size-12);
}
.dnd5e.sheet.group .member-controls li {
  flex: 0 1 max-content;
}
.dnd5e.sheet.group .member-controls li button {
  padding-inline: 8px;
  line-height: 1.5em;
}
.dnd5e.sheet.group .attribute.health span.value {
  line-height: 64px;
  flex: 0 0 64px;
}
.dnd5e.sheet.group .members .directory-header {
  height: 28px;
  margin: 2px 0;
  padding: 0 0.5rem;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border: var(--dnd5e-border-groove);
}
.dnd5e.sheet.group .members .directory-header > * {
  margin: 0;
  font-family: var(--dnd5e-font-modesto);
  font-size: var(--font-size-16);
  font-weight: bold;
  line-height: 20px;
  text-align: left;
}
.dnd5e.sheet.group .members .directory-header [data-action="rollQuantities"] {
  color: var(--dnd5e-color-olive);
  font-size: var(--font-size-12);
}
.dnd5e.sheet.group .members input {
  align-self: center;
  margin-inline-end: 4px;
  height: var(--form-field-height);
}
.dnd5e.sheet.group .members input::placeholder {
  opacity: 50%;
}
.dnd5e.sheet.group .members .group-member {
  padding: 0 0.5rem;
}
.dnd5e.sheet.group .members .group-member .name {
  cursor: pointer;
  align-items: center;
}
.dnd5e.sheet.group .members .group-member .name h4 {
  white-space: unset;
  line-height: 1;
}
.dnd5e.sheet.group .members .hp {
  flex: 2;
  align-items: center;
}
.dnd5e.sheet.group .members .hp .current,
.dnd5e.sheet.group .members .hp .max {
  flex: 0 0 40px;
  text-align: center;
}
.dnd5e.sheet.group .members .hp .bar-container {
  background: #111;
  height: 20px;
  padding: 1px;
  border: 1px solid #000;
  border-radius: 6px;
}
.dnd5e.sheet.group .members .hp .bar {
  height: 16px;
  border-radius: 4px;
}
.dnd5e.sheet.group .members .quantity {
  flex: 0.5;
}
.dnd5e.sheet.group .members .quantity [name$=".formula"] {
  font-size: var(--font-size-11);
}
.dnd5e.sheet.group .members .challenge {
  flex: 0.5;
}
.dnd5e.sheet.group .members .challenge abbr {
  color: var(--dnd5e-color-tan);
}
.dnd5e.sheet.group .members .controls {
  flex: 0 0 64px;
  text-align: right;
}
/* V2 Styles */
/* ---------------------------------- */
/*  All DnD5e Apps                    */
/* ---------------------------------- */
.dnd5e2 {
  /* ---------------------------------- */
  /*  Frame Styling                     */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Navigation                        */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Common App Components             */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Meters                            */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Slots                             */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Lists                             */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  System Badge                      */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  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 {
  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: 34px;
  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);
}
.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 {
  right: 100%;
}
.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 {
  left: 100%;
}
.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-color-hd-1), var(--dnd5e-color-hd-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(--color-border-dark-3), var(--color-border-light-2));
}
.dnd5e2 .card .header h3 {
  border: none;
  margin: 0;
  padding: 0.5rem;
  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-color-light-gray);
}
.dnd5e2 .card .header .radio-button[aria-pressed="true"]::before {
  background: var(--dnd5e-color-gold);
}
.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: 1px solid var(--color-border-light-1);
}
.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-dark-5);
  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-light-6);
}
.dnd5e2 .unlist {
  list-style: none;
  padding: 0;
  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: 1px solid var(--dnd5e-color-black);
}
.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 {
  margin-left: auto;
  line-height: 1;
}
.dnd5e2 h3.icon > dnd5e-icon {
  font-size: var(--font-size-14);
  --icon-fill: var(--color-text-dark-primary);
}
.dnd5e2 h3.icon > a {
  margin-left: auto;
  font-size: var(--font-size-12);
  color: var(--color-text-light-6);
}
.dnd5e2 proficiency-cycle {
  width: 15px;
  height: 15px;
}
.dnd5e2 .pill-lg {
  --gold-icon-size: 32px;
  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;
}
.dnd5e2 .pill-lg.empty {
  border: 2px dashed var(--dnd5e-color-black);
  color: var(--dnd5e-color-black);
  border-radius: 4px;
  display: grid;
  place-content: center;
  opacity: 0.25;
}
.dnd5e2 .pill-lg .name {
  flex: 1;
}
.dnd5e2 .pill-lg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--underlay) no-repeat center / cover;
  filter: grayscale(1);
  mix-blend-mode: overlay;
  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: 1px solid var(--color-border-dark-5);
  border-radius: 3px;
  background: var(--dnd5e-color-card);
  padding: 0.1875rem 0.375rem;
  display: flex;
  gap: 0.25rem;
  margin: 0;
}
.dnd5e2 .pills .pill.green,
.dnd5e2 .pills .pill.maroon {
  color: var(--color-text-light-0);
}
.dnd5e2 .pills .pill.green {
  background-color: var(--dnd5e-color-green);
}
.dnd5e2 .pills .pill.maroon {
  background-color: var(--dnd5e-color-maroon);
}
.dnd5e2 .pills .pill.transparent,
.dnd5e2 .pills .pill.pill-sm {
  color: #4e4e4e;
  border: 1px dotted var(--color-border-dark-5);
  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-light-6);
}
.dnd5e2 .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 {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--dnd5e-color-gold);
  border-radius: 3px;
}
.dnd5e2 .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 {
  margin: 0;
}
.dnd5e2 .gold-icon {
  block-size: var(--gold-icon-size);
  inline-size: var(--gold-icon-size);
  flex: 0 0 var(--gold-icon-size);
  border: 2px solid var(--dnd5e-color-gold);
  box-shadow: 0 0 4px var(--dnd5e-shadow-45);
  border-radius: 0;
  background-color: var(--dnd5e-color-light-gray);
  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-dark-5);
}
.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-dark-5);
}
.dnd5e2 a.deletion-control {
  width: 32px;
  height: 32px;
  color: var(--dnd5e-color-red);
  display: flex;
  justify-content: end;
  font-size: var(--font-size-11);
}
.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-dark-5);
}
.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-dark-5);
}
.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 .meter-group {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.dnd5e2 .meter-group + .meter-group {
  margin-block-start: 0.5rem;
}
.dnd5e2 .meter {
  --meter-background: var(--dnd5e-color-light-gray);
  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-border-gold);
  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: pointer;
  position: absolute;
  inset: -3px -3px 0 0;
}
.dnd5e2 .slots .occupant-slot {
  overflow: visible;
  cursor: pointer;
}
.dnd5e2 .slots .occupant-slot.empty {
  display: inline-grid;
  place-content: center;
}
.dnd5e2 .slots .occupant-slot.empty::before {
  font-family: var(--font-awesome);
  font-weight: bold;
  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-color-iron-gray);
}
.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(--dnd5e-background-card);
  border: 2px solid var(--dnd5e-color-gold);
  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;
}
.dnd5e2.sidebar-heading {
  margin: 6px 0;
  padding: 3px 8px;
  border-top: 1px solid var(--color-border-dark-4);
  border-bottom: 1px solid var(--color-border-dark-4);
  background: var(--dnd5e-highlight-10);
  display: flex;
  align-items: center;
}
.dnd5e2.sidebar-heading h2 {
  font-size: var(--font-size-16);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-primary);
  font-weight: normal;
}
.dnd5e2.sidebar-heading ul.links,
.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#bastion-turn {
  pointer-events: all;
  margin: 0 5px 10px 15px;
  color: var(--color-text-light-highlight);
  width: var(--players-width);
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--color-border-dark);
}
.dnd5e2#bastion-turn:hover {
  border-color: var(--color-border-highlight-alt);
  box-shadow: 0 0 10px var(--color-shadow-highlight);
}
.dnd5e2#pause {
  background: none;
  animation: pulsate 3s infinite ease-in-out;
}
.dnd5e2#pause img {
  opacity: 0.75;
}
.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;
}
@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(.interface-only) {
  cursor: default;
}
.dnd5e2.sheet .locked a:not(.interface-only):hover {
  text-shadow: unset;
}
/* ---------------------------------- */
/*  App V2                            */
/* ---------------------------------- */
.dnd5e2.application {
  --color-scrollbar: var(--dnd5e-color-scrollbar);
  background: url("ui/texture-gray1.webp") no-repeat top left, url("ui/texture-gray2.webp") no-repeat bottom right, var(--dnd5e-color-parchment);
  border: var(--dnd5e-border-gold);
  color: var(--color-text-dark-primary);
  /* Tabs */
}
.dnd5e2.application:not(.minimized) .window-header {
  position: relative;
  overflow: visible;
  justify-content: flex-end;
  margin-block-end: calc(var(--font-size-24) + 6px);
  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-dark-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-dark-5);
  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 h2 {
  display: none;
}
.dnd5e2.application.minimized .window-header .header-control:hover,
.dnd5e2.application.minimized .window-header .header-control:focus {
  background: transparent;
}
.dnd5e2.application .window-header {
  --button-size: 20px;
}
.dnd5e2.application .window-header button.header-control {
  --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-content {
  background: transparent;
  margin-block-start: -8px;
  padding-block-start: 8px;
  padding-block-end: 14px;
  padding-inline: 14px;
  overflow-y: auto;
}
.dnd5e2.application .window-content > section > .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 > section > .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 > section > .note.info::before {
  content: "\f129";
}
.dnd5e2.application .window-content > section > .note.warn {
  --note-color: var(--dnd5e-color-note-warn);
}
.dnd5e2.application .window-content > section > .note.warn::before {
  content: "\21";
}
.dnd5e2.application .window-content > section:empty {
  display: none;
}
.dnd5e2.application .window-content,
.dnd5e2.application .window-content > .column-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dnd5e2.application .sheet-tabs {
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-13);
  font-weight: bold;
  text-transform: uppercase;
  color: var(--color-text-dark-5);
  align-items: start;
  border: none;
  margin: 0 0 8px;
}
.dnd5e2.application .sheet-tabs [data-tab] {
  flex: 1;
  padding: 0;
  line-height: 1;
}
.dnd5e2.application .sheet-tabs [data-tab] label {
  padding-bottom: 1px;
}
.dnd5e2.application .sheet-tabs [data-tab].active {
  color: var(--color-text-dark-primary);
  text-shadow: none;
}
.dnd5e2.application .sheet-tabs [data-tab].active label {
  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-lg {
  background: url("ui/texture1.webp") no-repeat top center / auto 770px, var(--dnd5e-color-parchment) url("ui/texture2.webp") no-repeat bottom center / auto 704px;
}
.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-light-6);
}
/* ---------------------------------- */
/*  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;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dark-5);
  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-light-6);
}
/* ---------------------------------- */
/*  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: pointer;
  background: var(--dnd5e-background-parchment);
}
.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-dark-5);
}
.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;
}
/* ---------------------------------- */
/*  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 .proficiency {
  grid-column: proficiency;
  text-align: end;
}
.dnd5e2.trait-selector .traits li {
  align-items: center;
}
.dnd5e2.trait-selector .traits li:not(:last-of-type) {
  border-bottom: var(--dnd5e-border-dotted);
}
.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-dark-5);
}
/* ---------------------------------- */
.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 .mastery {
  grid-column: mastery;
  text-align: 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(--color-text-light-6);
  color: var(--color-text-light-6);
}
.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 form header {
  padding: 0 0.5rem;
}
.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:hover,
.dnd5e2.create-document .document-name:focus {
  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:hover {
  background: var(--dnd5e-color-parchment);
}
.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: 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 img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  object-position: center;
  border: none;
  filter: invert(100%);
}
.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 .dialog-buttons select {
  flex: 1;
  min-block-size: 28px;
}
.dnd5e2.create-document .dialog-buttons 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 {
  --border-style: 1px dashed var(--color-border-light-1);
  display: flex;
  gap: 0.5rem;
  padding: 0.5625rem 0.75rem;
  align-items: center;
  cursor: pointer;
  border: none;
  border-bottom: var(--border-style);
  border-right: var(--border-style);
  color: var(--color-text-light-6);
  background: unset;
  --icon-fill: var(--color-text-light-6);
  --icon-stroke: var(--dnd5e-color-card);
}
.dnd5e2 .effects-element .conditions-list .condition.active {
  color: var(--color-text-dark-primary);
  --icon-fill: var(--color-text-dark-primary);
}
.dnd5e2 .effects-element .conditions-list .condition:hover {
  background: var(--dnd5e-color-parchment);
}
.dnd5e2 .effects-element .conditions-list .condition .icon {
  display: grid;
}
.dnd5e2 .effects-element .conditions-list .condition > i {
  font-size: unset;
}
.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);
}
/* ---------------------------------- */
/*  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 {
  /* V13 Syles */
}
.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-border-highlight), transparent);
}
.combat-sidebar .combatant-group .group-header {
  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;
}
.combat-sidebar .combat-tracker .combatant-group {
  display: block;
}
.combat-sidebar .combat-tracker .combatant-group.active:not(.collapsed)::before {
  border-color: color-mix(in oklab, var(--color-warm-2), transparent);
}
.combat-sidebar .combat-tracker .group-children {
  padding: 0;
}
/* ---------------------------------- */
/*  Context Menus                     */
/* ---------------------------------- */
#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-dark-primary);
  width: max-content;
  min-width: 145px;
}
#context-menu.dnd5e2 .context-item {
  border: none;
  padding: 0 0.75rem;
  margin: 0;
  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-dark-primary);
  text-shadow: none;
  background: var(--dnd5e-color-parchment);
  border: none;
}
#context-menu.dnd5e2 .context-item i {
  font-size: var(--font-size-11);
  color: var(--color-text-dark-5);
  margin: 0;
}
#context-menu.dnd5e2 .context-item dnd5e-icon {
  --icon-fill: var(--color-text-dark-5);
  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: 1px solid var(--color-border-light-1);
}
/* 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-background-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: var(--color-border-light-1);
}
/* ---------------------------------- */
/*  Window Handles                    */
/* ---------------------------------- */
:is(.dnd5e2, .dnd5e2-journal) .window-resizable-handle {
  border-radius: 0;
  border: none;
  color: var(--dnd5e-color-black);
  overflow: hidden;
  width: 11px;
  height: 11px;
  cursor: nwse-resize;
  opacity: 0.7;
  background: transparent url('ui/resize-handle.webp') no-repeat center / contain;
}
:is(.dnd5e2, .dnd5e2-journal) .window-resizable-handle > i {
  display: none;
}
/* ---------------------------------- */
/*  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-hover-background-color: var(--dnd5e-background-card);
  --button-text-color: var(--color-text-dark-primary);
  --button-hover-text-color: var(--color-text-dark-primary);
  --button-hover-border-color: var(--dnd5e-color-gold);
  background: var(--dnd5e-background-card);
  font-size: var(--font-size-13);
  text-transform: uppercase;
  padding: 3px;
  border: 1px solid var(--color-border-light-2);
  box-shadow: 0 0 8px var(--dnd5e-shadow-15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.dnd5e2 button:not(.fas, .far, .fa-solid, .fa-regular, .fa-light, .fa-duotone, .fa-thin) {
  font-family: var(--dnd5e-font-roboto);
  font-weight: bold;
}
.dnd5e2 button:disabled {
  cursor: default;
  color: var(--color-text-dark-inactive);
}
.dnd5e2 button:hover:not(:disabled),
.dnd5e2 button:focus {
  background: var(--dnd5e-background-card);
  box-shadow: 0 0 5px var(--color-shadow-primary);
  color: var(--color-text-dark-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 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="text"]::placeholder,
.dnd5e2 .form-grid input[type="number"]::placeholder,
.dnd5e2 .form-grid input[type="search"]::placeholder,
.dnd5e2 .form-grid input[type="file"]::placeholder {
  --input-placeholder-color: var(--color-text-light-6);
  opacity: unset;
  color: var(--input-placeholder-color);
}
.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-dark-5);
}
.dnd5e2 label.input-stack input {
  text-align: center;
}
.dnd5e2 label.checkbox {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dnd5e2 label.checkbox:has(input[type=checkbox]:disabled, dnd5e-checkbox[disabled]) {
  cursor: default;
}
.dnd5e2 label.checkbox > span {
  line-height: calc(var(--form-field-height) + 1px);
}
.dnd5e2 fieldset {
  --color-fieldset-border: var(--color-border-light-tertiary);
  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(--color-text-dark-5);
  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-dark-5);
}
.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-light-6);
  color: var(--color-text-light-6);
}
.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(--color-text-dark-5);
}
.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) {
  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 :is(.form-group, fieldset) .hint {
  --color-form-hint: var(--color-text-dark-5);
  --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-border-color: transparent;
  transition: all 250ms ease;
  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:focus-visible,
.dnd5e2 select:focus-visible,
.dnd5e2 input[type="text"]:focus-visible,
.dnd5e2 input[type="number"]:focus-visible,
.dnd5e2 input[type="search"]:focus-visible,
.dnd5e2 input[type="file"]:focus-visible,
.dnd5e2 textarea:hover,
.dnd5e2 select:hover,
.dnd5e2 input[type="text"]:hover,
.dnd5e2 input[type="number"]:hover,
.dnd5e2 input[type="search"]:hover,
.dnd5e2 input[type="file"]:hover {
  --input-border-color: var(--dnd5e-color-gold);
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.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;
  background: var(--input-background-color);
}
.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"]) {
  color: var(--color-text-dark-primary);
  border: 1px solid var(--input-border-color);
  font-size: var(--font-size-11);
}
.dnd5e2 input::placeholder,
.dnd5e2 textarea::placeholder {
  --input-placeholder-color: var(--color-text-light-6);
  opacity: unset;
  color: var(--input-placeholder-color);
}
.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: pointer;
}
.dnd5e2 :is(document-tags, multi-select) .tags.input-element-tags .tag {
  cursor: pointer;
  font-size: var(--font-size-10);
  border: var(--dnd5e-border-gold);
  background: var(--dnd5e-background-card);
  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: default;
}
.dnd5e2 :is(document-tags, multi-select):has(select:disabled) .tags.input-element-tags .tag a {
  cursor: default;
}
.dnd5e2 :is(document-tags, multi-select):has(select:disabled) .tags.input-element-tags .tag:hover a {
  text-shadow: 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-light-6);
}
.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"]:hover,
.dnd5e2 range-picker input[type="range"]:focus-visible {
  --range-track-border-color: var(--dnd5e-color-gold);
}
.dnd5e2 range-picker input[type="range"]:hover::-moz-range-track,
.dnd5e2 range-picker input[type="range"]:focus-visible::-moz-range-track {
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
}
.dnd5e2 range-picker input[type="range"]:hover::-webkit-slider-runnable-track,
.dnd5e2 range-picker input[type="range"]: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 dnd5e-checkbox[disabled]:not([checked]) {
  --checkbox-border-color: var(--color-text-light-6);
  --checkbox-empty-color: transparent;
}
.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;
}
.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: pointer;
}
.dnd5e2 button.control-button {
  padding: 0;
  width: unset;
  display: inline-block;
  color: var(--color-text-dark-5);
}
.dnd5e2 button.control-button:focus-visible,
.dnd5e2 button.control-button:hover {
  box-shadow: none;
  text-shadow: 0 0 5px var(--color-shadow-primary);
  background: none;
}
.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 {
  display: flex;
  gap: 5px;
  padding: 10px 12px;
}
.dnd5e2 .pips .pip {
  --pip-size: 16px;
  background: var(--dnd5e-color-light-gray);
  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 {
  background: var(--dnd5e-color-gold);
}
.dnd5e2 .pips .pip:not(:disabled):is(:hover, :focus) {
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
  background: var(--dnd5e-color-light-gray);
}
.dnd5e2 .pips .pip:not(:disabled):is(:hover, :focus).filled {
  background: var(--dnd5e-color-gold);
}
/* App V2 Standard Form */
.dnd5e2 .standard-form,
.dnd5e2.standard-form {
  --color-fieldset-border: var(--color-border-light-tertiary);
  --color-form-label: var(--color-text-dark-primary);
  --color-form-label-hover: var(--color-form-label);
  --input-height: 26px;
  gap: 0;
}
.dnd5e2 .standard-form .form-group:not(.label-top),
.dnd5e2.standard-form .form-group:not(.label-top) {
  gap: 0;
}
.dnd5e2 .standard-form .form-group:not(.label-top) > label,
.dnd5e2.standard-form .form-group:not(.label-top) > label {
  flex: 2;
  line-height: var(--input-height);
}
.dnd5e2 .standard-form .form-group:not(.label-top) > .form-fields,
.dnd5e2.standard-form .form-group:not(.label-top) > .form-fields {
  flex: 3;
}
.dnd5e2 .standard-form fieldset,
.dnd5e2.standard-form fieldset {
  padding: revert;
}
.dnd5e2 .standard-form .hint,
.dnd5e2.standard-form .hint {
  line-height: 16px;
}
.dnd5e2 .standard-form button:not(.icon, .fa-solid, .fas),
.dnd5e2.standard-form button:not(.icon, .fa-solid, .fas) {
  height: unset;
}
.dnd5e2 .standard-form button:not(.icon, .fa-solid, .fas):not(.copy-button, .unbutton),
.dnd5e2.standard-form button:not(.icon, .fa-solid, .fas):not(.copy-button, .unbutton) {
  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-dark-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                      */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Badges                            */
  /* ---------------------------------- */
  /* AC */
  /* Level */
  /* ---------------------------------- */
  /*  Child Creation                    */
  /* ---------------------------------- */
}
.dnd5e2.sheet:is(.item, .actor) > header {
  background: transparent;
  position: relative;
  z-index: 1;
  /* Edit Mode Toggle */
}
.dnd5e2.sheet:is(.item, .actor) > header .window-title {
  visibility: hidden;
}
.dnd5e2.sheet:is(.item, .actor) > header > slide-toggle {
  --slide-toggle-track-color-checked: var(--dnd5e-color-gold);
  --slide-toggle-track-color-unchecked: var(--dnd5e-color-light-gray);
  flex: none;
}
.dnd5e2.sheet:is(.item, .actor) > header > slide-toggle .slide-toggle-thumb {
  line-height: 12px;
}
.dnd5e2.sheet:is(.item, .actor) > header > slide-toggle .slide-toggle-thumb::before {
  content: "\f0ad";
  font-family: var(--font-awesome);
  color: var(--dnd5e-color-light-gray);
  font-weight: bold;
  font-size: var(--font-size-9);
}
.dnd5e2.sheet:is(.item, .actor) > header > slide-toggle[checked] .slide-toggle-thumb::before {
  color: var(--dnd5e-color-gold);
}
.dnd5e2.sheet:is(.item, .actor) .window-content {
  margin-top: -30px;
}
.dnd5e2.sheet:is(.item, .actor) .sheet-header input,
.dnd5e2.sheet:is(.item, .actor) .sheet-header select {
  --input-placeholder-color: var(--color-text-light-6);
  --input-height: var(--form-field-height, 26px);
  background: 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) .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) form:is(.tab-inventory, .tab-features, .tab-spells, .tab-effects, .tab-advancement, .tab-activities) .create-child {
  display: block;
}
.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: 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-light-6);
}
.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;
  border: var(--dnd5e-border-gold);
  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-dark-5);
  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: 1px dashed var(--color-border-light-2);
  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 Activity                          */
/* ----------------------------------------- */
.summon-activity.sheet .separated-list:not(.effects-list) .content-link,
.summon-activity.sheet .separated-list:not(.effects-list) .drop-area,
.summon-activity.sheet .separated-list:not(.effects-list) .name {
  display: flex;
  align-items: center;
  align-content: center;
}
.summon-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-dark-5);
}
.summon-activity.sheet .separated-list:not(.effects-list) .content-link {
  height: var(--form-field-height);
  text-align: center;
  border: 1px dashed var(--color-border-light-2);
  border-radius: 4px;
  font-size: var(--font-size-11);
}
/* ----------------------------------------- */
/*  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-color-crimson);
  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-dark-5);
}
.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 {
  --icon-fill: var(--color-text-dark-primary);
  --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: 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-color-iron-gray);
}
/* ----------------------------------------- */
/*  Advancement Config Sheet                 */
/* ----------------------------------------- */
.dnd5e2.advancement.sheet.grid-columns {
  --grid-column-left-size: 1fr;
  --grid-column-center-size: 1fr;
  --grid-column-right-size: 1fr;
}
.dnd5e2.advancement.sheet.grid-columns .window-content {
  display: grid;
  gap: 8px;
}
.dnd5e2.advancement.sheet.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)) {
  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"] {
  grid-area: left;
}
.dnd5e2.advancement.sheet.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"] {
  grid-area: right;
}
.dnd5e2.advancement.sheet .card:is(.items, .levels) {
  display: grid;
  gap: 0;
}
.dnd5e2.advancement.sheet .card:is(.items, .levels) > * {
  grid-column: 1 / -1;
}
.dnd5e2.advancement.sheet .card:is(.items, .levels) .header,
.dnd5e2.advancement.sheet .card:is(.items, .levels) .items-list,
.dnd5e2.advancement.sheet .card:is(.items, .levels) .items-list > li,
.dnd5e2.advancement.sheet .card:is(.items, .levels) .levels-list,
.dnd5e2.advancement.sheet .card:is(.items, .levels) .levels-list > li {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}
.dnd5e2.advancement.sheet .card:is(.items, .levels) .header {
  margin-inline: -10px;
  padding-block: 3px 2px;
  padding-inline: 10px;
  border-radius: 0;
}
.dnd5e2.advancement.sheet .card:is(.items, .levels) .items-list,
.dnd5e2.advancement.sheet .card:is(.items, .levels) .levels-list > li {
  margin: 0 -0.75em;
  padding: 6px 0.75em;
}
.dnd5e2.advancement.sheet .card:is(.items, .levels) .items-list:nth-child(odd),
.dnd5e2.advancement.sheet .card:is(.items, .levels) .levels-list > li:nth-child(odd) {
  background: var(--dnd5e-color-table-row-odd);
}
.dnd5e2.advancement.sheet .card:is(.items, .levels) .items-list:nth-child(even),
.dnd5e2.advancement.sheet .card:is(.items, .levels) .levels-list > li:nth-child(even) {
  background: var(--dnd5e-color-table-row-even);
}
.dnd5e2.advancement.sheet .card.items {
  grid-template-columns: [name] 1fr [controls] 20px;
}
.dnd5e2.advancement.sheet .card.items .items-list {
  container-type: normal;
  gap: 0;
}
.dnd5e2.advancement.sheet .card.items .items-list > li {
  margin: 0 -0.75em;
  padding: 6px 0.75em;
}
.dnd5e2.advancement.sheet .card.items .items-list > li:nth-child(odd) {
  background: var(--dnd5e-color-table-row-odd);
}
.dnd5e2.advancement.sheet .card.items .items-list > li:nth-child(even) {
  background: var(--dnd5e-color-table-row-even);
}
.dnd5e2.advancement.sheet .card.items .item-optional {
  display: inline-flex;
}
.dnd5e2.advancement.sheet .card.items .item-name {
  grid-column: name;
}
.dnd5e2.advancement.sheet .card.items .item-controls {
  grid-column: controls;
}
.dnd5e2.advancement.sheet .card.items .name-header {
  padding-inline-start: 16px;
}
.dnd5e2.advancement.sheet .card.levels {
  grid-template-columns: [level] max-content [count] 1fr;
  gap: 4px 6px;
}
.dnd5e2.advancement.sheet .card.levels .header > span {
  text-align: center;
}
.dnd5e2.advancement.sheet .card.levels .level-header,
.dnd5e2.advancement.sheet .card.levels .level-level {
  grid-column: level;
}
.dnd5e2.advancement.sheet .card.levels .count-header,
.dnd5e2.advancement.sheet .card.levels .level-count {
  grid-column: count;
}
.dnd5e2.advancement.sheet .card.levels .level-level {
  align-content: center;
  text-align: center;
}
.dnd5e2.advancement.sheet .centered {
  text-align: center;
}
.dnd5e2.advancement.sheet .drop-area {
  border: 1px dashed var(--color-border-light-2);
  border-radius: 4px;
  padding: 4px;
}
.dnd5e2.advancement.sheet .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-light-6);
}
.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-light-6);
}
.dnd5e2.advancement.scale-value.sheet [data-application-part="levels"] li.level:not(.new-scale-value) select option:not([value=""]) {
  color: var(--color-text-dark-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-dark-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-dark-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.empty:not(.disabled) {
  cursor: pointer;
  transition: opacity 250ms ease;
}
.dnd5e2.advancement.manager.application [data-application-part="manager"] .pill-lg.empty:not(.disabled):hover {
  opacity: 0.5;
}
.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: 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: 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;
}
.dnd5e2.sheet.actor {
  /* ---------------------------------- */
  /*  Outer Window                      */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Navigation                        */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Sheet Header                      */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Sheet Body                        */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Meters                            */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Classes                           */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Pills                             */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Spells                            */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Biography                         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Special Traits                    */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Warnings                          */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Minimized                         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Locked                            */
  /* ---------------------------------- */
}
.dnd5e2.sheet.actor::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.sheet.actor .window-resizable-handle {
  bottom: 1px;
  right: 1px;
  padding: 0;
}
.dnd5e2.sheet.actor nav.tabs {
  top: calc(var(--dnd5e-sheet-header-height) + 1rem);
}
.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 .sheet-body .main-content {
  /* Tabbed Content */
}
.dnd5e2.sheet.actor .sheet-body .main-content .tab-body .tab:not(.active) {
  display: none;
}
.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: var(--border-width) solid var(--dnd5e-color-hp-3);
}
.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: var(--border-width) solid var(--dnd5e-color-hd-3);
}
.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: 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: 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 .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 .textbox textarea {
  font-family: var(--dnd5e-font-roboto);
  font-size: var(--font-size-12);
  padding: 0.375rem;
  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 .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);
}
.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-dark-5);
  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 {
  background: url("../../ui/denim075.png");
  border: unset;
}
.dnd5e2.sheet.actor.minimized::after {
  content: unset;
}
.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 {
  display: none;
}
.dnd5e2.sheet.actor form.locked .meter.sectioned > .hit-points {
  cursor: default;
}
.dnd5e2.sheet.item {
  /* ---------------------------------- */
  /*  Outer Window                      */
  /* ---------------------------------- */
  --dnd5e-sheet-header-height: 170px;
  border: var(--dnd5e-border-gold);
  /* ---------------------------------- */
  /*  Sheet Header                      */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Tabs                              */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Sheet Body                        */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Editable                          */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Locked                            */
  /* ---------------------------------- */
}
.dnd5e2.sheet.item > header slide-toggle {
  --slide-toggle-track-color-unchecked: var(--dnd5e-background-25);
}
.dnd5e2.sheet.item .window-header {
  flex-wrap: nowrap;
}
.dnd5e2.sheet.item .window-header .header-elements {
  display: contents;
  flex: none;
  color: var(--color-text-dark-primary);
  font-family: var(--dnd5e-font-roboto-condensed);
  line-height: 1;
}
.dnd5e2.sheet.item .window-header .header-elements > * {
  margin-top: 4px;
}
.dnd5e2.sheet.item .window-header .header-elements .source-book {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dnd5e2.sheet.item .window-header .header-elements a {
  margin: 0;
  display: grid;
  place-content: center;
}
.dnd5e2.sheet.item .window-header .header-elements a[hidden] {
  display: none;
}
.dnd5e2.sheet.item .window-header .header-elements i {
  font-size: var(--font-size-11);
  color: var(--color-text-light-6);
  margin: 0;
}
.dnd5e2.sheet.item .window-header .state-toggle.active {
  color: var(--color-text-dark-primary);
}
.dnd5e2.sheet.item .window-content {
  background: url("ui/texture-gray1.webp") no-repeat top left, url("ui/texture-gray2.webp") no-repeat bottom right, var(--dnd5e-color-parchment);
}
.dnd5e2.sheet.item .window-content > form {
  display: flex;
  flex-direction: column;
  padding: 38px 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 .header-elements {
  display: none;
}
.dnd5e2.sheet.item.minimized > header {
  align-items: center;
}
.dnd5e2.sheet.item.minimized > header .header-button,
.dnd5e2.sheet.item.minimized > header .pseudo-header-button {
  margin-top: 0;
}
.dnd5e2.sheet.item.minimized > header .window-title {
  visibility: visible;
}
.dnd5e2.sheet.item .sheet-header {
  display: flex;
  padding: 0 12px;
  align-items: stretch;
  gap: 8px;
  /* 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: 100%;
  border: 4px solid var(--dnd5e-color-gold);
  box-shadow: 0 0 4px var(--dnd5e-shadow-45);
  object-fit: cover;
  background: var(--dnd5e-color-light-gray);
  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-dark-5);
  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-dark-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;
  color: var(--color-text-dark-5);
  align-items: start;
  border: none;
}
.dnd5e2.sheet.item nav.tabs .item {
  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-dark-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 .sheet-body {
  /* Descriptions */
  /* Container Contents */
  /* Advancements */
  /* Details */
  /* Activities */
  /* Facilities */
}
.dnd5e2.sheet.item .sheet-body .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 .sheet-body .tab:not(.active) {
  display: none;
}
.dnd5e2.sheet.item .sheet-body .tab.effects,
.dnd5e2.sheet.item .sheet-body .tab.activities {
  padding: 12px 2px 58px 6px;
}
.dnd5e2.sheet.item .sheet-body .tab > .pills .pill {
  font-size: var(--font-size-10);
  padding: 3px 6px;
  line-height: 1;
}
.dnd5e2.sheet.item .sheet-body .tab.single-description {
  padding-right: 5px;
  scrollbar-gutter: auto;
}
.dnd5e2.sheet.item .sheet-body .tab.single-description > .editor {
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--dnd5e-color-scrollbar) transparent;
}
.dnd5e2.sheet.item .sheet-body .spell-block {
  width: 250px;
  margin: 4px auto 4px;
}
.dnd5e2.sheet.item .sheet-body .info-block {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 16px;
}
.dnd5e2.sheet.item .sheet-body .info-block > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dnd5e2.sheet.item .sheet-body .info-block > div .label {
  font-family: var(--dnd5e-font-roboto-condensed);
  font-size: var(--font-size-11);
  color: var(--color-text-dark-5);
  text-transform: uppercase;
}
.dnd5e2.sheet.item .sheet-body .info-block > div .label .config-button {
  color: var(--color-text-light-6);
}
.dnd5e2.sheet.item .sheet-body .info-block > div div.value {
  font-size: var(--font-size-14);
  font-family: var(--dnd5e-font-roboto);
}
.dnd5e2.sheet.item .sheet-body .info-block > div.info-sm div.value {
  margin-top: 4px;
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.item .sheet-body .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 .sheet-body .info-block > div .sign {
  color: var(--color-text-light-6);
  font-size: var(--font-size-18);
}
.dnd5e2.sheet.item .sheet-body .info-block > div.info-grid div.value {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px;
}
.dnd5e2.sheet.item .sheet-body .info-block > div.damage div.value {
  --icon-fill: var(--color-text-dark-5);
  color: var(--color-text-dark-5);
}
.dnd5e2.sheet.item .sheet-body .item-descriptions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dnd5e2.sheet.item .sheet-body .item-descriptions .description {
  padding: 8px;
  font-family: var(--dnd5e-font-roboto-condensed);
  box-shadow: 0 0 6px var(--dnd5e-shadow-15);
}
.dnd5e2.sheet.item .sheet-body .item-descriptions .description > .header {
  background: none;
  border: none;
  color: var(--color-text-dark-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dnd5e2.sheet.item .sheet-body .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 .sheet-body .item-descriptions .description > .header > button {
  flex: none;
  width: unset;
}
.dnd5e2.sheet.item .sheet-body .item-descriptions .description > .header > button:hover,
.dnd5e2.sheet.item .sheet-body .item-descriptions .description > .header > button:focus-visible {
  box-shadow: none;
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2.sheet.item .sheet-body .item-descriptions .description:not(.collapsible) > .header {
  padding-left: 14px;
}
.dnd5e2.sheet.item .sheet-body .item-descriptions .description.collapsible > .header {
  cursor: pointer;
}
.dnd5e2.sheet.item .sheet-body .item-descriptions .description.collapsible > .header::before {
  content: "\f078";
  font-family: var(--font-awesome);
  font-weight: bold;
  color: var(--color-text-dark-5);
  transition: all 250ms ease;
}
.dnd5e2.sheet.item .sheet-body .item-descriptions .description.collapsible.empty > .header {
  cursor: unset;
}
.dnd5e2.sheet.item .sheet-body .item-descriptions .description.collapsible.empty > .header::before {
  visibility: hidden;
}
.dnd5e2.sheet.item .sheet-body .item-descriptions .description.collapsible.collapsed > .header::before {
  transform: rotate(-90deg);
}
.dnd5e2.sheet.item .sheet-body .item-descriptions .description.collapsible .editor {
  overflow: hidden;
}
.dnd5e2.sheet.item .sheet-body .item-descriptions .description .editor {
  padding: 0 6px;
}
.dnd5e2.sheet.item .sheet-body .editor.prosemirror {
  flex: 1;
  overflow: hidden;
}
.dnd5e2.sheet.item .sheet-body .editor.prosemirror .editor-container {
  overflow: hidden auto;
  margin-right: 0;
}
.dnd5e2.sheet.item .sheet-body .editor.prosemirror .editor-content {
  position: unset;
  min-height: 300px;
}
.dnd5e2.sheet.item .sheet-body .editor.prosemirror > textarea {
  flex: none;
  min-height: 300px;
}
.dnd5e2.sheet.item .sheet-body .inventory-element .top .containers {
  justify-content: end;
}
.dnd5e2.sheet.item .sheet-body .inventory-element .items-section .item-uses {
  display: none;
}
.dnd5e2.sheet.item .sheet-body .inventory-element .items-section .item-price {
  display: flex;
}
.dnd5e2.sheet.item .sheet-body .inventory-element .bottom {
  position: sticky;
  bottom: -6px;
}
.dnd5e2.sheet.item .sheet-body .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 .sheet-body .inventory-element .bottom .encumbrance .meter {
  border-radius: 3px;
}
.dnd5e2.sheet.item .sheet-body .tab.advancement {
  padding: 12px 2px 58px 6px;
}
.dnd5e2.sheet.item .sheet-body .tab.advancement .items-header .item-controls {
  align-items: center;
  justify-content: end;
  padding-right: 12px;
}
.dnd5e2.sheet.item .sheet-body .tab.advancement .items-header .info-control,
.dnd5e2.sheet.item .sheet-body .tab.advancement .items-header .item-control {
  position: unset;
  color: var(--dnd5e-color-gold);
}
.dnd5e2.sheet.item .sheet-body .tab.advancement .item-name .name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dnd5e2.sheet.item .sheet-body .tab.advancement .item-name .tags {
  --icon-size: 18px;
}
.dnd5e2.sheet.item .sheet-body .tab.advancement .item-name .title {
  font-family: var(--dnd5e-font-roboto-slab);
  font-size: var(--font-size-13);
  font-weight: bold;
}
.dnd5e2.sheet.item .sheet-body .tab.advancement .item-name .summary {
  font-size: var(--font-size-10);
  color: var(--color-text-dark-5);
}
.dnd5e2.sheet.item .sheet-body .tab.advancement .item-name .summary p {
  margin: 0;
}
.dnd5e2.sheet.item .sheet-body .tab.advancement .item-name .summary .content-link {
  color: var(--color-text-dark-primary);
  text-decoration-style: dotted;
}
.dnd5e2.sheet.item .sheet-body .tab.advancement .item-name .summary .content-link > i {
  color: var(--color-text-dark-primary);
}
.dnd5e2.sheet.item .sheet-body .tab.advancement .item-name .summary .tag {
  padding: 0 3px;
  text-decoration: underline dotted;
}
.dnd5e2.sheet.item .sheet-body .tab.advancement .advancement-value {
  width: 50px;
}
.dnd5e2.sheet.item .sheet-body .tab.advancement .item-detail.advancement-value {
  font-size: var(--font-size-13);
}
.dnd5e2.sheet.item .sheet-body .tab.advancement .svg .item-image {
  border: none;
  background: none;
  box-shadow: none;
}
.dnd5e2.sheet.item .sheet-body .tab.details .starting-equipment {
  font-family: var(--dnd5e-font-roboto-condensed);
}
.dnd5e2.sheet.item .sheet-body .tab.details .starting-equipment.empty {
  padding: 8px;
  text-align: center;
  font-style: italic;
  color: var(--color-text-dark-5);
}
.dnd5e2.sheet.item .sheet-body .tab.details .starting-equipment li {
  line-height: 1.5;
}
.dnd5e2.sheet.item .sheet-body .tab.details .form-group .sep.unit {
  margin-inline: 4px;
  font-weight: bold;
}
.dnd5e2.sheet.item .sheet-body .activities {
  gap: 0;
}
.dnd5e2.sheet.item .sheet-body .activities .activity {
  padding: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 0 6px var(--dnd5e-shadow-15);
}
.dnd5e2.sheet.item .sheet-body .activities .activity > .icon {
  --icon-size: 24px;
  --icon-fill: var(--color-text-dark-primary);
  flex: 0 0 50px;
  height: 24px;
}
.dnd5e2.sheet.item .sheet-body .activities .activity > .icon .gold-icon {
  border-width: 1px;
  width: 24px;
  height: 24px;
}
.dnd5e2.sheet.item .sheet-body .activities .activity > .name {
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
  flex: 1;
  font-size: var(--font-size-14);
  cursor: pointer;
  text-align: center;
}
.dnd5e2.sheet.item .sheet-body .activities .activity > .name:hover {
  text-shadow: 0 0 6px var(--color-shadow-primary);
}
.dnd5e2.sheet.item .sheet-body .activities .activity > .controls {
  flex: 0 0 50px;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 2px;
  padding-right: 4px;
}
.dnd5e2.sheet.item .sheet-body .activities .activity + .activity {
  margin-top: 8px;
}
.dnd5e2.sheet.item .sheet-body fieldset.harvesting {
  display: grid;
  grid-template: "a a" "b c" / 1fr 60px;
  column-gap: 8px;
}
.dnd5e2.sheet.item .sheet-body fieldset.harvesting > .form-group {
  grid-area: a;
}
.dnd5e2.sheet.item .sheet-body fieldset.harvesting .facility-craft {
  grid-area: b;
}
.dnd5e2.sheet.item .sheet-body fieldset.harvesting .quantity {
  grid-area: c;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dnd5e2.sheet.item .sheet-body fieldset.harvesting .quantity .separator {
  color: var(--color-text-dark-5);
}
.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 .sheet-body .item-descriptions .description:not(.collapsible) > .header {
  display: none;
}
/* ----------------------------------------- */
/*  Starting Equipment Configuration         */
/* ----------------------------------------- */
.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%);
}
.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: 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-dark-5);
}
.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;
  background: transparent;
  min-width: 800px;
  min-height: 700px;
  box-shadow: none;
  /* ---------------------------------- */
  /*  Sheet Header                      */
  /* ---------------------------------- */
  /* Name */
  /* ---------------------------------- */
  /*  Sheet Body                        */
  /* ---------------------------------- */
  /* Editors */
  /* ---------------------------------- */
  /*  Ability Scores                    */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Spells                            */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Biography                         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Bastion                           */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Collapsed                         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Limited Sheets                    */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Edit Mode                         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Accessibility                     */
  /* ---------------------------------- */
}
.dnd5e2.sheet.actor.character.minimized {
  background: url("../../ui/denim075.png");
  box-shadow: 0 0 20px var(--color-shadow-dark);
}
.dnd5e2.sheet.actor.character .sheet-header {
  flex: 0 0 var(--dnd5e-sheet-header-height);
  background: transparent url("ui/official/banner-character.jpg") 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;
  /* 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;
}
.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 {
  border-radius: 5px;
  position: relative;
  background: url("ui/texture1.webp") no-repeat top center / auto 770px, url("ui/texture2.webp") no-repeat bottom center / auto 704px;
  /* 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-color-iron-gray);
  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-color-iron-gray);
  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: pointer;
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .card .portrait > img {
  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 {
  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: 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: var(--dnd5e-color-gold);
}
.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: 1px solid var(--color-border-light-1);
  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: 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-light-6);
}
.dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .drop {
  border: 2px dashed black;
  border-radius: 4px;
  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 {
  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: 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-light-6);
}
.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-light-6);
}
.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-dark-5);
  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(.details) {
  padding-inline: 0.5rem;
}
.dnd5e2.sheet.actor.character .sheet-body .tab-body .tab:not(.details, .biography, .bastion) {
  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-light-6);
  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-light-6);
}
.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(--color-text-dark-5);
  width: 30px;
  padding-top: 2px;
}
.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-light-6);
}
.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-dark-5);
  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 .details .pills-lg {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dnd5e2.sheet.actor.character .sheet-body .details .pills-lg > div {
  width: 100%;
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg {
  position: relative;
  transition: box-shadow 250ms ease;
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.race,
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.background {
  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.empty:not(.disabled) {
  cursor: pointer;
  transition: opacity 250ms ease;
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.empty:not(.disabled):hover {
  opacity: 0.5;
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.texture {
  --background-color: color-mix(in oklab, var(--dnd5e-color-parchment), white);
  background-blend-mode: color-burn;
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.texture.type {
  background: url("ui/official/pill-texture-type.webp") no-repeat right, var(--background-color);
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.texture.race {
  background: url("ui/official/pill-texture-race.webp") no-repeat right, var(--background-color);
}
.dnd5e2.sheet.actor.character .sheet-body .pill-lg.texture.background {
  background: url("ui/official/pill-texture-background.webp") no-repeat right, var(--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-dark-5);
}
.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.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.biography > .bottom,
.dnd5e2.sheet.actor.character .tab.bastion .description {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.character .tab.biography > .bottom h3,
.dnd5e2.sheet.actor.character .tab.bastion .description h3 {
  margin-right: 1.5rem;
  position: relative;
}
.dnd5e2.sheet.actor.character .tab.biography > .bottom h3 i.fa-feather,
.dnd5e2.sheet.actor.character .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.biography > .bottom .editor,
.dnd5e2.sheet.actor.character .tab.bastion .description .editor {
  flex: 1;
  min-height: 500px;
  overflow-y: visible;
}
.dnd5e2.sheet.actor.character .tab.biography > .bottom .editor .editor-content,
.dnd5e2.sheet.actor.character .tab.bastion .description .editor .editor-content {
  font-family: var(--dnd5e-font-roboto-condensed);
  font-size: var(--font-size-14);
  scrollbar-width: thin;
  scrollbar-color: var(--dnd5e-color-scrollbar) transparent;
}
.dnd5e2.sheet.actor.character .tab.biography > .bottom .editor .editor-content::-webkit-scrollbar-track,
.dnd5e2.sheet.actor.character .tab.bastion .description .editor .editor-content::-webkit-scrollbar-track {
  box-shadow: none;
  border-radius: 0;
}
.dnd5e2.sheet.actor.character .tab.biography > .bottom .editor .editor-content::-webkit-scrollbar-thumb,
.dnd5e2.sheet.actor.character .tab.bastion .description .editor .editor-content::-webkit-scrollbar-thumb {
  border: none;
  background: var(--dnd5e-color-scrollbar);
}
.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 url("ui/ability-score-tab.svg") 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 .sign {
  color: var(--color-text-light-6);
}
.dnd5e2.sheet.actor.character .ability-scores .ability-score .label {
  text-transform: uppercase;
  font-size: var(--font-size-11);
  color: var(--dnd5e-color-gold);
}
.dnd5e2.sheet.actor.character .ability-scores .ability-score .mod {
  font-weight: bold;
  color: var(--dnd5e-color-black);
  font-size: var(--font-size-16);
  padding: 3px 0;
}
.dnd5e2.sheet.actor.character .ability-scores .ability-score .score {
  width: 50px;
  height: 23px;
  padding: 4px;
  text-align: center;
  font-size: var(--font-size-13);
  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 {
  padding: 4px;
  color: var(--dnd5e-color-gold);
  width: 50px;
  height: 23px;
  border-radius: 3px;
  border: 1px solid transparent;
  text-align: center;
}
.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 form:not(.tab-details) .ability-scores {
  display: none;
}
.dnd5e2.sheet.actor.character .tab.spells.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dnd5e2.sheet.actor.character .tab.spells .top {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.dnd5e2.sheet.actor.character .tab.spells .top .card.spellcasting {
  width: 230px;
}
.dnd5e2.sheet.actor.character .tab.spells .top .card.spellcasting .prepared .value.max-preparations {
  font-size: var(--font-size-14);
}
.dnd5e2.sheet.actor.character .tab.spells .top .card.spellcasting .prepared .value .separator,
.dnd5e2.sheet.actor.character .tab.spells .top .card.spellcasting .prepared .value .max {
  color: var(--color-text-light-6);
}
.dnd5e2.sheet.actor.character .spells-list .items-header .item-name {
  cursor: pointer;
}
.dnd5e2.sheet.actor.character .tab.biography.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}
.dnd5e2.sheet.actor.character .tab.biography > .top {
  display: flex;
  padding-left: 0.25rem;
  margin-bottom: 1.5rem;
}
.dnd5e2.sheet.actor.character .tab.biography > .middle {
  display: flex;
  gap: 1rem;
}
.dnd5e2.sheet.actor.character .tab.biography > .middle > * {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dnd5e2.sheet.actor.character .tab.biography > .middle .right .textbox-half:last-child textarea {
  height: 156px;
}
.dnd5e2.sheet.actor.character .tab.biography > .bottom h3 span {
  font-size: var(--font-size-14);
}
.dnd5e2.sheet.actor.character .tab.biography .characteristics {
  width: 520px;
  display: grid;
  grid-template-columns: 180px 160px 140px;
  gap: 1rem;
}
.dnd5e2.sheet.actor.character .tab.biography .characteristics label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dnd5e2.sheet.actor.character .tab.biography .characteristics label .label {
  font-size: var(--font-size-10);
}
.dnd5e2.sheet.actor.character .tab.biography .characteristics label input,
.dnd5e2.sheet.actor.character .tab.biography .characteristics label .value {
  flex: 1;
  font-size: var(--font-size-11);
}
.dnd5e2.sheet.actor.character .tab.biography .characteristics label input {
  height: unset;
  padding: 0.25rem;
  background: transparent;
}
.dnd5e2.sheet.actor.character .tab.biography .characteristics label .value {
  min-height: 1em;
  border-bottom: 1px solid var(--color-text-dark-primary);
}
.dnd5e2.sheet.actor.character .tab.biography .textbox-half p {
  font-size: var(--font-size-12);
  padding: 0.375rem;
}
.dnd5e2.sheet.actor.character .tab.biography .textbox-half p:empty {
  padding: 0;
  margin: 0;
  min-height: unset;
}
.dnd5e2.sheet.actor.character .tab.bastion {
  flex-direction: column;
  gap: 16px;
  /* Roster */
  /* Facilities */
}
.dnd5e2.sheet.actor.character .tab.bastion.active {
  display: flex;
}
.dnd5e2.sheet.actor.character .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.bastion .name input.document-name {
  font-size: var(--font-size-42);
  text-align: center;
}
.dnd5e2.sheet.actor.character .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.bastion .contents .roster {
  grid-area: a;
}
.dnd5e2.sheet.actor.character .tab.bastion .contents .facilities.basic {
  grid-area: b;
}
.dnd5e2.sheet.actor.character .tab.bastion .contents .facilities.special {
  grid-area: c;
}
.dnd5e2.sheet.actor.character .tab.bastion .contents .facilities.special h3 > span {
  line-height: 1;
}
.dnd5e2.sheet.actor.character .tab.bastion .contents > section ul {
  flex-wrap: wrap;
  display: flex;
  gap: 8px;
}
.dnd5e2.sheet.actor.character .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.bastion .contents > section ul li.empty {
  display: inline-grid;
  place-content: center;
}
.dnd5e2.sheet.actor.character .tab.bastion .roster ul li {
  width: 48px;
  height: 48px;
  cursor: pointer;
}
.dnd5e2.sheet.actor.character .tab.bastion .roster ul li.empty {
  width: 100%;
  border: none;
  box-shadow: none;
  font-style: italic;
  color: var(--color-text-dark-5);
}
.dnd5e2.sheet.actor.character .tab.bastion .roster img {
  border: none;
  border-radius: 3px;
  width: 100%;
  height: 100%;
  max-width: unset;
  object-fit: cover;
  background: var(--dnd5e-color-iron-gray);
}
.dnd5e2.sheet.actor.character .tab.bastion .facilities ul {
  flex-direction: column;
}
.dnd5e2.sheet.actor.character .tab.bastion .facility {
  --bar-height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dnd5e2.sheet.actor.character .tab.bastion .facility > * {
  position: relative;
}
.dnd5e2.sheet.actor.character .tab.bastion .facility.empty {
  min-height: 50px;
  color: var(--dnd5e-color-gold);
  cursor: pointer;
  border-style: dashed;
  opacity: 0.5;
  transition: all 250ms ease;
}
.dnd5e2.sheet.actor.character .tab.bastion .facility.empty:hover {
  opacity: 1;
}
.dnd5e2.sheet.actor.character .tab.bastion .facility.disabled,
.dnd5e2.sheet.actor.character .tab.bastion .facility.building {
  filter: grayscale(1);
}
.dnd5e2.sheet.actor.character .tab.bastion .facility.disabled {
  pointer-events: none;
}
.dnd5e2.sheet.actor.character .tab.bastion .facility:not(.empty) {
  border: var(--dnd5e-border-gold);
  background: var(--dnd5e-background-card);
}
.dnd5e2.sheet.actor.character .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.bastion .facility:not(.empty):has(> .facility-progress)::before {
  top: var(--bar-height);
  border-radius: 0 0 5px 5px;
}
.dnd5e2.sheet.actor.character .tab.bastion .facility .facility-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 0;
}
.dnd5e2.sheet.actor.character .tab.bastion .facility .facility-header .name-stacked {
  flex: 1;
}
.dnd5e2.sheet.actor.character .tab.bastion .facility .facility-header .title {
  font-size: var(--font-size-13);
}
.dnd5e2.sheet.actor.character .tab.bastion .facility .facility-header .slots {
  flex: none;
}
.dnd5e2.sheet.actor.character .tab.bastion .facility .facility-header .name-stacked.rollable {
  cursor: pointer;
}
.dnd5e2.sheet.actor.character .tab.bastion .facility .facility-header .name-stacked.rollable:hover .title {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.dnd5e2.sheet.actor.character .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.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.bastion .facility .facility-progress + .facility-header {
  margin-top: -4px;
}
.dnd5e2.sheet.actor.character .tab.bastion .facility .facility-occupants {
  padding-inline: 8px;
}
.dnd5e2.sheet.actor.character .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.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: invert(1);
  opacity: 0.15;
}
.dnd5e2.sheet.actor.character .tab.bastion .facility .occupant-slot {
  --slot-size: 26px;
}
.dnd5e2.sheet.actor.character .tab.bastion .facility > :last-child {
  padding-bottom: 8px;
}
.dnd5e2.sheet.actor.character .tab.bastion .defender {
  position: relative;
}
.dnd5e2.sheet.actor.character .tab.bastion .defender .deletion-control {
  width: unset;
  height: unset;
  cursor: pointer;
  position: absolute;
  inset: -3px -3px 0 0;
}
.dnd5e2.sheet.actor.character form.collapsed .main-content {
  grid-template-columns: 0 1fr;
  padding-left: 0;
}
.dnd5e2.sheet.actor.character form.collapsed .main-content > .sidebar {
  margin-left: calc(var(--dnd5e-sheet-sidebar-width) * -1);
}
.dnd5e2.sheet.actor.character form.collapsed .sheet-header > .left:is(.optional-ability-1, .optional-ability-2) {
  padding-right: 24px;
}
.dnd5e2.sheet.actor.character form.collapsed .sheet-header > .left:is(.optional-ability-1, .optional-ability-2) .document-name {
  font-size: var(--font-size-46);
}
.dnd5e2.sheet.actor.character form.collapsed .ability-scores {
  left: 0;
}
.dnd5e2.sheet.actor.character.limited {
  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 {
  border: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  background-color: var(--dnd5e-color-light-gray);
  margin: 0;
}
.dnd5e2.sheet.actor.character.limited .tab.biography > .bottom {
  padding: 0.5rem;
}
.dnd5e2.sheet.actor.character.limited .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(.details) {
  padding: 0;
}
.dnd5e2.sheet.actor.character form.editable .ability-scores .ability-score .score {
  padding: 0;
}
.dnd5e2.sheet.actor.character form.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;
  min-width: 700px;
  min-height: 700px;
  box-shadow: none;
  /* ---------------------------------- */
  /*  Outer Window                      */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Sheet Header                      */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Sheet Body                        */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Child Creation                    */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Edit Mode                         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Collapsed                         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Limited Sheets                    */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Interactable                      */
  /* ---------------------------------- */
}
.dnd5e2.sheet.actor.npc.minimized {
  box-shadow: 0 0 20px var(--color-shadow-dark);
}
.dnd5e2.sheet.actor.npc.minimized .window-header .header-elements {
  display: none;
}
.dnd5e2.sheet.actor.npc > header slide-toggle {
  --slide-toggle-track-color-unchecked: var(--dnd5e-background-25);
}
.dnd5e2.sheet.actor.npc .window-header .header-elements {
  flex: none;
  color: var(--color-text-dark-primary);
  font-family: var(--dnd5e-font-roboto-condensed);
  display: flex;
  align-items: center;
  line-height: 1;
  margin-top: 6px;
  gap: 4px;
}
.dnd5e2.sheet.actor.npc .window-header .header-elements > div:has( > span:not(:empty)) + div:not(:empty)::before {
  content: " • ";
}
.dnd5e2.sheet.actor.npc .window-header .header-elements .source-book {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dnd5e2.sheet.actor.npc .window-header .header-elements a {
  margin: 0;
  display: grid;
  place-content: center;
}
.dnd5e2.sheet.actor.npc .window-header .header-elements a[hidden] {
  display: none;
}
.dnd5e2.sheet.actor.npc .window-header .header-elements i {
  font-size: var(--font-size-11);
  color: var(--color-text-light-6);
  margin: 0;
}
.dnd5e2.sheet.actor.npc .window-content {
  background: url("ui/texture1.webp") no-repeat top center / auto 770px, var(--dnd5e-color-parchment) url("ui/texture2.webp") no-repeat bottom center / auto 704px;
}
.dnd5e2.sheet.actor.npc .window-content > form {
  display: flex;
  flex-direction: column;
}
.dnd5e2.sheet.actor.npc .sheet-header {
  gap: 12px;
  padding: 38px 12px 0;
  align-items: stretch;
  /* Portrait */
  /* Name */
  /* Size, Type, & Alignment */
  /* CR */
  /* 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 {
  background: var(--dnd5e-background-5);
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait {
  position: relative;
  /* Initiative */
  /* Death Saves */
  /* Loyalty */
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait > img {
  width: var(--dnd5e-sheet-sidebar-width);
  height: var(--dnd5e-sheet-sidebar-width);
  border-radius: 100%;
  border: 4px 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 {
  border-radius: 0;
  box-shadow: none;
  border: none;
  object-fit: contain;
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait .initiative-wrapper {
  position: absolute;
  inset: 4px 4px auto auto;
}
.dnd5e2.sheet.actor.npc .sheet-header .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: 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.npc .sheet-header .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.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 .portrait .loyalty-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.npc .sheet-header .portrait .loyalty-badge > input {
  width: 45px;
  text-align: center;
}
.dnd5e2.sheet.actor.npc .sheet-header .portrait .loyalty-badge > input:hover,
.dnd5e2.sheet.actor.npc .sheet-header .portrait .loyalty-badge > input:focus {
  border-color: transparent;
  box-shadow: 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;
}
.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 .cr-badge {
  width: 45px;
  height: 45px;
  background-image: url("ui/cr-badge.webp");
  font-size: var(--font-size-18);
}
.dnd5e2.sheet.actor.npc .sheet-header .proficiency {
  text-align: right;
}
.dnd5e2.sheet.actor.npc .sheet-header .proficiency .sign {
  color: var(--color-text-light-6);
}
.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: 1px solid var(--color-border-light-1);
}
.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%;
}
.dnd5e2.sheet.actor.npc .sheet-header .ability-scores .sign {
  color: var(--color-text-light-6);
}
.dnd5e2.sheet.actor.npc .sheet-header .ability-scores .label {
  text-transform: uppercase;
  font-size: var(--font-size-11);
  color: var(--dnd5e-color-gold);
  font-weight: bold;
}
.dnd5e2.sheet.actor.npc .sheet-header .ability-scores .mod {
  font-weight: bold;
  color: var(--dnd5e-color-black);
  font-size: var(--font-size-16);
  padding: 3px 0;
}
.dnd5e2.sheet.actor.npc .sheet-header .ability-scores .score {
  text-align: center;
  font-size: var(--font-size-13);
}
.dnd5e2.sheet.actor.npc .sheet-header .ability-scores .score > input {
  text-align: center;
}
.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: 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-light-6);
}
.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-dark-5);
  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-unchecked: rgba(0, 0, 0, 0.25);
  --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 Collapser */
  /* Sidebar */
  /* Tabbed Content */
  /* Inventory */
  /* Spells */
  /* Effects */
  /* Biography */
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .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.npc .sheet-body .main-content .sidebar-collapser:hover,
.dnd5e2.sheet.actor.npc .sheet-body .main-content .sidebar-collapser:focus-visible {
  box-shadow: none;
  background: var(--dnd5e-background-5);
}
.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: 8px;
  transition: margin-left 450ms ease;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .sidebar .pills-group h3.icon {
  padding-bottom: 0;
  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.spells,
.dnd5e2.sheet.actor.npc .sheet-body .main-content .tab-body .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(.biography, .inventory) {
  padding-bottom: calc(1.5rem + 30px);
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .inventory-element {
  width: 100%;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .inventory-element .spells-list {
  gap: 12px;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .inventory-element .bottom {
  width: 100%;
  position: sticky;
  bottom: 0;
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .inventory-element .bottom .encumbrance {
  border: var(--dnd5e-border-gold);
  border-radius: 3px;
  box-shadow: 0 0 6px var(--dnd5e-shadow-45);
  flex: 1;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .inventory-element .bottom .meter {
  border-radius: 3px;
  height: 100%;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .inventory-element .bottom .create-child {
  position: relative;
  inset: unset;
}
.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 .spellcasting.card select {
  border: none;
  background: none;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .spellcasting.card select option {
  color: var(--color-text-dark-primary);
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .spellcasting.card .config-button {
  flex: 1;
  display: grid;
  place-content: center;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .spellcasting.card .spellcasting-ability {
  color: var(--dnd5e-color-gold);
  text-shadow: 0 0 6px var(--dnd5e-shadow-45);
}
.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 .tab.biography .top {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .tab.biography :is(.middle, .bottom) > h3 {
  margin-right: 24px;
  position: relative;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .tab.biography :is(.middle, .bottom) > h3 .editor-edit {
  background: transparent;
  border: none;
  box-shadow: none;
  inset: auto auto -3px 100%;
  font-size: var(--font-size-18);
  color: var(--color-text-dark-primary);
  padding: 0;
}
.dnd5e2.sheet.actor.npc .sheet-body .main-content .tab.biography > .editor {
  flex: 1;
}
.dnd5e2.sheet.actor.npc form.tab-inventory > .create-child {
  display: none;
}
.dnd5e2.sheet.actor.npc form.editable .sheet-header .labels,
.dnd5e2.sheet.actor.npc form.editable .sheet-header > .left {
  color: var(--color-text-dark-primary);
}
.dnd5e2.sheet.actor.npc form.editable .sheet-header .labels li + li::before,
.dnd5e2.sheet.actor.npc form.editable .sheet-header > .left li + li::before {
  content: "";
}
.dnd5e2.sheet.actor.npc form.editable .sheet-header .labels > li,
.dnd5e2.sheet.actor.npc form.editable .sheet-header > .left > li {
  flex: 1;
}
.dnd5e2.sheet.actor.npc form.editable .sheet-header .labels li.creature-size,
.dnd5e2.sheet.actor.npc form.editable .sheet-header > .left li.creature-size {
  display: grid;
}
.dnd5e2.sheet.actor.npc form.editable .sheet-header .labels li.creature-size select,
.dnd5e2.sheet.actor.npc form.editable .sheet-header > .left li.creature-size select {
  background: var(--dnd5e-background-5);
}
.dnd5e2.sheet.actor.npc form.editable .sheet-header .labels li.creature-size select:hover,
.dnd5e2.sheet.actor.npc form.editable .sheet-header > .left li.creature-size select:hover {
  cursor: pointer;
}
.dnd5e2.sheet.actor.npc form.editable .sheet-header .labels li.creature-type > a,
.dnd5e2.sheet.actor.npc form.editable .sheet-header > .left li.creature-type > a,
.dnd5e2.sheet.actor.npc form.editable .sheet-header .labels label.slide-toggle,
.dnd5e2.sheet.actor.npc form.editable .sheet-header > .left label.slide-toggle {
  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(--dnd5e-background-5);
  padding: 0 4px;
}
.dnd5e2.sheet.actor.npc form.editable .sheet-header .labels li.creature-type > a:hover,
.dnd5e2.sheet.actor.npc form.editable .sheet-header > .left li.creature-type > a:hover,
.dnd5e2.sheet.actor.npc form.editable .sheet-header .labels label.slide-toggle:hover,
.dnd5e2.sheet.actor.npc form.editable .sheet-header > .left label.slide-toggle:hover {
  border-color: var(--dnd5e-color-gold);
  box-shadow: 0 0 6px var(--dnd5e-color-gold);
  text-shadow: none;
}
.dnd5e2.sheet.actor.npc form.editable .sheet-header .labels label.slide-toggle,
.dnd5e2.sheet.actor.npc form.editable .sheet-header > .left label.slide-toggle {
  font-family: var(--dnd5e-font-roboto-condensed);
  height: var(--form-field-height);
  margin-bottom: 8px;
}
.dnd5e2.sheet.actor.npc form.editable .sheet-header .cr-badge > input {
  width: 45px;
  text-align: center;
  font-size: var(--font-size-18);
}
.dnd5e2.sheet.actor.npc form.editable .sheet-header .cr-badge > input:hover,
.dnd5e2.sheet.actor.npc form.editable .sheet-header .cr-badge > input:focus {
  border-color: transparent;
  box-shadow: none;
}
.dnd5e2.sheet.actor.npc form.editable .sheet-header .vitals .hit-points .label {
  padding-inline-end: 6px;
}
.dnd5e2.sheet.actor.npc form.editable .sheet-header .vitals .hit-points .label .config-button {
  font-size: var(--font-size-10);
  margin-left: auto;
}
.dnd5e2.sheet.actor.npc form.editable .sheet-header .vitals .hit-points .label .bonus + .config-button {
  margin-left: 2px;
}
.dnd5e2.sheet.actor.npc form.editable .sheet-header .legendary label > span.value {
  font-size: var(--font-size-16);
}
.dnd5e2.sheet.actor.npc form.collapsed .sheet-body .main-content .sidebar-collapser {
  left: 0;
}
.dnd5e2.sheet.actor.npc form.collapsed .sidebar {
  margin-left: calc(var(--sidebar-size) * -1);
}
.dnd5e2.sheet.actor.npc.limited {
  min-width: 600px;
  min-height: 550px;
}
.dnd5e2.sheet.actor.npc.limited .sheet-header {
  display: block;
  padding: 38px 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 {
  width: 100%;
  height: 100%;
  border-width: 4px;
}
.dnd5e2.sheet.actor.npc form:is(.interactable, .editable) .biography .editor-edit {
  display: block;
}
.dnd5e2.compendium-browser {
  --icon-size: 32px;
  border: none;
  background: none;
}
.dnd5e2.compendium-browser .window-resize-handle {
  inset: auto 0 0 auto;
  z-index: 1;
}
.dnd5e2.compendium-browser:not(.minimized) .window-content {
  --header-size: calc(var(--header-height) + var(--font-size-24) + 6px);
}
.dnd5e2.compendium-browser .window-content {
  background: url("ui/texture1.webp") no-repeat top center / auto 770px, var(--dnd5e-color-parchment) url("ui/texture2.webp") no-repeat bottom center / auto 704px;
  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: var(--header-size) 0 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-dark-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 .window-content .mode-toggle {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1;
  font-family: var(--dnd5e-font-roboto-condensed);
}
.dnd5e2.compendium-browser .window-content .mode-toggle slide-toggle {
  --slide-toggle-track-color-unchecked: var(--dnd5e-background-25);
  --slide-toggle-track-color-checked: var(--dnd5e-color-gold);
}
.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: 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="toggleCollapse"] {
  width: 20px;
  margin-inline-start: auto;
  cursor: pointer;
  text-align: center;
}
.dnd5e2.compendium-browser .sidebar [data-application-part="filters"] {
  gap: 8px;
}
.dnd5e2.compendium-browser .sidebar .filter-header > label {
  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-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: 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);
}
.dnd5e2.compendium-browser .sidebar .filter.filter-range .sep {
  --icon-size: 16px;
  --icon-fill: var(--color-text-light-6);
  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) 8px 12px 4px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.dnd5e2.compendium-browser .results .results-loading {
  text-align: center;
  padding: 20px;
  font-size: 18px;
  color: var(--color-text-light-6);
}
.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: 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-dark-5);
  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 > .title {
  line-height: normal;
}
.dnd5e2 .inventory-element {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* ---------------------------------- */
  /*  Common Styles                     */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Encumbrance & Containers          */
  /* ---------------------------------- */
  /* Encumbrance */
  /* Containers */
  /* ------------------------------------ */
  /*  Searching & Filtering, & Attunement */
  /* ------------------------------------ */
  /* ---------------------------------- */
  /*  Spell Slots                       */
  /* ---------------------------------- */
}
.dnd5e2 .inventory-element .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 .inventory-element .top {
  display: flex;
  align-items: start;
  gap: 1rem;
}
.dnd5e2 .inventory-element .encumbrance {
  display: flex;
  flex-direction: column;
  width: 230px;
}
.dnd5e2 .inventory-element .encumbrance .meter {
  --encumbrance-low: 33%;
  --encumbrance-high: 66%;
  border-radius: 3px 3px 0 0;
  height: 25px;
  border: none;
  border-bottom: var(--dnd5e-border-gold);
}
.dnd5e2 .inventory-element .encumbrance .meter .label {
  display: flex;
  align-items: center;
  gap: 0.1875rem;
}
.dnd5e2 .inventory-element .encumbrance .meter .label i {
  font-size: var(--font-size-9);
  margin-right: 0.1875rem;
}
.dnd5e2 .inventory-element .encumbrance .meter .breakpoint {
  display: block;
  position: absolute;
  block-size: 0;
  inline-size: 0;
  border-inline: 3px solid transparent;
  transform: translateX(-50%);
  z-index: 1;
}
.dnd5e2 .inventory-element .encumbrance .meter .breakpoint.encumbrance-low {
  inset-inline-start: var(--encumbrance-low);
}
.dnd5e2 .inventory-element .encumbrance .meter .breakpoint.encumbrance-high {
  inset-inline-start: var(--encumbrance-high);
}
.dnd5e2 .inventory-element .encumbrance .meter .breakpoint.arrow-up {
  inset-block-end: 0;
  border-block-end: 3px solid var(--dnd5e-color-gold);
}
.dnd5e2 .inventory-element .encumbrance .meter .breakpoint.arrow-down {
  inset-block-start: 0;
  border-top: 3px solid var(--dnd5e-color-gold);
}
.dnd5e2 .inventory-element .containers {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(39px, max-content));
  gap: 0.5rem;
}
.dnd5e2 .inventory-element .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-color-light-gray);
}
.dnd5e2 .inventory-element .containers .container a {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.dnd5e2 .inventory-element .containers .container a:hover {
  text-shadow: none;
}
.dnd5e2 .inventory-element .containers .container a .meter {
  flex: 0 0 6px;
  border: none;
  border-radius: 3px 3px 0 0;
}
.dnd5e2 .inventory-element .containers .container a .meter.progress::before {
  --border-width: 1px;
  box-shadow: none;
  clip-path: none;
}
.dnd5e2 .inventory-element .containers .container a img {
  flex: 1;
  border: none;
  object-fit: cover;
  border-radius: 0 0 3px 3px;
  min-height: 0;
}
.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-light-6);
}
.dnd5e2 .inventory-element .middle .attunement .max {
  color: var(--color-text-dark-5);
}
.dnd5e2 .inventory-element .middle .attunement input.max {
  width: 22px;
  text-align: left;
  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 .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-color-light-gray);
  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:hover {
  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 .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: 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.activity-name .title,
.dnd5e2 .items-section .item .item-name.activity-name .title {
  font-size: var(--font-size-12);
}
.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: 0.25;
  font-size: var(--font-size-14);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  --icon-fill: var(--dnd5e-color-black);
}
.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.empty::after,
.dnd5e2 .items-section .item .item-detail.empty::after {
  content: "–";
  color: var(--color-text-light-6);
  font-weight: normal;
}
.dnd5e2 .items-section .items-header .item-image,
.dnd5e2 .items-section .item .item-image {
  width: 32px;
  height: 32px;
  object-fit: cover;
  min-width: 32px;
  min-height: 32px;
}
.dnd5e2 .items-section .items-header .item-image.activity-image,
.dnd5e2 .items-section .item .item-image.activity-image {
  --icon-size: 24px;
  --icon-fill: var(--color-text-dark-primary);
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-width: 1px;
  border-radius: 3px;
}
.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-light-6);
}
.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;
  display: none;
  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 {
  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 {
  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 {
  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-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 {
  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 {
  gap: unset;
}
.dnd5e2 .items-section .items-header .item-uses.item-detail,
.dnd5e2 .items-section .item .item-uses.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-uses input,
.dnd5e2 .items-section .item .item-uses input {
  width: 20px;
}
.dnd5e2 .items-section .items-header .item-uses .separator,
.dnd5e2 .items-section .item .item-uses .separator {
  color: var(--dnd5e-color-gold);
}
.dnd5e2 .items-section .items-header .item-uses .max,
.dnd5e2 .items-section .item .item-uses .max {
  color: var(--color-text-dark-5);
  text-align: start;
}
.dnd5e2 .items-section .items-header .item-uses input,
.dnd5e2 .items-section .item .item-uses input {
  text-align: end;
}
.dnd5e2 .items-section .items-header .item-uses i.fa-bolt,
.dnd5e2 .items-section .item .item-uses i.fa-bolt {
  color: var(--dnd5e-color-gold);
}
.dnd5e2 .items-section .items-header .spell-uses,
.dnd5e2 .items-section .item .spell-uses {
  display: none;
}
.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-usage,
.dnd5e2 .items-section .item .item-usage,
.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;
  display: none;
}
.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-light-6);
}
.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-light-6);
  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,
.dnd5e2 .items-section .items-header .spell-formula,
.dnd5e2 .items-section .item .spell-formula {
  width: 80px;
}
.dnd5e2 .items-section .items-header .item-formula,
.dnd5e2 .items-section .item .item-formula,
.dnd5e2 .items-section .items-header .spell-formula,
.dnd5e2 .items-section .item .spell-formula {
  flex-direction: column;
}
.dnd5e2 .items-section .items-header .item-formula dnd5e-icon,
.dnd5e2 .items-section .item .item-formula dnd5e-icon,
.dnd5e2 .items-section .items-header .spell-formula dnd5e-icon,
.dnd5e2 .items-section .item .spell-formula dnd5e-icon {
  font-size: var(--font-size-14);
  --icon-fill: var(--color-text-dark-5);
}
.dnd5e2 .items-section .items-header .item-formula .row,
.dnd5e2 .items-section .item .item-formula .row,
.dnd5e2 .items-section .items-header .spell-formula .row,
.dnd5e2 .items-section .item .spell-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 .spell-formula,
.dnd5e2 .items-section .item .spell-formula {
  display: none;
}
.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-dark-5);
}
.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(--color-text-light-6);
  padding: 0 38px 0 4px;
  position: relative;
}
.dnd5e2 .items-section .items-header .item-controls .item-control,
.dnd5e2 .items-section .item .item-controls .item-control {
  display: flex;
  align-items: center;
}
.dnd5e2 .items-section .items-header .item-controls .item-control.active,
.dnd5e2 .items-section .item .item-controls .item-control.active {
  color: var(--dnd5e-color-black);
}
.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(--color-text-light-0);
  align-items: center;
}
.dnd5e2 .items-section .items-header .item-description .item-summary,
.dnd5e2 .items-section .item .item-description .item-summary {
  font-size: var(--font-size-11);
  padding: 1px 8px 8px;
  background: var(--dnd5e-color-parchment);
}
.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;
}
@container (min-width: 580px) {
  .dnd5e2 .items-section .items-header .spell-uses,
  .dnd5e2 .items-section .item .spell-uses {
    display: flex;
  }
  .dnd5e2 .items-section .items-header .subtitle-uses,
  .dnd5e2 .items-section .item .subtitle-uses {
    display: none;
  }
}
@container (min-width: 600px) {
  .dnd5e2 .items-section .items-header .item-price,
  .dnd5e2 .items-section .item .item-price {
    display: flex;
  }
}
@container (min-width: 640px) {
  .dnd5e2 .items-section .items-header .spell-formula,
  .dnd5e2 .items-section .item .spell-formula {
    display: flex;
  }
}
@container (min-width: 660px) {
  .dnd5e2 .items-section .items-header .item-school,
  .dnd5e2 .items-section .item .item-school {
    display: flex;
  }
}
.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 .effect {
  display: flex;
  align-items: stretch;
}
.dnd5e2 .items-section .activities .activity-row {
  position: relative;
  border-top: 1px dotted #ddd;
  padding-left: 20px;
}
.dnd5e2 .items-section .activities .activity-row:last-child {
  border-bottom: 1px dotted #ddd;
}
.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(--color-text-light-6);
}
.dnd5e2 .effect-name .duration,
.dnd5e2.effect-tooltip .duration {
  padding: 0.25rem;
  border: 1px dashed var(--color-border-light-1);
  border-radius: 4px;
  font-family: var(--dnd5e-font-roboto-condensed);
  text-transform: uppercase;
  font-size: var(--font-size-11);
  color: var(--color-text-dark-5);
}
.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-light-6);
}
/* ---------------------------------- */
/*  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,
.dnd5e2 .currency-style button {
  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:hover,
.dnd5e2 .currency-style button:hover,
.dnd5e2 section.currency input:focus,
.dnd5e2 .currency-style input:focus,
.dnd5e2 section.currency button:focus,
.dnd5e2 .currency-style button: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,
.dnd5e2 .currency-style button {
  border-radius: 4px;
  width: 30px;
  color: var(--color-text-dark-5);
}
/* ---------------------------------- */
/*  Locked                            */
/* ---------------------------------- */
.dnd5e2 .locked .inventory-element .item :is(.item-quantity, .item-uses) input:is(:focus-visible, :hover) {
  box-shadow: none;
}
/* ---------------------------------- */
/*  Edit Mode                         */
/* ---------------------------------- */
.dnd5e2 .editable .inventory-element .middle .attunement {
  padding-right: 0;
}
.dnd5e2 .editable .inventory-element .items-section .pips {
  display: none;
}
/* ---------------------------------- */
/*  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) .distribution slide-toggle {
  --slide-toggle-track-color-unchecked: var(--dnd5e-color-olive);
  --slide-toggle-track-color-checked: var(--dnd5e-color-gold);
}
.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: pointer;
}
.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-dark-5);
}
.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 {
  width: 38px;
  height: 38px;
  border-radius: 100%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.85);
  object-fit: cover;
  object-position: top;
  border: none;
  flex: none;
  background: var(--dnd5e-color-light-gray);
}
: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-dark-primary);
}
:is(.chat-popout, #chat-log, .chat-log) .message .message-header .subtitle {
  font-size: var(--font-size-11);
  color: var(--color-text-dark-5);
}
: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-dark-5);
}
: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;
}
/* ---------------------------------- */
/*  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-dark-5);
  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: 1px solid var(--color-border-light-1);
  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-light-6);
  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-dark-5);
  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-light-6);
  font-weight: normal;
  margin-right: 2px;
}
.dice-roll {
  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;
}
/* ---------------------------------- */
/*  Chat Popouts                      */
/* ---------------------------------- */
.chat-popout {
  margin: 0;
  background: none;
  box-shadow: none;
}
.chat-popout .window-header {
  border: none;
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  padding: 7px 6px 0 0;
  background: none;
}
.chat-popout .window-header a.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);
}
.chat-popout .window-header a.header-button {
  width: 15px;
  display: inline-grid;
  place-content: center;
  color: var(--color-text-light-highlight);
  margin: 0;
}
.chat-popout .window-header a.header-button > 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 .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 .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-dark-5);
  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;
}
.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: 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 {
  cursor: inherit;
}
.chat-sidebar:not([data-gm-user]) .card-header[data-concealed] .fa-chevron-down,
.chat-sidebar: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-dark-5);
  padding: 0 0.25rem;
}
.message p.supplement > strong {
  color: var(--color-text-dark-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 */
.dnd5e2 :is(.card-tray, .effects-tray),
.dnd5e2.card-tray {
  margin-top: 0.125rem;
}
.dnd5e2 :is(.card-tray, .effects-tray).damage-tray,
.dnd5e2.card-tray.damage-tray {
  margin-block-start: 8px;
}
.dnd5e2 :is(.card-tray, .effects-tray).targets-tray,
.dnd5e2.card-tray.targets-tray {
  margin-top: 6px;
}
.dnd5e2 :is(.card-tray, .effects-tray).targets-tray:not(.collapsed) > label,
.dnd5e2.card-tray.targets-tray:not(.collapsed) > label {
  padding-bottom: 4px;
}
.dnd5e2 :is(.card-tray, .effects-tray) > label,
.dnd5e2.card-tray > label {
  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) > label > span,
.dnd5e2.card-tray > label > span {
  flex: none;
}
.dnd5e2 :is(.card-tray, .effects-tray) > label > i:first-of-type,
.dnd5e2.card-tray > label > i:first-of-type {
  color: var(--color-text-light-6);
}
.dnd5e2 :is(.card-tray, .effects-tray) > label .fa-caret-down,
.dnd5e2.card-tray > label .fa-caret-down {
  transition: all 250ms ease;
}
.dnd5e2 :is(.card-tray, .effects-tray) > label::before,
.dnd5e2.card-tray > label::before,
.dnd5e2 :is(.card-tray, .effects-tray) > label::after,
.dnd5e2.card-tray > label::after {
  content: "";
  flex-basis: 50%;
  border-top: 1px dotted var(--dnd5e-color-gold);
  align-self: center;
}
.dnd5e2 :is(.card-tray, .effects-tray) .target-source-control,
.dnd5e2.card-tray .target-source-control {
  justify-content: space-evenly;
  gap: 4px;
  margin-block-start: 1px;
}
.dnd5e2 :is(.card-tray, .effects-tray) .target-source-control:not([hidden]),
.dnd5e2.card-tray .target-source-control:not([hidden]) {
  display: flex;
}
.dnd5e2 :is(.card-tray, .effects-tray) .target-source-control button,
.dnd5e2.card-tray .target-source-control button {
  width: unset;
  font-size: var(--font-size-10);
}
.dnd5e2 :is(.card-tray, .effects-tray) .target-source-control button:hover,
.dnd5e2.card-tray .target-source-control button:hover,
.dnd5e2 :is(.card-tray, .effects-tray) .target-source-control button:focus,
.dnd5e2.card-tray .target-source-control button:focus,
.dnd5e2 :is(.card-tray, .effects-tray) .target-source-control button[aria-pressed="true"],
.dnd5e2.card-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) .effects,
.dnd5e2.card-tray .effects,
.dnd5e2 :is(.card-tray, .effects-tray) .targets,
.dnd5e2.card-tray .targets {
  display: flex;
  flex-direction: column;
}
.dnd5e2 :is(.card-tray, .effects-tray) .effects .effect,
.dnd5e2.card-tray .effects .effect,
.dnd5e2 :is(.card-tray, .effects-tray) .targets .effect,
.dnd5e2.card-tray .targets .effect,
.dnd5e2 :is(.card-tray, .effects-tray) .effects .target,
.dnd5e2.card-tray .effects .target,
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target,
.dnd5e2.card-tray .targets .target {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border-light-1);
}
.dnd5e2 :is(.card-tray, .effects-tray) .effects .effect:last-child,
.dnd5e2.card-tray .effects .effect:last-child,
.dnd5e2 :is(.card-tray, .effects-tray) .targets .effect:last-child,
.dnd5e2.card-tray .targets .effect:last-child,
.dnd5e2 :is(.card-tray, .effects-tray) .effects .target:last-child,
.dnd5e2.card-tray .effects .target:last-child,
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target:last-child,
.dnd5e2.card-tray .targets .target:last-child {
  padding: 0;
  margin: 0;
  border: none;
}
.dnd5e2 :is(.card-tray, .effects-tray) .effects .effect > img,
.dnd5e2.card-tray .effects .effect > img,
.dnd5e2 :is(.card-tray, .effects-tray) .targets .effect > img,
.dnd5e2.card-tray .targets .effect > img,
.dnd5e2 :is(.card-tray, .effects-tray) .effects .target > img,
.dnd5e2.card-tray .effects .target > img,
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target > img,
.dnd5e2.card-tray .targets .target > img {
  width: 32px;
  height: 32px;
}
.dnd5e2 :is(.card-tray, .effects-tray) .effects .effect .name-stacked,
.dnd5e2.card-tray .effects .effect .name-stacked,
.dnd5e2 :is(.card-tray, .effects-tray) .targets .effect .name-stacked,
.dnd5e2.card-tray .targets .effect .name-stacked,
.dnd5e2 :is(.card-tray, .effects-tray) .effects .target .name-stacked,
.dnd5e2.card-tray .effects .target .name-stacked,
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target .name-stacked,
.dnd5e2.card-tray .targets .target .name-stacked {
  flex: 1;
}
.dnd5e2 :is(.card-tray, .effects-tray) .effects > .none,
.dnd5e2.card-tray .effects > .none,
.dnd5e2 :is(.card-tray, .effects-tray) .targets > .none,
.dnd5e2.card-tray .targets > .none {
  text-align: center;
  margin-block: 4px;
}
.dnd5e2 :is(.card-tray, .effects-tray) .effects .effect > button,
.dnd5e2.card-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 .target,
.dnd5e2.card-tray .targets .target {
  flex-wrap: wrap;
}
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target .subtitle,
.dnd5e2.card-tray .targets .target .subtitle {
  display: flex;
  gap: 4px;
}
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target .change-source,
.dnd5e2.card-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 .target .change-source > *,
.dnd5e2.card-tray .targets .target .change-source > * {
  grid-area: overlay;
}
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target .change-source > dnd5e-icon,
.dnd5e2.card-tray .targets .target .change-source > dnd5e-icon {
  display: block;
}
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target .change-source > i,
.dnd5e2.card-tray .targets .target .change-source > i {
  color: red;
}
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target .change-source:not([aria-pressed="true"]) .fa-slash,
.dnd5e2.card-tray .targets .target .change-source:not([aria-pressed="true"]) .fa-slash {
  display: none;
}
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target .change-source:not([aria-pressed="mixed"]) .fa-arrow-turn-down,
.dnd5e2.card-tray .targets .target .change-source:not([aria-pressed="mixed"]) .fa-arrow-turn-down {
  display: none;
}
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target .change-source .fa-arrow-turn-down,
.dnd5e2.card-tray .targets .target .change-source .fa-arrow-turn-down {
  position: relative;
  left: 8px;
  top: -1px;
}
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target .calculated,
.dnd5e2.card-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 .target .calculated.healing,
.dnd5e2.card-tray .targets .target .calculated.healing {
  color: var(--dnd5e-color-application-healing);
}
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target .calculated.temp,
.dnd5e2.card-tray .targets .target .calculated.temp {
  color: var(--dnd5e-color-application-temp);
}
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target .damage-multipliers,
.dnd5e2.card-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 .target .damage-multipliers::before,
.dnd5e2.card-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 .target .damage-multipliers button,
.dnd5e2.card-tray .targets .target .damage-multipliers button {
  width: 100%;
  height: unset;
  border-radius: 3px;
  padding: 2px;
  font-size: inherit;
  line-height: unset;
  cursor: pointer;
}
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target .damage-multipliers button::after,
.dnd5e2.card-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 .target .damage-multipliers button[aria-pressed="true"],
.dnd5e2.card-tray .targets .target .damage-multipliers button[aria-pressed="true"] {
  border-color: var(--dnd5e-color-crimson);
}
.dnd5e2 :is(.card-tray, .effects-tray) .targets .target .damage-multipliers button[aria-pressed="true"]::after,
.dnd5e2.card-tray .targets .target .damage-multipliers button[aria-pressed="true"]::after {
  background-color: var(--dnd5e-color-crimson);
}
.dnd5e2 :is(.card-tray, .effects-tray) .wrapper > button,
.dnd5e2.card-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 .dnd5e2.evaluation {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
:is(.chat-popout, #chat-log, .chat-log) .message .dnd5e2.evaluation .target {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 8px;
  cursor: pointer;
}
:is(.chat-popout, #chat-log, .chat-log) .message .dnd5e2.evaluation .target > i {
  font-size: var(--font-size-14);
}
:is(.chat-popout, #chat-log, .chat-log) .message .dnd5e2.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 .dnd5e2.evaluation .target .name-stacked {
  flex: 1;
  line-height: normal;
  min-height: 24px;
}
:is(.chat-popout, #chat-log, .chat-log) .message .dnd5e2.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 .dnd5e2.evaluation .target .name-stacked .title > i {
  font-size: var(--font-size-14);
}
:is(.chat-popout, #chat-log, .chat-log) .message .dnd5e2.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 .dnd5e2.evaluation .target .ac > span {
  font-weight: bold;
  font-family: var(--font-primary);
  word-break: keep-all;
}
:is(.chat-popout, #chat-log, .chat-log) .message .dnd5e2.evaluation .target.hit > i {
  color: var(--dnd5e-color-success);
}
:is(.chat-popout, #chat-log, .chat-log) .message .dnd5e2.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 .activities ul {
  margin-block-start: 8px;
}
.dnd5e2.chat-card .activities ul li {
  --gold-icon-size: 32px;
  gap: 8px;
}
.dnd5e2.chat-card .activities ul a.rollable:hover .subtitle {
  text-shadow: none;
}
.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);
}
: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-dark-primary);
  border-radius: 5px;
  padding: 6px 8px;
  background: url("ui/texture-gray1.webp") no-repeat top left, url("ui/texture-gray2.webp") no-repeat bottom right, var(--dnd5e-color-parchment);
  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-dark-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 {
  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: 4px solid var(--dnd5e-color-gold);
  box-shadow: 0 0 4px var(--dnd5e-shadow-45);
  border-radius: 100%;
  object-fit: cover;
  background: var(--dnd5e-color-light-gray);
}
:is(#tooltip, .locked-tooltip):is(.item-tooltip, .effect-tooltip) .header .bottom {
  display: flex;
  font-size: var(--font-size-11);
  color: var(--color-text-dark-5);
}
: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-color-light-gray);
}
: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                 */
/* ---------------------------------- */
.sheet.dnd5e2-journal {
  /* Background Texture & Headings */
  /* Page Title */
  /* Edit Button */
}
.sheet.dnd5e2-journal .window-resizable-handle {
  bottom: 2px;
  right: 2px;
  padding: 0;
}
.sheet.dnd5e2-journal.journal-entry .scrollable,
.sheet.dnd5e2-journal.journal-entry-page.editor-content {
  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 {
  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 {
  border: none;
  background: var(--dnd5e-color-gold);
}
.sheet.dnd5e2-journal.journal-entry .journal-entry-content,
.sheet.dnd5e2-journal.journal-entry-page .window-content {
  background: url("ui/texture1.webp") no-repeat top center / auto 770px, var(--dnd5e-color-parchment) url("ui/texture2.webp") no-repeat bottom center / auto 704px;
}
.sheet.dnd5e2-journal.journal-entry .journal-entry-content h1,
.sheet.dnd5e2-journal.journal-entry-page .window-content h1,
.sheet.dnd5e2-journal.journal-entry .journal-entry-content h2,
.sheet.dnd5e2-journal.journal-entry-page .window-content h2,
.sheet.dnd5e2-journal.journal-entry .journal-entry-content h3,
.sheet.dnd5e2-journal.journal-entry-page .window-content h3 {
  font-family: var(--dnd5e-font-modesto);
  font-weight: bold;
  border-bottom: none;
}
.sheet.dnd5e2-journal.journal-entry .journal-entry-content h1,
.sheet.dnd5e2-journal.journal-entry-page .window-content h1 {
  font-size: 2.5em;
}
.sheet.dnd5e2-journal.journal-entry .journal-entry-content h2,
.sheet.dnd5e2-journal.journal-entry-page .window-content h2 {
  font-size: 2em;
}
.sheet.dnd5e2-journal.journal-entry .journal-entry-content h3,
.sheet.dnd5e2-journal.journal-entry-page .window-content h3 {
  font-size: 1.5em;
}
.sheet.dnd5e2-journal.journal-entry .journal-entry-content h4,
.sheet.dnd5e2-journal.journal-entry-page .window-content h4 {
  font-family: var(--dnd5e-font-roboto-slab);
  font-weight: bold;
  font-size: 1.1em;
}
.sheet.dnd5e2-journal.journal-entry .journal-header .title {
  border: 1px transparent;
  transition: all 250ms ease;
  font-size: var(--font-size-46);
  font-family: var(--dnd5e-font-modesto);
  font-weight: bold;
  letter-spacing: 1px;
}
.sheet.dnd5e2-journal.journal-entry .journal-header .title:hover,
.sheet.dnd5e2-journal.journal-entry .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 .journal-header .title:disabled {
  background: none;
  color: var(--color-text-dark-primary);
}
.sheet.dnd5e2-journal.journal-entry .edit-container .editor-edit {
  background: transparent;
  border: none;
  box-shadow: none;
}
.sheet.dnd5e2-journal.journal-entry .edit-container .editor-edit > i::before {
  content: "\f52d";
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) {
  /* Narrative Blocks */
  /* Quest Blocks */
  /* Notable Callout */
  /* NPC Stat Blocks */
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt.narrative {
  position: relative;
  margin: 1.5rem 1rem;
  padding: 1rem 1.5rem;
  background-color: var(--dnd5e-color-card);
  border-left: 1px solid var(--dnd5e-color-gold);
  border-right: 1px solid var(--dnd5e-color-gold);
  text-align: justify;
  --dot-size: 8px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt.narrative::before,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt.narrative::after,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt.narrative > p:last-of-type::before,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt.narrative > p:last-of-type::after {
  content: "";
  position: absolute;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 100%;
  background: var(--dnd5e-color-gold);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt.narrative::before,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt.narrative::after {
  top: calc(var(--dot-size) / -2);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt.narrative::before,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt.narrative > p:last-of-type::before {
  left: calc(var(--dot-size) / -2);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt.narrative::after,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt.narrative > p:last-of-type::after {
  right: calc(var(--dot-size) / -2);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt.narrative > p:last-of-type::before,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt.narrative > p:last-of-type::after {
  bottom: calc(var(--dot-size) / -2);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt:is(.quest, .advice) {
  --img-size: 64px;
  position: relative;
  background-color: var(--dnd5e-color-card);
  border: 2px solid var(--dnd5e-color-gold);
  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) .fvtt:is(.quest, .advice) article > p:last-child {
  margin-bottom: 0;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt: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) .fvtt:is(.quest, .advice) > figure img {
  border: none;
  width: 100%;
  height: 100%;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .fvtt:is(.quest, .advice) > figure img.round {
  background: var(--dnd5e-color-light-gray);
  border: 4px solid var(--dnd5e-color-gold);
  border-radius: 100%;
  box-shadow: 0 0 4px var(--dnd5e-shadow-45);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) aside.notable {
  background-color: #d8e3e3;
  margin: 30px 5px;
  padding: 20px 28px 25px 30px;
  border-width: 3px 1px;
  border-style: solid;
  border-color: #231f20 #b3b3b3;
  filter: drop-shadow(0 5px 8px var(--dnd5e-shadow-15));
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) aside.notable::before,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) aside.notable::after {
  content: "";
  background-image: url(ui/notable-right-corner.svg), url(ui/notable-left-corner.svg);
  background-position: 0, 100%;
  background-size: contain;
  background-repeat: no-repeat;
  height: 11px;
  position: absolute;
  left: 0;
  z-index: -1;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) aside.notable::before {
  top: -13px;
  right: 0;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) aside.notable::after {
  bottom: -13px;
  right: 0;
  transform: scaleY(-1);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) aside.notable p:last-of-type {
  margin-bottom: 0;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc {
  --statblock-background: rgba(235, 228, 214, 0.35);
  --statblock-ability-header-1st: #eae5d9;
  --statblock-ability-header-2nd: #d7d9d0;
  --statblock-ability-stat-1st: #dad3cb;
  --statblock-ability-stat-2nd: #cdc9c9;
  --statblock-border: #4e4c4a;
  --statblock-column-width: 400px;
  --statblock-text-header: #4f1d15;
  --statblock-text-primary: #1f1e1e;
  --statblock-text-secondary: rgba(73 72 73 / 0.75);
  max-width: var(--statblock-column-width);
  background: var(--statblock-background);
  border: 3px double var(--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.npc h4.statblock-title,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc h5.statblock-actions-title {
  border-block-end: 1px solid currentcolor;
  font-variant: small-caps;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc h4.statblock-title {
  color: color-mix(in oklab, var(--statblock-text-header) 75%, transparent);
  font-size: var(--font-size-18);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc h4.statblock-title .content-link {
  padding: 0;
  text-decoration: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc h4.statblock-title .content-link > i {
  display: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc h5.statblock-actions-title {
  margin-block-start: 8px;
  color: var(--statblock-text-header);
  font-size: var(--font-size-16);
  font-weight: normal;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-tags {
  color: var(--statblock-text-secondary);
  font-style: italic;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-content {
  display: column;
  column-width: var(--statblock-column-width);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header {
  break-inside: avoid;
  color: var(--statblock-text-header);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header dl {
  display: flex;
  flex-wrap: wrap;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header dl > div {
  flex: 1 0 100%;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header dl > div.half-width {
  flex: 1 0 50%;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header dl div > :is(dt, dd) {
  display: inline;
  line-height: 1.5;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header dl dt {
  color: var(--statblock-text-header);
  text-shadow: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities table,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities thead,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities tbody,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities tr,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities th,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities td {
  all: revert;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities table {
  border-collapse: collapse;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities thead th {
  color: var(--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.npc .statblock-header .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.npc .statblock-header .abilities tbody tr {
  border-block: 1px solid white;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities tbody tr:nth-of-type(odd) th,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities tbody tr:nth-of-type(odd) .score {
  background: var(--statblock-ability-header-1st);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities tbody tr:nth-of-type(odd) td {
  background: var(--statblock-ability-stat-1st);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities tbody tr:nth-of-type(even) th,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities tbody tr:nth-of-type(even) .score {
  background: var(--statblock-ability-header-2nd);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities tbody tr:nth-of-type(even) td {
  background: var(--statblock-ability-stat-2nd);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities tbody th {
  font-variant: small-caps;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-header .abilities tbody td {
  text-align: center;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-actions {
  color: var(--statblock-text-primary);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-actions > p {
  font-style: italic;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-actions .statblock-action > p:first-child > .name {
  font-style: italic;
  font-weight: bold;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-actions .statblock-action > p:first-child > .name::after {
  content: ". ";
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-actions .statblock-action a,
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-actions .statblock-action button {
  display: contents;
  cursor: inherit;
  pointer-events: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-actions .statblock-action a :is(.fas, .fa-solid, .far, .fa-regular),
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .statblock.npc .statblock-actions .statblock-action button :is(.fas, .fa-solid, .far, .fa-regular) {
  display: none;
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .double-column .statblock {
  max-width: calc(var(--statblock-column-width) * 2);
}
:is(.dnd5e, .dnd5e2, .dnd5e2-journal) .double-column .statblock .statblock-content {
  columns: 2;
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content,
:is(.dnd5e2, .dnd5e2-journal) .editor-content {
  font-family: var(--dnd5e-font-roboto-condensed);
  /* Content Links & Enrichers */
  /* Embed Captions */
  /* Embedded Roll Tables */
  /* Tables */
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content h3,
:is(.dnd5e2, .dnd5e2-journal) .editor-content h3 {
  padding-bottom: 0;
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content .passive-check,
:is(.dnd5e2, .dnd5e2-journal) .editor-content .passive-check {
  text-decoration-color: currentcolor;
  text-decoration-style: dashed;
  text-underline-offset: 2px;
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content .content-embed figcaption cite,
:is(.dnd5e2, .dnd5e2-journal) .editor-content .content-embed figcaption cite {
  display: block;
  text-align: right;
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content .content-embed figcaption cite::before,
:is(.dnd5e2, .dnd5e2-journal) .editor-content .content-embed figcaption cite::before {
  content: "-";
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content figure.content-embed.caption-top,
:is(.dnd5e2, .dnd5e2-journal) .editor-content figure.content-embed.caption-top {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 0 2rem 0;
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content figure.content-embed.caption-top table,
:is(.dnd5e2, .dnd5e2-journal) .editor-content figure.content-embed.caption-top table,
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content figure.content-embed.caption-top img,
:is(.dnd5e2, .dnd5e2-journal) .editor-content figure.content-embed.caption-top img {
  order: 2;
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content figure.content-embed.caption-top cite,
:is(.dnd5e2, .dnd5e2-journal) .editor-content figure.content-embed.caption-top cite {
  position: absolute;
  inset: 100% 0 auto auto;
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content figure.content-embed.caption-top .embed-caption,
:is(.dnd5e2, .dnd5e2-journal) .editor-content figure.content-embed.caption-top .embed-caption {
  font-weight: normal;
  text-align: left;
  font-style: italic;
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content table,
:is(.dnd5e2, .dnd5e2-journal) .editor-content table {
  background: var(--dnd5e-color-card);
  border-color: var(--dnd5e-color-gold);
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content table caption,
:is(.dnd5e2, .dnd5e2-journal) .editor-content table caption {
  margin-block-end: 2px;
  font-family: var(--dnd5e-font-roboto-slab);
  font-variant: small-caps;
  font-weight: bold;
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content table thead,
:is(.dnd5e2, .dnd5e2-journal) .editor-content table thead {
  background: linear-gradient(to right, var(--dnd5e-color-hd-1), var(--dnd5e-color-hd-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-gold);
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content table thead tr:nth-child(n),
:is(.dnd5e2, .dnd5e2-journal) .editor-content table thead tr:nth-child(n) {
  background: unset;
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content table thead td,
:is(.dnd5e2, .dnd5e2-journal) .editor-content table thead td {
  word-break: normal;
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content table thead th,
:is(.dnd5e2, .dnd5e2-journal) .editor-content table thead th {
  line-height: normal;
  font-size: var(--font-size-14);
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content table tr:nth-child(even),
:is(.dnd5e2, .dnd5e2-journal) .editor-content table tr:nth-child(even) {
  background-color: var(--dnd5e-color-table-row-even);
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content table tr:nth-child(odd),
:is(.dnd5e2, .dnd5e2-journal) .editor-content table tr:nth-child(odd) {
  background-color: var(--dnd5e-color-table-row-odd);
}
:is(.dnd5e2, .dnd5e2-journal) .journal-page-content table td,
:is(.dnd5e2, .dnd5e2-journal) .editor-content table td {
  padding: 0.375rem;
}
:is(.dnd5e2, .dnd5e2-journal) a:is(.content-link, .inline-roll),
:is(.dnd5e2, .dnd5e2-journal) a.roll-link-group .roll-link,
:is(.dnd5e2, .dnd5e2-journal) a.roll-link-group.roll-link,
:is(.dnd5e2, .dnd5e2-journal) :is(.roll-link-group, .reference-link) a {
  --content-link-text-color: var(--color-text-dark-primary);
  background: transparent;
  border: none;
  text-decoration: underline currentcolor;
  text-underline-offset: 2px;
}
:is(.dnd5e2, .dnd5e2-journal) a:is(.content-link, .inline-roll) > i,
:is(.dnd5e2, .dnd5e2-journal) a.roll-link-group .roll-link > i,
:is(.dnd5e2, .dnd5e2-journal) a.roll-link-group.roll-link > i,
:is(.dnd5e2, .dnd5e2-journal) :is(.roll-link-group, .reference-link) a > i {
  color: var(--color-text-dark-primary);
  opacity: 0.75;
  transition: opacity 250ms ease;
  margin-right: 0.25em;
}
:is(.dnd5e2, .dnd5e2-journal) a:is(.content-link, .inline-roll).broken,
:is(.dnd5e2, .dnd5e2-journal) a.roll-link-group .roll-link.broken,
:is(.dnd5e2, .dnd5e2-journal) a.roll-link-group.roll-link.broken,
:is(.dnd5e2, .dnd5e2-journal) :is(.roll-link-group, .reference-link) a.broken {
  color: var(--dnd5e-color-maroon);
  cursor: not-allowed;
}
:is(.dnd5e2, .dnd5e2-journal) a:is(.content-link, .inline-roll).broken > i,
:is(.dnd5e2, .dnd5e2-journal) a.roll-link-group .roll-link.broken > i,
:is(.dnd5e2, .dnd5e2-journal) a.roll-link-group.roll-link.broken > i,
:is(.dnd5e2, .dnd5e2-journal) :is(.roll-link-group, .reference-link) a.broken > i {
  color: currentcolor;
}
:is(.dnd5e2, .dnd5e2-journal) a:is(.content-link, .inline-roll):hover,
:is(.dnd5e2, .dnd5e2-journal) a.roll-link-group .roll-link:hover,
:is(.dnd5e2, .dnd5e2-journal) a.roll-link-group.roll-link:hover,
:is(.dnd5e2, .dnd5e2-journal) :is(.roll-link-group, .reference-link) a:hover {
  text-shadow: none;
}
:is(.dnd5e2, .dnd5e2-journal) a:is(.content-link, .inline-roll):hover > i,
:is(.dnd5e2, .dnd5e2-journal) a.roll-link-group .roll-link:hover > i,
:is(.dnd5e2, .dnd5e2-journal) a.roll-link-group.roll-link:hover > i,
:is(.dnd5e2, .dnd5e2-journal) :is(.roll-link-group, .reference-link) a:hover > i {
  opacity: 1;
}
:is(.dnd5e2, .dnd5e2-journal) a:is(.content-link, .inline-roll):focus-visible,
:is(.dnd5e2, .dnd5e2-journal) a.roll-link-group .roll-link:focus-visible,
:is(.dnd5e2, .dnd5e2-journal) a.roll-link-group.roll-link:focus-visible,
:is(.dnd5e2, .dnd5e2-journal) :is(.roll-link-group, .reference-link) a:focus-visible {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
:is(.dnd5e2, .dnd5e2-journal) a.roll-link-group:hover {
  text-shadow: none;
}
:is(.dnd5e2, .dnd5e2-journal) a.enricher-action {
  text-decoration: none;
}
:is(.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-light-6);
}
:is(.dnd5e2, .dnd5e2-journal) .roll-link > i.fa-dice-d20,
:is(.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;
}
:is(.dnd5e2, .dnd5e2-journal) .roll-link > i.fa-dice-d20::before,
:is(.dnd5e2, .dnd5e2-journal) a.inline-roll > i.fa-dice-d20::before {
  content: unset;
}
:is(.dnd5e2, .dnd5e2-journal) .prosemirror menu {
  --color-hover-bg: var(--dnd5e-background-card);
}
: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 {
  display: unset;
  text-transform: unset;
  box-shadow: none;
  font-family: var(--font-primary);
  font-size: var(--font-size-14);
  font-weight: normal;
  height: var(--menu-height);
  line-height: var(--menu-height);
  background: transparent;
  border: none;
  padding: 0 5px;
  margin: 0;
}
: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);
}
/* ----------------------------------------- */
/*  Journal Pages                            */
/* ----------------------------------------- */
.dnd5e2.journal-editor .window-content {
  padding: 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;
}
/* Dark Mode */
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2,
.dnd5e2.dnd5e-theme-dark {
  /* ---------------------------------- */
  /*  Configuration Sheets              */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Roll Configuration Dialog         */
  /* ---------------------------------- */
  /* ---------------------------------- */
  /*  Traits Config Sheet               */
  /* ---------------------------------- */
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet,
.dnd5e2.dnd5e-theme-dark.sheet,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application,
.dnd5e2.dnd5e-theme-dark.application {
  /* TODO: Move these out once dark themes have been ported to all apps, not just the character sheet. */
  --color-text-dark-primary: var(--dnd5e-color-blue-white);
  --color-text-dark-secondary: var(--color-text-light-6);
  --color-text-dark-5: var(--color-text-light-6);
  --dnd5e-border-dotted: 1px dotted var(--dnd5e-color-blue-gray-3);
  --dnd5e-border-dark: 1px solid var(--dnd5e-color-blue-gray-3);
  --color-border-light-1: var(--dnd5e-color-blue-gray-1);
  --color-border-light-tertiary: var(--color-border-light-2);
  --dnd5e-color-light-gray: var(--dnd5e-color-dark-gray);
  --dnd5e-color-iron-gray: var(--dnd5e-color-blue-gray-2);
  --dnd5e-background-card: var(--dnd5e-color-blue-gray-2);
  --dnd5e-background-parchment: var(--dnd5e-color-blue-gray-2);
  --dnd5e-border-gold: 1px solid var(--dnd5e-color-blue-gray-1);
  --filigree-background-color: var(--dnd5e-color-blue-gray-2);
  --filigree-border-color: var(--dnd5e-color-blue-gray-3);
  --dnd5e-background-5: var(--dnd5e-highlight-10);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .window-content,
.dnd5e2.dnd5e-theme-dark.sheet .window-content,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .window-content,
.dnd5e2.dnd5e-theme-dark.application .window-content {
  background: var(--dnd5e-color-dark-gray) url("../../ui/denim075.png");
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .window-resizable-handle,
.dnd5e2.dnd5e-theme-dark.sheet .window-resizable-handle,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .window-resizable-handle,
.dnd5e2.dnd5e-theme-dark.application .window-resizable-handle {
  filter: invert(1);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .card .header,
.dnd5e2.dnd5e-theme-dark.sheet .card .header,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .card .header,
.dnd5e2.dnd5e-theme-dark.application .card .header {
  background: linear-gradient(to right, #491d25, #311b1f);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .card .header.disabled,
.dnd5e2.dnd5e-theme-dark.sheet .card .header.disabled,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .card .header.disabled,
.dnd5e2.dnd5e-theme-dark.application .card .header.disabled {
  background: linear-gradient(to right, var(--color-border-dark-4), var(--color-border-dark-3));
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet filigree-box > h3 > span,
.dnd5e2.dnd5e-theme-dark.sheet filigree-box > h3 > span,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application filigree-box > h3 > span,
.dnd5e2.dnd5e-theme-dark.application filigree-box > h3 > span {
  color: var(--dnd5e-color-gold);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet h3.icon,
.dnd5e2.dnd5e-theme-dark.sheet h3.icon,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application h3.icon,
.dnd5e2.dnd5e-theme-dark.application h3.icon {
  color: var(--color-text-light-6);
  border-color: var(--color-border-light-2);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet h3.icon dnd5e-icon,
.dnd5e2.dnd5e-theme-dark.sheet h3.icon dnd5e-icon,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application h3.icon dnd5e-icon,
.dnd5e2.dnd5e-theme-dark.application h3.icon dnd5e-icon {
  --icon-fill: var(--color-text-light-6);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .pills .pill,
.dnd5e2.dnd5e-theme-dark.sheet .pills .pill,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .pills .pill,
.dnd5e2.dnd5e-theme-dark.application .pills .pill {
  border-color: var(--dnd5e-color-blue-gray-3);
  background-color: var(--dnd5e-color-blue-gray-2);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .pills .pill.green,
.dnd5e2.dnd5e-theme-dark.sheet .pills .pill.green,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .pills .pill.green,
.dnd5e2.dnd5e-theme-dark.application .pills .pill.green {
  background-color: color-mix(in srgb, var(--dnd5e-color-green), transparent 25%);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .pills .pill.maroon,
.dnd5e2.dnd5e-theme-dark.sheet .pills .pill.maroon,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .pills .pill.maroon,
.dnd5e2.dnd5e-theme-dark.application .pills .pill.maroon {
  background-color: color-mix(in srgb, var(--dnd5e-color-maroon), transparent 25%);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .pills .pill.green,
.dnd5e2.dnd5e-theme-dark.sheet .pills .pill.green,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .pills .pill.green,
.dnd5e2.dnd5e-theme-dark.application .pills .pill.green,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .pills .pill.maroon,
.dnd5e2.dnd5e-theme-dark.sheet .pills .pill.maroon,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .pills .pill.maroon,
.dnd5e2.dnd5e-theme-dark.application .pills .pill.maroon {
  border-color: var(--dnd5e-color-blue-gray-1);
  color: var(--dnd5e-color-blue-white);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .pills .pill.transparent,
.dnd5e2.dnd5e-theme-dark.sheet .pills .pill.transparent,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .pills .pill.transparent,
.dnd5e2.dnd5e-theme-dark.application .pills .pill.transparent,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .pills .pill.pill-sm,
.dnd5e2.dnd5e-theme-dark.sheet .pills .pill.pill-sm,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .pills .pill.pill-sm,
.dnd5e2.dnd5e-theme-dark.application .pills .pill.pill-sm {
  color: var(--color-text-dark-primary);
  border-style: solid;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .pill-lg.empty,
.dnd5e2.dnd5e-theme-dark.sheet .pill-lg.empty,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .pill-lg.empty,
.dnd5e2.dnd5e-theme-dark.application .pill-lg.empty {
  border-color: white;
  color: white;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .pill-lg::before,
.dnd5e2.dnd5e-theme-dark.sheet .pill-lg::before,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .pill-lg::before,
.dnd5e2.dnd5e-theme-dark.application .pill-lg::before {
  mix-blend-mode: soft-light;
  opacity: 0.15;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .secret .reveal,
.dnd5e2.dnd5e-theme-dark.sheet .secret .reveal,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .secret .reveal,
.dnd5e2.dnd5e-theme-dark.application .secret .reveal {
  border-color: var(--dnd5e-color-blue-white);
  color: var(--color-text-light-3);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .prosemirror menu,
.dnd5e2.dnd5e-theme-dark.sheet .prosemirror menu,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .prosemirror menu,
.dnd5e2.dnd5e-theme-dark.application .prosemirror menu {
  --color-hover-bg: var(--dnd5e-color-blue-gray-3);
  --color-control-bg: var(--dnd5e-color-blue-gray-2);
  background: var(--dnd5e-color-blue-gray-2);
  color: var(--color-text-light-6);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .prosemirror menu button,
.dnd5e2.dnd5e-theme-dark.sheet .prosemirror menu button,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .prosemirror menu button,
.dnd5e2.dnd5e-theme-dark.application .prosemirror menu button {
  color: inherit;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .prosemirror menu button.active,
.dnd5e2.dnd5e-theme-dark.sheet .prosemirror menu button.active,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .prosemirror menu button.active,
.dnd5e2.dnd5e-theme-dark.application .prosemirror menu button.active {
  color: var(--dnd5e-color-gold);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .prosemirror menu .pm-dropdown ul,
.dnd5e2.dnd5e-theme-dark.sheet .prosemirror menu .pm-dropdown ul,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .prosemirror menu .pm-dropdown ul,
.dnd5e2.dnd5e-theme-dark.application .prosemirror menu .pm-dropdown ul {
  color: var(--dnd5e-color-blue-white);
  border-color: var(--dnd5e-color-blue-gray-1);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .prosemirror menu .pm-dropdown ul li.divider,
.dnd5e2.dnd5e-theme-dark.sheet .prosemirror menu .pm-dropdown ul li.divider,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .prosemirror menu .pm-dropdown ul li.divider,
.dnd5e2.dnd5e-theme-dark.application .prosemirror menu .pm-dropdown ul li.divider {
  border-color: var(--dnd5e-color-blue-gray-3);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet .prosemirror.editing-source textarea,
.dnd5e2.dnd5e-theme-dark.sheet .prosemirror.editing-source textarea,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application .prosemirror.editing-source textarea,
.dnd5e2.dnd5e-theme-dark.application .prosemirror.editing-source textarea {
  color: var(--color-text-dark-primary);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application,
.dnd5e2.dnd5e-theme-dark.application {
  background: var(--dnd5e-color-dark-gray) url("../../ui/denim075.png");
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.application.roll-configuration .rolls .formulas .label,
.dnd5e2.dnd5e-theme-dark.application.roll-configuration .rolls .formulas .label {
  --icon-fill: var(--dnd5e-color-gold);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.damages-config.trait-selector .traits .trait-list li dnd5e-icon,
.dnd5e2.dnd5e-theme-dark.damages-config.trait-selector .traits .trait-list li dnd5e-icon,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.damages-config.trait-selector .traits .trait-list li i,
.dnd5e2.dnd5e-theme-dark.damages-config.trait-selector .traits .trait-list li i {
  --icon-fill: var(--dnd5e-color-gold);
  color: var(--dnd5e-color-gold);
}
/* ---------------------------------- */
/*  Context Menus                     */
/* ---------------------------------- */
#context-menu.dnd5e2:is(.dnd5e-theme-dark, .theme-dark) {
  /* TODO: These will be handled by the general app dark mode styles once they are no longer scoped to .sheet */
  --color-text-dark-primary: var(--dnd5e-color-blue-white);
  --dnd5e-background-card: var(--dnd5e-color-blue-gray-2);
  --color-text-dark-5: var(--color-text-light-6);
  --color-border-light-1: var(--dnd5e-color-blue-gray-3);
}
#context-menu.dnd5e2:is(.dnd5e-theme-dark, .theme-dark) .context-item:hover {
  background-color: var(--dnd5e-color-blue-gray-3);
}
/* ---------------------------------- */
/*  ProseMirror                       */
/* ---------------------------------- */
#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);
}
/* ---------------------------------- */
/*  Custom Elements                   */
/* ---------------------------------- */
:is(.dnd5e-theme-dark, .theme-dark) item-list-controls search .filter-list {
  border: 1px solid var(--dnd5e-color-blue-gray-1);
}
:is(.dnd5e-theme-dark, .theme-dark) item-list-controls search .filter-list > li:hover {
  background: var(--dnd5e-color-blue-gray-3);
}
:is(.dnd5e-theme-dark, .theme-dark) item-list-controls search .filter-list .filter-item {
  color: var(--dnd5e-color-blue-white);
  border-color: var(--dnd5e-color-blue-gray-3);
}
:is(.dnd5e-theme-dark, .theme-dark) item-list-controls search .filter-control {
  color: var(--dnd5e-color-blue-gray-3);
}
:is(.dnd5e-theme-dark, .theme-dark) item-list-controls search .filter-control.active {
  color: var(--dnd5e-color-gold);
}
.theme-dark .dnd5e2:not(.chat-card, .create-document),
.dnd5e2.dnd5e-theme-dark {
  --color-fieldset-border: var(--dnd5e-color-blue-gray-3);
}
.theme-dark .dnd5e2:not(.chat-card, .create-document) fieldset,
.dnd5e2.dnd5e-theme-dark fieldset {
  --color-fieldset-border: var(--dnd5e-color-blue-gray-3);
}
.theme-dark .dnd5e2:not(.chat-card, .create-document) fieldset > legend,
.dnd5e2.dnd5e-theme-dark fieldset > legend {
  color: var(--dnd5e-color-gold);
}
.theme-dark .dnd5e2:not(.chat-card, .create-document) .form-group.card,
.dnd5e2.dnd5e-theme-dark .form-group.card {
  background: var(--dnd5e-background-10);
  border-color: var(--color-fieldset-border);
}
.theme-dark .dnd5e2:not(.chat-card, .create-document) .form-group.label-top > label > p.hint::before,
.dnd5e2.dnd5e-theme-dark .form-group.label-top > label > p.hint::before {
  color: var(--dnd5e-color-gold);
}
.theme-dark .dnd5e2:not(.chat-card, .create-document) select,
.dnd5e2.dnd5e-theme-dark select,
.theme-dark .dnd5e2:not(.chat-card, .create-document) input:not([type="range"]),
.dnd5e2.dnd5e-theme-dark input:not([type="range"]) {
  --input-background-color: var(--dnd5e-background-parchment);
  border: var(--dnd5e-border-gold);
}
.theme-dark .dnd5e2:not(.chat-card, .create-document) fieldset.card select,
.dnd5e2.dnd5e-theme-dark fieldset.card select,
.theme-dark .dnd5e2:not(.chat-card, .create-document) fieldset.card input:not([type="range"]),
.dnd5e2.dnd5e-theme-dark fieldset.card input:not([type="range"]) {
  --input-background-color: var(--dnd5e-background-25);
}
.theme-dark .dnd5e2:not(.chat-card, .create-document) :is(input, select):not([type="range"]):disabled,
.dnd5e2.dnd5e-theme-dark :is(input, select):not([type="range"]):disabled {
  background: var(--dnd5e-color-dark-gray);
}
.theme-dark .dnd5e2:not(.chat-card, .create-document) dnd5e-checkbox[disabled]:not([checked]),
.dnd5e2.dnd5e-theme-dark dnd5e-checkbox[disabled]:not([checked]) {
  --checkbox-border-color: var(--dnd5e-color-blue-gray-3);
  --checkbox-empty-color: var(--dnd5e-color-blue-gray-3);
}
.theme-dark .dnd5e2:not(.chat-card, .create-document) button:not(.pip),
.dnd5e2.dnd5e-theme-dark button:not(.pip) {
  border-color: var(--dnd5e-color-blue-gray-1);
}
.theme-dark .dnd5e2:not(.chat-card, .create-document) button:not(.pip):hover,
.dnd5e2.dnd5e-theme-dark button:not(.pip):hover {
  border-color: var(--dnd5e-color-blue-gray-1);
}
.theme-dark .dnd5e2:not(.chat-card, .create-document) .control-button,
.dnd5e2.dnd5e-theme-dark .control-button {
  color: var(--dnd5e-color-gold);
}
.theme-dark .dnd5e2.sheet.activity .separated-list > li {
  background: var(--dnd5e-background-10);
  border-color: var(--color-fieldset-border);
}
.theme-dark .dnd5e2.sheet.activity.summon-activity .separated-list :is(.drop-area, .content-link) {
  border-color: var(--dnd5e-color-blue-gray-3);
}
/* ----------------------------------------- */
/*  Usage Dialog                             */
/* ----------------------------------------- */
.theme-dark .activity-usage .hint code {
  color: var(--dnd5e-color-beige);
}
/* ---------------------------------- */
/*  Choice Dialog                     */
/* ---------------------------------- */
.theme-dark .activity-choice button {
  --icon-fill: var(--dnd5e-color-gold);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor .ability-score .label,
.dnd5e2.sheet.actor.dnd5e-theme-dark .ability-score .label {
  font-weight: bold;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor .ability-score .mod,
.dnd5e2.sheet.actor.dnd5e-theme-dark .ability-score .mod {
  --dnd5e-color-black: var(--dnd5e-color-blue-white);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor .textbox textarea,
.dnd5e2.sheet.actor.dnd5e-theme-dark .textbox textarea {
  color: var(--dnd5e-color-blue-white);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor .effects-element .conditions-list .condition.content-link,
.dnd5e2.sheet.actor.dnd5e-theme-dark .effects-element .conditions-list .condition.content-link {
  background: unset;
  border-color: var(--dnd5e-color-blue-gray-3);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor .effects-element .conditions-list .condition.content-link:hover,
.dnd5e2.sheet.actor.dnd5e-theme-dark .effects-element .conditions-list .condition.content-link:hover {
  background: var(--dnd5e-color-blue-gray-3);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor dialog.warnings:is(#tooltip, .locked-tooltip),
.dnd5e2.sheet.actor.dnd5e-theme-dark dialog.warnings:is(#tooltip, .locked-tooltip) {
  background: var(--dnd5e-color-dark-gray) url("../../ui/denim075.png");
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor dialog.warnings:is(#tooltip, .locked-tooltip) li,
.dnd5e2.sheet.actor.dnd5e-theme-dark dialog.warnings:is(#tooltip, .locked-tooltip) li {
  border-color: var(--dnd5e-color-blue-gray-3);
}
.theme-dark .dnd5e2.sheet.item .window-content::before,
.dnd5e2.sheet.item.dnd5e-theme-dark .window-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto  0;
  height: 150px;
  border-radius: 5px 5px 0 0;
  opacity: 0.2;
  background: url("ui/official/banner-item-dark.webp") no-repeat top center / cover;
  mask-image: linear-gradient(to bottom, black, transparent);
}
.theme-dark .dnd5e2.sheet.item .window-content > form,
.dnd5e2.sheet.item.dnd5e-theme-dark .window-content > form {
  position: relative;
}
.theme-dark .dnd5e2.sheet.item .window-header slide-toggle,
.dnd5e2.sheet.item.dnd5e-theme-dark .window-header slide-toggle {
  --slide-toggle-track-color-unchecked: var(--dnd5e-color-iron-gray);
}
.theme-dark .dnd5e2.sheet.item .window-header .state-toggle.active,
.dnd5e2.sheet.item.dnd5e-theme-dark .window-header .state-toggle.active {
  color: var(--dnd5e-color-gold);
}
.theme-dark .dnd5e2.sheet.item .sheet-body .item-descriptions .description .header button,
.dnd5e2.sheet.item.dnd5e-theme-dark .sheet-body .item-descriptions .description .header button {
  color: var(--color-text-dark-5);
}
.theme-dark .dnd5e2.sheet.item .sheet-body .tab.advancement .svg .item-image,
.dnd5e2.sheet.item.dnd5e-theme-dark .sheet-body .tab.advancement .svg .item-image {
  /* Converts black to gold */
  filter: invert(64%) sepia(14%) saturate(563%) hue-rotate(3deg) brightness(89%) contrast(90%);
}
.theme-dark .dnd5e2.sheet.item .sheet-body .tab.advancement .item-name .summary .content-link,
.dnd5e2.sheet.item.dnd5e-theme-dark .sheet-body .tab.advancement .item-name .summary .content-link {
  color: var(--color-text-dark-5);
}
.theme-dark .dnd5e2.sheet.item .sheet-body .tab.advancement .item-name .summary .content-link > i,
.dnd5e2.sheet.item.dnd5e-theme-dark .sheet-body .tab.advancement .item-name .summary .content-link > i {
  color: var(--color-text-dark-5);
}
.theme-dark .dnd5e2.sheet.item .sheet-body .activities .activity > .icon.svg,
.dnd5e2.sheet.item.dnd5e-theme-dark .sheet-body .activities .activity > .icon.svg {
  --icon-fill: var(--dnd5e-color-gold);
}
.theme-dark .dnd5e2.starting-equipment,
.dnd5e2.starting-equipment.theme-dark {
  --background-depth-1: transparent;
  --background-depth-2: var(--dnd5e-background-10);
  --background-depth-3: var(--dnd5e-background-25);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character:not(.minimized),
.dnd5e2.sheet.actor.character.dnd5e-theme-dark:not(.minimized) {
  background: none;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .window-content::before,
.dnd5e2.sheet.actor.character.dnd5e-theme-dark .window-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 300px;
  border-radius: 5px 5px 0 0;
  opacity: 0.5;
  background: url("ui/official/banner-character-dark.webp") no-repeat top center / cover;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
  mask-image: linear-gradient(to bottom, black, transparent);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .sheet-header,
.dnd5e2.sheet.actor.character.dnd5e-theme-dark .sheet-header {
  background: none;
  position: relative;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .sheet-body,
.dnd5e2.sheet.actor.character.dnd5e-theme-dark .sheet-body {
  background: none;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .sheet-body .skills .ability,
.dnd5e2.sheet.actor.character.dnd5e-theme-dark .sheet-body .skills .ability,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .sheet-body .tools .ability,
.dnd5e2.sheet.actor.character.dnd5e-theme-dark .sheet-body .tools .ability,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .sheet-body .saves .ability,
.dnd5e2.sheet.actor.character.dnd5e-theme-dark .sheet-body .saves .ability {
  color: var(--dnd5e-color-gold);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .sheet-body .sidebar .favorites > ul .drop,
.dnd5e2.sheet.actor.character.dnd5e-theme-dark .sheet-body .sidebar .favorites > ul .drop {
  color: white;
  border-color: white;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .sheet-body .pill-lg .name .title,
.dnd5e2.sheet.actor.character.dnd5e-theme-dark .sheet-body .pill-lg .name .title {
  color: var(--dnd5e-color-gold);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .sheet-body .pill-lg.texture,
.dnd5e2.sheet.actor.character.dnd5e-theme-dark .sheet-body .pill-lg.texture {
  border: 1px solid var(--dnd5e-color-blue-gray-1);
  --background-color: var(--dnd5e-color-blue-gray-2);
  background-blend-mode: soft-light;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .sheet-body .pill-lg.texture::before,
.dnd5e2.sheet.actor.character.dnd5e-theme-dark .sheet-body .pill-lg.texture::before {
  opacity: unset;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .sheet-body .pills-group.empty > h3 > a,
.dnd5e2.sheet.actor.character.dnd5e-theme-dark .sheet-body .pills-group.empty > h3 > a {
  color: var(--color-text-light-0);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .sheet-body .facility .slot,
.dnd5e2.sheet.actor.character.dnd5e-theme-dark .sheet-body .facility .slot {
  border-color: var(--dnd5e-color-blue-gray-3);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .sheet-body .facility .order-slot.empty::before,
.dnd5e2.sheet.actor.character.dnd5e-theme-dark .sheet-body .facility .order-slot.empty::before {
  filter: unset;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .ability-score::before,
.dnd5e2.sheet.actor.character.dnd5e-theme-dark .ability-score::before {
  background-image: url("ui/ability-score-tab-dark.svg");
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.character .ability-score .score > input,
.dnd5e2.sheet.actor.character.dnd5e-theme-dark .ability-score .score > input {
  background: var(--dnd5e-color-black);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.npc .window-content,
.dnd5e2.sheet.actor.npc.dnd5e-theme-dark .window-content {
  background: var(--dnd5e-color-dark-gray) url("../../ui/denim075.png");
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.npc .window-content::before,
.dnd5e2.sheet.actor.npc.dnd5e-theme-dark .window-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 300px;
  border-radius: 5px 5px 0 0;
  opacity: 0.2;
  background: url("ui/official/banner-npc-dark.webp") no-repeat top center / cover;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
  mask-image: linear-gradient(to bottom, black, transparent);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.npc .window-content > form,
.dnd5e2.sheet.actor.npc.dnd5e-theme-dark .window-content > form {
  position: relative;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.npc .window-content form.editable .sheet-header .document-name,
.dnd5e2.sheet.actor.npc.dnd5e-theme-dark .window-content form.editable .sheet-header .document-name,
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.npc .window-content form.editable .sheet-header .labels :is(.creature-size select, .creature-type a, .creature-alignment input),
.dnd5e2.sheet.actor.npc.dnd5e-theme-dark .window-content form.editable .sheet-header .labels :is(.creature-size select, .creature-type a, .creature-alignment input),
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.npc .window-content form.editable .sheet-header > .left label.slide-toggle,
.dnd5e2.sheet.actor.npc.dnd5e-theme-dark .window-content form.editable .sheet-header > .left label.slide-toggle {
  background: rgba(0, 0, 0, 0.45);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.npc .window-header slide-toggle,
.dnd5e2.sheet.actor.npc.dnd5e-theme-dark .window-header slide-toggle {
  --slide-toggle-track-color-unchecked: var(--dnd5e-color-iron-gray);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.npc .sheet-header .legendary .lair slide-toggle,
.dnd5e2.sheet.actor.npc.dnd5e-theme-dark .sheet-header .legendary .lair slide-toggle {
  --slide-toggle-track-color-unchecked: var(--dnd5e-color-iron-gray);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.npc form.editable .sheet-header .cr-badge input,
.dnd5e2.sheet.actor.npc.dnd5e-theme-dark form.editable .sheet-header .cr-badge input {
  background: unset;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.npc label.slide-toggle .fa-toggle-on,
.dnd5e2.sheet.actor.npc.dnd5e-theme-dark label.slide-toggle .fa-toggle-on {
  color: var(--dnd5e-color-gold);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.npc .ability-score,
.dnd5e2.sheet.actor.npc.dnd5e-theme-dark .ability-score {
  --color-border-light-1: var(--dnd5e-color-blue-gray-3);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2.sheet.actor.npc .ability-score > img,
.dnd5e2.sheet.actor.npc.dnd5e-theme-dark .ability-score > img {
  filter: invert(1);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .items-section,
.dnd5e2.dnd5e-theme-dark .items-section {
  border: none;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .items-section .item .item-name .tags,
.dnd5e2.dnd5e-theme-dark .items-section .item .item-name .tags {
  --icon-fill: var(--color-text-light-6);
  opacity: unset;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .items-section .item .item-controls .item-control,
.dnd5e2.dnd5e-theme-dark .items-section .item .item-controls .item-control {
  color: var(--dnd5e-color-blue-gray-3);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .items-section .item .item-controls .item-control.interface-only,
.dnd5e2.dnd5e-theme-dark .items-section .item .item-controls .item-control.interface-only {
  color: var(--color-text-light-6);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .items-section .item .item-controls .item-control.active,
.dnd5e2.dnd5e-theme-dark .items-section .item .item-controls .item-control.active {
  color: var(--dnd5e-color-gold);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .items-section .item .item-summary,
.dnd5e2.dnd5e-theme-dark .items-section .item .item-summary {
  background: transparent;
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .items-section .item-controls .info-control,
.dnd5e2.dnd5e-theme-dark .items-section .item-controls .info-control {
  color: var(--dnd5e-color-gold);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .items-section .activities .activity-row,
.dnd5e2.dnd5e-theme-dark .items-section .activities .activity-row {
  border-color: var(--dnd5e-color-blue-gray-4);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .items-section .activities .activity-row:last-child,
.dnd5e2.dnd5e-theme-dark .items-section .activities .activity-row:last-child {
  border-color: var(--dnd5e-color-blue-gray-4);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .items-section .activities .activity-row .activity-image,
.dnd5e2.dnd5e-theme-dark .items-section .activities .activity-row .activity-image {
  --icon-fill: var(--dnd5e-color-gold);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .items-section .activities .activity-row::before,
.dnd5e2.dnd5e-theme-dark .items-section .activities .activity-row::before {
  color: var(--dnd5e-color-blue-gray-3);
}
:is(.dnd5e-theme-dark, .theme-dark) .dnd5e2 .editable .items-section .item-controls .item-control,
.dnd5e2.dnd5e-theme-dark .editable .items-section .item-controls .item-control {
  color: var(--color-text-light-6);
}
.theme-dark .dnd5e2.compendium-browser {
  --color-text-primary: var(--dnd5e-color-blue-white);
}
.theme-dark .dnd5e2.compendium-browser .window-content {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.theme-dark .dnd5e2.compendium-browser .window-content .mode-toggle slide-toggle {
  --slide-toggle-track-color-unchecked: var(--dnd5e-color-iron-gray);
}
.theme-dark .dnd5e2.compendium-browser .window-content .filter-header label > span {
  color: var(--color-text-dark-5);
}
.theme-dark .dnd5e2.compendium-browser .window-content .filter-range label {
  color: var(--color-text-dark-5);
}
.theme-dark .dnd5e2.compendium-browser .window-content .filter-range input {
  border: var(--dnd5e-border-gold);
  background: var(--dnd5e-background-parchment);
}
.theme-dark .dnd5e2.compendium-browser .window-content .filter-range input::placeholder {
  color: var(--color-text-light-6);
}
/* TODO: Add .dnd5e2-journal when dark mode journal sheets are implemented */
.theme-dark .dnd5e2:not(.chat-card, .dnd5e-tooltip),
.dnd5e2.dnd5e-theme-dark {
  --dnd5e-color-table-row-odd: var(--dnd5e-color-iron-gray);
  --dnd5e-color-table-row-even: color-mix(in oklab, var(--dnd5e-color-table-row-odd), black 10%);
}
.theme-dark .dnd5e2:not(.chat-card, .dnd5e-tooltip) .editor-content h3,
.dnd5e2.dnd5e-theme-dark .editor-content h3 {
  border: none;
}
.theme-dark .dnd5e2:not(.chat-card, .dnd5e-tooltip) .editor-content table,
.dnd5e2.dnd5e-theme-dark .editor-content table {
  --row-color: var(--dnd5e-color-iron-gray);
  border-color: var(--dnd5e-color-blue-gray-1);
}
.theme-dark .dnd5e2:not(.chat-card, .dnd5e-tooltip) .editor-content table thead,
.dnd5e2.dnd5e-theme-dark .editor-content table thead {
  border-color: var(--dnd5e-color-blue-gray-1);
  background: linear-gradient(to right, #491d25, #311b1f);
}
.theme-dark .dnd5e2:not(.chat-card, .dnd5e-tooltip) .roll-link > i.fa-dice-d20,
.dnd5e2.dnd5e-theme-dark .roll-link > i.fa-dice-d20,
.theme-dark .dnd5e2:not(.chat-card, .dnd5e-tooltip) a.inline-roll > i.fa-dice-d20,
.dnd5e2.dnd5e-theme-dark a.inline-roll > i.fa-dice-d20 {
  filter: invert(1);
}
.theme-dark .dnd5e2:not(.chat-card, .dnd5e-tooltip) .fvtt:is(.advice, .narrative, .quest),
.dnd5e2.dnd5e-theme-dark .fvtt:is(.advice, .narrative, .quest) {
  background: var(--dnd5e-color-blue-gray-4);
}
.theme-dark .dnd5e2:not(.chat-card, .dnd5e-tooltip) aside.notable,
.dnd5e2.dnd5e-theme-dark aside.notable {
  border-color: #212121;
  border-width: 2px 1px;
  background: var(--dnd5e-color-blue-gray-4);
}
.theme-dark .dnd5e2:not(.chat-card, .dnd5e-tooltip) aside.notable::before,
.dnd5e2.dnd5e-theme-dark aside.notable::before,
.theme-dark .dnd5e2:not(.chat-card, .dnd5e-tooltip) aside.notable::after,
.dnd5e2.dnd5e-theme-dark aside.notable::after {
  filter: grayscale(1);
}
/* 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);
}
