
:root {
  --chat-alice: #3696fd;
  --chat-bob: #f2f2f2;
  --chat-green: #35ce5b;
  --chat-blue: #3696fd;
  --css-icon-red: #D82F26;
  --css-icon-teal: #1ea1a8;
  --css-icon-green: #35ce5b;
  --css-icon-purple: #CE35A8;
  --css-icon-darkorange: #ff8c00;
  --css-icon-midnightblue: #191970;
  --css-icon-sys: #a0a0a0;
  --text-dark: #333333;
  --text-light: #777777;
  --text-very-light: #aaa;
  --text-non-clickable: #ddd;
  --error-red: #f58a8f;
  --chat-bubble-radius: 1.2rem;
  --chat-bubble-group-radius: 0.3rem;
  --chat-ui_easing-quick: cubic-bezier(0.075, 0.820, 0.165, 1.000);
  --footer-height: 82px;  /* calculated on the fly in js */
  --titlebar-height: 84px;  /* calculated on the fly in js */
  --header-height: 84px;  /* calculated on the fly in js */
  --emoji-kb-height: 51px;
  --hover-background-color: #f2f2f2;
  --selected-background-color: #ddd;
}

html {
  /*scroll-behavior: smooth;*/
}


body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  margin: 0;
  overflow-x: hidden;
  width: 100vw;
}


/*
//  FLEXBOX STRUCTURE OF CHAT/FILESYSTEM VIEWS
//  https://css-tricks.com/snippets/css/a-guide-to-flexbox/
//  https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Aligning_Items_in_a_Flex_Container
*/
.box-col, .box-col div { display: flex }
.box-col-up   { flex-direction: column-reverse }
.box-col-down { flex-direction: column }

.box-row {
  flex-direction: row;
  padding: 0.5rem 1rem 0.5rem 0;
  justify-content: space-evenly;
}
.box-row > div { align-items: center }

.box-date { font-size: 0 }
.box-admin { display: none !important } /* Do not show admin messages in fs view */

.box-delivery { width: 6%; justify-content: flex-end }
.box-content  { width: 82% }
.box-menu { width: 12%; justify-content: center }

.box-row-loading { background-color: #ddf }
.box-row-error { background-color: #fee }

/* Allow one menu-initiated operation per row at a time.
If a menu-initiated operation is in progress, deactivate all pointer events from the
row until the operation is completed */
.box-row[data-menuop] {
  pointer-events: none;
  background-color: #eef;
}

.box-file {
  width: 100%;
  flex-direction: row;
}
.box-icon {
  width: 3rem;
  min-width: 3rem;  /* for iOS */
  padding: 0 0.4em 0 0.4em;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.box-icon-duration {
  display: none !important;
}
.box-icon-play {
  display: none !important;
}
.box-info {
  max-width: 85%;
  flex-direction: column;
}
.box-info-top { }
.box-info-bottom {
  flex-direction: row;
  font-size: 0.8em;
  color: var(--text-light);
}
.box-info-invite {
  display: none !important;
  align-items: center;
  width: 80%;
}
.box-invite {
  margin: 14px 0px 14px 0px;
  text-align: center;
}
.box-invite-title {
  color: var(--text-dark);
  font-size: x-large;
}
.box-invite-link {
  padding: 0.5em 0.75em;
  border-radius: 0.5em 0 0 0.5em;
  background-color: #eee;
  color: var(--text-light);
  word-break: break-all;
  font-family: monospace;
}
.box-invite-copy {
  padding: 0.5em 0.75em;
  border-radius: 0 0.5em 0.5em 0;
  align-items: center;
  background-color: var(--chat-alice);
  color: white;
  cursor: pointer;
}
.box-invite-copied {
  background-color: var(--chat-green);
}
.box-row-message {
  display: none !important;
}
/*
.chat .box-row-message {
  width: 100%;
  text-align: center;
  justify-content: center !important;
  display: flex !important;
  padding-bottom: 1rem !important;
}*/
.chat .box-row.sysmessage {
  width: 100%;
  text-align: center;
  justify-content: center !important;
  display: flex !important;
  padding-bottom: 1rem !important;
  color: var(--text-very-light);
  word-break: break-word;
  font-size: 0.8em;
}
.chat .box-delivery.sysmessage {
  display: none
}

.box-message {
  width: 75%;
  color: var(--text-very-light);
  justify-content: space-evenly;
  word-break: break-word;
}


.box-name {
  display: block !important;  /* To handle text overflow in flexbox */
}
.box-name.text {
  font-style: italic;
}

.box-created, .box-size {
  margin-right: 1em;
}
.box-hide { display: none !important }

.box-text {
  white-space: nowrap;
  overflow: hidden;
}
.box-text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1rem;  /* Force a single line of text in Files view */
  max-height: 1rem; /* Force a single line of text in Files view */
}
.chat .box-text-ellipsis {
  line-height: initial;  /* Force a single line of text in Files view */
  max-height: initial; /* Force a single line of text in Files view */
}

.box-icon-image {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 3px;
}

.box-delivery-icon {
  width: 15px;
  height: 15px;
  align-self: flex-end;
  margin: 0px 0px 0px 2px;
}

.box-bottom-of-page {
  height: 1px;
}


/*
//  Select Mode
*/
.box-row-select-mode { cursor: default }
@media (hover: hover) {  /* to prevent sticky hover behaviour on mobile */
  .box-row-select-mode:hover { background-color: var(--hover-background-color) }
}
.box-row-selected { background-color: var(--selected-background-color) !important }
.box-row-selected .select-checkmark {
  stroke: var(--selected-background-color);
  stroke-width: 3;
  stroke-linecap: round
}


/*
//  Modal Menu
*/
.box-menu-icon {
  width: 30px;
  height: 30px;
  /*margin: 0px 0px 0px 2px;*/
}

.modal-menu {
  width: 170px;
  position: fixed;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 11;
  border-radius: 0.5rem;
  margin: 10px;
  cursor: default;
  flex-direction: column;
  font-size: 17px;
}
.modal-menu-back {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  background-color: rgb(0,0,0);
  opacity: 0.01;
  z-index: 10;
  display: flex;
}
.modal-menu-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.6em;
  padding: 0.4em 0.6em;
  border-radius: 5px;
}
@media (hover: hover) {  /* to prevent sticky hover behaviour on mobile */
  .modal-menu-selectable:hover { background-color: var(--hover-background-color) }
}
.modal-menu-icon {
  --size: 20px;
  width: var(--size);
  height: var(--size);
  margin-left: 20px;
}
.modal-menu-line-delete { color: var(--css-icon-red) }
hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 0;
  color: var(--text-light);
}
.menu-ellipsis-clickable { fill: #fff }
@media (hover: hover) {  /* to prevent sticky hover behaviour on mobile */
  .menu-ellipsis-clickable:hover { fill: var(--hover-background-color) }
}
#fs_select_mode_menu { font-size: 19px }
.menu-ellipsis-hidden { display: none }
.menu-error-clickable { fill: #fff }
@media (hover: hover) {  /* to prevent sticky hover behaviour on mobile */
  .menu-error-clickable:hover { fill: #fee }
}
.menu-error-non-clickable { pointer-events: none; stroke: #fdd  }



/*.box-file .file,*/
.box-file .image,
.box-file .video { cursor:pointer }

.chat-footer {
  display: none;
}
.chat-footer-closed {
  display: none;
}
.fs-footer {
  display: flex;
  padding: 1em;
  color: var(--text-light);
  background-color: white;
  position: fixed;
  bottom: 0;
  width: calc(100% - 2em);
}


/*
// titlebar
*/
.fs-header {
  position: fixed;
  top: 0;
  background-color: white;
  z-index: 1;
  width: 100%;
}
.fs-titlebar {
  display: none;
  justify-content: space-between;
  align-items: center;
  /*box-shadow: 0 0.1rem 1rem hsla(0, 0%, 0%, .4);*/
  /*position: fixed;
  top: 0;*/
  background-color: white;
  /*padding: 1em 0.5em;*/
  /*padding: 1em 0.5em 0em 1em;
  width: calc(100% - 1em);*/
  padding: 1em 1em 0em 1em;
}
.fs-titlebar-item {
  color: var(--chat-blue);
  cursor: default;
  margin: 6px 10px;
  border-radius: 4px;
  line-height: 40px;
  text-align: center;
  font-size: 1.1rem;
  padding: 0 1rem 0 1rem;
}
@media (hover: hover) {  /* to prevent sticky hover behaviour on mobile */
  .fs-titlebar-item:hover { background-color: var(--hover-background-color) }
}
.fs-titlebar-status-row {
  display: none;
  justify-content: center;
  align-items: center;
  /*background-color: #f4f4f4;*/
  margin-bottom: 0.5em;
}
.fs-statusbar-mode {
  display: flex;
  line-height: 1.5em;
  font-size: small;
  color: var(--text-light);
}
.fs-statusbar-server {
  display: flex;
  line-height: 1.5em;
  font-size: small;
  color: var(--error-red);
}

.fs-no-files {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-very-light);
  text-align: center;
  pointer-events: none;
}
.chat .fs-no-files { display: none }
.flex { display: flex !important }
.button-disabled {
  pointer-events: none;
  color: var(--text-non-clickable) !important;
 }


/*
//  CHAT VIEW OVERRIDES
*/
.chat .box-admin {
  display: flex !important; /* Only show admin messages in chat view and not fs view */
  justify-content: center !important;;
  word-break: break-word;
}
.chat .box-delivery {
  justify-content: flex-start;
}
.chat .box-row.bob {
  flex-direction: row;
}
.chat .box-row.alice {
  flex-direction: row-reverse;
}
.chat .box-content.text.bob,
.chat .box-content.text.alice {
  text-align: left;
  padding: 0.4rem 0.6rem;
}
.chat .box-content.text.bob {
  background-color: var(--chat-bob);
  color: black;
}
.chat .box-content.text.alice {
  background-color: var(--chat-alice);
  color: white;
}
.chat .box-content.text.emoji {
  background-color: rgb(0,0,0,0);   /* Make background transparent */
  font-size: 2rem;  /* Make emoji larger than normal text */
  padding: 0.1rem 0;
  color: var(--text-light);
}
.chat .box-content.file.bob,
.chat .box-content.file.alice {
  background-color: rgb(242, 242, 242);
  padding: 0.6rem 0.9rem 0.6rem 0rem;
}
.chat .box-menu.text {
  display: none !important;
}
.chat .box-menu {
  width: 20%;
}
.chat .box-content {
  max-width: 70%;
  width: auto;
  border-radius: var(--chat-bubble-radius);
}
.chat .box-file {
  max-width: 100%;
  border-radius: inherit; /* Take border-radius from (.chat .box-content) */
  position: relative; /* allow absolute positionning of video duration and play text */
}
.chat .box-name {
  word-wrap: break-word;
  /*word-wrap: break-all;*/
  white-space: initial;
}
.chat .box-name.text {
  font-style: normal;
}
.chat .box-name.text.alice {
  -webkit-user-modify: read-write;  /* Allow user to edit content of text bubble */
  outline: none;
  caret-color: red;
  padding: 0 .1em 0 .1em; /* To show the carret when positionned at end */
}
.chat .box-name.file {
  font-weight: bold;
}
.chat .bubble-edit {
  background-color: #eee !important;
  color: var(--text-light) !important;
}
.chat .box-info-top.file {
  font-size: 0.95em;
  word-break: break-all;
}
.chat .box-info-top.text {
  font-size: 1.3em
}
.chat .box-info-bottom.text {
  display: none !important;
}
.chat .box-info-invite {
  display: flex !important;
  flex-direction: column;
  color: var(--text-very-light);
}
.chat .box-icon {
  padding: unset
}
.chat .box-icon.text {
  display: none !important;
}
.chat .box-info.image,
.chat .box-info.video {
  display: none !important;
}
.chat .box-info.text {
  max-width: 100%;
}
.chat .box-icon.image > img,
.chat .box-icon.video > img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit; /* Take border-radius from (.chat .box-content) */
}
.chat .box-icon-duration.video {
  display: flex !important;
  position: absolute;
  color: white;
  background-color: rgba(20,20,20,0.3);
  border-radius: 10px;
  padding: 1px 7px 0px 7px;
  font-size: small;
  height: max-content;
  bottom: 7px;
  right: 10px;
}
.chat .box-icon-play.video {
  display: block !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.chat .box-created {
  display: none !important;
}
.chat .box-icon.image,
.chat .box-icon.video {
  width: unset;
  align-items: flex-end; /* Align video duration bottom-center */
  justify-content: center; /* Align video duration bottom-center */
  border-radius: inherit; /* Take border-radius from (.chat .box-content) */
}

.chat .date-cluster-end + .box-date,
.chat .box-date:first-of-type /* because the above selector does not work on first .box-date */
{
  margin: 25px 0px 25px 0px;
  font-size: 0.85em;
  justify-content: center;
  color: var(--text-very-light);
}
.chat .box-row {
  padding: 1px 0px 0px 0px;
  justify-content: unset;
}

.chat .box-content.alice {
  border-top-right-radius: var(--chat-bubble-group-radius);
  border-bottom-right-radius: var(--chat-bubble-group-radius);
}
.chat .box-content.bob {
  border-top-left-radius: var(--chat-bubble-group-radius);
  border-bottom-left-radius: var(--chat-bubble-group-radius);
}

.chat .box-col-down .bubble-cluster-start  .box-content.alice { border-top-right-radius: var(--chat-bubble-radius) }
.chat .box-col-down .bubble-cluster-end    .box-content.alice { border-bottom-right-radius: var(--chat-bubble-radius) }
.chat .box-col-down .bubble-cluster-start  .box-content.bob   { border-top-left-radius: var(--chat-bubble-radius) }
.chat .box-col-down .bubble-cluster-end    .box-content.bob   { border-bottom-left-radius: var(--chat-bubble-radius) }

.chat .box-col-up .bubble-cluster-start  .box-content.alice   { border-bottom-right-radius: var(--chat-bubble-radius) }
.chat .box-col-up .bubble-cluster-end    .box-content.alice   { border-top-right-radius: var(--chat-bubble-radius) }
.chat .box-col-up .bubble-cluster-start  .box-content.bob     { border-bottom-left-radius: var(--chat-bubble-radius) }
.chat .box-col-up .bubble-cluster-end    .box-content.bob     { border-top-left-radius: var(--chat-bubble-radius) }

.chat .fs-up-down-button {
  display: none !important
}


/*
//  Modal Media Viewer
*/
.modal-viewer {
  display: none;
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  left: 0;
  top: 0;
  height: 100%;
  width: 100%; /* Full width */
  background-color: rgb(0,0,0);
  flex-direction:column;
}
.viewer-titebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
}
.viewer-titlebar-item {
  flex: 1; /* make Close button maximum width */
}
.viewer-footer {
   display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding-bottom: 1rem;  /* iOS fullscreen, to clear bottom swipe bar */
}
.modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 2;
  overflow: hidden;
}

.modal-image {
  height: 100%;
  object-fit: contain;
}
.modal-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.modal-loading {
  color: white;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-image {
    max-width: 100%;
  }
}



/*
//  File Drop Zone
*/
.drop-overlay {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(0,0,0);
  opacity: 0.8;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 5vw;
}

.invisible {
  visibility: hidden !important;
}


/*
//  Spinner while loading a file.
*/
.loader {
  display: inline-block;
}
.loader:after {
  content: " ";
  display: block;
  /*margin: 8px;*/
  border-radius: 50%;
  border: 3px solid #ccc;
  border-color: #ccc transparent #ccc transparent;
  animation: loader 1.2s linear infinite;
  width: 18px;
  height: 18px;
}
@keyframes loader {
  0% { transform: rotate(0deg) }
  100% { transform: rotate(360deg) }
}


/*
//  UP-DOWN FS BUTTON
//https://www.iconfinder.com/iconsets/navigation-set-arrows-part-one
//https://www.iconfinder.com/iconsets/navigation-set-arrows-part-two
*/
/*
.fs-up-down-button {
  background-image: url("./image/arrow-down.svg");
  background-repeat: no-repeat;
  background-size: cover;
  width: 20px;
  height: 20px;
}
.fs-up-down-button.up {
  background-image: url("./image/arrow-up.svg");
}
*/
.nav-icon {
  --size: 25px;
  width: var(--size);
  height: var(--size);
  -webkit-mask-size: cover;
  mask-size: cover;
  background: #777;
}

.chevron-left-icon {
  -webkit-mask-image: url(./image/chevron-left.svg);
  mask-image: url(./image/chevron-left.svg);
}
.chevron-right-icon {
  -webkit-mask-image: url(./image/chevron-right.svg);
  mask-image: url(./image/chevron-right.svg);
}

.fs-up-down-button {
  --size: 20px;
  width: var(--size);
  height: var(--size);
  -webkit-mask-image: url(./image/arrow-down.svg);
  mask-image: url(./image/arrow-down.svg);
}
.fs-up-down-button.up {
  -webkit-mask-image: url(./image/arrow-up.svg);
  mask-image: url(./image/arrow-up.svg);
}

.fs-chat-toggle-button {
  -webkit-mask-image: url(./image/list.svg);
  mask-image: url(./image/list.svg);
}
.fs-chat-toggle-button.chat {
  -webkit-mask-image: url(./image/chat.svg);
  mask-image: url(./image/chat.svg);
  background: #aaa;
}


/*
//  Build an icon with css.
*/
.css-icon {
  --size: 28px;
  width: var(--size);
  height: var(--size);
  font-size: 10px;
  color: white;
  background-color: var(--chat-blue);
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  display: none !important;
}

.css-icon-sys { background-color: var(--css-icon-sys); display: flex !important }
.css-icon-sys::after { content: "SYS" }

.css-icon-chat-alice { background-color: var(--chat-alice); display: flex !important }
.css-icon-chat-alice::after { content: "TXT" }

.css-icon-chat-bob { background-color: var(--chat-bob); color: var(--text-light); display: flex !important }
.css-icon-chat-bob::after { content: "TXT" }

.css-icon-img { background-color: var(--css-icon-darkorange); display: flex !important }
.css-icon-img::after { content: "IMG" }

.css-icon-video { background-color: var(--css-icon-darkorange); display: flex !important }
.css-icon-video::after { content: "VID" }

.css-icon-file { background-color: var(--css-icon-midnightblue); display: flex !important }
.css-icon-file::after { content: "FILE" }

.css-icon-txt { background-color: var(--css-icon-purple); display: flex !important }
.css-icon-txt::after { content: "TXT" }

.css-icon-js { background-color: var(--css-icon-purple); display: flex !important }
.css-icon-js::after { content: "JS" }

.css-icon-css { background-color: var(--css-icon-purple); display: flex !important }
.css-icon-css::after { content: "CSS" }

.css-icon-html { background-color: var(--css-icon-purple); display: flex !important }
.css-icon-html::after { content: "HTML" }

.css-icon-svg { background-color: var(--css-icon-purple); display: flex !important }
.css-icon-svg::after { content: "SVG" }

.css-icon-pdf { background-color: var(--css-icon-red); display: flex !important }
.css-icon-pdf::after { content: "PDF" }

.css-icon-msword { background-color: var(--css-icon-teal); display: flex !important }
.css-icon-msword::after { content: "DOC" }

.css-icon-ppt { background-color: var(--css-icon-teal); display: flex !important }
.css-icon-ppt::after { content: "PPT" }

.css-icon-xls { background-color: var(--css-icon-teal); display: flex !important }
.css-icon-xls::after { content: "XLS" }




/*
//  CHAT PAGE
*/
.chat-view-page {
  /*width: 100vw;*/
  /*
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);*/
  display: flex;
  flex-direction: column;
  /* #E1 overflow: hidden;*/
}
.chat-scrollview {
  width: 100%;
  overflow-y: scroll;
  padding-bottom: var(--footer-height);
  padding-top: var(--header-height);
  /*padding-top: var(--titlebar-height);*/
}
.chat .chat-footer {
  padding: 1em;
  padding-bottom: 2.5em;  /* iPhone: extra space to clear Home Bar when full screen */
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 0;
  width: calc(100% - 2em);
  background-color: #fff;
}
.chat-filedialog { margin-right: 0.7em }
.chat-ui-input {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}
.chat-closed .chat-ui-input  {
  display: none !important
}


.svg-icon {
  fill: var(--chat-blue);
  cursor: default;
}
@media (hover: hover) {  /* to prevent sticky hover behaviour on mobile */
  .svg-icon:hover { fill: #aaa }
}
.chat-ui-camera {
  --size: 35px;
  width: var(--size);
  height: var(--size);
}
.chat-ui-smiley {
  --size: 30px;
  width: var(--size);
  height: var(--size);
  margin-right: 0.7em;
}
.chat-ui-send {
  --size: 35px;
  width: var(--size);
  height: var(--size);
  margin-left: 0.7em;
}
.chat-ui-play {
  --size: 45px;
  width: var(--size);
  height: var(--size);
}
.chat-closed .chat-ui-smiley  {
  display: none !important
}

.chat-ui-emoji-keyboard {
  display: none;
  justify-content: space-evenly;
  font-size: 2em;
  margin-top: 0.2em;
}
.emoji-keyboard-on ~ .chat-ui-emoji-keyboard { display: flex }
.emoji-key {
}



.chat-closed .chat-footer-closed {
  margin: 1em;
  display: flex;
  position: absolute;
  bottom: 0;
}

.chat .fs-footer {
  display: none;
}

.chat-authoring {
  box-sizing: border-box;
  padding: 0.5em 0.75em;
  border-radius: 2em;
  background-color: #eee;
  color: var(--text-light);
  font-size: 1.2em;
  line-height: 1.2em;
  flex: 1;
  max-height: 10em;
}
.chat-authoring:focus {
  width: calc(100% - 1rem);
  outline: none;
  word-break: break-word;
  overflow-x: hidden;
  overflow-y: auto;
}
.chat-authoring:empty::after { content: "Aa" }
.chat-authoring:empty:not(:focus) { width: 80% }
.chat-authoring:not(:focus) {
  /* collapse height to 1 line when not in focus */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.chat-ui-send { display: none }
/* Make more room for the input box when typing. */
.typing .chat-filedialog { display: none }
/*
.typing .chat-ui-emoji { display: none }
*/
.typing .chat-ui-send { display: block }


.hidden { display: none !important }


.conv-settings-modal {
  display: none;
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  left: 0;
  top: 0;
  height: 100%;
  width: calc(100% - 4em);
  padding: 2em;
  background-color: #fff;
  flex-direction: column;
}
.conv-invite-modal {
  display: none;
  position: fixed; /* Stay in place */
  z-index: 200; /* Sit on top */
  left: 0;
  top: 0;
  height: 100%;
  width: calc(100% - 4em);
  padding: 2em;
  background-color: #fff;
  flex-direction: column;
}
.conv-settings-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  /*padding: 1em 0em;*/
}
@media (hover: hover) {  /* to prevent sticky hover behaviour on mobile */
  .conv-settings-titlebar-item:hover { background-color: var(--hover-background-color) }
}
.conv-line-text-option {
  justify-content: space-between;
  align-items: center;
  background-color: white;
  display: flex;
  margin-left: 1.0em;
}
.conv-invite-qr {
  display: flex;
  justify-content: center;
  margin: 1em;
}
.conv-line-input-box {
  box-sizing: border-box;
  padding: 0.5em 0.75em;
  border-radius: 0.5em;
  background-color: #f7f5f5;
  color: var(--text-light);
  font-family: monospace;
  line-height: 1.2em;
  margin: 0.4em 0em;
  display: flex;
  word-break: normal;
  width: 100%;
}
.conv-line-input-box:empty:after {
  content: attr(data-placeholder);
}
.conv-line-input-noedit {
  background-color: #dadada;
}

.conv-line-input-multi {
  display: flex;
}
.conv-line-input-server {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: 0.25em;
  flex-grow: 1; /* grow input to right edge */
}
.conv-line-input-label {
  word-break: keep-all;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding-right: 0;
  align-items: center;
  background-color: #dadada;
}
.conv-line-text {
  /*margin-bottom: 0.2em;
  margin-top: 1em;*/
  color: var(--text-light);
}
.conv-line-right {
  margin: 0px 10px;
  line-height: 30px;
  text-align: center;
  /*font-size: 1.1rem;*/
  padding: 0 1rem 0 1rem;
  color: green;
}
.conv-settings-delim {
  margin: 1em;
}
.conv-settings-spacer {
  margin: 0.7em;
}
.conv-settings-title {
  color: var(--text-dark);
  font-size: x-large;
  margin-bottom: 0.3em;
}
.conv-line-error {
  color: red;
  font-size: small;
  padding-left: 1em;
}
.conv-line-ok {
  color: green;
  font-size: small;
  padding-left: 1em;
}
.conv-settings-button {
  color: var(--chat-blue);
  cursor: default;
  margin: 0px 10px;
  border-radius: 4px;
  line-height: 30px;
  text-align: center;
  font-size: 1.1rem;
  padding: 0 1rem 0 1rem;
}
@media (hover: hover) {  /* to prevent sticky hover behaviour on mobile */
  .conv-settings-button:hover { background-color: var(--hover-background-color) }
}
.conv-settings-button-On {
  pointer-events: none;
  color: var(--chat-green) !important;
 }
.conv-settings-value {
  color: var(--chat-green);
  cursor: default;
  margin: 0px 10px;
  line-height: 30px;
  text-align: center;
  font-size: 1.1rem;
  padding: 0 1rem 0 1rem;
}
.conv-settings-color-alert {
  color: #de807a;
}
