:root {
  --font-primary: 'EBGaramond', sans-serif;
  --font-secondary: 'EBGaramond', sans-serif;
  --background-standard: no-repeat url('/systems/cthack/ui/sheet.webp');
  --background-image-standard: url('/systems/cthack/ui/sheet.webp');
  --background-chat-image: url('/systems/cthack/ui/cthack-green.webp');
  --logo-standard: url('/systems/cthack/ui/cthack-logo.webp');
  --border-standard: 1px solid #782e22;
  --font-color-primary: #fff;
  --nav-active-color: darkgrey;
  --nav-active-shadow-color: #782e22;
  --rollable-color: #d44d54;
  --select-background-color: #37372d;
  --item-line-hover-color: #fff;
  --item-line-hover-background-color: #37372d;
  --gm-manager-header-background-color: rgba(0, 0, 0, 0.5);
  --context-menu-background-color: #37372d;
  --context-menu-color: #fff;
  --content-link-color: #fff;
  scrollbar-width: thin;
  scrollbar-color: #782e22 #111;
}
@font-face {
  font-family: "EBGaramond";
  src: url("../ui/fonts/EBGaramond-VariableFont_wght.ttf");
}
/* Global styles */
#logo {
  content: var(--logo-standard);
  width: 50px;
  height: 50px;
  margin-left: 15px;
}
#pause > img {
  content: var(--logo-standard);
  height: 120px;
  width: 120px;
}
#tooltip.tooltip-save {
  max-width: 500px;
  text-align: left;
}
.icon.cthack {
  background-image: var(--logo-standard);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}
a.inline-roll {
  background: none;
  border: 1px solid var(--font-color-primary);
}
.editor.prosemirror.editing-source {
  color: var(--font-color-primary);
}
.editor.prosemirror.editing-source textarea {
  color: var(--font-color-primary);
}
.chat-message {
  padding: 0;
}
.chat-message .message-content .chat-save-roll,
.chat-message .message-content .chat-resource-roll,
.chat-message .message-content .chat-other-roll,
.chat-message .message-content .chat-save-roll-result,
.chat-message .message-content .chat-resource-roll-result,
.chat-message .message-content .chat-other-roll-result {
  padding: 5px;
}
.chat-message .message-header .message-sender {
  font-weight: bold;
}
.chat-message .message,
.chat-message .message-header,
.chat-message .message-content {
  background-image: var(--background-chat-image);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--font-color-primary);
  padding: 5px;
}
.chat-message .message-content h1 {
  font-size: 1.5rem;
  color: var(--font-color-primary);
  margin: 0;
}
.chat-message .message-content h3 {
  font-size: 1.2rem;
  color: var(--font-color-primary);
  margin: 0;
}
.chat-message .table-draw .table-description {
  color: var(--font-color-primary);
}
.chat-message .message-content .chat-description .name {
  display: flex;
  align-items: center;
}
.chat-message .message-content .chat-description img {
  width: 30px;
  height: 30px;
  margin: 5px;
}
.chat-message .dice-result .roll-failure {
  color: red;
}
.chat-message .dice-result .roll-success {
  color: green;
}
.chat-message .table-result a.content-link {
  color: var(--content-link-color);
}
.chat-message .roll.die {
  color: var(--font-color-primary);
}
.chat-message .roll.die.discarded {
  color: black;
  filter: none;
}
.cthack.dialog-roll input.field-value {
  border: var(--border-standard);
}
.cthack.dialog-roll .dialog-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  justify-content: space-around;
}
.cthack.dialog-roll .dialog-buttons > * {
  flex: 1;
}
.cthack.dialog-roll .dialog-buttons > .flex0 {
  display: block;
  flex: 0;
}
.cthack.dialog-roll .dialog-buttons > .flex1 {
  flex: 1;
}
.cthack.dialog-roll .dialog-buttons > .flex2 {
  flex: 2;
}
.cthack.dialog-roll .dialog-buttons > .flex3 {
  flex: 3;
}
.cthack.dialog-roll .dialog-buttons button {
  background: rgba(0, 0, 0, 0.1);
  border: 2px groove var(--color-border-light-highlight);
  margin: 0 5px 0 0;
  color: var(--font-color-primary);
}
.cthack.dialog-roll .dialog-buttons button:last-child {
  margin-right: 0;
}
.cthack.dialog-roll .dialog-buttons button.default {
  background: rgba(0, 0, 0, 0.05);
  border: 2px groove var(--color-border-light-secondary);
}
/* App styles*/
.cthack.gm-manager {
  font-size: var(--font-size-15);
  display: flex;
  flex-direction: column;
}
.cthack.gm-manager label {
  margin-left: 30px;
}
.cthack.gm-manager table {
  width: auto;
  margin: 0 20px 0 20px;
}
.cthack.gm-manager table thead {
  background: var(--gm-manager-header-background-color);
}
.cthack.gm-manager .character-resume {
  background-image: var(--background-image-standard);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--font-color-primary);
  font-size: var(--font-size-20);
  scrollbar-width: thin;
  text-align: center;
}
.cthack.gm-manager .character-resume .adrenaline {
  display: flex;
}
.cthack.gm-manager .character-resume .adrenaline .adrenaline-img {
  height: 25px;
  width: 25px;
  border: none;
}
.search-chat {
  padding: 0 0 5px 0;
}
.search-chat h3 {
  padding-top: 10px;
  margin: 10px;
  color: var(--font-color-primary);
  font-size: 1rem;
  text-align: center;
  border: none;
}
.search-chat h4 {
  margin: 10px;
  font-weight: bold;
  text-align: center;
}
.search-chat .motif {
  padding-bottom: 5px;
}
.search-chat .search-header {
  padding-top: 10px;
}
.search-chat .search-result {
  padding: 5px 0 5px 0;
}
.search-chat .journal {
  margin: 10px 0 10px 0;
}
.search-chat .result {
  margin-top: 5px;
  border: none;
  background: none;
  color: var(--font-color-primary);
}
.search-chat .result .content-link {
  color: var(--font-color-primary);
  background: none;
  border: none;
}
.search-chat .btn-highlight button {
  color: var(--font-color-primary);
  padding: 5px;
  margin: 5px;
  line-height: 18px;
}
.search-dialog h3 {
  margin: 10px;
  font-weight: bold;
  text-align: center;
}
.search-dialog .dialog-buttons button {
  color: var(--font-color-primary);
}
.search-dialog input[type="text"].searchtext {
  border: 1px solid #6e0000;
  margin: 10px 0 10px 0;
}
.cthack-sidebar {
  flex-direction: column;
  overflow-y: auto;
  color: var(--color-text-secondary);
}
.cthack-sidebar.active {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}
.cthack-sidebar section {
  gap: 0.5rem;
}
.cthack-sidebar section h4 {
  margin: 0;
}
.cthack-sidebar section a.button {
  flex-basis: 2rem;
}
.cthack-sidebar .info {
  font-size: var(--font-size-13);
}
.cthack-sidebar .info .title {
  margin: 0;
  font-size: var(--font-size-32);
  text-align: center;
  letter-spacing: -0.3px;
}
.cthack-sidebar .info .subtitle {
  margin: -0.5rem 0 0;
  color: var(--color-text-subtle);
  text-align: center;
}
.cthack-sidebar .info > div {
  display: flex;
  justify-content: space-between;
}
.cthack-sidebar .info > div .label {
  color: var(--color-text-emphatic);
}
.cthack-sidebar .info > div .value {
  color: var(--color-text-secondary);
}
.cthack-sidebar .info .notification-pip {
  margin-left: 0.25rem;
  color: var(--color-text-accent);
  position: initial;
}
#cthack-popout {
  overflow-y: hidden;
}
#cthack-popout .window-content {
  gap: 1.5rem;
  overflow-y: auto;
}
/* Styles limited to cthack sheets */
.cthack .window-content {
  background: var(--background-standard);
  background-size: 100% 100%;
  color: var(--font-color-primary);
  font-size: var(--font-size-20);
}
.cthack .item-line:hover {
  background-color: var(--item-line-hover-background-color);
  color: var(--item-line-hover-color);
  border-radius: 5px 5px 5px 5px;
}
.cthack .input-small,
.cthack .select-small {
  width: 50px;
}
.cthack .input-large,
.cthack .select-large {
  width: 100px;
}
.cthack .input-extralarge,
.cthack .select-extralarge {
  width: 150px;
}
.cthack #context-menu {
  background: var(--context-menu-background-color);
  color: var(--context-menu-color);
}
.cthack nav.tabs.vertical [data-tab].active {
  border-bottom-color: var(--color-shadow-primary);
}
.cthack nav.tabs [data-tab] {
  color: var(--font-color-primary);
  text-align: center;
  cursor: var(--cursor-pointer);
}
.cthack input[type="text"],
.cthack input[type="number"],
.cthack input[type="password"],
.cthack input[type="date"],
.cthack input[type="time"] {
  color: var(--font-color-primary);
}
.cthack input[type="text"] {
  border: none;
  background: none;
}
.cthack select {
  border: none;
  background-repeat: no-repeat;
  background-size: 40px;
  background-position: center;
  height: 40px;
  width: 40px;
  text-align: center;
  text-align-last: center;
  -moz-text-align-last: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent;
  color: var(--font-color-primary);
}
.cthack select:disabled {
  opacity: 1;
}
.cthack select option,
.cthack select option:checked,
.cthack select option:hover {
  color: var(--font-color-primary);
  background: var(--select-background-color);
}
.cthack textarea:read-only {
  background: none;
  border: none;
}
.cthack ::-webkit-scrollbar {
  display: none;
}
.cthack h4.ask-roll-title {
  font-size: 1rem;
  margin: 0;
  padding: 5px 0 5px 0;
}
.cthack .ask-roll-dice {
  margin-bottom: 5px;
  padding: 5px;
}
.cthack .cthack.sheet.actor a.inline-roll,
.cthack .cthack.sheet.item a.inline-roll {
  color: black;
}
.cthack .data-group .field-name,
.cthack .field-name.description {
  font-weight: bold;
}
.cthack.sheet.actor.character {
  min-width: 960px;
}
.cthack.sheet.actor.character select {
  color: black;
}
.cthack.sheet.actor.character .rollable:hover,
.cthack.sheet.actor.character .rollable:focus {
  color: var(--rollable-color);
  text-shadow: 0 0 10px #eea3a3;
  cursor: pointer;
}
.cthack.sheet.actor.character .no-dice {
  color: var(--font-color-primary);
}
.cthack.sheet.actor.character .dice-d4 {
  background-image: url("systems/cthack/ui/dice/d4-grey.svg");
}
.cthack.sheet.actor.character .dice-d6 {
  background-image: url("systems/cthack/ui/dice/d6-grey.svg");
}
.cthack.sheet.actor.character .dice-d8 {
  background-image: url("systems/cthack/ui/dice/d8-grey.svg");
}
.cthack.sheet.actor.character .dice-d10 {
  background-image: url("systems/cthack/ui/dice/d10-grey.svg");
}
.cthack.sheet.actor.character .dice-d12 {
  background-image: url("systems/cthack/ui/dice/d12-grey.svg");
}
.cthack.sheet.actor.character nav#context-menu {
  text-align: left;
  width: auto;
}
.cthack.sheet.actor.character nav.sheet-tabs {
  flex: 0;
  border-top: 0;
  border-bottom: 1px solid var(--nav-active-color);
  margin: 10px 5px 0 5px;
}
.cthack.sheet.actor.character nav.sheet-tabs .choice {
  height: 40px;
  line-height: 40px;
  font-weight: bold;
}
.cthack.sheet.actor.character nav.sheet-tabs .choice:hover {
  color: var(--nav-active-color);
  text-shadow: 0 0 10px var(--nav-active-shadow-color);
}
.cthack.sheet.actor.character nav.sheet-tabs .choice.active {
  color: var(--nav-active-color);
  font-weight: bold;
  border-top: 1px solid var(--nav-active-color);
  border-right: 1px solid var(--nav-active-color);
  border-left: 1px solid var(--nav-active-color);
  border-radius: 10px 10px 0 0;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  padding: 0 5px 0 5px;
  text-shadow: 0 0 10px var(--nav-active-shadow-color);
}
.cthack.sheet.actor.character .sidebar {
  margin: 30px 10px 0 20px;
  padding: 0 10px 0 10px;
  flex: 220px 0 0;
  height: 400px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}
.cthack.sheet.actor.character .sidebar .image-container img.actor-image {
  border: none;
  min-width: 150px;
  border-radius: 10px;
}
.cthack.sheet.actor.character .sidebar .image-container .hover-icon {
  visibility: hidden;
  position: absolute;
  top: 70px;
  left: 45px;
  font-size: var(--font-size-16);
  color: black;
}
.cthack.sheet.actor.character .sidebar .image-container:hover .hover-icon {
  visibility: visible;
}
.cthack.sheet.actor.character .sidebar .sidebar-section {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding-top: 2px;
}
.cthack.sheet.actor.character .sidebar .sidebar-section label {
  font-weight: bold;
  font-family: var(--font-secondary);
}
.cthack.sheet.actor.character .sidebar .sidebar-section .save-value {
  flex: 1;
  text-align: left;
}
.cthack.sheet.actor.character .sidebar .sidebar-section .save-value {
  flex: 2;
  text-align: right;
}
.cthack.sheet.actor.character .sidebar .fortune {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.cthack.sheet.actor.character .sidebar .adrenaline {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.cthack.sheet.actor.character .sidebar .adrenaline .adrenaline-img {
  height: 30px;
  width: 30px;
  border: none;
}
.cthack.sheet.actor.character .sidebar .conditions {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}
.cthack.sheet.actor.character .sidebar .conditions .conditions-title {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.character .sidebar .conditions .items-list {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.actor.character .sidebar .conditions .items-list .item-line {
  display: grid;
  grid-template-columns: 1fr;
}
.cthack.sheet.actor.character .sidebar .conditions .items-list .item-line .item-name-img {
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.character .sidebar .conditions .items-list .item-line .item-name-img img {
  width: 30px;
  height: 30px;
  margin: 0 5px 0 5px;
}
.cthack.sheet.actor.character .sidebar .conditions .items-list .item-line .has-description {
  font-style: italic;
}
.cthack.sheet.actor.character .sidebar .conditions .items-list .item-summary {
  font-size: 0.9em;
}
.cthack.sheet.actor.character .main {
  margin: 30px 0 0 0;
  padding: 0 30px 10px 0;
  min-width: 550px;
}
.cthack.sheet.actor.character .main .sheet-body {
  width: 100%;
  padding: 0 10px 0 10px;
}
.cthack.sheet.actor.character .main .sheet-body .tab {
  width: 100%;
}
.cthack.sheet.actor.character .character-sheet-header {
  max-height: 300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.cthack.sheet.actor.character .character-sheet-header .name {
  margin-left: 10px;
  font-size: var(--font-size-20);
  font-weight: bold;
}
.cthack.sheet.actor.character .character-sheet-header .header-occupation {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.cthack.sheet.actor.character .character-sheet-header .header-occupation .occupation-archetype {
  text-align: left;
}
.cthack.sheet.actor.character .character-sheet-header .occupation {
  display: flex;
  flex-direction: row;
  padding: 10px 10px 10px 0;
}
.cthack.sheet.actor.character .character-sheet-header .occupation label {
  margin-left: 20px;
  margin-right: 10px;
}
.cthack.sheet.actor.character .character-sheet-header .occupation input.occupation-name {
  border: 1px solid;
  width: 150px;
}
.cthack.sheet.actor.character .character-sheet-header .occupation input.occupation-skills {
  border: 1px solid;
  width: 250px;
}
.cthack.sheet.actor.character .character-sheet-header .archetype {
  display: flex;
  flex-direction: row;
  padding: 10px 0 10px 0;
}
.cthack.sheet.actor.character .character-sheet-header .archetype label {
  margin-right: 20px;
}
.cthack.sheet.actor.character .character-sheet-header .archetype input {
  border: 1px solid;
  width: 200px;
}
.cthack.sheet.actor.character .character-sheet-header .short-description {
  grid-column-start: 1;
  grid-column-end: 3;
  font-style: italic;
  padding-left: 50px;
}
.cthack.sheet.actor.character .character-sheet-header .short-description-editable {
  border: 1px solid;
  grid-column-start: 1;
  grid-column-end: 3;
}
.cthack.sheet.actor.character .character-sheet-header .resources {
  grid-column-start: 1;
  grid-column-end: 3;
  margin: 5px 0 5px 0;
  display: grid;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.5);
}
.cthack.sheet.actor.character .character-sheet-header .resources-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cthack.sheet.actor.character .character-sheet-header .resources-4 {
  grid-template-columns: repeat(4, 1fr);
}
.cthack.sheet.actor.character .character-sheet-header .resources-5 {
  grid-template-columns: repeat(5, 1fr);
}
.cthack.sheet.actor.character .character-sheet-header .fight {
  margin-top: 10px;
  grid-column-start: 1;
  grid-column-end: 3;
  display: grid;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.5);
}
.cthack.sheet.actor.character .character-sheet-header .fight-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cthack.sheet.actor.character .character-sheet-header .fight-4 {
  grid-template-columns: repeat(4, 1fr);
}
.cthack.sheet.actor.character .character-sheet-header .resource {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 5px;
  font-weight: bold;
}
.cthack.sheet.actor.character .character-sheet-header .resource.hitpoints {
  justify-content: space-between;
}
.cthack.sheet.actor.character .character-sheet-header .resource label {
  font-family: var(--font-secondary);
  margin-bottom: 8px;
}
.cthack.sheet.actor.character .character-sheet-header .resource .resource-content {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.character .character-sheet-header .resource .resource-content select {
  color: white;
}
.cthack.sheet.actor.character .character-sheet-header .resource .resource-content img {
  border: none;
  width: 80px;
  height: 80px;
}
.cthack.sheet.actor.character .character-sheet-header .resource .hitpoints-content {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.cthack.sheet.actor.character .character-sheet-header .resource .hitpoints-content input {
  height: 40px;
  width: 40px;
  text-align: center;
}
.cthack.sheet.actor.character .character-sheet-header .resource-value {
  color: black;
}
.cthack.sheet.actor.character .character-sheet-header .resource-value.resource-value-lost {
  text-shadow: 0 0 10px red;
}
.cthack.sheet.actor.character .sheet-body .editor {
  min-height: 150px;
}
.cthack.sheet.actor.character .sheet-body .editor-container {
  flex: 1;
  position: relative;
  margin: 0;
  min-height: 200px;
}
.cthack.sheet.actor.character .sheet-body .editor-content {
  margin: 0px 5px;
  font-weight: normal;
  font-size: var(--font-size-20);
}
.cthack.sheet.actor.character .sheet-body .prosemirror menu {
  font-size: 0.8em;
}
.cthack.sheet.actor.character .sheet-body .prosemirror menu li {
  margin: 0px 0px;
}
.cthack.sheet.actor.character .sheet-body .prosemirror menu button {
  color: var(--font-color-primary);
}
.cthack.sheet.actor.character .sheet-body .prosemirror menu button:hover {
  box-shadow: none;
  background: lightslategray;
  color: var(--font-color-primary);
}
.cthack.sheet.actor.character .sheet-body .prosemirror menu button.active {
  box-shadow: none;
  background: grey;
  color: var(--font-color-primary);
}
.cthack.sheet.actor.character .sheet-body .equipment {
  display: grid;
  grid-template-columns: 1fr;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list div.title {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list div.title input {
  width: 30px;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list div.title i {
  padding: 10px 20px 0 0;
  font-size: 1rem;
  padding-left: 50px;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list .item-line {
  display: grid;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list .item-line.weapon {
  grid-template-columns: 4fr 1fr 2fr;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list .item-line.other {
  grid-template-columns: 2fr 1fr;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list .item-line .item-name-img {
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list .item-line .item-name-img img {
  width: 30px;
  height: 30px;
  margin: 0 5px 0 5px;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list .item-line .item-dice {
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list .item-line .item-dice img {
  border: none;
  width: 50px;
  height: 50px;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list .item-line .item-dice img.dice-d20 {
  width: 30px;
  height: 30px;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list .item-line .item-range {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list .item-line .has-description {
  font-style: italic;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list .item-description {
  display: flex;
  align-items: center;
  justify-content: left;
  text-align: left;
}
.cthack.sheet.actor.character .sheet-body .equipment .items-list .item-summary {
  font-size: 0.9em;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .abilities {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .abilities .title {
  border: none;
  font-size: 1em;
  font-weight: bold;
  margin: 5px 0 5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .abilities .title a {
  padding-left: 10px;
  font-size: 0.8em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .magics {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .magics .title {
  border: none;
  font-size: 1em;
  font-weight: bold;
  margin: 5px 0 5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .magics .title a {
  padding-left: 10px;
  font-size: 0.8em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-abilities {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 5px;
  padding-left: 10px;
  align-items: center;
  font-size: var(--font-size-16);
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-abilities .item-line {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 40px;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-abilities .item-line .item-name {
  font-weight: bold;
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-abilities .item-line .item-name img {
  width: 30px;
  height: 30px;
  margin: 0 5px 0 5px;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-abilities .item-line .item-use {
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-abilities .item-line .item-use-last {
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-abilities .has-description {
  font-style: italic;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-magics {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 5px;
  padding-left: 10px;
  align-items: center;
  font-size: var(--font-size-16);
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-magics .item-line {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  height: 40px;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-magics .item-line select {
  height: 40px;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-magics .item-line .item-name {
  font-weight: bold;
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-magics .item-line .item-name img {
  width: 30px;
  height: 30px;
  margin: 0 5px 0 5px;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-magics .item-line .item-dice {
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-magics .item-line .item-dice img {
  border: none;
  width: 50px;
  height: 50px;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-magics .item-line .item-dice img.dice-d20 {
  width: 30px;
  height: 30px;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-magics .item-line .item-subtype {
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-magics .item-line .item-incantation {
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.character .sheet-body .abilities-magic .grid-magics .has-description {
  font-style: italic;
}
.cthack.sheet.actor.opponent {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.actor.opponent #context-menu {
  width: 50px;
  text-align: left;
}
.cthack.sheet.actor.opponent .sheet-header {
  display: grid;
}
.cthack.sheet.actor.opponent .sheet-header.grid-image {
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 0.5fr 1fr;
}
.cthack.sheet.actor.opponent .sheet-header.grid-image .character {
  grid-row-start: 1;
  grid-row-end: 2;
  grid-column-start: 2;
  grid-column-end: 6;
}
.cthack.sheet.actor.opponent .sheet-header.grid-image .short-description {
  grid-row-start: 2;
  grid-row-end: 3;
  grid-column-start: 2;
  grid-column-end: 6;
}
.cthack.sheet.actor.opponent .sheet-header.grid-image .hitdice {
  grid-row-start: 3;
  grid-row-end: 4;
  grid-column-start: 2;
  grid-column-end: 3;
}
.cthack.sheet.actor.opponent .sheet-header.grid-image .hp {
  grid-row-start: 3;
  grid-row-end: 4;
  grid-column-start: 3;
  grid-column-end: 4;
}
.cthack.sheet.actor.opponent .sheet-header.grid-image .armor {
  grid-row-start: 3;
  grid-row-end: 4;
  grid-column-start: 4;
  grid-column-end: 5;
}
.cthack.sheet.actor.opponent .sheet-header.grid-image .malus {
  grid-row-start: 3;
  grid-row-end: 4;
  grid-column-start: 5;
  grid-column-end: 6;
}
.cthack.sheet.actor.opponent .sheet-header.grid-noimage {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.cthack.sheet.actor.opponent .sheet-header.grid-noimage .character {
  grid-row-start: 1;
  grid-row-end: 2;
  grid-column-start: 1;
  grid-column-end: 5;
}
.cthack.sheet.actor.opponent .sheet-header.grid-noimage .short-description {
  grid-row-start: 2;
  grid-row-end: 3;
  grid-column-start: 1;
  grid-column-end: 5;
}
.cthack.sheet.actor.opponent .sheet-header.grid-noimage .hitdice {
  grid-row-start: 3;
  grid-row-end: 4;
  grid-column-start: 1;
  grid-column-end: 2;
}
.cthack.sheet.actor.opponent .sheet-header.grid-noimage .hp {
  grid-row-start: 3;
  grid-row-end: 4;
  grid-column-start: 2;
  grid-column-end: 3;
}
.cthack.sheet.actor.opponent .sheet-header.grid-noimage .armor {
  grid-row-start: 3;
  grid-row-end: 4;
  grid-column-start: 3;
  grid-column-end: 4;
}
.cthack.sheet.actor.opponent .sheet-header.grid-noimage .malus {
  grid-row-start: 3;
  grid-row-end: 4;
  grid-column-start: 4;
  grid-column-end: 5;
}
.cthack.sheet.actor.opponent .sheet-header .opponent-image {
  grid-row-start: 1;
  grid-row-end: 4;
  grid-column-start: 1;
  grid-column-end: 2;
  display: flex;
  padding-left: 10px;
}
.cthack.sheet.actor.opponent .sheet-header .opponent-image .editable-image {
  border: none;
  height: 200px;
}
.cthack.sheet.actor.opponent .sheet-header .opponent-image img.actor-image {
  border: none;
  height: 150px;
}
.cthack.sheet.actor.opponent .sheet-header .opponent-image .hover-icon {
  visibility: hidden;
  position: absolute;
  top: 40px;
  left: 20px;
  font-size: var(--font-size-16);
  color: black;
}
.cthack.sheet.actor.opponent .sheet-header .opponent-image:hover .hover-icon {
  visibility: visible;
}
.cthack.sheet.actor.opponent .sheet-header .sheet-lock {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 15px;
  font-size: 0.8em;
}
.cthack.sheet.actor.opponent .sheet-header .character {
  display: flex;
  justify-content: center;
  text-align: center;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 5px 0 5px 0;
  margin-right: 20px;
}
.cthack.sheet.actor.opponent .sheet-header .data-group {
  border: none;
  font-size: 1rem;
}
.cthack.sheet.actor.opponent .sheet-header .data-group label {
  font-weight: bold;
  padding-right: 5px;
}
.cthack.sheet.actor.opponent .sheet-header .data-group .input-editable {
  border: var(--border-standard);
  width: 30px;
  text-align: center;
  margin-right: 5px;
}
.cthack.sheet.actor.opponent .sheet-header .short-description {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 5px 0 10px 0;
  font-style: italic;
}
.cthack.sheet.actor.opponent .sheet-header .short-description .input-editable {
  border: var(--border-standard);
  margin-right: 20px;
}
.cthack.sheet.actor.opponent .sheet-header .hitdice {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-header .hitdice select {
  color: #fff;
}
.cthack.sheet.actor.opponent .sheet-header .hitdice .selectHitDice {
  border: var(--border-standard);
  width: 30px;
  height: var(--form-field-height);
  text-align: center;
}
.cthack.sheet.actor.opponent .sheet-header .hp {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-header .hp .hp-input {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-header .hp .hp-input .hp-max {
  width: 30px;
  text-align: center;
}
.cthack.sheet.actor.opponent .sheet-header .armor {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-header .armor input {
  width: 20px;
}
.cthack.sheet.actor.opponent .sheet-header .malus {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-header .malus label {
  text-transform: lowercase;
}
.cthack.sheet.actor.opponent .sheet-header .malus label::first-letter {
  text-transform: uppercase;
}
.cthack.sheet.actor.opponent .sheet-header .malus input {
  width: 20px;
}
.cthack.sheet.actor.opponent .sheet-body {
  display: flex;
  flex-direction: column;
  margin: 10px 0 10px 0;
  padding: 0 10px 0 10px;
}
.cthack.sheet.actor.opponent .sheet-body .description-editable {
  border: none;
  font-size: 1rem;
  height: 100%;
  min-height: 200px;
}
.cthack.sheet.actor.opponent .sheet-body .description-editable .title {
  font-size: 1em;
  font-weight: bold;
  padding: 10px 0 10px 0;
  text-align: center;
}
.cthack.sheet.actor.opponent .sheet-body .description-editable .editor {
  min-height: 150px;
}
.cthack.sheet.actor.opponent .sheet-body .description-editable .editor-content {
  min-height: 100px;
  height: auto;
  margin: 0px 5px;
  font-weight: normal;
}
.cthack.sheet.actor.opponent .sheet-body .description-editable .prosemirror menu {
  font-size: 0.8em;
}
.cthack.sheet.actor.opponent .sheet-body .description-editable .prosemirror menu li {
  margin: 0px 0px;
}
.cthack.sheet.actor.opponent .sheet-body .description-editable .prosemirror menu button {
  color: var(--font-color-primary);
}
.cthack.sheet.actor.opponent .sheet-body .description-editable .prosemirror menu button:hover {
  box-shadow: none;
  background: lightslategray;
  color: var(--font-color-primary);
}
.cthack.sheet.actor.opponent .sheet-body .description-editable .prosemirror menu button.active {
  box-shadow: none;
  background: grey;
  color: var(--font-color-primary);
}
.cthack.sheet.actor.opponent .sheet-body .description {
  padding: 0 10px 0 10px;
}
.cthack.sheet.actor.opponent .sheet-body .attacks {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.actor.opponent .sheet-body .attacks .title {
  border: none;
  font-size: 1em;
  font-weight: bold;
  padding: 0 0 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-body .attacks .title a {
  padding-left: 10px;
  font-size: 0.8em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-body .attacks .grid-attacks {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 5px;
  padding-left: 10px;
  align-items: center;
  font-size: var(--font-size-16);
}
.cthack.sheet.actor.opponent .sheet-body .attacks .grid-attacks .item-line {
  display: grid;
  grid-template-columns: 1fr 2fr;
  height: 40px;
}
.cthack.sheet.actor.opponent .sheet-body .attacks .grid-attacks .item-line .item-name {
  font-weight: bold;
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-body .attacks .grid-attacks .item-line .item-name img {
  width: 30px;
  height: 30px;
  margin: 0 5px 0 5px;
}
.cthack.sheet.actor.opponent .sheet-body .attacks .grid-attacks .item-line .item-details {
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-body .attacks .grid-attacks .has-description {
  font-style: italic;
}
.cthack.sheet.actor.opponent .sheet-body .magics {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.actor.opponent .sheet-body .magics .title {
  border: none;
  font-size: 1em;
  font-weight: bold;
  padding: 10px 0 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-body .magics .title a {
  padding-left: 10px;
  font-size: 0.8em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-body .magics .grid-magics {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 5px;
  padding-left: 10px;
  align-items: center;
  font-size: var(--font-size-16);
}
.cthack.sheet.actor.opponent .sheet-body .magics .grid-magics .item-line {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  height: 40px;
}
.cthack.sheet.actor.opponent .sheet-body .magics .grid-magics .item-line .item-name {
  font-weight: bold;
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-body .magics .grid-magics .item-line .item-name img {
  width: 30px;
  height: 30px;
  margin: 0 5px 0 5px;
}
.cthack.sheet.actor.opponent .sheet-body .magics .grid-magics .item-line .item-subtype {
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-body .magics .grid-magics .item-line .item-dice {
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-body .magics .grid-magics .item-line .item-incantation {
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-body .magics .grid-magics .has-description {
  font-style: italic;
}
.cthack.sheet.actor.opponent .sheet-body .abilities {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.actor.opponent .sheet-body .abilities .title {
  border: none;
  font-size: 1em;
  font-weight: bold;
  padding: 10px 0 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-body .abilities .title a {
  padding-left: 10px;
  font-size: 0.8em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-body .abilities .grid-opponent-abilities {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 5px;
  padding-left: 10px;
  align-items: center;
  font-size: var(--font-size-16);
}
.cthack.sheet.actor.opponent .sheet-body .abilities .grid-opponent-abilities .item-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 40px;
}
.cthack.sheet.actor.opponent .sheet-body .abilities .grid-opponent-abilities .item-line .item-name {
  font-weight: bold;
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-body .abilities .grid-opponent-abilities .item-line .item-name img {
  width: 30px;
  height: 30px;
  margin: 0 5px 0 5px;
}
.cthack.sheet.actor.opponent .sheet-body .abilities .grid-opponent-abilities .item-line .item-details {
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-body .abilities .grid-opponent-abilities .item-line .item-use {
  display: flex;
  align-items: center;
}
.cthack.sheet.actor.opponent .sheet-body .abilities .grid-opponent-abilities .has-description {
  font-style: italic;
}
.cthack.sheet.item.archetype .archetype-content .archetype-section .archetype-header {
  display: flex;
  grid-gap: 10px;
  padding: 0 20px 0 20px;
}
.cthack.sheet.item.archetype .archetype-content .archetype-section .archetype-header .archetype-header-left img {
  height: 350px;
  width: 150px;
  border: none;
}
.cthack.sheet.item.archetype .archetype-content .archetype-section .archetype-header .archetype-header-right {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cthack.sheet.item.archetype .archetype-content .archetype-section .archetype-header .archetype-header-right .item-description {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 0;
  margin-bottom: 10px;
}
.cthack.sheet.item.archetype .archetype-content .archetype-section .archetype-header .archetype-header-right .item-description .description-content {
  font-size: 1rem;
  display: flex;
  flex: 1;
}
.cthack.sheet.item.archetype .archetype-content .archetype-section .archetype-header .archetype-header-right .item-description .description-content prose-mirror {
  flex: 1;
  overflow: auto;
}
.cthack.sheet.item.archetype .archetype-content .archetype-section .archetype-header .archetype-header-right .item-description .description-content prose-mirror button {
  color: white;
}
.cthack.sheet.item.archetype .archetype-content .archetype-section .archetype-grid {
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-left: 20px;
  padding-right: 20px;
  font-size: 1rem;
  text-align: center;
  color: var(--font-color-primary);
}
.cthack.sheet.item.archetype .archetype-content .archetype-section .archetype-grid .data-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.item.archetype .archetype-content .archetype-section .archetype-grid .data-group .field-name {
  text-transform: uppercase;
  margin-bottom: 5px;
}
.cthack.sheet.item.archetype .archetype-content .archetype-section .archetype-grid .data-group input,
.cthack.sheet.item.archetype .archetype-content .archetype-section .archetype-grid .data-group select {
  height: 40px;
  padding: 0;
}
.cthack.sheet.item.archetype .archetype-content .archetype-section .archetype-grid .data-group input[type="checkbox"] {
  flex: none;
}
.cthack.sheet.item.archetype .archetype-content .archetype-section .archetype-grid input {
  text-align: center;
}
.cthack.sheet.item.archetype .archetype-content .archetype-section .archetype-grid select {
  width: auto;
  text-align: center;
}
.cthack.sheet.item.magic .magic-content .magic-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-header {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-header input {
  width: auto;
  font-size: 1.2rem;
  text-align: center;
  border: 0px;
  margin: 10px 0 0 0;
  padding: 0;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-header .item-header-row {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 20px 0;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-header .item-header-row .item-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-header .item-header-row .item-image img {
  border: 0px;
  max-height: 150px;
  max-width: auto;
  margin-right: 10px;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-header .item-header-row .form-group.material {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  font-size: 1.2rem;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-header .item-header-row .form-group.material img {
  max-height: 80px;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-properties.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-left: 20px;
  padding-right: 20px;
  font-size: 1rem;
  text-align: center;
  color: var(--font-color-primary);
}
.cthack.sheet.item.magic .magic-content .magic-section .item-properties.grid-2.readonly label {
  margin-right: 20px;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-properties.grid-2 select {
  width: auto;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-properties.grid-2 input {
  text-align: center;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-description {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 0;
  margin-bottom: 10px;
  overflow: hidden;
  min-height: 0;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-description fieldset {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 10px;
  min-height: 0;
  overflow: hidden;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-description fieldset legend {
  font-size: 1rem;
  flex-shrink: 0;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-description fieldset .description-content {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-description fieldset .description-content prose-mirror {
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.cthack.sheet.item.magic .magic-content .magic-section .item-description fieldset .description-content prose-mirror button {
  color: white;
}
.cthack.sheet.item.ability .ability-content .ability-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.cthack.sheet.item.ability .ability-content .ability-section .item-header {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.item.ability .ability-content .ability-section .item-header input {
  width: auto;
  font-size: 1.2rem;
  text-align: center;
  border: 0px;
  margin: 10px 0 0 0;
  padding: 0;
}
.cthack.sheet.item.ability .ability-content .ability-section .item-header .item-header-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 0 20px 0;
}
.cthack.sheet.item.ability .ability-content .ability-section .item-header .item-header-row .item-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.item.ability .ability-content .ability-section .item-header .item-header-row .item-image img {
  border: 0px;
  max-height: 120px;
  max-width: auto;
  margin-right: 10px;
}
.cthack.sheet.item.ability .ability-content .ability-section .item-header .item-header-row .form-group.material {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 1.2rem;
}
.cthack.sheet.item.ability .ability-content .ability-section .item-header .item-header-row .form-group.material img {
  max-height: 70px;
}
.cthack.sheet.item.ability .ability-content .ability-section .item-properties.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-left: 20px;
  padding-right: 20px;
  font-size: 1rem;
  text-align: center;
  color: var(--font-color-primary);
}
.cthack.sheet.item.ability .ability-content .ability-section .item-properties.grid-3 select {
  width: auto;
}
.cthack.sheet.item.ability .ability-content .ability-section .item-properties.grid-3 input {
  text-align: center;
}
.cthack.sheet.item.ability .ability-content .ability-section .item-description {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 0;
  margin-bottom: 10px;
  overflow: hidden;
  min-height: 0;
}
.cthack.sheet.item.ability .ability-content .ability-section .item-description fieldset {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 10px;
  min-height: 0;
  overflow: hidden;
}
.cthack.sheet.item.ability .ability-content .ability-section .item-description fieldset legend {
  font-size: 1rem;
  flex-shrink: 0;
}
.cthack.sheet.item.ability .ability-content .ability-section .item-description fieldset .description-content {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.cthack.sheet.item.ability .ability-content .ability-section .item-description fieldset .description-content prose-mirror {
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.cthack.sheet.item.ability .ability-content .ability-section .item-description fieldset .description-content prose-mirror button {
  color: white;
}
.cthack.sheet.item.object .object-content .item-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.cthack.sheet.item.object .object-content .item-section .item-header {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.item.object .object-content .item-section .item-header input {
  width: auto;
  font-size: 1.2rem;
  text-align: center;
  border: 0px;
  margin: 10px 0 0 0;
  padding: 0;
}
.cthack.sheet.item.object .object-content .item-section .item-header .item-header-row {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 20px 0;
}
.cthack.sheet.item.object .object-content .item-section .item-header .item-header-row .item-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.item.object .object-content .item-section .item-header .item-header-row .item-image img {
  border: 0px;
  max-height: 120px;
  max-width: auto;
}
.cthack.sheet.item.object .object-content .item-section .item-header .item-header-row .form-group.material {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  font-size: 1.2rem;
}
.cthack.sheet.item.object .object-content .item-section .item-header .item-header-row .form-group.material img {
  max-height: 70px;
}
.cthack.sheet.item.object .object-content .item-section .item-properties.grid-1 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  padding-left: 20px;
  padding-right: 20px;
  font-size: 1rem;
  text-align: center;
  color: var(--font-color-primary);
}
.cthack.sheet.item.object .object-content .item-section .item-properties.grid-1 .item-size {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.item.object .object-content .item-section .item-properties.grid-1 .item-size select {
  width: auto;
  font-size: 1rem;
  text-align: center;
  border: 0px;
  padding: 5px;
}
.cthack.sheet.item.object .object-content .item-section .item-description {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 0;
  margin-bottom: 10px;
  overflow: hidden;
  min-height: 0;
}
.cthack.sheet.item.object .object-content .item-section .item-description fieldset {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}
.cthack.sheet.item.object .object-content .item-section .item-description fieldset legend {
  font-size: 1rem;
  flex-shrink: 0;
}
.cthack.sheet.item.object .object-content .item-section .item-description fieldset .description-content {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.cthack.sheet.item.object .object-content .item-section .item-description fieldset .description-content prose-mirror {
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.cthack.sheet.item.object .object-content .item-section .item-description fieldset .description-content prose-mirror button {
  color: white;
}
.cthack.sheet.item.definition .definition-content .definition-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-header {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-header input {
  width: auto;
  font-size: 1.2rem;
  text-align: center;
  border: 0px;
  margin: 10px 0 0 0;
  padding: 0;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-header .item-header-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 0 20px 0;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-header .item-header-row .item-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-header .item-header-row .item-image img {
  border: 0px;
  max-height: 150px;
  max-width: auto;
  margin-right: 10px;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-header .item-header-row .form-group.material {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 1.2rem;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-header .item-header-row .form-group.material img {
  max-height: 80px;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-properties.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-left: 20px;
  padding-right: 20px;
  font-size: 1rem;
  text-align: center;
  color: var(--font-color-primary);
}
.cthack.sheet.item.definition .definition-content .definition-section .item-properties.grid-2.readonly label {
  margin-right: 20px;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-properties.grid-2 select {
  width: auto;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-properties.grid-2 input {
  text-align: center;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-description {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 0;
  margin-bottom: 10px;
  overflow: auto;
  min-height: 0;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-description fieldset {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-description fieldset legend {
  font-size: 1rem;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-description fieldset .description-content {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-description fieldset .description-content prose-mirror {
  flex: 1;
  overflow: auto;
}
.cthack.sheet.item.definition .definition-content .definition-section .item-description fieldset .description-content prose-mirror button {
  color: white;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-header {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-header input {
  width: auto;
  font-size: 1.2rem;
  text-align: center;
  border: 0px;
  margin: 10px 0 0 0;
  padding: 0;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-header .item-header-row {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 20px 0;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-header .item-header-row .item-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-header .item-header-row .item-image img {
  border: 0px;
  max-height: 120px;
  max-width: auto;
  margin-right: 10px;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-header .item-header-row .form-group.material {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  font-size: 1.2rem;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-header .item-header-row .form-group.material img {
  max-height: 70px;
  max-width: 150px;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-properties.grid-1 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  padding-left: 20px;
  padding-right: 20px;
  font-size: 1rem;
  text-align: center;
  color: var(--font-color-primary);
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-properties.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-left: 20px;
  padding-right: 20px;
  font-size: 1rem;
  text-align: center;
  color: var(--font-color-primary);
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-properties.grid-2.readonly label {
  margin-right: 20px;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-properties.grid-2 .item-size {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-properties.grid-2 .item-size select {
  width: auto;
  font-size: 1rem;
  text-align: center;
  border: 0px;
  padding: 5px;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-properties .item-range {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-properties .item-range label {
  font-size: 1rem;
  margin-right: 10px;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-properties .item-range .select-range {
  width: auto;
  font-size: 1rem;
  text-align: center;
  border: 0px;
  padding: 5px;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-description {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 0;
  margin-bottom: 10px;
  overflow: hidden;
  min-height: 0;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-description fieldset {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 10px;
  min-height: 0;
  overflow: hidden;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-description fieldset legend {
  font-size: 1rem;
  flex-shrink: 0;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-description fieldset .description-content {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-description fieldset .description-content prose-mirror {
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.cthack.sheet.item.weapon .weapon-content .weapon-section .item-description fieldset .description-content prose-mirror button {
  color: white;
}
.cthack.sheet.item.attack .attack-content .attack-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-header {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-header input {
  width: auto;
  font-size: 1.2rem;
  text-align: center;
  border: 0px;
  margin: 10px 0 0 0;
  padding: 0;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-header .item-header-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 0 20px 0;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-header .item-header-row .item-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-header .item-header-row .item-image img {
  border: 0px;
  max-height: 150px;
  max-width: auto;
  margin-right: 10px;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-header .item-header-row .form-group.material {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 1.2rem;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-header .item-header-row .form-group.material img {
  max-height: 80px;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-properties.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-left: 20px;
  padding-right: 20px;
  font-size: 1rem;
  text-align: center;
  color: var(--font-color-primary);
}
.cthack.sheet.item.attack .attack-content .attack-section .item-properties.grid-3.readonly label {
  margin-right: 20px;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-properties.grid-3 select {
  width: auto;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-properties.grid-3 input {
  text-align: center;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-description {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 0;
  margin-bottom: 10px;
  overflow: auto;
  min-height: 0;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-description fieldset {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-description fieldset legend {
  font-size: 1rem;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-description fieldset .description-content {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-description fieldset .description-content prose-mirror {
  flex: 1;
  overflow: auto;
}
.cthack.sheet.item.attack .attack-content .attack-section .item-description fieldset .description-content prose-mirror button {
  color: white;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-header {
  display: flex;
  flex-direction: column;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-header input {
  width: auto;
  font-size: 1.2rem;
  text-align: center;
  border: 0px;
  margin: 10px 0 0 0;
  padding: 0;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-header .item-header-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 0 20px 0;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-header .item-header-row .item-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-header .item-header-row .item-image img {
  border: 0px;
  max-height: 120px;
  max-width: auto;
  margin-right: 10px;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-header .item-header-row .form-group.material {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 1.2rem;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-header .item-header-row .form-group.material img {
  max-height: 70px;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-properties.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-left: 20px;
  padding-right: 20px;
  font-size: 1rem;
  text-align: center;
  color: var(--font-color-primary);
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-properties.grid-2 select {
  width: auto;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-properties.grid-2 input {
  text-align: center;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-description {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 0;
  margin-bottom: 10px;
  overflow: hidden;
  min-height: 0;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-description fieldset {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 10px;
  min-height: 0;
  overflow: hidden;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-description fieldset legend {
  font-size: 1rem;
  flex-shrink: 0;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-description fieldset .description-content {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-description fieldset .description-content prose-mirror {
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.cthack.sheet.item.opponent-ability .opponent-ability-content .opponent-ability-section .item-description fieldset .description-content prose-mirror button {
  color: white;
}
.application.dialog.cthack {
  color: var(--color-light-1);
}
.application.dialog.cthack input,
.application.dialog.cthack select {
  background-color: rgba(0, 0, 0, 0.1);
  border-color: var(--color-light-1);
  color: var(--color-light-1);
  font-size: 1.2rem;
}
.application.dialog.cthack legend {
  letter-spacing: 1px;
}
.application.dialog.cthack .cthack-roll-dialog fieldset {
  margin: 10px 0 0 0;
  padding: 5px;
}
.application.dialog.cthack .cthack-roll-dialog .select {
  width: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.application.dialog.cthack .cthack-roll-dialog .dialog-aide-gene {
  display: flex;
  justify-content: center;
  align-items: center;
}
.application.dialog.cthack .cthack-roll-dialog .dialog-aide-gene select {
  border: none;
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--color-light-1);
  width: 60px;
  text-align: center;
}
.application.dialog.cthack .cthack-roll-dialog .dialog-avantages {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.application.dialog.cthack .cthack-roll-dialog .dialog-avantages #selectAvantages {
  background-color: inherit;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
}
.application.dialog.cthack .cthack-roll-dialog .dialog-avantages input[type="range"] {
  width: 300px;
  margin-top: 5px;
  border: 2px solid var(--color-light-1);
  --range-track-color: var(--color-light-1);
  --range-thumb-background-color: rgba(11, 10, 19, 0.9);
  --range-thumb-border-color: var(--color-light-1);
}
.application.dialog.cthack .cthack-roll-dialog .dialog-avantages input[name="selectAvantages"] {
  border: none;
  text-align: center;
}
.application.dialog.cthack .cthack-roll-dialog .dialog-bonus {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.application.dialog.cthack .cthack-roll-dialog .dialog-bonus .bonus.checked {
  background: var(--color-dark-4);
}
.application.dialog.cthack .cthack-roll-dialog .dialog-modificateur {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.application.dialog.cthack .cthack-roll-dialog .dialog-modificateur select {
  border: none;
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--color-light-1);
  width: 60px;
  text-align: center;
}
.application.dialog.cthack .cthack-roll-dialog .dialog-visibility {
  display: flex;
  justify-content: center;
  align-items: center;
}
.application.dialog.cthack .cthack-roll-dialog .dialog-visibility select {
  border: none;
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--color-light-1);
  width: 200px;
  text-align: center;
}
.application.dialog.cthack .cthack-roll-dialog .dialog-damage,
.application.dialog.cthack .cthack-roll-dialog .dialog-resource,
.application.dialog.cthack .cthack-roll-dialog .dialog-save {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 2);
  color: var(--color-light-1);
}
.application.dialog.cthack button {
  border-color: var(--color-light-1);
  color: var(--color-light-1);
  font-size: 1.2rem;
}
.application.dialog.cthack button:hover {
  background: var(--color-dark-3);
}
.dice-roll {
  flex-direction: column;
}
.dice-roll .dice-total,
.dice-roll .dice-formula {
  padding-top: 5px;
}
.dice-roll .dice-total {
  margin-bottom: 5px;
}
.dice-roll .message-header {
  font-family: var(--font-primary);
}
.dice-roll img {
  border: 0px;
}
.dice-roll .intro-chat {
  border-radius: 20px;
  display: flex;
  flex-direction: row;
}
.dice-roll .intro-chat .intro-img {
  padding: 5px;
  width: 80px;
  align-self: center;
}
.dice-roll .intro-chat .intro-right {
  display: flex;
  flex-direction: column;
}
.dice-roll .intro-chat .intro-right .introText {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  margin-left: 20px;
}
.dice-roll .result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: calc(var(--font-size-standard) * 1.2);
  text-shadow: 0 0 10px var(--color-shadow-primary);
}
cthack-toggle-switch {
  --toggle-switch-height: 20px;
  --toggle-switch-width: 36px;
  --toggle-switch-padding: 3px;
  --toggle-switch-track-color-unchecked: black;
  --toggle-switch-track-color-checked: #3ba55d;
  --toggle-switch-thumb-color: white;
  --toggle-switch-thumb-width: calc(var(--toggle-switch-height) - var(--toggle-switch-padding) * 2);
  --toggle-switch-thumb-height: var(--toggle-switch-thumb-width);
  --toggle-switch-transition-time: 250ms;
  cursor: var(--cursor-pointer) !important;
  display: inline-block;
  width: var(--toggle-switch-width);
  height: var(--toggle-switch-height);
}
cthack-toggle-switch track {
  background: var(--toggle-switch-track-color-unchecked);
  border-radius: calc((var(--toggle-switch-height) * 2) / 3);
  box-shadow: 0 0 8px rgb(0 0 0%);
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: start;
  padding: var(--toggle-switch-padding);
  width: 100%;
}
cthack-toggle-switch thumb {
  background: var(--toggle-switch-thumb-color);
  border-radius: 100%;
  box-shadow: 0 0 8px rgb(0 0 0%);
  display: block;
  height: var(--toggle-switch-thumb-height);
  text-align: center;
  transition: margin-left var(--toggle-switch-transition-time) ease;
  width: var(--toggle-switch-thumb-width);
}
cthack-toggle-switch[checked] track {
  background: var(--toggle-switch-track-color-checked);
}
cthack-toggle-switch[checked] thumb {
  margin-left: calc(100% - var(--toggle-switch-thumb-width));
}
