/* ----------------------------------------- */
/*  Root                                     */
/* ----------------------------------------- */
:root {
  --color-text-light-highlight: #f0f0e0;
  --color-text-light-heading: #c9c7b8;
  --color-text-light-primary: #b5b3a4;
  --color-text-dark-primary: #191813;
  --color-text-dark-secondary: #4b4a44;
  --color-text-dark-header: #23221d;
  --color-text-dark-inactive: #7a7971;
  --color-text-hyperlink: #ff6400;
  --color-text-light-0: #fff;
  --color-text-light-1: #eee;
  --color-text-light-2: #ddd;
  --color-text-light-3: #ccc;
  --color-text-light-4: #bbb;
  --color-text-light-5: #aaa;
  --color-text-light-6: #999;
  --color-text-light-7: #888;
  --color-text-dark-1: #111;
  --color-text-dark-2: #222;
  --color-text-dark-3: #444;
  --color-text-dark-4: #555;
  --color-text-dark-5: #666;
  --color-text-dark-6: #777;
  --color-border-light-1: #ddd;
  --color-border-light-2: #999;
  --color-border-dark-1: #111;
  --color-border-dark-2: #222;
  --color-border-dark-3: #333;
  --color-border-dark-4: #444;
  --color-border-dark-5: #666;
  --color-shadow-primary: #ff0000;
  --color-shadow-highlight: #ff6400;
  --color-shadow-dark: #000;
  --color-underline-inactive: #7a7971;
  --color-underline-active: #44191A;
  --color-underline-header: #782e22;
  --color-border-light-highlight: #f0f0e0;
  --color-border-light-primary: #b5b3a4;
  --color-border-light-secondary: #c9c7b8;
  --color-border-light-tertiary: #7a7971;
  --color-border-dark: #000;
  --color-border-dark-primary: #191813;
  --color-border-dark-secondary: #23221d;
  --color-border-dark-tertiary: #4b4a44;
  --color-border-highlight: #ff6400;
  --color-border-highlight-alt: #ff0000;
  --color-bg-btn-minor-inactive: #c9c7b8;
  --color-bg-btn-minor-active: #b5b3a4;
  --color-bg-option: #dad8cc;
  --color-ownership-none: #5500ff;
  --color-ownership-observer: #7a7971;
  --color-ownership-owner: #b5b3a4;
  --z-index-canvas: 0;
  --z-index-app: 30;
  --z-index-ui: 60;
  --z-index-window: 100;
  --z-index-tooltip: 9999;
  --sidebar-width: 300px;
  --sidebar-header-height: 32px;
  --sidebar-item-height: 48px;
  --hotbar-height: 52px;
  --hotbar-width: 578px;
  --macro-size: 50px;
  --players-width: 200px;
  --form-field-height: 26px;
  --font-primary: "Signika", sans-serif;
  --font-mono: monospace;
  --font-awesome: "Font Awesome 6 Pro";
  --font-size-11: 0.6875rem;
  --font-size-12: 0.75rem;
  --font-size-13: 0.8125rem;
  --font-size-14: 0.875rem;
  --font-size-16: 1rem;
  --font-size-18: 1.125rem;
  --font-size-20: 1.25rem;
  --font-size-24: 1.5rem;
  --font-size-28: 1.75rem;
  --font-size-32: 2rem;
  --font-size-48: 3rem;
  --line-height-12: 0.75rem;
  --line-height-16: 1rem;
  --line-height-20: 1.25rem;
  --line-height-30: 1.875rem;
  --color-level-info: #5c87b9;
  --color-level-warning: #b18404;
  --color-level-error: #750003;
}
/* ----------------------------------------- */
/*  Fonts                                    */
/* ----------------------------------------- */
@font-face {
  font-family: 'Signika';
  src: url('../fonts/signika/signika-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Signika';
  src: url('../fonts/signika/signika-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@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');
}
/* ----------------------------------------- */
/* Font Awesome Free Compatibility
/* ----------------------------------------- */
@font-face {
  font-family: "Font Awesome 5 Free";
  font-display: block;
  font-weight: 900;
  src: url("../fonts/fontawesome/webfonts/fa-solid-900.woff2") format("woff2"), url("../fonts/fontawesome/webfonts/fa-solid-900.ttf") format("truetype");
}
@font-face {
  font-family: "Font Awesome 5 Free";
  font-display: block;
  font-weight: 400;
  src: url("../fonts/fontawesome/webfonts/fa-regular-400.woff2") format("woff2"), url("../fonts/fontawesome/webfonts/fa-regular-400.ttf") format("truetype");
}
@font-face {
  font-family: "Font Awesome 5 Free";
  font-display: block;
  font-weight: 300;
  src: url("../fonts/fontawesome/webfonts/fa-light-300.woff2") format("woff2"), url("../fonts/fontawesome/webfonts/fa-light-300.ttf") format("truetype");
}
* {
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background-image: url("../ui/denim.png");
  background-repeat: repeat;
  background-size: auto;
  font-family: var(--font-primary);
  font-size: var(--font-size-14);
  box-shadow: 0 0 50vw var(--color-shadow-dark) inset;
}
body.game {
  display: flex;
  justify-content: flex-start;
}
body.game.av-horizontal-dock {
  flex-direction: column;
}
body.background {
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}
body:not(.background) {
  /*
     * Work around for Chrome bug when pressing PgUp/Down in a textarea/TinyMCE editor:
     * https://bugs.chromium.org/p/chromium/issues/detail?id=890248
     * This distorts the background image on world screens so isn't applied there.
     */
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
#interface {
  display: flex;
  justify-content: flex-start;
  flex: 1;
  overflow: hidden;
}
#ui-left,
#ui-middle,
#ui-right {
  position: relative;
  pointer-events: none;
  z-index: var(--z-index-app);
}
#ui-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#ui-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#ui-right {
  flex: none;
}
#ui-top {
  margin: 0 10px 0 18px;
}
#ui-top.offset {
  margin-left: -90px;
}
#ui-bottom > div {
  display: flex;
  justify-content: space-between;
}
#ui-bottom > #camera-views {
  justify-content: flex-start;
}
#sidebar {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: var(--sidebar-width);
  height: calc(100% - 10px);
  overflow: hidden;
  margin: 5px;
  padding: 0;
}
#sidebar > * {
  flex: 1;
}
#sidebar > .flex0 {
  display: block;
  flex: 0;
}
#sidebar > .flex1 {
  flex: 1;
}
#sidebar > .flex2 {
  flex: 2;
}
#sidebar > .flex3 {
  flex: 3;
}
canvas#board {
  z-index: var(--z-index-canvas);
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
.banner {
  position: fixed;
  width: 60%;
  max-width: 960px;
  margin: 0 auto;
  top: 28vh;
  text-align: center;
  padding: 2px 0.5em;
  background: goldenrod;
  border: 1px solid var(--color-border-dark-1);
  border-radius: 5px;
  box-shadow: 0 0 10px var(--color-shadow-dark);
}
#fps {
  width: 100px;
  margin: 0 10px 10px 0;
  align-self: flex-end;
  display: none;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
  line-height: 30px;
  color: var(--color-text-light-heading);
  border: 1px solid var(--color-border-light-tertiary);
  border-radius: 5px;
}
#fps label {
  color: var(--color-text-dark-inactive);
}
/* ---------------------------------------- */
/*  Text                                    */
/* ---------------------------------------- */
/* Headers */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5rem;
  padding: 0;
  font-weight: normal;
}
h1 {
  font-size: 2em;
  border-bottom: 2px solid var(--color-underline-header);
}
h2 {
  font-size: 1.5em;
  border-bottom: 1px solid var(--color-underline-header);
}
h3 {
  font-size: 1.25em;
  border-bottom: 1px solid var(--color-underline-header);
}
:is(h1, h2, h3, h4, h5, h6).noborder {
  border: none;
}
/* Links */
a {
  cursor: pointer;
}
a[href] {
  color: var(--color-text-hyperlink);
}
a:hover {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
a.content-link,
a.inline-roll {
  background: #DDD;
  padding: 1px 4px;
  border: 1px solid var(--color-border-dark-tertiary);
  border-radius: 2px;
  white-space: nowrap;
  word-break: break-all;
}
a.content-link i,
a.inline-roll i {
  color: var(--color-text-dark-inactive);
  margin-right: 0.25em;
}
a.content-link.playing i:before,
a.inline-roll.playing i:before {
  content: "\f0c8";
}
a.content-link.disabled,
a.inline-roll.disabled {
  cursor: default;
  color: var(--color-text-dark-inactive);
  border-color: var(--color-border-light-primary);
}
a.content-link.disabled:hover,
a.inline-roll.disabled:hover {
  text-shadow: unset;
}
a.content-link.broken {
  background: rgba(255, 0, 0, 0.05);
  border: 1px dashed red;
}
a.inline-roll.gmroll {
  background: #e8e8ef;
  border-color: #545469;
}
a.inline-roll.blindroll {
  background: #f5eaf5;
  border-color: #6b476b;
}
/* Paragraph */
p {
  margin: 0.5em 0;
}
p:empty {
  min-height: 1rem;
}
/* Images */
img.centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
::selection {
  background: #82817d;
  color: var(--color-text-light-0);
}
/* Standard Lists */
ul,
ol {
  margin: 0.5em 0;
  padding: 0 0 0 1.5em;
}
/* Definition Lists */
dl {
  margin: 0.5em 0;
}
dt {
  font-weight: bold;
}
dd {
  padding-left: 5px;
  margin: 3px 0;
}
/* HR separators */
hr {
  border: none;
  border-top: 1px solid var(--color-border-light-primary);
  border-bottom: 1px solid var(--color-border-light-highlight);
}
/* Buttons */
button[hidden] {
  display: none;
}
/* Blockquote */
blockquote {
  margin: 0.5em 0 0.5em 10px;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--color-border-light-tertiary);
  font-style: italic;
}
blockquote em {
  font-style: normal;
}
/* Secret Sections */
section.secret {
  padding: 0 5px;
  background: rgba(53, 0, 121, 0.05);
  border-top: 1px solid var(--color-border-dark-5);
  border-bottom: 1px solid var(--color-border-dark-5);
}
section.secret.revealed {
  background: rgba(0, 53, 0, 0.05);
}
section.secret button.reveal {
  width: unset;
  line-height: unset;
  padding: 0 16px;
  margin-top: 8px;
  font-size: var(--font-size-13);
  border-style: dashed;
}
/* ---------------------------------------- */
/* Tables                                   */
/* ---------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.05);
  border-top: 1px solid var(--color-border-light-tertiary);
  border-bottom: 1px solid var(--color-border-light-tertiary);
  margin: 0.5em 0;
}
table thead {
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-text-light-highlight);
  text-shadow: 1px 1px var(--color-shadow-dark);
  border-bottom: 1px solid var(--color-border-dark);
}
table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.2);
}
table td:first-child {
  padding-left: 2px;
}
table td,
table th {
  padding: 0.25em 0;
}
/* ----------------------------------------- */
/* Scrollbar
/* ----------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  box-shadow: 0 0 1px #999 inset;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  outline: none;
  border-radius: 3px;
  background: #782e22;
  border: 1px solid var(--color-border-highlight);
}
:root {
  scrollbar-width: thin;
  scrollbar-color: #782e22 #111;
}
/* ----------------------------------------- */
/* Images
/* ----------------------------------------- */
img {
  box-sizing: border-box;
  border: 1px solid var(--color-border-dark);
  border-radius: 2px;
  max-width: 100%;
}
img.noborder {
  border: none;
  box-shadow: none;
  outline: none;
}
figure {
  margin: 1rem 0;
}
figure img {
  display: block;
  margin: 0 auto;
}
figure figcaption {
  margin-top: 0.5rem;
  padding: 0 1rem;
  text-align: center;
  font-weight: bold;
}
/**
 * Basic Application Wrapper
 */
.app {
  max-height: 100%;
  background: url(../ui/denim075.png) repeat;
  border-radius: 5px;
  box-shadow: 0 0 20px var(--color-shadow-dark);
  margin: 3px 0;
  padding: 0.5em;
  color: var(--color-text-light-highlight);
  z-index: var(--z-index-app);
  transform-origin: top left;
}
/**
 * Pop-Out Window Application
 */
.window-app {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  position: absolute;
  box-shadow: 0 0 20px var(--color-shadow-dark);
  padding: 0;
  z-index: var(--z-index-window);
  /* Resizable movement handle */
}
.window-app > * {
  flex: 1;
}
.window-app > .flex0 {
  display: block;
  flex: 0;
}
.window-app > .flex1 {
  flex: 1;
}
.window-app > .flex2 {
  flex: 2;
}
.window-app > .flex3 {
  flex: 3;
}
.window-app .window-header {
  flex: 0 0 30px;
  overflow: hidden;
  padding: 0 8px;
  line-height: 30px;
  border-bottom: 1px solid var(--color-border-dark);
}
.window-app .window-header .window-title {
  margin: 0;
  word-break: break-all;
}
.window-app .window-header .window-title .document-id-link {
  margin-left: 0.25rem;
  opacity: 0.5;
  cursor: pointer;
}
.window-app .window-header a {
  flex: none;
  margin: 0 0 0 8px;
}
.window-app .window-header i[class^=fa] {
  margin-right: 3px;
}
.window-app .window-content {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  background: url(../ui/parchment.jpg) repeat;
  padding: 8px;
  color: var(--color-text-dark-primary);
  overflow-y: auto;
  overflow-x: hidden;
}
.window-app .window-content > * {
  flex: 1;
}
.window-app .window-content > .flex0 {
  display: block;
  flex: 0;
}
.window-app .window-content > .flex1 {
  flex: 1;
}
.window-app .window-content > .flex2 {
  flex: 2;
}
.window-app .window-content > .flex3 {
  flex: 3;
}
.window-app.zhover {
  z-index: calc(var(--z-index-window) + 1);
}
.window-app .window-resizable-handle {
  width: 20px;
  height: 20px;
  position: absolute;
  bottom: -1px;
  right: 0;
  background: #444;
  padding: 2px;
  border: 1px solid var(--color-border-dark-1);
  border-radius: 4px 0 0 0;
}
.window-app .window-resizable-handle i.fas {
  transform: rotate(45deg);
}
.window-app.minimized .window-header {
  border: none;
}
.window-app.minimized .window-header > *:not(.window-title):not(.close) {
  display: none;
}
.window-app.minimized > :not(.window-header) {
  display: none;
}
.hidden {
  display: none;
}
/* ----------------------------------------- */
/*  Context Dropdown Menu
/* ----------------------------------------- */
#context-menu {
  width: 100%;
  height: max-content;
  min-width: 150px;
  max-width: 360px;
  position: absolute;
  left: 0;
  background: #23221d;
  border: 1px solid var(--color-border-dark);
  border-radius: 5px;
  color: var(--color-text-light-1);
  z-index: calc(var(--z-index-app) + 1);
}
#context-menu.expand-down {
  top: calc(100% + 2px);
}
#context-menu.expand-up {
  bottom: calc(100% + 2px);
}
#context-menu ol.context-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
#context-menu li.context-item {
  padding: 0 5px;
  line-height: 32px;
}
#context-menu li.context-item:hover {
  color: var(--color-text-light-0);
  text-shadow: 0 0 4px var(--color-shadow-primary);
}
#context-menu li.context-item > i {
  margin-right: 5px;
}
.window-app #context-menu {
  z-index: calc(var(--z-index-window) + 1);
}
/* ----------------------------------------- */
/*  Player Config UI
/* ----------------------------------------- */
#player-config label {
  font-size: var(--font-size-14);
  font-weight: bold;
  color: var(--color-text-dark-primary);
}
#player-config .avatar {
  flex: 0 0 64px;
  margin-bottom: 5px;
}
#player-config .directory-list {
  max-height: 300px;
  overflow-y: auto;
  list-style: none;
  margin: 5px 0;
  padding: 0;
}
#player-config .directory-item {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
#player-config .directory-item.context {
  border-top: 1px solid var(--color-border-highlight-alt);
  border-bottom: 1px solid var(--color-border-highlight);
  box-shadow: 0 0 10px var(--color-shadow-highlight);
}
#player-config .directory-item .document-name {
  font-size: var(--font-size-13);
  line-height: 32px;
  margin: 0 0 0 5px;
}
#player-config .directory-item img.profile {
  flex: 0 0 32px;
  height: 32px;
  border: none;
}
#player-config button[type="submit"] {
  margin-top: 0.5em;
}
/* ----------------------------------------- */
/*  Connected Players UI
/* ----------------------------------------- */
#players {
  width: var(--players-width);
  margin: 0 5px 10px 15px;
  padding: 0;
  border: 1px solid var(--color-border-dark);
  pointer-events: all;
}
#players.hidden {
  display: none;
}
#players h3 {
  margin: 3px;
  padding: 4px;
  border-bottom: 2px groove var(--color-border-dark-secondary);
}
#players h3 i {
  margin: 0 6px;
}
#players h3 .players-mode {
  font-size: var(--font-size-16);
  margin: 0 5px;
  color: var(--color-text-light-primary);
}
#players ol {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}
#players ol li.player {
  line-height: 20px;
  padding: 1px 8px;
}
#players ol .player-name {
  overflow: hidden;
  white-space: nowrap;
  word-break: break-all;
}
#players ol .player.context {
  margin: -1px 0;
  border-top: 1px solid var(--color-border-highlight);
  border-bottom: 1px solid var(--color-border-highlight);
}
#players ol .player.context .player-name {
  text-shadow: 0 0 5px var(--color-shadow-primary);
}
#players ol .player-name.self {
  color: #c0eddb;
}
#players ol .player-active {
  flex: 0 0 8px;
  height: 8px;
  border: 1px solid var(--color-border-dark);
  border-radius: 50%;
  margin: 5px 8px 0 0;
}
#players ol .player-active.active {
  box-shadow: 0 0 5px var(--color-shadow-dark);
}
/* ---------------------------------------- */
/* Notifications                            */
/* ---------------------------------------- */
#notifications {
  position: fixed;
  width: 60%;
  top: 100px;
  left: 20%;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: calc(var(--z-index-ui) + 100);
}
.notification {
  background: rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5em;
  padding: 6px 8px;
  line-height: 20px;
  border: 1px solid var(--color-border-dark-secondary);
  border-radius: 5px;
  box-shadow: 0 0 10px var(--color-shadow-dark);
  color: var(--color-text-light-1);
  font-size: var(--font-size-14);
  text-shadow: 1px 1px black;
}
.notification .close {
  float: right;
  line-height: 20px;
  margin-left: 8px;
}
.notification::before {
  font-family: var(--font-awesome);
  font-weight: 900;
  margin-right: 8px;
}
.notification.info {
  background: rgba(47, 80, 132, 0.8);
  border: 1px solid var(--color-level-info);
}
.notification.info::before {
  content: "\f05a";
}
.notification.warning {
  background: rgba(214, 150, 0, 0.8);
  border: 1px solid var(--color-level-warning);
}
.notification.warning::before {
  content: "\f071";
}
.notification.error {
  background: rgba(105, 0, 8, 0.8);
  border: 1px solid var(--color-level-error);
}
.notification.error::before {
  content: "\f06a";
}
.notification.channel-hint {
  width: 100%;
  flex: none;
}
.notification.stable {
  background: rgba(138, 211, 4, 0.4);
}
.notification.stable::before {
  content: "\f6d9";
}
.notification.testing {
  background: rgba(211, 192, 4, 0.4);
}
.notification.testing::before {
  content: "\f0ad";
}
.notification.development {
  background: rgba(211, 119, 4, 0.4);
}
.notification.development::before {
  content: "\f6e3";
}
.notification.prototype {
  background: rgba(211, 20, 4, 0.4);
}
.notification.prototype::before {
  content: "\f1e2";
}
/* ---------------------------------------- */
/* Controls Reference                       */
/* ---------------------------------------- */
#controls-reference .window-content {
  max-height: 75vh;
}
#controls-reference h2 {
  padding: 2px 0;
  border-top: 1px solid var(--color-border-dark-tertiary);
  border-bottom: 1px solid var(--color-border-dark-tertiary);
}
#controls-reference h3 {
  padding: 2px 0;
  border-top: 1px solid var(--color-border-light-primary);
  border-bottom: 1px solid var(--color-border-light-primary);
  font-weight: bold;
}
#controls-reference ol.hotkey-list {
  list-style: none;
  padding: 0;
}
#controls-reference ol.hotkey-list > li {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 5px 0;
}
#controls-reference ol.hotkey-list > li > * {
  flex: 1;
}
#controls-reference ol.hotkey-list > li > .flex0 {
  display: block;
  flex: 0;
}
#controls-reference ol.hotkey-list > li > .flex1 {
  flex: 1;
}
#controls-reference ol.hotkey-list > li > .flex2 {
  flex: 2;
}
#controls-reference ol.hotkey-list > li > .flex3 {
  flex: 3;
}
#controls-reference ol.hotkey-list h4 {
  margin: 0;
  flex: 2;
  line-height: 24px;
}
#controls-reference ol.hotkey-list .keys {
  flex: 3;
}
#controls-reference ol.hotkey-list .key {
  display: inline-block;
  margin: 0 1px;
  padding: 2px 4px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--color-border-light-2);
  border-radius: 5px;
  box-shadow: 1px 1px #444;
  text-align: center;
  min-width: 24px;
}
#controls-reference ol.hotkey-list li.gm .key {
  background: #f5eaf5;
}
/* ---------------------------------------- */
/* Support Details Report                   */
/* ---------------------------------------- */
#support-report {
  -webkit-user-select: all;
  user-select: all;
  display: block;
  padding: 1em;
  margin: 1em 0;
  border: 2px dashed #c9baa7;
  font-size: var(--font-size-12);
  overflow-x: auto;
}
#support-report:focus {
  animation: selectSwap 100ms step-end forwards;
}
@keyframes selectSwap {
  to {
    -webkit-user-select: text;
    user-select: text;
  }
}
/* ---------------------------------------- */
/*  Package Configuration Apps              */
/* ---------------------------------------- */
.package-configuration {
  /** Sidebar */
  /** Main Column */
}
.package-configuration .window-content {
  padding: 0;
}
.package-configuration .window-content > div {
  height: 100%;
  flex-wrap: nowrap;
}
.package-configuration aside.sidebar {
  flex: 0 0 220px;
  height: 100%;
  padding: 1rem;
  border-right: 1px solid var(--color-border-light-primary);
  font-size: var(--font-size-12);
  /** Entry Filter */
  /** Category Filters */
  /** Reset Defaults */
}
.package-configuration aside.sidebar .entry-filter {
  flex: 0;
  margin: 0 0 1rem;
}
.package-configuration aside.sidebar nav.tabs {
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden auto;
}
.package-configuration aside.sidebar nav.tabs .category-tab {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border-light-primary);
  text-align: left;
}
.package-configuration aside.sidebar nav.tabs .category-tab.active {
  font-weight: bold;
  border-bottom: 1px solid var(--color-underline-active);
}
.package-configuration aside.sidebar nav.tabs .category-tab > a {
  flex: 1;
}
.package-configuration aside.sidebar .reset-all {
  flex: 0;
  margin-right: 0.5rem;
}
.package-configuration .categories {
  height: 100%;
}
.package-configuration .categories .scrollable {
  flex: 1;
  padding: 1rem;
  overflow: hidden auto;
}
.package-configuration .categories footer {
  margin: 1rem;
  flex: 0;
}
.package-configuration .form-group {
  margin-bottom: 1rem;
}
/** Tours Management Subclass */
#tours-management .tour label {
  font-weight: bold;
}
#tours-management .tour .status {
  font-size: var(--font-size-12);
  font-weight: normal;
  color: var(--color-text-dark-4);
}
#tours-management .tour .controls {
  flex: 0 0 80px;
  margin-left: 6px;
  justify-content: end;
  align-items: center;
  text-align: center;
}
#tours-management .tour .controls .control {
  flex: 0 0 20px;
}
#tours-management .tour.completed label {
  color: var(--color-text-dark-6);
}
/** Client Settings Subclass */
#client-settings .submenu button {
  flex: 2;
}
/** Keybindings Subclass */
#keybindings {
  /** Single Action */
  /** Single Keybinding */
}
#keybindings .action {
  line-height: 24px;
  padding: 5px;
  border-bottom: 1px dotted var(--color-border-light-2);
}
#keybindings .action:last-child {
  border: none;
}
#keybindings .action .action-title {
  margin: 0;
  font-weight: bold;
}
#keybindings .action .action-bindings {
  list-style: none;
  margin: 0;
  padding: 0;
}
#keybindings .binding {
  justify-content: space-between;
  margin-bottom: 5px;
}
#keybindings .binding .binding-fields {
  display: flex;
}
#keybindings .binding .binding-fields input {
  margin: 0 3px 0 0;
}
#keybindings .binding .binding-fields .binding-input-icon {
  margin-left: -26px;
  margin-right: 3px;
  margin-top: 3px;
  pointer-events: none;
  flex-grow: 0;
  font-size: 130%;
}
#keybindings .binding .key {
  flex: none;
  padding: 0 4px;
  min-width: 24px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--color-border-light-2);
  border-radius: 5px;
  box-shadow: 1px 1px #444;
  text-align: center;
}
#keybindings .binding .key.uneditable {
  background: #cac9c5;
}
#keybindings .binding .binding-controls {
  flex: 0 0 80px;
  margin-left: 0.5rem;
  justify-content: end;
  align-items: center;
  text-align: center;
}
#keybindings .binding .binding-controls .control {
  flex: 0 0 20px;
}
#keybindings .binding .binding-controls .control.conflicts {
  color: orange;
}
#keybindings .binding .binding-controls .control.uneditable {
  color: gray;
}
/* ---------------------------------------- */
/* New User Experience                      */
/* ---------------------------------------- */
a.nue-tab,
a.nue-action {
  color: var(--color-text-hyperlink);
  text-decoration: underline;
}
h3.nue {
  padding: 8px 0;
  border-top: 2px groove var(--color-border-light-highlight);
  border-bottom: 2px groove var(--color-border-light-highlight);
}
footer.nue {
  border-top: 2px groove var(--color-border-light-highlight);
  font-size: var(--font-size-11);
  color: var(--color-text-dark-inactive);
  padding-top: 6px;
}
p.nue {
  font-size: var(--font-size-12);
}
/* ---------------------------------------- */
/* Tours                                    */
/* ---------------------------------------- */
.tour-fadeout {
  box-shadow: rgba(33, 33, 33, 0.8) 0px 0px 1px 2px, rgba(33, 33, 33, 0.6) 0px 0px 0px 5000px;
  border-radius: 4px;
  transition: all 0.3s ease-out;
  z-index: calc(var(--z-index-tooltip) - 2);
  position: fixed;
}
.tour-overlay {
  position: fixed;
  inset: 0px;
  box-sizing: content-box;
  transition: all 0.3s ease-out;
  z-index: calc(var(--z-index-tooltip) - 1);
}
.tour-center-step {
  margin: -100px 0 0 -100px;
  position: fixed;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: 400px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.95);
  font-family: var(--font-primary);
  font-size: var(--font-size-16);
  line-height: var(--font-size-16);
  color: var(--color-text-light-highlight);
  border: 1px solid var(--color-border-dark-secondary);
  border-radius: 3px;
  box-shadow: 0 0 4px #000;
  z-index: var(--z-index-tooltip);
}
.tour [data-action="exit"] {
  position: absolute;
  right: 7px;
  top: 14px;
  color: var(--color-text-light-0);
}
.tour [data-action="exit"] > i {
  cursor: pointer;
}
.tour .step-title {
  text-align: center;
  margin-top: 0.5rem;
  color: var(--color-text-light-0);
}
.tour .step-header:after {
  width: 100%;
  content: "";
  border-bottom: 2px solid var(--color-border-highlight);
  --webkit-mask-image: linear-gradient(90deg, transparent 0%, black 30%, black 70%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 30%, transparent 100%);
}
.tour .step-button.disabled {
  color: var(--color-text-light-6);
  pointer-events: none;
}
.tour .step-button > i {
  cursor: pointer;
}
.tour .content {
  text-align: center;
  color: var(--color-bg-option);
}
.tour .step-controls .step-button {
  flex: 0;
  color: var(--color-text-light-0);
}
.tour .step-controls .step-button > i {
  cursor: pointer;
}
.tour .step-controls .step-button.disabled {
  color: var(--color-text-light-6);
  pointer-events: none;
}
.tour .step-controls [data-action="previous"] {
  text-align: left;
}
.tour .step-controls .progress {
  text-align: center;
  flex: 1;
  color: var(--color-text-light-0);
}
.tour .step-controls [data-action="next"] {
  text-align: right;
}
/* ---------------------------------------- */
/*  Forms                                   */
/* ---------------------------------------- */
form .form-group,
form .form-group-stacked {
  clear: both;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 3px 0;
  align-items: center;
}
form .form-group > * {
  flex: 3;
}
form .form-group > label {
  flex: 2;
}
form .form-group label {
  line-height: var(--form-field-height);
}
form .form-group .form-fields {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}
form .form-group .form-fields > * {
  flex: 1;
  margin: 0 3px 0 0;
}
form .form-group .form-fields > *:last-child {
  margin-right: 0;
}
form .form-group .form-fields > label {
  flex: 0;
  padding: 0 4px;
  text-align: center;
}
form .form-group .form-fields > label.checkbox {
  flex: none;
  padding: 0;
}
form .form-group .form-fields > input[type="checkbox"] {
  flex: 0 0 20px;
}
form .form-group .form-fields button {
  flex: 0;
  line-height: calc(var(--form-field-height) - 4px);
}
form .form-group .form-fields span.sep {
  flex: none;
}
form .form-group span.units {
  flex: 0;
  line-height: 28px;
  font-size: var(--font-size-12);
  color: var(--color-text-dark-secondary);
}
form .form-group-stacked > *,
form .form-group.stacked > * {
  flex: 0 0 100%;
}
form .form-group.slim .form-fields > label {
  flex: none;
  font-size: var(--font-size-12);
  color: var(--color-text-dark-secondary);
  text-align: right;
}
form .form-group.slim .form-fields > input[type="number"],
form .form-group.slim .form-fields > input[type="text"] {
  flex: 0 0 64px;
}
form .form-group.hidden {
  display: none;
}
form h1.form-header,
form h2.form-header,
form h3.form-header {
  margin: 0 0 5px;
  padding: 3px 0;
  color: var(--color-text-dark-header);
  border-top: 1px solid var(--color-border-light-primary);
  border-bottom: 1px solid var(--color-border-light-primary);
}
form .notes,
form .hint {
  flex: 0 0 100%;
  font-size: var(--font-size-12);
  line-height: var(--line-height-16);
  color: var(--color-text-dark-secondary);
  margin: 3px 0;
}
/* ---------------------------------------- */
/* Form Inputs                              */
/* ---------------------------------------- */
input:focus {
  outline: none;
}
/* Text Input */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="search"] {
  width: calc(100% - 2px);
  min-width: 20px;
  height: var(--form-field-height);
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 3px;
  margin: 0;
  color: var(--color-text-dark-primary);
  font-family: inherit;
  font-size: inherit;
  text-align: inherit;
  line-height: inherit;
  border: 1px solid var(--color-border-light-tertiary);
  border-radius: 3px;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="search"]:focus {
  box-shadow: 0 0 5px var(--color-shadow-primary);
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
input[type="number"] {
  -moz-appearance: textfield;
}
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 0.5rem;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 43%, #333 45%, #333 55%, rgba(0, 0, 0, 0) 57%, rgba(0, 0, 0, 0) 100%), linear-gradient(135deg, transparent 0%, transparent 43%, #333 45%, #333 55%, transparent 57%, transparent 100%);
}
input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 3px 5px;
}
input[type="checkbox"]:checked {
  -webkit-filter: grayscale(100%);
}
input[type="radio"] {
  position: relative;
  top: 2px;
  margin: 0 0 0 5px;
}
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  -webkit-filter: grayscale(100%);
}
/* Checkbox Labels */
label.checkbox {
  flex: auto;
  padding: 0;
  margin: 0;
  height: 22px;
  line-height: 22px;
  font-size: var(--font-size-11);
}
label.checkbox > input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0 3px;
  position: relative;
  top: 4px;
}
label.checkbox.right > input[type="checkbox"] {
  margin: 0 0 0 2px;
}
/* Select Boxes */
select {
  height: calc(var(--form-field-height) + 1px);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border-light-tertiary);
  border-radius: 3px;
  padding: 0 3px;
  text-overflow: ellipsis;
  font-family: inherit;
  font-size: inherit;
}
select:focus {
  box-shadow: 0 0 5px var(--color-shadow-primary);
  outline: none;
}
select[multiple] {
  height: auto;
  padding: 3px;
}
option,
optgroup {
  font-family: inherit;
  background: var(--color-bg-option);
}
/* Text Areas */
textarea {
  width: 100%;
  min-height: 50px;
  padding: 5px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border-dark);
  border-radius: 3px;
  font-family: var(--font-mono);
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
textarea:focus {
  box-shadow: 0 0 6px var(--color-shadow-primary);
  outline: none;
}
textarea:read-only {
  color: var(--color-text-dark-secondary);
  box-shadow: none;
}
/* Buttons */
button {
  width: 100%;
  margin: 0 1px;
  background: rgba(255, 255, 240, 0.8);
  border: 1px solid var(--color-border-light-primary);
  border-radius: 3px;
  font-size: var(--font-size-14);
  line-height: 28px;
  font-family: var(--font-primary);
  cursor: pointer;
}
button > i {
  margin-right: 3px;
}
button > * {
  cursor: inherit;
}
button:hover,
button:focus {
  outline: none;
  box-shadow: 0 0 5px var(--color-shadow-primary);
}
button:disabled {
  color: var(--color-text-dark-secondary);
  box-shadow: none;
}
button.hidden {
  display: none;
}
form button {
  background: rgba(0, 0, 0, 0.1);
  border: 2px groove var(--color-border-light-highlight);
}
input:disabled {
  border: none;
  color: var(--color-text-dark-secondary);
}
input:disabled:hover {
  border: none;
  box-shadow: none;
  outline: none;
}
input::placeholder {
  color: var(--color-text-dark-secondary);
  opacity: 1;
}
/* Color Picker */
input[type="text"].color {
  flex: 1.45;
}
input[type="color"][data-edit] {
  height: var(--form-field-height);
  background: transparent;
  border: 2px groove var(--color-border-light-highlight);
}
input[type="color"][data-edit][data-edit] {
  margin-left: 5px;
  flex: 1.45;
}
/* File Pickers */
button.file-picker {
  flex: 0 0 24px;
  line-height: 24px;
  margin: -1px 0 -1px 4px;
  order: 99;
}
button.file-picker + input[type="text"] {
  height: 28px;
  margin-right: 5px !important;
}
/* Range Input */
input[type=range] {
  background: transparent;
  -webkit-appearance: none;
  height: 20px;
  margin: 0;
  width: 100%;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  background: #999999;
  border-radius: 3px;
  border: 1px solid #111;
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid var(--color-border-dark);
  height: 12px;
  width: 12px;
  border-radius: 2px;
  background: #c85019;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -4px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  background: #a6a6a6;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  background: #999999;
  border-radius: 3px;
  border: 1px solid var(--color-border-dark-1);
}
input[type=range]::-moz-range-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid var(--color-border-dark);
  height: 12px;
  width: 12px;
  border-radius: 2px;
  background: #c85019;
  cursor: pointer;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: #8c8c8c;
  border: 1px solid var(--color-border-dark-1);
  border-radius: 6px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]::-ms-fill-upper {
  background: #999999;
  border: 1px solid var(--color-border-dark-1);
  border-radius: 6px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]::-ms-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid var(--color-border-dark);
  height: 12px;
  width: 12px;
  border-radius: 2px;
  background: #c85019;
  cursor: pointer;
}
input[type=range]:focus::-ms-fill-lower {
  background: #999999;
}
input[type=range]:focus::-ms-fill-upper {
  background: #a6a6a6;
}
input[type="range"] + .range-value {
  display: block;
  flex: 0 1 48px;
  text-align: center;
  border: 1px solid var(--color-border-light-primary);
  padding: 2px;
  margin-left: 10px;
}
/**
 * Dark mode inputs
 */
.dark button {
  background: rgba(255, 255, 240, 0.8);
  border: 2px solid var(--color-border-light-secondary);
}
.dark input,
.dark select {
  background: rgba(255, 255, 240, 0.8);
}
/* ----------------------------------------- */
/* TinyMCE Editor
/* ----------------------------------------- */
.editor {
  position: relative;
  max-height: 100%;
  max-width: 100%;
  overflow: auto;
}
.editor-content * {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
.editor-edit {
  display: none;
  font-size: 1.25em;
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(187, 187, 187, 0.75);
  border: 1px solid var(--color-border-dark-1);
  border-radius: 4px;
  padding: 1px 2px;
  box-shadow: 0 0 1px var(--color-shadow-dark);
}
.editor:hover .editor-edit {
  display: block;
}
/* Oxide Theme Overrides */
.tox.tox-tinymce {
  border: none;
}
.tox.tox-tinymce .tox-toolbar {
  background: transparent;
}
.tox.tox-tinymce .tox-tbtn {
  font-size: var(--font-size-12);
  padding: 0 2px;
}
.tox.tox-tinymce .tox-tbtn[title="Formats"] {
  width: 90px;
}
.tox.tox-tinymce .tox-edit-area__iframe {
  background: transparent;
}
/* Flexbox */
.flexrow {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.flexcol {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
}
.flexrow > *,
.flexcol > * {
  flex: 1;
}
.flexrow > .flex0,
.flexcol > .flex0 {
  display: block;
  flex: 0;
}
.flexrow > .flex1,
.flexcol > .flex1 {
  flex: 1;
}
.flexrow > .flex2,
.flexcol > .flex2 {
  flex: 2;
}
.flexrow > .flex3,
.flexcol > .flex3 {
  flex: 3;
}
/* ----------------------------------------- */
/* Tabbed Containers
/* ----------------------------------------- */
.tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-around;
}
.tabs .item {
  text-align: center;
}
.tabs .item.active {
  text-shadow: 0 0 10px var(--color-shadow-primary);
}
.tab[data-tab] {
  display: none;
}
.tab[data-tab].active {
  display: block;
}
.tab[data-tab].active.flexrow,
.tab[data-tab].active.flexcol {
  display: flex;
}
/* ----------------------------------------- */
/* Filter Navigation
/* ----------------------------------------- */
nav.list-filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  justify-content: flex-end;
}
nav.list-filters > * {
  flex: 1;
}
nav.list-filters > .flex0 {
  display: block;
  flex: 0;
}
nav.list-filters > .flex1 {
  flex: 1;
}
nav.list-filters > .flex2 {
  flex: 2;
}
nav.list-filters > .flex3 {
  flex: 3;
}
nav.list-filters label {
  font-weight: bold;
}
nav.list-filters a.filter {
  flex: none;
  margin-left: 10px;
  border-bottom: 2px solid var(--color-underline-inactive);
}
nav.list-filters a.filter.active {
  font-weight: bold;
  border-bottom: 2px solid var(--color-underline-active);
}
/* Draggable Containers */
.draggable {
  cursor: move;
}
#drag-preview {
  position: absolute;
  left: -1000px;
  height: -1000px;
  z-index: -1;
}
/* ----------------------------------------- */
/* Dialog Window
/* ----------------------------------------- */
.dialog .dialog-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  justify-content: space-around;
}
.dialog .dialog-buttons > * {
  flex: 1;
}
.dialog .dialog-buttons > .flex0 {
  display: block;
  flex: 0;
}
.dialog .dialog-buttons > .flex1 {
  flex: 1;
}
.dialog .dialog-buttons > .flex2 {
  flex: 2;
}
.dialog .dialog-buttons > .flex3 {
  flex: 3;
}
.dialog .dialog-buttons button {
  background: rgba(0, 0, 0, 0.1);
  border: 2px groove var(--color-border-light-highlight);
  margin: 0 5px 0 0;
}
.dialog .dialog-buttons button:last-child {
  margin-right: 0;
}
.dialog .dialog-buttons button.default {
  background: rgba(0, 0, 0, 0.05);
  border: 2px groove var(--color-border-light-secondary);
}
/* ----------------------------------------- */
/*  Global Tooltip                           */
/* ----------------------------------------- */
#tooltip {
  position: absolute;
  width: max-content;
  max-width: 320px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.95);
  font-family: var(--font-primary);
  font-size: var(--font-size-16);
  line-height: var(--font-size-16);
  color: var(--color-text-light-highlight);
  border: 1px solid var(--color-border-dark-secondary);
  border-radius: 3px;
  box-shadow: 0 0 4px #000;
  z-index: var(--z-index-tooltip);
  pointer-events: none;
  overflow-wrap: break-word;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 500ms, opacity 500ms;
}
#tooltip.active {
  visibility: visible;
  opacity: 1;
  transition: opacity 500ms;
}
#tooltip.tour {
  pointer-events: all;
}
/* ----------------------------------------- */
/* File Picker
/* ----------------------------------------- */
.filepicker {
  line-height: 24px;
  /* Private Directory */
}
.filepicker .current-dir button {
  flex: 0 0 32px;
  margin: 0 5px 0 0;
  line-height: 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border-dark-4);
  border-radius: 3px;
}
.filepicker .current-dir button > i {
  margin: 0;
}
.filepicker .current-dir button:last-child {
  margin-right: 0;
}
.filepicker .current-dir input[name="target"] {
  height: 32px;
  margin: 0 5px 0 0;
}
.filepicker .filter-dir label {
  flex: 1;
  line-height: 28px;
}
.filepicker .filter-dir input {
  flex: 3;
}
.filepicker .tile-size .form-fields {
  flex: 0 0 156px;
}
.filepicker .directory {
  list-style: none;
  margin: 0.5em 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border-dark-5);
  border-radius: 2px;
  max-height: 600px;
  overflow: hidden auto;
  scrollbar-width: thin;
}
.filepicker .directory > li {
  height: 30px;
  line-height: 30px;
  cursor: pointer;
  padding-left: 0.25em;
  word-break: break-all;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-dark-4);
}
.filepicker .directory > li > i {
  margin-right: 5px;
}
.filepicker .directory > li.picked {
  background: rgba(0, 0, 0, 0.1);
  font-weight: bold;
}
.filepicker .directory > li:last-child {
  border-bottom: none;
}
.filepicker .directory > li:hover {
  text-shadow: 0 0 5px var(--color-shadow-primary);
}
.filepicker .directory > li.dir {
  font-weight: bold;
}
.filepicker .private button.privacy {
  background: rgba(115, 49, 255, 0.05);
  box-shadow: 0 0 4px #7331FF inset;
}
.filepicker .private .directory,
.filepicker .public .private.dir {
  background: rgba(115, 49, 255, 0.05);
}
.filepicker .details-list img {
  display: none;
}
.filepicker .thumbs-list li {
  height: 48px;
  line-height: 48px;
}
.filepicker .thumbs-list img {
  flex: 0 0 48px;
  object-fit: cover;
  object-position: 50% 50%;
  margin-right: 10px;
  border: none;
}
.filepicker .tiles-list {
  display: grid;
  grid-template-columns: 100px 100px 100px 100px 100px;
  width: 508px;
}
.filepicker .tiles-list li {
  width: 100px;
  height: 100px;
  padding: 0;
  border: 1px solid transparent;
  border-right: 1px solid var(--color-border-dark-primary);
  border-bottom: 1px solid var(--color-border-dark-primary);
}
.filepicker .tiles-list li img {
  border: none;
  margin: 0;
  object-fit: contain;
}
.filepicker .tiles-list li.picked {
  box-shadow: 0 0 6px inset var(--color-shadow-highlight);
}
.filepicker .images-list li {
  position: relative;
  height: 200px;
  padding: 0;
  border: 1px solid var(--color-border-dark-primary);
}
.filepicker .images-list li img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: 50% 50%;
  border: none;
}
.filepicker .images-list li span.filename {
  position: absolute;
  top: 0;
  width: 400px;
  left: calc(50% - 200px);
  background: rgba(0, 0, 0, 0.66);
  border: 1px solid var(--color-border-dark);
  border-top: none;
  border-radius: 0 0 5px 5px;
  text-align: center;
  color: var(--color-text-light-highlight);
  line-height: 20px;
  padding-top: 4px;
}
.filepicker .upload-file label,
.filepicker .selected-file label {
  flex: 1;
}
.filepicker .display-modes {
  flex: 0 0 160px;
  text-align: center;
}
.filepicker .display-modes a {
  margin: 0 3px;
  border: 1px solid var(--color-border-light-tertiary);
  background: var(--color-bg-btn-minor-inactive);
  border-radius: 3px;
}
.filepicker .display-modes a.active {
  text-shadow: 0 0 6px var(--color-shadow-highlight);
  border: 1px solid var(--color-border-dark-primary);
  background: var(--color-bg-btn-minor-active);
}
/* ----------------------------------------- */
/* TinyMCE Editor
/* ----------------------------------------- */
.app .mce-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}
.app .mce-panel span {
  display: inherit;
}
.app .mce-top-part {
  border-bottom: 2px groove var(--color-border-light-highlight);
}
.app .mce-top-part::before {
  box-shadow: none;
}
.app .mce-btn {
  background: transparent;
  border: none;
  color: var(--color-text-dark-1);
}
.app .mce-btn:hover {
  background: transparent;
  border: none;
  color: inherit;
}
.app .mce-btn .mce-ico {
  color: var(--color-text-dark-1);
}
.dice-roll {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  justify-content: space-around;
}
.dice-roll > * {
  flex: 1;
}
.dice-roll > .flex0 {
  display: block;
  flex: 0;
}
.dice-roll > .flex1 {
  flex: 1;
}
.dice-roll > .flex2 {
  flex: 2;
}
.dice-roll > .flex3 {
  flex: 3;
}
.dice-roll .dice-result,
.dice-roll .dice-tooltip {
  flex: 0 0 100%;
}
.dice-roll .dice-tooltip {
  display: none;
  order: 1;
}
.dice-roll .dice-tooltip.expanded {
  display: block;
}
.dice-roll .dice-result {
  order: 2;
}
.dice-roll .dice-formula,
.dice-roll .dice-total {
  flex: 0 0 100%;
  position: relative;
  margin: 0;
  line-height: 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border-light-2);
  border-radius: 3px;
  box-shadow: 0 0 2px #FFF inset;
  word-break: break-all;
}
.dice-roll .dice-formula {
  margin-bottom: 5px;
}
.dice-roll .dice-total {
  flex: 0;
  font-size: var(--font-size-20);
  font-weight: bold;
}
.dice-roll .dice-total.success {
  color: green;
}
.dice-roll .dice-total.failure {
  color: red;
}
.dice-roll + .dice-roll {
  margin-top: 5px;
}
/** Inline Roll Tooltip */
.inline-roll .dice-tooltip {
  width: 280px;
  position: fixed;
  background: url(../ui/parchment.jpg) repeat;
  border: 1px solid var(--color-border-dark);
  border-radius: 5px;
  padding: 5px 5px 0;
  box-shadow: 0 0 10px var(--color-shadow-dark);
}
.inline-roll:hover .dice-tooltip {
  text-shadow: none;
}
/**
 * Legacy Tooltip Code
 */
.dice-roll .dice-part:hover > .dice-tooltip {
  display: block;
}
.dice-roll .dice-part.die {
  font-weight: 700;
  cursor: pointer;
}
.dice-roll .dice-part .dice-tooltip {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  line-height: 26px;
  padding: 0 2px;
  background: #444;
  font-size: var(--font-size-14);
  color: var(--color-text-light-4);
}
.dice-roll .dice-tooltip .reroll {
  color: var(--color-text-dark-6);
  text-decoration: line-through;
}
.dice-roll .dice-tooltip .fail {
  color: red;
}
.dice-roll .dice-tooltip .crit {
  color: lightgreen;
}
.dice-roll .dice-flavor {
  text-align: right;
  font-size: var(--font-size-12);
}
.message.ic .dice-roll {
  font-style: normal;
}
/* ----------------------------------------- */
/*  Dice Tooltip
/* ----------------------------------------- */
.dice-tooltip .part-header {
  margin: 0;
  line-height: 24px;
  border-bottom: 1px solid var(--color-text-light-6);
}
.dice-tooltip .part-header .part-formula {
  font-weight: bold;
  flex: 1;
}
.dice-tooltip .part-header .part-flavor {
  flex: none;
  margin-right: 5px;
  font-size: var(--font-size-12);
  color: var(--color-text-dark-secondary);
}
.dice-tooltip .part-header .part-total {
  flex: none;
  font-size: var(--font-size-16);
  font-weight: bold;
  padding: 0 5px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-text-light-6);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
}
.dice-tooltip .dice-rolls {
  list-style: none;
  margin: 5px 0;
  padding: 0;
  overflow: hidden;
}
.dice-tooltip .dice-rolls .roll {
  position: relative;
  min-width: 24px;
  line-height: 24px;
  float: left;
  margin-right: 1px;
  background-image: url("../icons/svg/d6-grey.svg");
  background-repeat: no-repeat;
  background-size: 24px 24px;
  font-size: var(--font-size-16);
  color: #000;
  font-weight: bold;
  text-align: center;
}
.dice-tooltip .dice-rolls .roll.d4 {
  background-image: url("../icons/svg/d4-grey.svg");
}
.dice-tooltip .dice-rolls .roll.d6 {
  background-image: url("../icons/svg/d6-grey.svg");
}
.dice-tooltip .dice-rolls .roll.d8 {
  background-image: url("../icons/svg/d8-grey.svg");
}
.dice-tooltip .dice-rolls .roll.d10 {
  background-image: url("../icons/svg/d10-grey.svg");
}
.dice-tooltip .dice-rolls .roll.d12 {
  background-image: url("../icons/svg/d12-grey.svg");
}
.dice-tooltip .dice-rolls .roll.d20 {
  background-image: url("../icons/svg/d20-grey.svg");
}
.dice-tooltip .dice-rolls .roll.success,
.dice-tooltip .dice-rolls .roll.max {
  color: #18520b;
  filter: sepia(0.5) hue-rotate(60deg);
}
.dice-tooltip .dice-rolls .roll.failure,
.dice-tooltip .dice-rolls .roll.min {
  color: #aa0200;
  filter: sepia(0.5) hue-rotate(-60deg);
}
.dice-tooltip .dice-rolls .roll.discarded,
.dice-tooltip .dice-rolls .roll.rerolled {
  color: inherit;
  filter: sepia(0.5) contrast(0.75) opacity(0.4);
}
.dice-tooltip .dice-rolls .roll.exploded:before {
  font-size: 0.5rem;
  font-family: var(--font-awesome);
  content: "\f666";
  position: absolute;
  top: -8px;
  right: 0;
}
/* Applications */
#hud {
  position: absolute;
  transform-origin: top left;
  pointer-events: none;
  z-index: calc(var(--z-index-canvas) + 1);
}
/* ---------------------------------------- */
/* HUD Application
/* ---------------------------------------- */
.placeable-hud {
  position: absolute;
  text-align: center;
  pointer-events: none;
  transform-origin: top left;
}
.placeable-hud .col {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  position: absolute;
  height: 100%;
}
.placeable-hud .col > * {
  flex: 1;
}
.placeable-hud .col > .flex0 {
  display: block;
  flex: 0;
}
.placeable-hud .col > .flex1 {
  flex: 1;
}
.placeable-hud .col > .flex2 {
  flex: 2;
}
.placeable-hud .col > .flex3 {
  flex: 3;
}
.placeable-hud .col.left {
  width: 70px;
  justify-content: flex-start;
}
.placeable-hud .col.middle {
  width: calc(100% - (70px * 2));
  left: 70px;
  justify-content: space-between;
}
.placeable-hud .col.right {
  width: 70px;
  right: 0;
  justify-content: flex-start;
}
.placeable-hud input[type="text"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 15px var(--color-shadow-dark);
  border: 1px solid var(--color-border-dark-3);
  color: var(--color-text-light-2);
  height: 40px;
  line-height: 40px;
  margin: 0;
  border-radius: 8px;
  font-size: var(--font-size-28);
  font-weight: bold;
  pointer-events: all;
}
.placeable-hud input[type="text"]:focus {
  box-shadow: 0 0 10px #c60;
  border: 1px solid var(--color-border-highlight-alt);
}
.placeable-hud .control-icon {
  box-sizing: content-box;
  width: 40px;
  flex: 0 0 40px;
  margin: 8px 0;
  font-size: var(--font-size-28);
  line-height: 40px;
  text-align: center;
  color: var(--color-text-light-3);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 15px var(--color-shadow-dark);
  border: 1px solid #333;
  border-radius: 8px;
  pointer-events: all;
}
.placeable-hud .control-icon:first-child {
  margin-top: 0;
}
.placeable-hud .control-icon:hover {
  color: var(--color-text-light-1);
}
.placeable-hud .control-icon.active {
  border: 1px solid var(--color-border-highlight);
}
.placeable-hud .control-icon > i[class^=fa] {
  position: relative;
  top: 1px;
}
.placeable-hud .control-icon img {
  display: block;
  margin: 2px;
  padding: 0;
  border: none;
  opacity: 0.7;
}
.placeable-hud .control-icon img:hover {
  opacity: 1;
}
/* ---------------------------------------- */
/* Token HUD
/* ---------------------------------------- */
#token-drop {
  opacity: 0.5;
  z-index: calc(var(--z-index-window) + 1);
  border: none;
}
#token-hud .col {
  height: calc(100% + 100px);
  top: -50px;
}
#token-hud .col.left {
  justify-content: center;
  left: -70px;
}
#token-hud .col.right {
  justify-content: center;
  right: -70px;
}
#token-hud .col.middle {
  width: 100%;
  left: 0;
  justify-content: space-between;
}
#token-hud .attribute {
  flex: 0 0 40px;
}
#token-hud .attribute.bar1 {
  bottom: 0;
}
#token-hud .attribute.bar1 input {
  border: 1px solid #7cd000;
}
#token-hud .attribute.bar2 {
  top: 0;
}
#token-hud .attribute.bar2 input {
  border: 1px solid #659db5;
}
#token-hud .attribute.elevation {
  position: relative;
  width: 56px;
  margin: 8px 0;
}
#token-hud .attribute i.fas {
  position: absolute;
  top: -5px;
  left: -3px;
  font-size: var(--font-size-18);
  color: var(--color-text-light-5);
}
#token-hud .control-icon.effects {
  position: relative;
}
#token-hud .status-effects {
  visibility: hidden;
  position: absolute;
  left: 65px;
  top: 0;
  display: grid;
  padding: 3px;
  box-sizing: content-box;
  width: 100px;
  grid-template-columns: repeat(4, 25%);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 15px var(--color-shadow-dark);
  border: 1px solid var(--color-border-dark-3);
  border-radius: 4px;
  pointer-events: all;
}
#token-hud .status-effects.active {
  visibility: visible;
}
#token-hud .status-effects .effect-control {
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: none;
  opacity: 0.5;
}
#token-hud .status-effects .effect-control:hover {
  opacity: 0.75;
}
#token-hud .status-effects .effect-control.active {
  opacity: 1;
}
#token-hud .status-effects .effect-control.overlay {
  opacity: 1;
  border: 1px solid var(--color-border-highlight);
}
/* ---------------------------------------- */
/* Chat Bubbles
/* ---------------------------------------- */
.chat-bubble {
  position: absolute;
  padding: 8px;
  background: #f5f2ec;
  min-width: 100px;
  max-width: 400px;
  max-height: 100px;
  color: var(--color-text-dark-2);
  border: 2px solid #6f6c66;
  box-shadow: 0 0 20px var(--color-shadow-dark);
  overflow: hidden;
}
.chat-bubble .bubble-content {
  position: relative;
  top: 0;
}
.chat-bubble.left {
  border-radius: 16px 8px 16px 4px;
}
.chat-bubble.right {
  border-radius: 8px 16px 4px 16px;
}
.chat-bubble.emote {
  background: #f3edde;
  border: 2px solid #887c5d;
  color: var(--color-text-dark-3);
  font-style: italic;
}
.chat-bubble.chatter {
  padding: 4px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: none;
  border: none;
  border-radius: 10px;
  color: var(--color-text-light-highlight);
}
#logo {
  z-index: var(--z-index-ui);
  border: none;
  box-sizing: border-box;
  pointer-events: all;
  width: 100px;
  margin: 12px 0 12px 10px;
}
#navigation {
  width: 100%;
  margin: 12px 0 0 0;
  padding: 0;
  background: none;
  box-shadow: none;
  border: none;
  pointer-events: none;
}
#navigation .nav-item {
  line-height: 32px;
  padding: 0 8px;
  margin: 0 8px 8px 0;
  border: 1px solid var(--color-border-dark);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  pointer-events: all;
}
#navigation #nav-toggle {
  flex: 0 0 32px;
  height: 34px;
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
}
#navigation #nav-toggle:hover {
  text-shadow: 0 0 10px var(--color-shadow-highlight);
}
#navigation #scene-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
#navigation #scene-list .scene {
  float: left;
  background: rgba(39, 39, 39, 0.95);
}
#navigation #scene-list .scene:last-child {
  margin-right: 0;
}
#navigation #scene-list .scene.gm {
  background: #130027;
  border: 1px solid #3a00ae;
}
#navigation #scene-list .scene.view,
#navigation #scene-list .scene.context {
  cursor: default;
  color: var(--color-text-light-0);
  border: 1px solid var(--color-border-highlight-alt);
  background: rgba(52, 52, 52, 0.95);
  border-bottom: 1px solid var(--color-border-highlight);
  box-shadow: 0 0 10px var(--color-shadow-highlight);
}
#navigation #scene-list .scene ul.scene-players {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 24px;
  left: 0;
}
#navigation #scene-list .scene li.scene-player {
  float: left;
  height: 14px;
  width: 14px;
  margin: 0 2px 0 0;
  line-height: var(--line-height-12);
  font-size: 0.625rem;
  text-align: center;
  color: #000;
  font-weight: 700;
  background: #97dff4;
  border: 1px solid var(--color-border-dark);
  border-radius: 8px;
}
#navigation.collapsed {
  pointer-events: none;
}
#navigation.collapsed #nav-toggle {
  pointer-events: all;
}
#navigation.collapsed #scene-list {
  display: none;
}
#loading {
  display: none;
  width: 100%;
  height: 16px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--color-border-dark);
  box-shadow: 0 0 4px #b2c3ff;
  border-radius: 4px;
  z-index: calc(var(--z-index-canvas) + 1);
}
#loading label {
  line-height: 16px;
  position: absolute;
  top: -4px;
  padding: 0 5px;
  font-size: var(--font-size-18);
  color: var(--color-text-light-0);
  background: rgba(0, 0, 0, 0.6);
  text-shadow: 1px 1px 6px var(--color-text-light-0);
}
#loading #loading-bar {
  position: relative;
  margin: 1px;
  height: 10px;
  background: #5d49ff;
  border: 1px solid #b2c3ff;
  border-radius: 2px;
}
#loading #context {
  left: 5px;
}
#loading #progress {
  top: -4px;
  right: 0;
  padding: 0 8px;
}
/* ----------------------------------------- */
/*  Main Menu
/* ----------------------------------------- */
#menu {
  position: fixed;
  z-index: calc(var(--z-index-window) + 1);
  top: 45%;
  left: calc(50% - 180px);
  width: 360px;
  color: var(--color-text-light-0);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  box-shadow: 0 0 30px var(--color-shadow-dark);
}
#menu #menu-items {
  list-style: none;
  margin: 5px;
  padding: 0;
}
#menu #menu-items li {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  text-align: center;
  cursor: pointer;
}
#menu #menu-items li > * {
  flex: 1;
}
#menu #menu-items li > .flex0 {
  display: block;
  flex: 0;
}
#menu #menu-items li > .flex1 {
  flex: 1;
}
#menu #menu-items li > .flex2 {
  flex: 2;
}
#menu #menu-items li > .flex3 {
  flex: 3;
}
#menu #menu-items li > i {
  flex: 0 0 36px;
  font-size: var(--font-size-24);
  line-height: 48px;
}
#menu #menu-items li h4 {
  font-size: 2rem;
  line-height: 48px;
  margin: 0;
}
#menu #menu-items li:hover {
  text-shadow: 0 0 10px var(--color-shadow-highlight);
}
/* ----------------------------------------- */
/*  Scene Controls
/* ----------------------------------------- */
#controls {
  flex: 1;
  padding: 0 15px;
  overflow: hidden;
}
#controls ol.control-tools {
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
  box-shadow: none;
  border: none;
  pointer-events: none;
  /* Primary Controls */
  /* Secondary Controls */
  /* Disabled Controls */
  /* Control Buttons */
}
#controls ol.control-tools.main-controls {
  flex: 0;
  flex-wrap: nowrap;
  margin-right: 10px;
}
#controls ol.control-tools.sub-controls {
  flex-wrap: wrap;
  display: none;
  align-content: flex-start;
}
#controls ol.control-tools.sub-controls.active {
  display: inherit;
}
#controls ol.control-tools.sub-controls > li {
  margin-right: 5px;
}
#controls ol.control-tools.disabled {
  opacity: 0.4;
  pointer-events: none;
}
#controls ol.control-tools > li {
  flex: none;
  width: 36px;
  height: 36px;
  margin: 0 0 10px 0;
  box-sizing: content-box;
  font-size: 24px;
  line-height: 36px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 10px var(--color-shadow-dark);
  color: var(--color-text-light-heading);
  text-align: center;
  border: 1px solid var(--color-border-dark);
  border-radius: 5px;
  cursor: pointer;
  pointer-events: all;
  display: inline-block;
  /* Toggled Buttons */
}
#controls ol.control-tools > li.active,
#controls ol.control-tools > li:hover {
  color: var(--color-text-light-highlight);
  border: 1px solid var(--color-border-highlight-alt);
  border-bottom: 1px solid var(--color-border-highlight);
  box-shadow: 0 0 10px var(--color-shadow-highlight);
}
#controls ol.control-tools > li.toggle {
  background: rgba(30, 0, 60, 0.5);
  border: 1px solid #3b1893;
}
#controls ol.control-tools > li.toggle.active,
#controls ol.control-tools > li.toggle:hover {
  background: rgba(60, 0, 120, 0.75);
  border: 1px solid #9b8dff;
  box-shadow: 0 0 10px #9b8dff;
}
#controls ol.control-tools .has-notes::after {
  color: #3b1893;
  opacity: 1;
}
/* ----------------------------------------- */
/*  Game Pause
/* ----------------------------------------- */
#pause {
  width: 100%;
  height: 100px;
  position: fixed;
  bottom: 10%;
  left: 0;
  pointer-events: none;
  z-index: var(--z-index-ui);
  background: url("../ui/pausebg.png") no-repeat 50% 50%;
  display: none;
}
#pause.paused {
  display: block;
}
#pause img {
  position: absolute;
  top: -16px;
  left: calc(50% - 64px);
  height: 128px;
  width: 128px;
  opacity: 0.5;
  border: none;
  --fa-animation-duration: 5s;
}
#pause figcaption {
  margin: 0;
  font-size: 2em;
  font-weight: normal;
  line-height: 100px;
  text-align: center;
  position: relative;
  z-index: calc(var(--z-index-window) - 1);
  color: var(--color-text-light-1);
  text-shadow: 1px 1px 30px var(--color-shadow-dark);
}
/* ---------------------------------------- */
/*  Hotbar                                  */
/* ---------------------------------------- */
#hotbar {
  z-index: calc(var(--z-index-ui) + 10);
  width: var(--hotbar-width);
  height: var(--hotbar-height);
  pointer-events: none;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}
#hotbar .bar-controls {
  flex: 0 0 32px;
  height: 100%;
  margin: 0 2px;
  text-align: center;
  color: var(--color-text-light-heading);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--color-border-dark);
  box-shadow: 0 0 3px #444 inset;
  border-radius: 3px;
}
#hotbar .bar-controls a {
  display: block;
}
#hotbar .bar-controls a.page-control {
  font-size: 1.5em;
  line-height: 12px;
}
#hotbar .bar-controls span.page-number {
  display: block;
  font-size: var(--font-size-20);
  line-height: 8px;
}
#hotbar #action-bar {
  flex: 1;
  height: 100%;
  pointer-events: all;
  flex-wrap: nowrap;
}
#hotbar #action-bar.collapsed {
  display: none;
  pointer-events: none;
}
#hotbar #macro-list {
  flex-wrap: nowrap;
  height: 100%;
  list-style: none;
  margin: 0 2px;
  padding: 0;
  border: 1px solid var(--color-border-dark);
  border-radius: 3px;
  display: grid;
  grid-template-columns: repeat(10, var(--macro-size));
}
#hotbar .macro {
  position: relative;
  width: var(--macro-size);
  height: var(--macro-size);
  border: 1px solid var(--color-border-dark);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 5px var(--color-shadow-dark) inset;
  cursor: pointer;
}
#hotbar .macro.inactive {
  box-shadow: 0 0 5px #444 inset;
}
#hotbar .macro:hover {
  box-shadow: 0 0 10px var(--color-shadow-highlight) inset;
}
#hotbar .macro.active:hover {
  border: 1px solid var(--color-border-highlight-alt);
}
#hotbar .macro .macro-key {
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 1px 3px;
  background: #111;
  color: var(--color-text-light-highlight);
  font-weight: bold;
  pointer-events: none;
}
#hotbar .macro .macro-icon {
  object-fit: cover;
  object-position: 50% 0;
  border: none;
  height: calc(var(--macro-size) - 2px);
  width: calc(var(--macro-size) - 2px);
}
#hotbar #hotbar-directory-controls,
#hotbar #hotbar-page-controls {
  pointer-events: all;
}
#hotbar #hotbar-directory-controls a {
  line-height: 24px;
}
@media (max-width: 1120px) {
  #hotbar {
    width: calc(var(--hotbar-width) / 2);
    height: calc(var(--hotbar-height) * 2);
  }
  #hotbar #macro-list {
    grid-template-columns: repeat(5, 50px);
  }
  #hotbar .bar-controls {
    justify-content: space-between;
  }
  #hotbar .bar-controls a {
    flex: 0;
  }
  #hotbar .bar-controls span.page-number {
    line-height: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }
}
/* ---------------------------------------- */
/*  Watermark                               */
/* ---------------------------------------- */
.watermark {
  width: 100%;
  z-index: var(--z-index-ui);
  position: fixed;
  bottom: 10px;
  height: 24px;
  font-size: 1.5em;
  pointer-events: none;
  text-align: center;
  color: var(--color-text-light-5);
  text-shadow: 1px 1px 4px var(--color-shadow-dark);
}
/* ---------------------------------------- */
/*  PRIMARY SIDEBAR                         */
/* ---------------------------------------- */
/* The Sidebar Container */
#sidebar {
  pointer-events: all;
  border: 1px solid var(--color-border-dark);
}
#sidebar.collapsed {
  height: auto;
}
/* The Sidebar Tabs Container */
#sidebar-tabs {
  --sidebar-tab-height: 32px;
  --sidebar-tab-width: 24px;
  flex: 0 0 var(--sidebar-tab-height);
  box-sizing: border-box;
  margin: 0 0 5px;
  border-bottom: 1px solid var(--color-border-highlight);
  box-shadow: 0 0 10px var(--color-shadow-primary);
  font-size: 14px;
}
#sidebar-tabs > .item {
  position: relative;
  flex: 0 0 var(--sidebar-tab-width);
  line-height: var(--sidebar-tab-height);
  border: 1px solid transparent;
  border-radius: 5px 5px 0 0;
}
#sidebar-tabs > .item.active {
  color: var(--color-text-light-highlight);
  border: 1px solid var(--color-border-highlight-alt);
  border-bottom: none;
  box-shadow: 0 0 6px inset var(--color-shadow-highlight);
}
#sidebar-tabs > .item i[class^=fa] {
  margin-right: 0;
}
#sidebar-tabs > .collapse {
  position: relative;
  flex: 0 0 var(--sidebar-tab-width);
  line-height: var(--sidebar-tab-height);
  color: var(--color-text-light-primary);
  text-align: center;
}
/* A Directory Listing */
.directory {
  overflow: hidden;
}
.directory .directory-header {
  flex: none;
  line-height: var(--sidebar-header-height);
  text-align: center;
  margin: 0 0 3px;
}
.directory .directory-header .header-search {
  flex: 1;
  justify-content: center;
  align-items: center;
}
.directory .directory-header .header-search > * {
  flex: 0 0 24px;
}
.directory .directory-header .header-search input {
  flex: 1;
  margin: 0 3px;
  background: rgba(255, 255, 245, 0.8);
}
.directory .directory-list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.directory .directory-item {
  line-height: var(--sidebar-item-height);
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
.directory .directory-item h3,
.directory .directory-item h4 {
  white-space: nowrap;
  overflow: hidden;
}
.directory .directory-item .document-name {
  margin: 0 0 0 8px;
}
.directory .directory-item img {
  flex: 0 0 var(--sidebar-item-height);
  height: var(--sidebar-item-height);
  width: var(--sidebar-item-height);
  object-fit: cover;
  object-position: 50% 0;
  border: none;
}
.directory .directory-item img[data-src] {
  visibility: hidden;
}
.directory .directory-item.folder {
  border: none;
}
.directory .directory-item.folder .context {
  background-color: transparent !important;
  border-color: var(--color-border-highlight);
}
.directory .directory-item .subdirectory .folder {
  border-left: 1px solid var(--color-border-dark-1);
}
.directory .directory-item.document {
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark-3);
}
.directory .directory-item.document:first-child,
.directory .directory-item.folder + .document {
  border-top: none;
}
.directory .directory-item:last-child {
  border-bottom-color: transparent;
}
.directory .directory-item.context,
.directory .directory-item.active {
  border-color: var(--color-border-highlight);
}
.directory .action-buttons button {
  height: 28px;
  line-height: 26px;
  margin: 4px;
  min-width: max-content;
  white-space: nowrap;
}
.directory .directory-footer {
  flex: none;
}
#sidebar.collapsed #sidebar-tabs {
  flex-direction: column;
  border-bottom: none;
  box-shadow: none;
}
#sidebar.collapsed #sidebar-tabs > .item.active {
  border-bottom: 1px solid var(--color-border-highlight-alt);
  border-radius: 5px;
}
#sidebar.collapsed .sidebar-tab {
  display: none;
}
/* ----------------------------------------- */
/*  Folders and Sub-folders
/* ----------------------------------------- */
li.folder > .folder-header {
  padding: 6px;
  line-height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
}
li.folder > .folder-header h3 {
  margin: 0;
  color: var(--color-text-light-highlight);
  font-size: var(--font-size-16);
  line-height: 24px;
}
li.folder > .folder-header h3 > i {
  margin-right: 10px;
}
li.folder > .folder-header .create-button {
  position: relative;
  flex: 0 0 20px;
  margin-left: 3px;
  text-align: center;
}
li.folder > .folder-header .create-button.create-folder {
  font-size: 120%;
}
li.folder > .folder-header .create-button .fa-plus {
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 0.5rem;
  background: black;
  color: var(--color-text-light-highlight);
  padding: 1px;
  border-radius: 4px;
}
li.folder > .folder-header .create-button:hover .fa-plus {
  color: var(--color-text-hyperlink);
}
li.folder.collapsed .subdirectory {
  display: none;
}
li.folder.collapsed > .folder-header {
  background: rgba(0, 0, 0, 0.5);
}
li.folder.collapsed > .folder-header h3 {
  text-shadow: none;
  color: inherit;
}
li.folder.collapsed > .folder-header h3 > i:before {
  content: "\f07b";
}
li.folder.collapsed > .folder-header .create-folder {
  display: none;
}
li.folder.droptarget > header h3 {
  text-shadow: 1px 1px 3px var(--color-shadow-dark);
  font-size: 1.2em;
}
li.folder.droptarget > header h3 i {
  text-shadow: 0 0 4px var(--color-shadow-primary);
  transform: scale(1.2);
}
/**
 * Subdirectory Styles
 */
.subdirectory {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid rgba(255, 255, 255, 0.2);
}
.subdirectory:empty {
  border: none;
}
.folder .folder .subdirectory {
  border-bottom: 2px groove var(--color-border-dark-3);
}
/* ----------------------------------------- */
/*  1.0 - Chat Panel
/* ----------------------------------------- */
.notification-pip {
  color: var(--color-text-hyperlink);
  text-shadow: 1px 1px 3px var(--color-shadow-dark);
  position: absolute;
  top: -1px;
  right: -2px;
}
.notification-pip.update {
  position: relative;
  padding-right: 2px;
}
#chat-notification {
  display: none;
}
#chat-controls {
  flex: 0 0 28px;
  margin: 0 6px;
  align-content: center;
}
#chat-controls .chat-control-icon {
  flex: 0;
}
#chat-controls .roll-type-select {
  width: 200px;
  height: 24px;
  margin: 0 6px;
  background: rgba(255, 255, 245, 0.8);
}
#chat-controls i.fas {
  font-size: var(--font-size-20);
  line-height: 28px;
}
#chat-controls .control-buttons {
  flex: 0 0 48px;
}
#chat-controls .control-buttons a {
  display: inline-block;
  width: 20px;
  text-align: center;
}
/* Chat Log Container */
#chat-log {
  flex: 1;
  height: calc(100% - 130px);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  list-style: none;
}
/* Single Chat Message */
.chat-message {
  margin: 3px;
  padding: 5px;
  font-size: var(--font-size-14);
  color: var(--color-text-dark-primary);
  background: url(../ui/parchment.jpg) repeat;
  border: 2px solid #6f6c66;
  border-radius: 5px;
}
.chat-message .message-header {
  line-height: 20px;
  color: var(--color-text-dark-secondary);
}
.chat-message .message-header .message-sender {
  flex: 3;
  margin: 0;
  white-space: nowrap;
}
.chat-message .message-header .message-metadata {
  flex: 2;
  text-align: right;
  font-size: var(--font-size-12);
}
.chat-message .message-header .flavor-text,
.chat-message .message-header .whisper-to {
  flex: 0 0 100%;
  font-size: var(--font-size-12);
}
.chat-message .message-content {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  word-break: break-word;
}
.chat-message.emote {
  background: #f3edde;
  border: 2px solid #887c5d;
}
.chat-message.whisper {
  background: #e8e8ef;
  border: 2px solid #545469;
}
.chat-message.blind {
  background: #f5eaf5;
  border: 2px solid #6b476b;
}
.chat-message .cards-notification {
  align-items: center;
}
.chat-message .cards-notification > .icon {
  flex: 0 0 32px;
  height: 32px;
  margin-right: 8px;
}
.chat-message .cards-notification > p {
  margin: 0;
}
/* New Chat Message Form */
#chat-form {
  height: 100px;
  flex: 0 0 100px;
  margin: 0 6px 6px;
}
#chat-form textarea {
  width: 100%;
  height: 100%;
  resize: none;
  background: url(../ui/parchment.jpg) repeat;
}
/* Roll Table Results */
.chat-message .table-draw .table-description {
  border-top: 1px solid var(--color-border-light-primary);
  color: var(--color-text-dark-secondary);
  font-size: var(--font-size-12);
  padding: 5px 0;
}
.chat-message .table-draw .table-results {
  list-style: none;
  margin: 5px 0 0;
  padding: 0;
}
.chat-message .table-draw .table-results .table-result {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border-light-primary);
  padding: 3px 0;
}
.chat-message .table-draw .table-results .table-result img.result-image {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  object-fit: cover;
}
.chat-message .table-draw .table-results .table-result .result-text {
  margin: 0;
  padding: 0;
  line-height: 16px;
}
.chat-message .table-draw .table-results .table-result:last-child {
  border-bottom: none;
}
/** Card Draws */
.chat-message .card-draw {
  align-items: center;
}
.chat-message .card-draw .card-face {
  height: 48px;
  flex: 0;
  margin-right: 8px;
}
.chat-message .card-draw .card-name {
  line-height: 48px;
  margin: 0;
  font-weight: bold;
}
/* Popped-out Message */
.chat-popout .window-content {
  padding: 1px;
}
/* ----------------------------------------- */
/*  Combat Tracker                           */
/* ----------------------------------------- */
.combat-sidebar .combat-tracker-header {
  --control-width: 24px;
  flex: 0 0 calc(var(--sidebar-header-height) * 2px);
  line-height: var(--sidebar-header-height);
  font-size: var(--font-size-20);
  text-align: center;
  border-bottom: 2px groove var(--color-border-dark-4);
}
.combat-sidebar .combat-tracker-header a.combat-button {
  font-size: var(--font-size-14);
  flex: 0 0 var(--control-width);
  color: var(--color-text-light-6);
}
.combat-sidebar .combat-tracker-header a.combat-button.combat-cycle {
  font-size: var(--font-size-24);
}
.combat-sidebar .combat-tracker-header a.combat-button[disabled] {
  visibility: hidden;
}
.combat-sidebar .combat-tracker-header nav.encounters h4 {
  flex: 1;
  margin: 0;
  font-size: var(--font-size-14);
  color: var(--color-text-light-5);
  text-align: center;
}
.combat-sidebar .combat-tracker-header div.encounter-controls h3 {
  flex: 1;
  margin: 0;
  font-size: var(--font-size-16);
  text-align: center;
}
.combat-sidebar .combat-tracker-header div.encounter-controls .encounter-title {
  margin-left: var(--control-width);
}
.combat-sidebar #combat-tracker {
  height: calc(100% - (var(--sidebar-header-height) * 3px - 2px));
  padding: 1px 0;
}
.combat-sidebar #combat-controls {
  margin: 0;
  border-top: 2px groove var(--color-border-dark-4);
  padding-top: 4px;
}
.combat-sidebar #combat-controls a {
  flex: 1;
  font-size: var(--font-size-20);
  text-align: center;
  line-height: var(--sidebar-header-height);
}
.combat-sidebar #combat-controls a.center {
  flex: 3;
}
.combat-sidebar li.combatant .token-image {
  margin: 0;
}
.combat-sidebar li.combatant .token-name {
  flex: 1;
  overflow: hidden;
  margin: 0 5px;
  text-shadow: 1px 1px 4px var(--color-shadow-dark);
}
.combat-sidebar li.combatant .token-name h4 {
  flex: 0 0 24px;
  line-height: 28px;
  margin: 0 0 2px;
}
.combat-sidebar li.combatant .token-name .combatant-controls {
  flex: 0 0 20px;
  font-size: var(--font-size-14);
  line-height: 20px;
}
.combat-sidebar li.combatant .token-name .combatant-control {
  flex: 0 0 20px;
  height: 20px;
  float: left;
  color: var(--color-text-dark-5);
}
.combat-sidebar li.combatant .token-name .combatant-control.active {
  color: var(--color-text-light-1);
}
.combat-sidebar li.combatant .token-name .token-effects {
  height: 20px;
  overflow: hidden;
}
.combat-sidebar li.combatant .token-name img.token-effect {
  width: 16px;
  height: 16px;
  margin: 1px 0;
  border: none;
  border-radius: 0;
}
.combat-sidebar li.combatant .token-resource {
  flex: 0 0 32px;
  color: var(--color-text-light-4);
  text-align: center;
  border-right: 1px solid var(--color-border-dark-2);
}
.combat-sidebar li.combatant .token-initiative {
  flex: 0 0 48px;
  text-align: center;
}
.combat-sidebar li.combatant .token-initiative .initiative {
  font-size: var(--font-size-14);
  text-shadow: 1px 1px 4px var(--color-shadow-dark);
}
.combat-sidebar li.combatant .roll {
  display: block;
  width: 40px;
  height: var(--sidebar-item-height);
  background: url(../icons/svg/d20.svg) no-repeat 50% 50%;
  background-size: 32px;
  margin: 0 0.5em;
}
.combat-sidebar li.combatant .roll:hover {
  background-image: url(../icons/svg/d20-highlight.svg);
}
.combat-sidebar li.combatant.hover,
.combat-sidebar li.combatant:hover {
  background: rgba(255, 255, 255, 0.08);
}
.combat-sidebar li.combatant.active {
  background: rgba(255, 255, 255, 0.1);
}
.combat-sidebar li.combatant.active .initiative {
  font-weight: bold;
}
.combat-sidebar li.combatant.hidden {
  color: var(--color-text-light-7);
}
.combat-sidebar li.combatant.hidden img {
  opacity: 0.3;
}
.combat-sidebar li.combatant.defeated {
  color: #b32019;
}
.combat-sidebar li.combatant.defeated img {
  opacity: 0.3;
  transform: scale(0.75);
}
/* ----------------------------------------- */
/*  Scenes Directory                         */
/* ----------------------------------------- */
.scenes-sidebar {
  --sidebar-scene-height: 100px;
}
.scenes-sidebar .scene {
  position: relative;
  height: var(--sidebar-scene-height);
  line-height: var(--sidebar-scene-height);
  background-position: 50% 50%;
  border: 2px solid var(--color-border-dark-1);
  box-shadow: 0 0 20px var(--color-shadow-dark) inset;
}
.scenes-sidebar .scene.context,
.scenes-sidebar .scene.active {
  margin-top: 0;
  border: 2px solid var(--color-border-dark);
  box-shadow: 0 0 10px var(--color-shadow-highlight);
}
.scenes-sidebar .scene h3 {
  margin: 0;
  line-height: calc(var(--sidebar-scene-height) - 10px);
  text-align: center;
  font-size: 1.5em;
  font-weight: normal;
  text-shadow: 1px 1px 3px var(--color-shadow-dark);
}
.scenes-sidebar .subdirectory {
  border-left: 10px solid var(--color-border-dark);
  border-bottom: none;
}
/* ----------------------------------------- */
/*  Journal Directory                        */
/* ----------------------------------------- */
.journal-sidebar .document {
  line-height: 32px;
}
/* ----------------------------------------- */
/*  Playlists Directory                      */
/* ----------------------------------------- */
.playlists-sidebar {
  /** Single Playlist */
  /** Single Sound */
  /** Single Sound Controls */
  /** Global Audio Controls */
}
.playlists-sidebar h4 {
  height: 20px;
  margin: 0;
  text-align: left;
  word-break: break-all;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.playlists-sidebar .playlist {
  padding: 8px;
  line-height: 20px;
}
.playlists-sidebar .playlist .playlist-header {
  flex: 0 0 100%;
  justify-content: space-between;
  text-decoration: underline;
}
.playlists-sidebar .playlist .playlist-header .playlist-name {
  cursor: pointer;
}
.playlists-sidebar .playlist .playlist-header .playlist-name i.fa {
  color: var(--color-text-light-6);
  margin-left: 5px;
}
.playlists-sidebar .playlist-sounds {
  flex: 0 0 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.playlists-sidebar .collapsed .playlist-sounds {
  display: none;
}
.playlists-sidebar li.sound {
  margin: 2px 0;
  padding: 0;
  align-items: center;
}
.playlists-sidebar li.sound .sound-playback {
  flex: 0 0 100%;
}
.playlists-sidebar li.sound .sound-playback .sound-timer {
  flex: 0 auto;
  margin-right: 5px;
  color: var(--color-text-light-primary);
  font-size: var(--font-size-11);
}
.playlists-sidebar .sound-controls {
  flex: 0 0 32px;
  margin-left: 5px;
  justify-content: flex-end;
  align-items: center;
}
.playlists-sidebar .playlist-header .sound-controls {
  flex: 0 0 64px;
}
.playlists-sidebar .sound-control {
  flex: 0 0 16px;
  text-align: center;
  color: var(--color-text-light-3);
  font-size: var(--font-size-11);
}
.playlists-sidebar .sound-control.inactive {
  color: var(--color-text-dark-6);
}
.playlists-sidebar .sound-control.inactive:hover {
  text-shadow: none;
}
.playlists-sidebar .sound-control.disabled {
  color: var(--color-text-dark-4);
}
.playlists-sidebar .sound-control.disabled:hover {
  text-shadow: none;
}
.playlists-sidebar .sound-control[data-action="sound-stop"] {
  color: var(--color-text-hyperlink);
}
.playlists-sidebar .sound-control[data-action="playlist-stop"] {
  color: var(--color-text-hyperlink);
}
.playlists-sidebar .global-control {
  flex: 0;
  line-height: 20px;
  text-align: left;
}
.playlists-sidebar .global-control .playlist-header {
  padding: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
  justify-content: space-between;
}
.playlists-sidebar .global-control .playlist-header h4 {
  text-decoration: underline;
}
.playlists-sidebar .global-control .playlist-header h4 i.fa {
  color: var(--color-text-light-6);
  margin-left: 5px;
}
.playlists-sidebar .global-control .playlist-sounds {
  padding: 6px;
}
.playlists-sidebar .global-control .playlist-sounds input[type="range"] {
  flex: 2;
  margin: 0 3px;
}
.playlists-sidebar .global-control .pin {
  flex: none;
  margin-right: 4px;
}
.playlists-sidebar #global-volume .playlist-header h4 {
  cursor: pointer;
}
.playlists-sidebar #global-volume li.sound {
  margin: 0;
}
.playlists-sidebar #currently-playing {
  margin-top: 1px;
}
.playlists-sidebar i.volume-icon {
  flex: 0;
  line-height: 20px;
  color: var(--color-text-light-primary);
}
/* ----------------------------------------- */
/*  Compendium Packs                         */
/* ----------------------------------------- */
.compendium-sidebar h3 {
  margin: 0;
  padding: 5px;
  border: 1px solid var(--color-border-dark-4);
  background: rgba(255, 255, 255, 0.1);
}
.compendium-sidebar ol.compendium-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.compendium-sidebar li.compendium-pack {
  position: relative;
  padding: 4px 6px;
  line-height: 24px;
}
.compendium-sidebar li.compendium-pack .pack-title i {
  margin-right: 5px;
}
.compendium-sidebar li.compendium-pack .compendium-footer {
  font-size: var(--font-size-13);
  color: var(--color-text-light-primary);
}
.compendium-sidebar li.compendium-pack .status-icons {
  position: absolute;
  font-weight: normal;
  color: var(--color-text-dark-inactive);
  text-align: right;
  right: 0;
}
/**
 * Single Compendium Pack
 */
.compendium.directory .directory-header {
  border-bottom: none;
}
.compendium.directory .directory-list .directory-item {
  line-height: 48px;
  border-top: 1px solid transparent;
  border-bottom: 1px solid var(--color-border-light-1);
  box-shadow: none;
}
/* ----------------------------------------- */
/*  Settings                                 */
/* ----------------------------------------- */
.settings-sidebar {
  overflow-y: auto;
}
.settings-sidebar #game-details {
  list-style: none;
  padding: 3px 8px;
  margin: 0;
}
.settings-sidebar #game-details span {
  float: right;
}
.settings-sidebar div {
  margin: 0 8px;
}
.settings-sidebar h2 {
  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: rgba(255, 255, 255, 0.1);
  font-size: var(--font-size-16);
}
.settings-sidebar button {
  margin: 6px 0;
}
/**
 * Role Permission Configuration Form
 */
#permissions-config header.table-header {
  background: rgba(0, 0, 0, 0.5);
  padding: 5px;
  border: 1px solid var(--color-border-dark-primary);
  text-align: center;
  color: var(--color-text-light-highlight);
  font-weight: bold;
  text-shadow: 1px 1px var(--color-shadow-dark);
}
#permissions-config ul.permissions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 400px;
  overflow: hidden auto;
  scrollbar-width: thin;
}
#permissions-config li.permission {
  padding: 5px;
  border-bottom: 1px solid var(--color-border-light-tertiary);
}
#permissions-config li.permission .form-fields {
  justify-content: space-around;
}
#permissions-config li.permission input[type="checkbox"] {
  margin: 0;
}
#permissions-config .index {
  flex: 0 0 200px;
  text-align: left;
  font-weight: bold;
}
#permissions-config .hint {
  flex: 0 0 100%;
  color: var(--color-text-dark-secondary);
  font-size: var(--font-size-13);
  margin: 5px 0 0;
}
/* ----------------------------------------- */
/*  Sidebar Pop-out                          */
/* ----------------------------------------- */
.app.sidebar-popout {
  min-height: 33vh;
  max-height: 90vh;
  border: 1px solid var(--color-border-dark-1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.app.sidebar-popout .window-content {
  background: none;
  color: var(--color-border-light-1);
  padding: 0;
}
/* ----------------------------------------- */
/*  Module Management                        */
/* ----------------------------------------- */
.package-list {
  list-style: none;
  margin: 0;
  padding: 0 5px 0 0;
  overflow: hidden auto;
}
.package-list .package {
  padding: 4px 0;
  border-top: none;
  border-bottom: 1px solid var(--color-border-light-primary);
}
.package-list .package:last-child {
  border-bottom: none;
}
.package-list .package.hidden {
  display: none;
}
.package-list .package .package-overview {
  flex: 0 0 100%;
  justify-content: flex-end;
  align-items: center;
}
.package-list .package .package-overview .package-title {
  flex: 1;
  text-decoration: underline;
  font-size: var(--font-size-14);
  margin: 0;
  color: var(--color-text-light-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.package-list .package .package-description {
  flex: 0 0 100%;
  margin: 3px 0;
  color: var(--color-text-light-primary);
  font-size: var(--font-size-12);
}
.package-list .package .package-description > * {
  margin: 0;
}
.package-list .package .package-description.hidden {
  display: none;
}
.package-list .package .package-metadata,
.package-list .package .package-controls {
  margin: 0;
  flex: 0 0 50%;
}
.package-list .package .package-metadata ul,
.package-list .package .package-controls ul {
  margin: 0;
}
.package-list .package .package-metadata {
  font-size: var(--font-size-12);
  padding: 0;
  color: var(--color-text-light-primary);
}
.package-list .package .package-controls {
  padding: 5px 0;
  text-align: right;
}
.package-list .package .package-controls button {
  width: 110px;
  height: 25px;
  font-size: var(--font-size-12);
  line-height: 24px;
  border: 1px solid var(--color-text-dark-1);
}
.package-list .package .package-controls buttonnot[hidden] {
  display: inline;
}
.package-list .package .package-url {
  margin: 0.25em 0 0;
  color: var(--color-text-light-3);
}
.package-list .package .package-footer {
  height: 32px;
  padding: 5px 0 0;
}
.package-list .package .tag {
  flex: none;
  min-width: 22px;
  text-align: center;
  height: 20px;
  border: 1px solid var(--color-border-dark);
  border-radius: 3px;
  padding: 0 3px;
  margin: 0 0 0 2px;
  font-size: var(--font-size-11);
  line-height: 18px;
  text-decoration: none;
  background: #333;
  color: var(--color-text-light-highlight);
}
.package-list .package .tag > i {
  line-height: 18px;
}
.package-list .package .tag.javascript {
  background: #803c62;
}
.package-list .package .tag.css {
  background: #1e5c6f;
}
.package-list .package .tag.compendium {
  background: #3b3a80;
}
.package-list .package .tag.unavailable {
  background: #750000;
}
.package-list .package .tag.unknown {
  background: #b07900;
  min-width: 50px;
}
.package-list .package .tag.languages {
  background: #224224;
}
.package-list .package .tag.version {
  min-width: 50px;
}
.package-list .package .tag.requires {
  position: relative;
  top: -2px;
}
.package-list .package .tag.warning {
  background: var(--color-level-warning);
}
.package-list .package .tag.error {
  background: var(--color-level-error);
}
#module-management .expand {
  flex: 0 0 32px;
  height: 30px;
  margin: -6px 0 0 6px;
  padding: 0;
}
#module-management .package-list {
  margin-top: 5px;
  border-top: 1px solid var(--color-border-light-tertiary);
  height: 600px;
}
#module-management .package-list .package-metadata {
  flex: 0 0 100%;
}
#module-management .package-list .package-title {
  overflow: hidden;
  font-weight: bold;
}
#module-management .package-list .package-title,
#module-management .package-list .package-metadata,
#module-management .package-list .package-description {
  color: var(--color-text-dark-primary);
}
/* ---------------------------------------- */
/* Invitation Links                         */
/* ---------------------------------------- */
#invitation-links .connection.open {
  color: green;
}
#invitation-links .connection.unknown {
  color: rgba(214, 150, 0, 0.6);
}
#invitation-links .connection.closed {
  color: rgba(105, 0, 8, 0.6);
}
#invitation-links .sync {
  padding-left: 5px;
}
#invitation-links .invite-link[name=remote] {
  flex: 2.65;
}
#invitation-links .show-hide {
  padding-left: 5px;
  font-size: 130%;
  flex-grow: 0 !important;
  place-content: end;
  justify-content: end;
  width: 27px;
}
/* ---------------------------------------- */
/* Font Configuration                       */
/* ---------------------------------------- */
#font-config .font-preview {
  text-align: center;
  padding: 16px;
  font-size: var(--font-size-28);
}
#font-config .custom-font {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px;
  padding: 16px;
  border: 2px groove var(--color-border-light-highlight);
  cursor: pointer;
  border-radius: 4px;
  font-size: var(--font-size-16);
}
#font-config .custom-font.selected {
  border: 2px solid var(--color-border-highlight);
}
/* ----------------------------------------- */
/* General Sheet Styling
/* ----------------------------------------- */
.sheet {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
}
.sheet > * {
  flex: 1;
}
.sheet > .flex0 {
  display: block;
  flex: 0;
}
.sheet > .flex1 {
  flex: 1;
}
.sheet > .flex2 {
  flex: 2;
}
.sheet > .flex3 {
  flex: 3;
}
.sheet header.sheet-header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}
.sheet header.sheet-header > * {
  flex: 1;
}
.sheet header.sheet-header > .flex0 {
  display: block;
  flex: 0;
}
.sheet header.sheet-header > .flex1 {
  flex: 1;
}
.sheet header.sheet-header > .flex2 {
  flex: 2;
}
.sheet header.sheet-header > .flex3 {
  flex: 3;
}
.sheet header.sheet-header img {
  flex: 0 0 64px;
  height: 64px;
  margin-right: 6px;
}
.sheet header.sheet-header h1 {
  flex: 1;
  margin: 0;
  border-bottom: none;
}
.sheet header.sheet-header h1 input {
  height: 48px;
  line-height: 48px;
  margin: 8px 2%;
  width: 96%;
}
.sheet nav.sheet-tabs {
  margin: 4px 0;
  border-top: 1px solid var(--color-border-light-primary);
  border-bottom: 1px solid var(--color-border-light-primary);
}
.sheet nav.sheet-tabs .item {
  padding: 8px 12px;
}
.sheet nav.sheet-tabs .item i {
  margin-right: 2px;
}
.sheet footer.sheet-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  flex: 0 0 32px;
  line-height: 32px;
}
.sheet footer.sheet-footer > * {
  flex: 1;
}
.sheet footer.sheet-footer > .flex0 {
  display: block;
  flex: 0;
}
.sheet footer.sheet-footer > .flex1 {
  flex: 1;
}
.sheet footer.sheet-footer > .flex2 {
  flex: 2;
}
.sheet footer.sheet-footer > .flex3 {
  flex: 3;
}
.sheet .editor-content {
  height: 100%;
  overflow-y: auto;
  word-break: break-word;
}
/* ----------------------------------------- */
/* Token Sheet
/* ----------------------------------------- */
.token-sheet nav.sheet-tabs.secondary-tabs {
  margin-top: -4px;
  border-top: none;
}
.token-sheet .bar-data .sep {
  flex: 0 0 16px;
  text-align: center;
  font-size: 1.5em;
  line-height: 24px;
}
.token-sheet .detection-modes {
  margin: 1rem 0;
}
.token-sheet .detection-modes header {
  font-weight: bold;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--color-border-light-secondary);
}
.token-sheet .detection-modes .detection-mode {
  display: flex;
  flex-wrap: nowrap;
  text-align: left;
  margin: 0 0 0.5rem;
  padding: 0;
  border: none;
}
.token-sheet .detection-modes .detection-mode > * {
  margin-right: 4px;
  flex: 1;
}
.token-sheet .detection-modes .detection-mode-id select {
  width: 100%;
}
.token-sheet .detection-modes .detection-mode-enabled {
  flex: 0 0 64px;
}
.token-sheet .detection-modes .detection-mode-controls {
  flex: 0 0 32px;
  margin-right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.token-sheet .detection-modes .detection-mode-controls .action-button {
  width: 32px;
  text-align: center;
}
/* ----------------------------------------- */
/* Scene Notes
/* ----------------------------------------- */
.window-app.scene-notes .window-content {
  padding: 0 8px;
}
.window-app.scene-notes form {
  height: 100%;
  overflow: hidden;
}
.window-app.scene-notes .editor {
  height: 100%;
}
.window-app.scene-notes .editor-content {
  height: 100%;
  overflow-y: auto;
}
/* ---------------------------------------- */
/* Roll Table Sheet                         */
/* ---------------------------------------- */
.roll-table-config h1.name input {
  width: 100%;
  height: 48px;
  margin: 8px 0;
}
.roll-table-config textarea {
  resize: none;
  min-height: 44px;
}
.roll-table-config ol.table-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 600px;
  overflow-y: auto;
}
.roll-table-config ol.table-results .table-result {
  padding: 2px 0;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
.roll-table-config ol.table-results .table-result input[type="text"] {
  width: 100%;
  height: 28px;
}
.roll-table-config ol.table-results .table-result > div {
  line-height: 36px;
  margin-right: 5px;
}
.roll-table-config ol.table-results .table-result .result-image {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  text-align: center;
  margin: 0;
}
.roll-table-config ol.table-results .table-result .result-image img {
  border: none;
  object-fit: cover;
  object-position: 50% 0;
}
.roll-table-config ol.table-results .table-result .result-type {
  flex: 0 0 110px;
}
.roll-table-config ol.table-results .table-result .result-details {
  flex: 1;
}
.roll-table-config ol.table-results .table-result .result-details select {
  width: 40%;
}
.roll-table-config ol.table-results .table-result .result-details .result-target {
  width: 58%;
  margin-left: 3px;
}
.roll-table-config ol.table-results .table-result .result-weight {
  flex: 0 0 50px;
  text-align: center;
}
.roll-table-config ol.table-results .table-result .result-range {
  flex: 0 0 92px;
  text-align: center;
}
.roll-table-config ol.table-results .table-result .result-range input {
  width: 36px;
}
.roll-table-config ol.table-results .table-result .result-controls {
  flex: none;
  margin: 0;
  text-align: center;
}
.roll-table-config ol.table-results .table-result .result-controls a {
  width: 20px;
}
.roll-table-config ol.table-results .table-result .result-controls .lock-result {
  color: var(--color-text-light-primary);
}
.roll-table-config ol.table-results .table-result.roulette {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
}
.roll-table-config ol.table-results .table-result.drawn {
  background: rgba(0, 0, 0, 0.15);
}
.roll-table-config ol.table-results .table-result.drawn .lock-result {
  color: var(--color-text-dark-1);
}
.roll-table-config ol.table-results .table-header {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border-light-tertiary);
  line-height: 24px;
  font-weight: bold;
}
.roll-table-config ol.table-results .table-header .result-controls {
  flex: 0 0 44px;
}
.scene-sheet .form-fields label.grid-label {
  flex: 1;
  text-align: right;
  font-size: var(--font-size-13);
}
.scene-sheet .capture-position > i,
.scene-sheet .grid-config > i {
  margin: 0;
}
/* --------------------------------------- */
/*  Macro Sheet                            */
/* --------------------------------------- */
.macro-sheet {
  min-width: 360px;
  min-height: 320px;
}
.macro-sheet form > * {
  flex: 0;
}
.macro-sheet .form-group.command {
  flex: 1;
}
.macro-sheet .form-group.command label {
  height: 24px;
}
.macro-sheet .form-group.command textarea {
  height: calc(100% - 24px);
  resize: none;
}
/* --------------------------------------- */
/*  Active Effects                         */
/* --------------------------------------- */
.active-effect-sheet .changes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.active-effect-sheet .effect-change {
  align-items: center;
  padding: 3px 1px;
  border-bottom: 1px solid var(--color-border-light-primary);
}
.active-effect-sheet .effect-change:last-child {
  border-bottom: none;
}
.active-effect-sheet .effect-change .key {
  flex: 2;
}
.active-effect-sheet .effect-change .mode,
.active-effect-sheet .effect-change .value {
  padding: 0 2px;
}
.active-effect-sheet .effect-change .mode select {
  width: 100%;
}
.active-effect-sheet .effects-header {
  height: 28px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border-light-tertiary);
  font-weight: bold;
}
.active-effect-sheet .effects-header .key {
  padding-left: 4px;
}
.active-effect-sheet .effect-controls {
  flex: 0 0 24px;
  text-align: center;
}
.user-config label {
  font-weight: bold;
}
.user-config img.avatar {
  flex: 0 0 64px;
}
.user-config #characters {
  font-size: var(--font-size-12);
  max-height: 320px;
}
.user-config #characters .directory-item.context {
  background: rgba(0, 0, 0, 0.1);
}
.user-config #characters .directory-item.context h3 {
  font-weight: bold;
}
/* ----------------------------------------- */
/*  Cards Sheet                              */
/* ----------------------------------------- */
img.card-face {
  object-fit: cover;
  border: none;
}
.cards-config {
  --card-height: 48px;
}
.cards-config .cards-header {
  background: rgba(0, 0, 0, 0.1);
  border-top: 2px groove #444;
  border-bottom: 2px groove #444;
  margin: 4px 0;
  padding: 3px 0;
  align-items: center;
  text-align: left;
  font-weight: bold;
}
.cards-config ol.cards {
  max-height: 600px;
  overflow-y: auto;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.cards-config ol.cards li.card {
  height: var(--card-height);
  align-items: center;
}
.cards-config .card-face {
  flex: 0;
  height: var(--card-height);
  width: calc(var(--card-height) * 2 / 3);
}
.cards-config .card-name {
  flex: 3;
  margin: 0 0 0 8px;
  font-weight: bold;
}
.cards-config .card-suit,
.cards-config .card-value,
.cards-config .card-faces {
  text-align: center;
}
.cards-config .card-faces {
  flex: 0 0 48px;
}
.cards-config .card-drawn {
  flex: 0 0 64px;
  text-align: right;
}
.cards-config .card-controls {
  flex: 0 0 24px;
  text-align: right;
  padding-right: 4px;
}
.cards-config.deck .card-controls {
  flex: 0 0 48px;
}
.cards-config a.card-control {
  margin: 0 2px;
  color: var(--color-text-dark-secondary);
  font-size: var(--font-size-12);
  text-align: center;
}
.cards-config a.card-control[disabled] {
  pointer-events: none;
  color: var(--color-text-dark-inactive);
}
.cards-config .sort-mode {
  flex: 0 0 32px;
}
.card-config div.face {
  border-top: 1px solid var(--color-text-light-primary);
}
.card-config .form-fields button {
  flex: 0 0 32px;
  text-align: center;
}
#document-create .cards-presets.form-group {
  margin: 8px 0;
  padding-top: 8px;
  border-top: 1px solid var(--color-text-light-primary);
}
/* -------------------------------------------- */
/*  Adventure Importer and Exporter             */
/* -------------------------------------------- */
.sheet.adventure-importer .window-content {
  padding: 0.5rem 1rem;
}
.sheet.adventure-importer .adventure-header h1 {
  margin: 0;
  line-height: 50px;
  text-align: center;
  font-size: 2.5rem;
  border: none;
}
.sheet.adventure-importer figure.adventure-banner {
  flex: 0 0 100%;
  margin: 0.5rem 0;
}
.sheet.adventure-importer figure.adventure-banner img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
}
.sheet.adventure-importer .adventure-overview {
  flex: 2;
  margin-left: 0;
}
.sheet.adventure-importer .adventure-overview p {
  font-size: var(--font-size-14);
  line-height: var(--line-height-20);
}
.sheet.adventure-importer .adventure-contents {
  margin-left: 1rem;
}
.sheet.adventure-importer .adventure-contents ul {
  padding: 0;
  list-style: none;
}
.sheet.adventure-importer .adventure-contents ul li i {
  color: var(--color-text-dark-inactive);
  margin-right: 0.5rem;
}
.sheet.adventure-importer .adventure-footer {
  flex: 0 0 100%;
  margin-top: 0.5rem;
}
.sheet.adventure-exporter .editor {
  height: 300px;
}
.sheet.adventure-exporter .tab.contents {
  max-height: 60vh;
  overflow: hidden auto;
  margin-bottom: 0.5rem;
  padding-right: 0.5rem;
}
.sheet.adventure-exporter .tab.contents a.control {
  width: 32px;
  font-size: var(--font-size-12);
  color: var(--color-text-dark-secondary);
}
.sheet.adventure-exporter .tab.contents .document-type .included-content {
  overflow: hidden;
  max-height: 9999px;
  transition: max-height 1s ease-in-out;
}
.sheet.adventure-exporter .tab.contents .document-type.collapsed .included-content {
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}
.sheet.adventure-exporter .tab.contents h3 {
  position: relative;
  font-size: var(--font-size-14);
  text-align: center;
  line-height: 2rem;
  border-top: 1px solid var(--color-border-light-tertiary);
  border-bottom: 1px solid var(--color-border-light-tertiary);
}
.sheet.adventure-exporter .tab.contents h3 a.control {
  position: absolute;
}
.sheet.adventure-exporter .tab.contents h3 a.control.collapse {
  left: 0;
}
.sheet.adventure-exporter .tab.contents h3 a.control.clear {
  right: 0;
}
.sheet.adventure-exporter .tab.contents h4 {
  margin: 0 4px 4px 0;
  display: inline-block;
  padding: 2px 4px;
  border: 1px solid var(--color-border-light-tertiary);
  border-radius: 3px;
  font-size: var(--font-size-12);
}
.sheet.adventure-exporter .tab.contents h4.update {
  background: rgba(255, 255, 255, 0.2);
}
.sheet.adventure-exporter .tab.contents h4.add {
  background: rgba(0, 255, 0, 0.1);
}
.sheet.adventure-exporter .tab.contents h4.remove {
  background: rgba(255, 0, 0, 0.1);
}
.sheet.adventure-exporter .tab.contents h4 a.control {
  position: relative;
  top: 1px;
  margin-left: 4px;
}
.sheet.adventure-exporter .tab.contents .node > .node {
  margin-left: 0.5rem;
}
.sheet.adventure-exporter .tab.contents ol.document-list {
  list-style: none;
  margin: 0 0.5rem 0.5rem;
  padding: 0;
}
.sheet.adventure-exporter .tab.contents .drop-zone {
  line-height: 100px;
  text-align: center;
  border: 2px dashed var(--color-border-light-tertiary);
  border-radius: 5px;
}
/* -------------------------------------------- */
/*  Ownership                                   */
/* -------------------------------------------- */
#permission-control .author {
  color: var(--color-text-dark-secondary);
}
/* ----------------------------------------- */
/*  Journal Entries and Pages                */
/* ----------------------------------------- */
.journal-sheet {
  /** Journal Header */
  /** Journal Footer */
}
.journal-sheet .journal-header {
  flex: none;
  margin: 1rem;
}
.journal-sheet .journal-header .title {
  margin: 0;
  background: rgba(0, 0, 0, 0.1);
  font-size: var(--font-size-32);
  height: 50px;
  line-height: 50px;
  border-radius: 4px;
}
.journal-sheet .journal-footer {
  margin: 1rem 0.5rem 0.5rem;
}
/* ----------------------------------------- */
/*  Journal Entry                            */
/* ----------------------------------------- */
.sheet.journal-entry {
  --sidebar-width-expanded: 300px;
  --sidebar-width-collapsed: 32px;
  --level-indent: 16px;
  --page-number-width: 20px;
  min-width: 680px;
  min-height: 680px;
  /** Main Container */
  /** Sidebar Navigation */
  /** Collapsing Transitions */
  /** Collapsed Sidebar */
  /** Pages Navigation */
  /** Pages Content */
  /** Journal Header */
  /** Single Page */
}
.sheet.journal-entry .window-header {
  border-bottom: none;
}
.sheet.journal-entry .window-content {
  padding: 0;
  background: transparent;
}
.sheet.journal-entry .scrollable {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding-right: 0.5rem;
  overflow: hidden auto;
  scrollbar-width: thin;
}
.sheet.journal-entry .journal-sheet-container {
  display: flex;
  flex-direction: row;
  height: 100%;
}
.sheet.journal-entry .journal-sidebar {
  flex-basis: var(--sidebar-width-expanded);
  background: transparent;
  color: var(--color-text-light-highlight);
  /** Search Header */
  /** Control Buttons */
}
.sheet.journal-entry .journal-sidebar .directory-header {
  margin: 0.5rem 0;
}
.sheet.journal-entry .journal-sidebar .directory-header .action-button {
  flex: 0 0 30px;
}
.sheet.journal-entry .journal-sidebar .directory-header .view-mode {
  order: 1;
}
.sheet.journal-entry .journal-sidebar .directory-header .header-search input {
  order: 2;
}
.sheet.journal-entry .journal-sidebar .directory-header .collapse-toggle {
  order: 3;
}
.sheet.journal-entry .journal-sidebar .action-buttons {
  flex: none;
  justify-content: space-between;
}
.sheet.journal-entry .journal-sidebar .action-buttons button.next,
.sheet.journal-entry .journal-sidebar .action-buttons button.previous {
  margin: 0.5rem;
  flex: 0 0 30px;
}
.sheet.journal-entry .journal-sidebar .action-buttons button.create {
  margin: 0.5rem 0;
}
.sheet.journal-entry.collapsing {
  transition: all 0.25s ease-in-out;
}
.sheet.journal-entry.collapsing .journal-sidebar {
  transition: flex-basis 0.25s ease-in-out;
}
.sheet.journal-entry .journal-sidebar.collapsed {
  flex-basis: var(--sidebar-width-collapsed);
}
.sheet.journal-entry .journal-sidebar.collapsed .directory-header .header-search input {
  display: none;
}
.sheet.journal-entry .journal-sidebar.collapsed .directory-header .collapse-toggle {
  order: 0;
}
.sheet.journal-entry .journal-sidebar.collapsed .page-heading {
  justify-content: center;
}
.sheet.journal-entry .journal-sidebar.collapsed .page-heading .page-title,
.sheet.journal-entry .journal-sidebar.collapsed .page-heading .page-ownership {
  display: none;
}
.sheet.journal-entry .journal-sidebar.collapsed .page-heading .page-number {
  pointer-events: all;
}
.sheet.journal-entry .journal-sidebar.collapsed .pages-list .directory-item.active ol.headings {
  display: none;
}
.sheet.journal-entry .journal-sidebar.collapsed .action-buttons button.create {
  display: none;
}
.sheet.journal-entry .journal-sidebar.collapsed .action-buttons button.next,
.sheet.journal-entry .journal-sidebar.collapsed .action-buttons button.previous {
  margin: 2px;
}
.sheet.journal-entry .pages-list {
  flex: 1;
  position: relative;
  /** Sidebar Page Titles */
  /** Page Heading Links */
  /** Sidebar Links */
  /** Page Level Indentation */
  /** Heading Indentation */
}
.sheet.journal-entry .pages-list .directory-item {
  line-height: 32px;
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark-3);
  display: flex;
  flex-direction: column;
  position: relative;
}
.sheet.journal-entry .pages-list .directory-item:first-child {
  border-top: 1px solid transparent;
}
.sheet.journal-entry .pages-list .directory-item:last-child {
  border-bottom: 1px solid transparent;
}
.sheet.journal-entry .pages-list .directory-item.hidden {
  display: none;
}
.sheet.journal-entry .pages-list .directory-item.active .headings {
  display: block;
}
.sheet.journal-entry .pages-list .directory-item.active:first-of-type {
  border-top: 1px solid var(--color-border-highlight);
}
.sheet.journal-entry .pages-list .directory-item.active:last-of-type {
  border-bottom: 1px solid var(--color-border-highlight);
}
.sheet.journal-entry .pages-list .directory-item:not(.active) + .active {
  border-top: 1px solid var(--color-border-highlight);
}
.sheet.journal-entry .pages-list .directory-item.active + :not(.active) {
  border-top: 1px solid var(--color-border-highlight);
}
.sheet.journal-entry .pages-list .page-heading {
  display: flex;
  align-items: center;
  margin: 0;
  border: none;
  font-size: var(--font-size-14);
}
.sheet.journal-entry .pages-list .page-heading .page-number {
  pointer-events: none;
  width: var(--sidebar-width-collapsed);
  color: var(--color-text-light-7);
  text-align: center;
}
.sheet.journal-entry .pages-list .page-heading .page-title {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sheet.journal-entry .pages-list .page-heading .page-ownership {
  width: var(--sidebar-width-collapsed);
  margin-left: 8px;
  text-align: center;
  pointer-events: none;
}
.sheet.journal-entry .pages-list .page-heading .page-ownership.none {
  color: var(--color-ownership-none);
}
.sheet.journal-entry .pages-list .page-heading .page-ownership.observer {
  color: var(--color-ownership-observer);
}
.sheet.journal-entry .pages-list .page-heading .page-ownership.owner {
  color: var(--color-ownership-owner);
}
.sheet.journal-entry .pages-list .page-heading .page-number:hover,
.sheet.journal-entry .pages-list .page-heading .page-title:hover {
  cursor: pointer;
  color: inherit;
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.sheet.journal-entry .pages-list .active .page-heading .page-number {
  color: inherit;
}
.sheet.journal-entry .pages-list .headings {
  display: none;
  height: auto;
  margin: 0 0 0 var(--page-number-width);
  padding: 0;
  list-style: none;
  font-weight: normal;
  border: none;
}
.sheet.journal-entry .pages-list .headings li {
  height: 32px;
  line-height: 32px;
}
.sheet.journal-entry .pages-list .headings li:last-child {
  margin-bottom: 0.5rem;
}
.sheet.journal-entry .pages-list .heading-link {
  width: 100%;
  line-height: 32px;
  font-size: var(--font-size-14);
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sheet.journal-entry .pages-list .level2 .page-title {
  text-indent: var(--level-indent);
}
.sheet.journal-entry .pages-list .level3 .page-title {
  text-indent: calc(2 * var(--level-indent));
}
.sheet.journal-entry .pages-list .level2 .headings {
  margin-left: calc(2 * var(--level-indent));
}
.sheet.journal-entry .pages-list .level3 .headings {
  margin-left: calc(3 * var(--level-indent));
}
.sheet.journal-entry .pages-list .h2 .heading-link {
  text-indent: var(--level-indent);
}
.sheet.journal-entry .pages-list .h3 .heading-link {
  text-indent: calc(2 * var(--level-indent));
}
.sheet.journal-entry .journal-entry-content {
  flex: 1;
  height: 100%;
  background: url("../ui/parchment.jpg") repeat;
  border: 2px solid #000;
  border-radius: 6px 0 0 0;
}
.sheet.journal-entry .journal-header .title {
  text-align: center;
}
.sheet.journal-entry .journal-entry-pages {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 0.5rem 1rem 1rem;
}
.sheet.journal-entry .journal-entry-page {
  position: relative;
}
.sheet.journal-entry .journal-entry-page * {
  user-select: text;
}
.sheet.journal-entry .journal-entry-page + .journal-entry-page {
  margin-top: 2rem;
}
.sheet.journal-entry .journal-entry-page .edit-container {
  position: absolute;
  top: 5px;
  right: 5px;
  height: 100%;
  pointer-events: none;
}
.sheet.journal-entry .journal-entry-page .editor-edit {
  display: none;
  position: sticky;
  pointer-events: all;
}
.sheet.journal-entry .journal-entry-page:hover .editor-edit {
  display: block;
}
.sheet.journal-entry .journal-entry-page :is(h1, h2, h3, h4, h5, h6):not(:first-child) {
  margin-top: 1rem;
}
.sheet.journal-entry article img:not(.nopopout) {
  cursor: pointer;
}
/* ----------------------------------------- */
/*  Journal Entry Page                       */
/* ----------------------------------------- */
.sheet.journal-entry-page {
  /** Page Header */
  /** Text Editor */
  /** Form Fields */
}
.sheet.journal-entry-page .window-content {
  padding: 0;
}
.sheet.journal-entry-page .journal-header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}
.sheet.journal-entry-page .journal-header .page-level {
  flex: 0 0 110px;
  margin-left: 1rem;
  align-items: flex-end;
}
.sheet.journal-entry-page .journal-header .heading-level {
  width: 100%;
  align-items: center;
}
.sheet.journal-entry-page .journal-header .heading-level label {
  margin-right: 4px;
}
.sheet.journal-entry-page .editor.prosemirror menu {
  border-radius: 0;
}
.sheet.journal-entry-page .editor.tinymce {
  margin: 0 1rem;
}
.sheet.journal-entry-page .editor.tinymce div[role=application] {
  height: 100%;
}
.sheet.journal-entry-page .form-group {
  flex: none;
  margin: 1rem 1rem 0;
}
.sheet.journal-entry-page .form-group label {
  font-weight: bold;
}
/* ----------------------------------------- */
/*  Journal Image Page                       */
/* ----------------------------------------- */
.journal-entry-page.image figure img {
  object-fit: contain;
  border: none;
}
/** Edit Image Page */
.journal-entry-page.image.sheet .image-preview {
  margin: 0;
}
.journal-entry-page.image.sheet .image-preview img {
  height: 360px;
  max-height: 360px;
  border: none;
}
/** Lightbox Image */
.image-popout .window-content {
  background: transparent;
}
.image-popout figure {
  margin: 1rem;
}
.image-popout figure img {
  border: none;
  object-fit: contain;
  object-position: 50% 50%;
}
.image-popout figure figcaption {
  margin-top: 1rem;
  color: var(--color-text-light-3);
  font-size: var(--font-size-16);
  flex: none;
}
/* ----------------------------------------- */
/*  Journal Markdown Page                    */
/* ----------------------------------------- */
.journal-entry-page.text textarea.markdown-editor {
  padding: 1rem;
  background: transparent;
  resize: none;
  white-space: pre-wrap;
  border: none;
  border-radius: 0;
  border-top: 1px dashed var(--color-border-dark-4);
}
.journal-entry-page.text textarea.markdown-editor:focus {
  box-shadow: none;
}
/* ----------------------------------------- */
/*  Journal Video Page                       */
/* ----------------------------------------- */
.journal-entry-page.video {
  /** 16/9 Aspect Ratio */
}
.journal-entry-page.video .video-time input {
  flex: 0 0 64px;
}
.journal-entry-page.video figure.flex-ratio {
  position: relative;
}
.journal-entry-page.video figure.flex-ratio iframe,
.journal-entry-page.video figure.flex-ratio video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.journal-entry-page.video figure.flex-ratio::before {
  content: "";
  display: block;
  padding-bottom: calc(9 / 16 * 100%);
}
/** Edit Video Page */
.journal-entry-page.video.sheet figure {
  margin: 0 1rem;
}
/* ----------------------------------------- */
/*  Journal PDF Page                         */
/* ----------------------------------------- */
.journal-entry-page.pdf {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 4px;
}
.journal-entry-page.pdf .load-pdf {
  flex-grow: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.journal-entry-page.pdf .load-pdf > button {
  max-width: 250px;
  cursor: pointer;
}
.journal-entry-page.pdf iframe {
  flex-grow: 1;
  width: 100%;
  min-height: 620px;
  border: none;
}
.single-page .journal-entry-page.pdf {
  height: 100%;
}
.multi-page .journal-entry-page.pdf iframe {
  flex-basis: 620px;
}
/* ---------------------------------- */
/*  Journal Dialog                    */
/* ---------------------------------- */
.journal-show-dialog .checkbox-label {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 4px;
}
.journal-show-dialog .checkbox-label label.checkbox {
  flex: none;
  font-size: unset;
}
.journal-show-dialog .form-group-stacked {
  text-align: right;
}
div#camera-views {
  --color-border-av-light: #dfac46;
  --color-border-av-dark: #a85424;
  --color-border-av-speaking: #3ba55d;
  --av-width: 240px;
  --av-border-radius: 4px;
  --av-frame-border-width: 3px;
  --av-frame-absolute-margin: var(--av-frame-border-width);
  --av-minimized-icon-size: 64px;
  margin: 0;
  padding: 0;
  z-index: calc(var(--z-index-app) - 1);
  border: none;
  box-shadow: none;
  background: url('../ui/denim075.png') repeat;
  position: relative;
  border-radius: 0;
  display: flex;
  /* ----------------------------------------- */
  /*  Video Containers
  /* ----------------------------------------- */
  /* The following 3 blocks ensure that the video or avatar img use 4:3 aspect ratio.
   * From https://css-tricks.com/aspect-ratio-boxes/
   * Thanks to asacolips
   */
}
div#camera-views.camera-position-left,
div#camera-views.camera-position-right {
  min-width: calc(var(--av-width) + 6px);
  min-height: 100vh;
  flex-direction: column;
}
div#camera-views.camera-position-left .camera-container,
div#camera-views.camera-position-right .camera-container {
  flex-grow: 1;
  display: grid;
  overflow-y: auto;
}
div#camera-views.camera-position-left .camera-grid,
div#camera-views.camera-position-right .camera-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--av-width), 1fr));
  grid-auto-rows: max-content;
  align-content: center;
  gap: 10px;
}
div#camera-views.camera-position-left .camera-view-width-control,
div#camera-views.camera-position-right .camera-view-width-control {
  top: 0;
  bottom: 0;
  width: 6px;
  cursor: col-resize;
}
div#camera-views.camera-position-left .camera-view-width-control:hover,
div#camera-views.camera-position-right .camera-view-width-control:hover {
  background: rgba(0, 0, 0, 0.25);
}
div#camera-views.camera-position-left {
  padding-right: 6px;
}
div#camera-views.camera-position-left .camera-view-width-control {
  right: 0;
}
div#camera-views.camera-position-right {
  padding-left: 6px;
}
div#camera-views.camera-position-right .camera-view-width-control {
  left: 0;
}
div#camera-views.camera-position-bottom,
div#camera-views.camera-position-top {
  min-width: 100vw;
  height: calc(var(--av-width) * 3/4 + 12px);
  flex-direction: row;
}
div#camera-views.camera-position-bottom .camera-container,
div#camera-views.camera-position-top .camera-container {
  flex-grow: 1;
  overflow: auto hidden;
}
div#camera-views.camera-position-bottom .camera-view:not(.camera-box-popout),
div#camera-views.camera-position-top .camera-view:not(.camera-box-popout) {
  width: var(--av-width);
}
div#camera-views.camera-position-bottom .camera-grid,
div#camera-views.camera-position-top .camera-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 100%;
}
div#camera-views.camera-position-bottom .camera-view-width-control,
div#camera-views.camera-position-top .camera-view-width-control {
  left: 0;
  right: 0;
  height: 6px;
}
div#camera-views.camera-position-bottom .user-controls,
div#camera-views.camera-position-top .user-controls {
  border-top: none;
  border-left: 2px solid rgba(0, 0, 0, 0.5);
}
div#camera-views.camera-position-bottom .user-controls .control-bar,
div#camera-views.camera-position-top .user-controls .control-bar {
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
div#camera-views.camera-position-bottom {
  padding-top: 6px;
}
div#camera-views.camera-position-bottom .camera-view-width-control {
  top: 0;
}
div#camera-views.camera-position-top {
  padding-bottom: 6px;
}
div#camera-views.camera-position-top .camera-view-width-control {
  bottom: 0;
}
div#camera-views.webrtc-dock-empty {
  padding: 0;
}
div#camera-views .user-controls {
  padding: 8px;
  font-size: var(--font-size-18);
  color: var(--color-text-light-6);
  border-top: 2px solid rgba(0, 0, 0, 0.5);
}
div#camera-views .user-controls .control-bar {
  justify-content: space-around;
}
div#camera-views .user-controls .control-bar .av-control {
  text-align: center;
}
div#camera-views .user-controls .control-bar .av-control i.fa-arrows-alt-v {
  transform: rotate(45deg);
}
div#camera-views #players {
  background: none;
  box-shadow: none;
  margin: 0;
  width: 100%;
  border-radius: 0;
  border: none;
  border-top: 6px solid rgba(0, 0, 0, 0.5);
}
div#camera-views .video-containers {
  display: flex;
  flex: 1 1 0;
  flex-wrap: nowrap;
}
div#camera-views .video-container {
  position: relative;
  border-radius: var(--av-border-radius);
}
div#camera-views .video-container video {
  border-radius: var(--av-border-radius);
}
div#camera-views .video-container::before {
  /* Create an empty text with a specific size due to the padding which has a 4:3 ratio */
  content: "";
  display: block;
  padding-bottom: calc(100% * 3/4);
  border-radius: var(--av-border-radius);
}
div#camera-views .video-container img.user-avatar,
div#camera-views .video-container video.user-camera {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--av-border-radius);
}
div#camera-views .video-container img.user-avatar.local-camera,
div#camera-views .video-container video.user-camera.local-camera {
  -webkit-transform: scaleX(-1);
  -moz-transform: scaleX(-1);
  -ms-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  transform: scaleX(-1);
}
div#camera-views .video-container img.user-avatar {
  object-fit: cover;
}
div#camera-views.webrtc-dock-minimized {
  padding: unset;
  min-width: unset;
}
div#camera-views.webrtc-dock-minimized.camera-position-left {
  border-right: 1px solid var(--color-border-dark);
}
div#camera-views.webrtc-dock-minimized.camera-position-right {
  border-left: 1px solid var(--color-border-dark);
}
div#camera-views.webrtc-dock-minimized.camera-position-top {
  border-bottom: 1px solid var(--color-border-dark);
}
div#camera-views.webrtc-dock-minimized.camera-position-bottom {
  border-top: 1px solid var(--color-border-dark);
}
div#camera-views.webrtc-dock-minimized.camera-position-left,
div#camera-views.webrtc-dock-minimized.camera-position-right {
  width: calc(var(--av-minimized-icon-size) + 2rem);
}
div#camera-views.webrtc-dock-minimized.camera-position-left .camera-grid,
div#camera-views.webrtc-dock-minimized.camera-position-right .camera-grid {
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
div#camera-views.webrtc-dock-minimized.camera-position-left .user-controls .control-bar,
div#camera-views.webrtc-dock-minimized.camera-position-right .user-controls .control-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
  gap: 8px;
}
div#camera-views.webrtc-dock-minimized.camera-position-top,
div#camera-views.webrtc-dock-minimized.camera-position-bottom {
  height: calc(var(--av-minimized-icon-size) + 2rem);
}
div#camera-views.webrtc-dock-minimized.camera-position-top .user-controls .control-bar,
div#camera-views.webrtc-dock-minimized.camera-position-bottom .user-controls .control-bar {
  display: grid;
  grid-template-columns: 32px 32px;
  align-items: center;
}
div#camera-views.webrtc-dock-minimized .video-container:not(.camera-container-popout) {
  position: unset;
  width: 100%;
  height: 100%;
}
div#camera-views.webrtc-dock-minimized .video-container:not(.camera-container-popout)::before {
  display: none;
}
div#camera-views.webrtc-dock-minimized .video-container:not(.camera-container-popout) img.user-avatar {
  position: unset;
  border-radius: var(--av-minimized-icon-size);
}
div#camera-views.webrtc-dock-minimized .camera-view-width-control {
  display: none;
}
div#camera-views.webrtc-dock-minimized .camera-container {
  overflow: hidden;
}
div#camera-views.webrtc-dock-minimized .camera-view:not(.camera-box-popout) {
  width: var(--av-minimized-icon-size);
  height: var(--av-minimized-icon-size);
  border-radius: var(--av-minimized-icon-size);
}
div#camera-views.webrtc-dock-minimized .camera-view:not(.camera-box-popout) video,
div#camera-views.webrtc-dock-minimized .camera-view:not(.camera-box-popout) .shadow,
div#camera-views.webrtc-dock-minimized .camera-view:not(.camera-box-popout) .player-name,
div#camera-views.webrtc-dock-minimized .camera-view:not(.camera-box-popout) .notification-bar {
  display: none;
}
div#camera-views.hidden {
  visibility: hidden;
  pointer-events: none;
}
div#camera-views.hidden.camera-position-left,
div#camera-views.hidden.camera-position-right {
  width: 0;
  min-width: unset;
}
div#camera-views.hidden.camera-position-top,
div#camera-views.hidden.camera-position-bottom {
  height: 0;
}
div#camera-views.hidden .camera-view {
  visibility: visible;
  pointer-events: all;
}
.camera-view-popout {
  position: fixed;
  left: 0;
  top: 0;
  width: 320px;
  margin: 0;
  min-width: var(--av-width);
  padding: 0;
}
.camera-view-popout .camera-view {
  margin: 0;
  padding: 3px;
}
.camera-view-width-control {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
}
/* ----------------------------------------- */
/* Single Camera View
/* ----------------------------------------- */
.camera-view {
  position: relative;
  width: 100%;
  padding: var(--av-frame-border-width);
  border-radius: var(--av-border-radius);
  background: var(--color-border-av-light);
  background: linear-gradient(to bottom, var(--color-border-av-light) 0%, var(--color-border-av-dark) 100%);
  /* Camera Control Button (28x24) */
  /* Control Sidebar */
  /* Notification Icons */
  /* Volume Bar */
}
.camera-view.camera-box-dock {
  flex: none;
}
.camera-view.speaking {
  padding: 0;
  border: var(--av-frame-border-width) solid var(--color-border-av-speaking);
  --av-frame-absolute-margin: 0px;
}
.camera-view .player-name {
  height: 30px;
  margin: 0;
  line-height: 30px;
  text-align: center;
  position: absolute;
  bottom: calc(var(--av-frame-absolute-margin) - 4px);
  box-shadow: 4px 4px 15px 2px rgba(0, 0, 0, 0.7);
  left: calc(10px + var(--av-frame-absolute-margin));
  right: calc(10px + var(--av-frame-absolute-margin));
  border-radius: var(--av-border-radius);
  background-color: var(--color-border-dark-3);
  font-family: var(--font-primary);
  border: 2px solid var(--color-border-av-dark);
  font-variant: small-caps;
  color: var(--color-text-hyperlink);
  font-size: var(--font-size-18);
  text-shadow: 1px 1px var(--color-shadow-dark);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.camera-view .player-name span {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.camera-view .player-name:not(.noanimate) span:first-child {
  opacity: 1;
  animation: 16s infinite fadeoutin;
}
.camera-view .player-name:not(.noanimate) span:last-child {
  opacity: 0;
  animation: 16s infinite fadeinout;
}
@keyframes fadeoutin {
  from {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  80% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeinout {
  from {
    opacity: 0;
  }
  30% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.camera-view .shadow {
  position: absolute;
  top: var(--av-frame-absolute-margin);
  right: var(--av-frame-absolute-margin);
  bottom: var(--av-frame-absolute-margin);
  left: var(--av-frame-absolute-margin);
  pointer-events: none;
  box-shadow: inset 0 0 15px 8px var(--color-shadow-dark);
  border-radius: calc(var(--av-border-radius) - 2px);
}
.camera-view .av-control {
  flex: 0 0 28px;
  width: 28px;
  padding: 2px;
  text-align: center;
}
.camera-view .av-control i {
  font-size: var(--font-size-18);
  line-height: 22px;
  color: var(--color-text-light-6);
}
.camera-view .av-control i:hover {
  color: #DDD;
}
.camera-view .av-control.toggle .fa-arrows-alt-v {
  transform: rotate(45deg);
}
.camera-view .control-bar,
.camera-view .notification-bar {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-border-dark);
  border-radius: 2px;
  justify-content: space-evenly;
  z-index: 1;
}
.camera-view .control-bar.left,
.camera-view .notification-bar.left {
  top: 4px;
  left: 4px;
}
.camera-view .control-bar.right,
.camera-view .notification-bar.right {
  top: 3px;
  right: 3px;
  background: none;
  border: none;
}
.camera-view .control-bar.bottom,
.camera-view .notification-bar.bottom {
  width: calc(100% - 8px);
  left: 4px;
  bottom: 26px;
  height: 28px;
  padding: 0 3px;
}
.camera-view .control-bar.hidden,
.camera-view .notification-bar.hidden {
  display: none;
}
.camera-view .status-hidden,
.camera-view .status-muted {
  font-size: var(--font-size-20);
  width: 30px;
  line-height: 30px;
  color: #ba2200;
}
.camera-view .status-hidden.hidden,
.camera-view .status-muted.hidden {
  display: none;
}
.camera-view .volume-bar {
  height: 28px;
}
.camera-view .volume-bar input {
  float: left;
  width: calc(100% - 48px);
  padding: 6px 2px;
}
.camera-view .volume-bar i.vol-min,
.camera-view .volume-bar i.vol-max {
  float: left;
  width: 24px;
  line-height: 24px;
  text-align: center;
  color: var(--color-text-light-6);
}
/* ----------------------------------------- */
/*  AV Configuration Sheet
/* ----------------------------------------- */
#av-config .sheet-tabs {
  border-bottom: 1px solid var(--color-border-light-primary);
  padding: 7px 0;
}
#av-config .sheet-tabs .item i {
  margin-right: 2px;
}
#av-config label {
  font-weight: bold;
  margin-bottom: 0;
}
/* ----------------------------------------- */
/* Unclean Below
/* ----------------------------------------- */
.window-content .camera-view,
.camera-box-popout {
  width: 100%;
  height: 100%;
}
.webrtc-dock-camera-container.fa-external-link-square-alt {
  transform: rotate(180deg);
}
.camera-box-popout .window-resizable-handle {
  width: 20px;
  height: 20px;
  position: absolute;
  bottom: 0;
  right: 0;
  background: #444;
  padding: 2px;
  border: 1px solid var(--color-border-dark-1);
  border-radius: 4px 0 0 0;
}
.camera-box-popout .window-resizable-handle i.fas {
  transform: rotate(45deg);
}
.ProseMirror {
  position: relative;
}

.ProseMirror {
  word-wrap: break-word;
  white-space: pre-wrap;
  white-space: break-spaces;
  -webkit-font-variant-ligatures: none;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
}

.ProseMirror pre {
  white-space: pre-wrap;
}

.ProseMirror li {
  position: relative;
}

.ProseMirror-hideselection *::selection { background: transparent; }
.ProseMirror-hideselection *::-moz-selection { background: transparent; }
.ProseMirror-hideselection { caret-color: transparent; }

.ProseMirror-selectednode {
  outline: 2px solid #8cf;
}

/* Make sure li selections wrap around markers */

li.ProseMirror-selectednode {
  outline: none;
}

li.ProseMirror-selectednode:after {
  content: "";
  position: absolute;
  left: -32px;
  right: -2px; top: -2px; bottom: -2px;
  border: 2px solid #8cf;
  pointer-events: none;
}

/* Protect against generic img rules */

img.ProseMirror-separator {
  display: inline !important;
  border: none !important;
  margin: 0 !important;
}

.ProseMirror-gapcursor {
  display: none;
  pointer-events: none;
  position: absolute;
}

.ProseMirror-gapcursor:after {
  content: "";
  display: block;
  position: absolute;
  top: -2px;
  width: 20px;
  border-top: 1px solid black;
  animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
}

@keyframes ProseMirror-cursor-blink {
  to {
    visibility: hidden;
  }
}

.ProseMirror-focused .ProseMirror-gapcursor {
  display: block;
}

.prosemirror {
  display: flex;
  flex-direction: column;
  --color-control-bg: #d9d8c8;
  --color-hover-bg: #f0f0e0;
  --height-button: 28px;
}
.prosemirror menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  flex-wrap: wrap;
  flex: none;
}
.prosemirror menu li {
  margin: 0 2px;
}
.prosemirror menu .source-code {
  margin-right: 4px;
}
.prosemirror menu .right {
  margin-left: auto;
}
.prosemirror menu .right ~ .right {
  margin-left: unset;
}
.prosemirror menu .concurrent-users {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 0 6px;
  background: var(--color-control-bg);
  border: 1px solid var(--color-shadow-highlight);
  border-radius: 3px;
  box-shadow: 0 0 4px var(--color-shadow-highlight);
}
.prosemirror menu .concurrent-users i {
  margin-right: 6px;
}
.prosemirror menu button {
  background: transparent;
  cursor: pointer;
  padding: 0 7px;
  line-height: 26px;
  border: none;
  border-radius: 4px;
}
.prosemirror menu button i {
  margin: 0;
}
.prosemirror menu button.source-code-action {
  background: var(--color-control-bg);
}
.prosemirror menu button:hover,
.prosemirror menu button.active {
  box-shadow: none;
  background: var(--color-hover-bg);
  color: black;
}
.prosemirror menu .pm-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  line-height: 24px;
  background: var(--color-control-bg);
  border-radius: 4px;
  text-align: left;
}
.prosemirror menu .pm-dropdown > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 5em;
  font-size: var(--font-size-12);
  align-self: end;
}
.prosemirror menu .pm-dropdown .html {
  display: none;
}
.prosemirror menu .pm-dropdown > i {
  color: var(--color-text-light-7);
}
.prosemirror menu .pm-dropdown:hover i {
  color: var(--color-text-dark-primary);
}
.prosemirror menu .pm-dropdown i {
  font-size: var(--font-size-11);
  margin-left: 10px;
}
.prosemirror menu .pm-dropdown i.fa-check {
  font-size: var(--font-size-14);
}
.prosemirror menu .pm-dropdown ul {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 90px;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--color-control-bg);
  border-radius: 3px;
  border: 1px solid #999;
  font-size: var(--font-size-12);
  z-index: 1;
}
.prosemirror menu .pm-dropdown > ul {
  top: 100%;
  left: 0;
}
.prosemirror menu .pm-dropdown:focus > ul {
  display: block;
}
.prosemirror menu .pm-dropdown li {
  padding: 1px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 3px;
  position: relative;
  white-space: nowrap;
}
.prosemirror menu .pm-dropdown li.level1 {
  font-size: 2em;
}
.prosemirror menu .pm-dropdown li.level2 {
  font-size: 1.5em;
}
.prosemirror menu .pm-dropdown li.level3 {
  font-size: 1.25em;
}
.prosemirror menu .pm-dropdown li.level5 {
  font-size: 0.83em;
  font-weight: bold;
}
.prosemirror menu .pm-dropdown li.level6 {
  font-size: 0.67em;
  font-weight: bold;
}
.prosemirror menu .pm-dropdown li:hover {
  background: var(--color-hover-bg);
}
.prosemirror menu .pm-dropdown li:hover ul {
  display: block;
}
.prosemirror .editor-container {
  flex: 1;
  position: relative;
  margin: 0.5rem 0.5rem 1rem 1rem;
}
.prosemirror .editor-container .editor-content {
  outline: 0 solid transparent;
  height: unset;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding-right: 0.5rem;
  scrollbar-width: thin;
}
.collaborating menu .source-code-edit {
  display: none;
}
.collaborating menu .concurrent-users {
  display: flex;
}
.collaborating menu .concurrent-users .scene-player {
  width: 14px;
  height: 15px;
  border-radius: 50%;
  margin-right: -3px;
  line-height: var(--line-height-12);
  font-size: 0.625rem;
  text-align: center;
  color: black;
  font-weight: 700;
}
.collaborating menu .concurrent-users .scene-player:last-child {
  margin: 0;
}
/* ----------------------------------------- */
/*  Source Code Editing                      */
/* ----------------------------------------- */
.prosemirror.editing-source menu .text {
  display: none;
}
.prosemirror.editing-source menu .html {
  display: initial;
}
.prosemirror.editing-source .editor-container {
  display: none;
}
.prosemirror.editing-source textarea {
  flex: 1;
  padding: 1rem;
  background: transparent;
  white-space: pre-wrap;
  tab-size: 4;
  resize: none;
  border: none;
  outline: 0;
}
.prosemirror.editing-source textarea:focus {
  box-shadow: none;
}
/* ----------------------------------------- */
/*  Insertion Dialogs                        */
/* ----------------------------------------- */
.prosemirror.menu-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
}
.prosemirror.menu-dialog form {
  width: 400px;
  position: fixed;
  background: var(--color-control-bg);
  border-radius: 4px;
  padding: 8px;
  box-shadow: 0 0 8px 0 var(--color-shadow-dark);
}
/* Pages */
/* ---------------------------------------- */
/*  Main Setup Form                         */
/* ---------------------------------------- */
#setup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: url("../ui/anvil-bg.png") 50% 10% no-repeat;
}
#setup .app {
  margin: 0;
  background: url("../ui/denim-dark-090.png") repeat;
  border: 2px solid var(--color-text-dark-1);
  box-shadow: 0 0 10px var(--color-shadow-dark);
  color: var(--color-text-light-highlight);
}
#setup h2 {
  font-size: var(--font-size-24);
  border-bottom: 2px solid var(--color-border-light-primary);
  margin: 0 0 8px;
}
#setup .form-group {
  flex: none;
}
#setup .form-group .hint,
#setup .form-group .notes {
  color: var(--color-text-light-primary);
}
#setup button {
  margin: 2px;
}
#setup #world-list.package-list .package .tag.unknown {
  min-width: unset;
}
body.background #setup {
  background: none;
}
/* Fatal Error */
#setup #error {
  width: 600px;
  min-height: 100px;
}
#setup-authentication {
  width: 720px;
}
/* ----------------------------------------- */
/*  Module Configuration
/* ----------------------------------------- */
#setup-configuration {
  width: 960px;
  height: 700px;
  padding: 0 10px 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border-dark-tertiary);
  border-radius: 2px;
  box-shadow: 0 0 20px var(--color-shadow-dark);
  outline: 2px solid var(--color-border-dark);
  color: var(--color-text-light-heading);
  /* Config Header */
  /* Config Tabs */
  /* Tab Section */
  /* Configuration Contents */
}
#setup-configuration header {
  flex: 0 0 36px;
  border-bottom: 1px solid var(--color-border-dark-tertiary);
}
#setup-configuration header h1 {
  margin: 0;
  padding: 10px 0;
  text-align: center;
  border-bottom: 2px solid var(--color-border-dark);
}
#setup-configuration nav.tabs {
  flex: 0 0 36px;
  line-height: 36px;
  font-size: var(--font-size-18);
  border-bottom: 2px solid var(--color-border-dark);
}
#setup-configuration nav.tabs a {
  position: relative;
}
#setup-configuration section.content {
  border-top: 1px solid var(--color-border-dark-tertiary);
}
#setup-configuration section.content .package-list:not(.empty) {
  height: 510px;
}
#setup-configuration button.lock-toggle {
  width: 25px;
}
#setup-configuration button.lock-toggle.unlock {
  color: var(--color-text-dark-secondary);
  box-shadow: none;
}
#setup-configuration .tab {
  margin-bottom: 5px;
  flex-direction: column;
}
#setup-configuration .tab[data-tab].active {
  display: flex;
}
#setup-configuration .sheet-tabs .item {
  padding: 0px 2px 0px 2px;
}
#setup-configuration .sheet-tabs .item.active {
  border-bottom: 2px solid var(--color-text-light-heading);
  margin-bottom: -2px;
}
#setup-configuration .sheet-tabs .item.disabled {
  color: var(--color-text-dark-inactive);
}
#setup-configuration .sheet-tabs .item.disabled:hover {
  text-shadow: none;
}
#setup-configuration .setup-footer {
  flex: 1;
  justify-content: flex-end;
  align-content: flex-end;
}
#setup-configuration .setup-footer button {
  height: 36px;
}
#setup-configuration .progress-bar {
  visibility: hidden;
  position: relative;
  flex: 0 0 100%;
  height: 12px;
  margin: 0;
  background: var(--color-border-dark);
  border: 1px solid var(--color-border-dark-tertiary);
  border-radius: 3px;
}
#setup-configuration .bar {
  height: 6px;
  margin: 2px;
  display: block;
  background: #5d49ff;
  border: 1px solid #b2c3ff;
  border-radius: 2px;
  max-width: calc(100% - 4px);
}
#setup-configuration .pct {
  display: block;
  position: absolute;
  margin-left: -20px;
  color: var(--color-text-light-0);
  text-shadow: 1px 1px 4px var(--color-shadow-dark);
  top: -5px;
  background: rgba(0, 0, 0, 0.5);
  padding: 0 5px;
  border: 1px solid var(--color-border-dark);
}
#setup-configuration #update {
  margin-top: 1rem;
}
#setup-configuration #update-channel {
  flex: 0 0 200px;
}
#setup-configuration .package {
  border-bottom: 1px solid var(--color-border-dark-1);
}
#setup-configuration .package .package-title {
  font-size: var(--font-size-16);
  color: var(--color-text-light-heading);
}
#setup-configuration .filter-row {
  display: flex;
  justify-content: end;
}
#setup-configuration .filter {
  margin-top: 5px;
  margin-bottom: 5px;
}
#setup-configuration .filter label {
  padding-right: 5px;
}
#setup-configuration .filter input {
  width: 80%;
}
#setup-configuration a.system-install,
#setup-configuration a.world-install,
#setup-configuration a.module-install,
#setup-configuration a.launch-tour {
  color: var(--color-text-hyperlink);
  text-decoration: underline;
}
#setup-configuration .notification {
  flex: none;
  margin: 0 0 0.5em 0;
}
#setup-configuration .message {
  padding: 1em;
  margin: 16px;
  font-size: var(--font-size-20);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-dark);
  border-left: 6px solid var(--color-border-dark-2);
  border-radius: 3px;
  color: var(--color-text-light-heading);
  box-shadow: 0 0 3px var(--color-shadow-dark);
}
#setup-configuration .message em {
  color: var(--color-text-dark-inactive);
  display: block;
}
#setup-configuration .message p {
  margin: 1em 0;
}
#setup-configuration .message p:last-child {
  margin-bottom: 0;
}
#setup-configuration .no-results {
  color: var(--color-text-dark-inactive);
  margin: 1em;
  font-size: var(--font-size-16);
  text-align: center;
}
#setup-configuration .no-results.hidden {
  display: none;
}
/* ---------------------------------------- */
/*  Application Configuration               */
/* ---------------------------------------- */
#setup #configuration {
  margin-top: 1rem;
}
#setup #configuration section.form-content {
  flex: 0 0 500px;
  overflow: auto;
}
#setup #configuration section.form-content .form-group {
  margin-bottom: 0.5rem;
}
#setup #configuration .setup-footer {
  flex: none;
}
/* ---------------------------------------- */
/*  Package Installation                    */
/* ---------------------------------------- */
#install-package .categories {
  flex: 0 0 220px;
  height: 514px;
  overflow: hidden auto;
  padding-right: 5px;
  margin-right: 5px;
  border-right: 1px solid var(--color-border-light-primary);
  font-size: var(--font-size-12);
}
#install-package .categories h3 {
  line-height: var(--line-height-30);
  margin: 0;
}
#install-package .categories .category {
  margin: 0 2px 0 0;
  padding: 4px 0;
  border-bottom: 1px solid var(--color-border-light-primary);
}
#install-package .categories .category.active {
  font-weight: bold;
  border-bottom: 1px solid var(--color-underline-active);
}
#install-package .categories span.count {
  float: right;
}
#install-package .packages {
  height: 514px;
}
#install-package .packages .form-group {
  flex: 0;
}
#install-package .visibilities {
  flex: 0 0 100%;
  height: 22px;
  text-align: right;
}
#install-package .visibilities .visibility {
  font-size: var(--font-size-13);
  line-height: 24px;
  border-bottom: 2px solid var(--color-underline-inactive);
  margin-left: 5px;
}
#install-package .visibilities .visibility.active {
  border-bottom: 2px solid var(--color-underline-active);
  font-weight: bold;
}
#install-package .package-list {
  border-top: 1px solid var(--color-border-light-primary);
}
#install-package .package-list .package.installed,
#install-package .package-list .package.locked {
  background: rgba(0, 0, 0, 0.05);
}
#install-package .package-list .package.installed .package-title,
#install-package .package-list .package.locked .package-title {
  color: var(--color-text-dark-inactive);
}
#install-package .package-list .package.installed .package-title a,
#install-package .package-list .package.locked .package-title a {
  text-decoration: none;
}
#install-package .package-list .package-title {
  flex: 1 0 60%;
  margin: 0;
  color: var(--color-text-dark-primary);
  font-weight: bold;
}
#install-package .package-list .package-title a {
  text-decoration: underline;
}
#install-package .package-list .package-title i.fas {
  font-size: var(--font-size-12);
}
#install-package .package-list .package-title .tag.requires {
  position: relative;
  top: -2px;
}
#install-package .package-list .package-description {
  color: var(--color-text-dark-primary);
  font-size: var(--font-size-11);
  word-break: break-word;
}
#install-package .package-list .package-description p {
  margin: 3px 0;
}
#install-package .package-list .package-tags,
#install-package .package-list .package-controls {
  flex: 0 0 100px;
  height: 68px;
  padding: 0;
}
#install-package .package-list .package-tags .tag,
#install-package .package-list .package-controls .tag {
  width: 100px;
  margin-bottom: 2px;
  background: rgba(0, 0, 0, 0.1);
  color: var(--color-text-dark-primary);
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}
#install-package .package-list .package-tags button,
#install-package .package-list .package-controls button {
  width: 100px;
  height: 24px;
  line-height: 22px;
}
#install-package .package-list .packages-indicator {
  height: 200px;
  line-height: 100px;
  font-size: 2em;
  text-align: center;
}
#install-package .package-list .packages-indicator h3,
#install-package .package-list .packages-indicator i {
  color: var(--color-text-dark-inactive);
}
#install-package .package-list .packages-failed {
  height: 200px;
  line-height: 100px;
  font-size: 2em;
  text-align: center;
}
#install-package .package-list .packages-failed h3,
#install-package .package-list .packages-failed i {
  color: var(--color-text-dark-inactive);
}
#install-package footer.install {
  flex: 0 0 100%;
  align-items: center;
  padding: 4px 0 0;
  border-top: 1px solid var(--color-border-light-primary);
}
#install-package footer.install label {
  flex: 0 0 200px;
}
#install-package footer.install input {
  height: 32px;
}
#install-package footer.install button {
  height: 32px;
  flex: 0 0 128px;
  margin-left: 5px;
}
#install-package footer.install .packages-loading {
  height: 200px;
  line-height: 100px;
  font-size: var(--font-size-em-3);
  text-align: center;
}
#install-package footer.install .packages-loading h3 {
  color: var(--color-text-dark-inactive);
}
#setup-install-dependencies .dependencies-info {
  display: flex;
  max-height: 200px;
  overflow-y: scroll;
  border-top: 1px solid var(--color-border-light-primary);
  border-bottom: 1px solid var(--color-border-light-primary);
  margin-bottom: 10px;
}
#setup-install-dependencies .dependencies-info > section {
  flex: 1;
  margin: 5px;
}
#setup-install-dependencies .dependencies-info > section:first-of-type {
  border-right: 1px solid var(--color-border-light-primary);
}
#setup-install-dependencies .dependencies-info .dialog-buttons {
  flex-basis: min-content;
}
/* ----------------------------------------- */
/*  World Configuration                      */
/* ----------------------------------------- */
#world-config label {
  font-weight: bold;
}
#world-config label.world-desc {
  margin: 5px 0;
}
#world-config .editor {
  height: 300px;
}
#world-config input[name="name"] {
  flex: 2;
  margin-left: 3px;
}
/* ----------------------------------------- */
/*  Join Session
/* ----------------------------------------- */
#join-game {
  position: relative;
  height: auto;
  width: 960px;
  top: calc(50% - 300px);
  margin: 0 auto;
}
#join-game #world-title {
  flex: 0 0 100%;
  height: 64px;
  margin: 0 0 8px 0;
  padding: 0 10px;
}
#join-game #world-title h1 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 64px;
  border-bottom: none;
}
#join-game .left {
  justify-content: space-between;
}
#join-game .right {
  margin-left: 8px;
}
#join-game .app {
  flex: 0;
  margin-bottom: 8px;
}
#join-game .app h1 {
  font-size: var(--font-size-24);
  margin-bottom: 10px;
}
#join-game form .form-group,
#join-game form .form-group-stacked {
  margin-bottom: 5px;
}
#join-game form select {
  height: 28px;
}
#join-game form button {
  margin: 5px 0;
}
#join-game #session-schedule .current-players span {
  font-size: var(--font-size-24);
  flex: 0 0 32px;
  text-align: center;
}
#join-game #session-schedule .current-players input[type="text"] {
  flex: 1.25;
}
#join-game #world-description {
  flex: 1;
  max-height: 450px;
  overflow-y: auto;
  padding: 0.5em;
}
#join-game .join-footer p {
  padding: 0.5em 0;
}
/* ----------------------------------------- */
/*  Manage Players
/* ----------------------------------------- */
#manage-players {
  flex: 0 0 600px;
}
#manage-players h1 {
  border-bottom: 2px groove var(--color-underline-inactive);
}
#manage-players #player-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  min-height: 200px;
  max-height: 460px;
}
#manage-players #player-list .header {
  font-weight: bold;
}
#manage-players #player-list li {
  margin: 3px 0;
  padding: 0 3px;
}
#manage-players #player-list li > * {
  flex: 1;
  margin: 0 4px;
}
#manage-players #player-list li .user-delete {
  flex: 0 0 20px;
  line-height: 28px;
  text-align: center;
}
#manage-players label.show {
  display: none;
  flex: 0 0 20px;
  text-align: center;
  color: var(--color-text-dark-inactive);
  cursor: pointer;
}
#manage-players label.show.visible {
  display: block;
  color: inherit;
}
#manage-players label.show input {
  display: none;
}
#manage-players label.show:hover,
#manage-players label.show.active {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
#manage-players footer button {
  margin: 10px 5px 0;
}
/* ----------------------------------------- */
/* EULA and Notes
/* ----------------------------------------- */
#eula {
  height: 90%;
}
#eula #eula-content {
  flex: 1;
  overflow-y: auto;
}
#eula #eula-content h3 {
  font-weight: bold;
}
#eula #eula-content #eula-updated {
  text-align: center;
}
#eula #eula-sign {
  flex: 0 0 100px;
}
#eula #eula-sign label[for="eula-agree"] {
  line-height: var(--line-height-20);
  padding-left: 5px;
  font-weight: bold;
}
#update-notes .update-notes {
  max-height: 80vh;
  overflow-y: auto;
}
#update-notes button#return {
  margin-top: 5px;
}
#update-notes figure img {
  min-height: 230px;
}
#update-notes figure.video {
  position: relative;
}
#update-notes figure.video::before {
  content: '';
  display: block;
  padding-bottom: calc(100% * 9/16 + 1.5rem);
}
#update-notes figure.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 1.5rem);
}
/* ----------------------------------------- */
/* Updatelog
/* ----------------------------------------- */
.updated-packages-table thead tr {
  display: block;
}
.updated-packages-table thead tr :first-child {
  padding-left: 5px;
}
.updated-packages-table tbody {
  overflow: auto;
  width: 100%;
  display: block;
  max-height: 400px;
}
.updated-packages-table th,
.updated-packages-table td {
  text-align: left;
}
.updated-packages-table th.package,
.updated-packages-table td.package {
  width: 300px;
}
.updated-packages-table th.action,
.updated-packages-table td.action {
  width: 100px;
}
.updated-packages-table th.description,
.updated-packages-table td.description {
  width: 600px;
}
.updated-packages-table th.Warning,
.updated-packages-table td.Warning {
  color: orange;
}
.updated-packages-table th.Error,
.updated-packages-table td.Error {
  color: firebrick;
}
.updated-packages-table th.Success,
.updated-packages-table td.Success {
  color: darkolivegreen;
}
body.stream {
  background: lime;
  box-shadow: none;
  /* Stream Chat */
}
body.stream .tab[data-tab] {
  position: absolute;
  top: 20px;
  display: block;
  width: 300px;
  height: calc(100% - 40px);
}
body.stream #chat {
  left: 20px;
}
body.stream #chat #chat-log {
  height: 100%;
}
