.textarena-container {
  position: relative;
  border: none;
  width: 100%;
  max-width: 100%;
}
.textarena-container * {
  box-sizing: border-box;
}
.textarena-container:hover, .textarena-container:active, .textarena-container:focus {
  border: none;
}
.textarena-container .pseudo-cursor {
  position: relative;
  height: 1em;
  margin-top: -1em;
  font-size: 1em;
  line-height: 1em;
}
.textarena-container .pseudo-cursor:hover {
  background: #ececec;
}
.textarena-container arena-embed {
  user-select: none;
}
.textarena-container arena-embed-simple {
  display: block;
  position: relative;
  margin: 0 0 1em;
  min-height: 1.6em;
  min-height: 10em;
  overflow: hidden;
  pointer-events: none;
}
.textarena-container arena-embed-simple blockquote {
  padding: 0;
  margin: 0;
  border: none;
}
.textarena-container .embed__content {
  background: white;
  border: 1px solid #ccc;
  border-radius: 1rem;
  padding: 1rem;
  margin: 0 0 1em;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  max-width: 550px;
}
.textarena-container .twitter-tweet-rendered {
  position: relative;
  margin: 0 !important;
}

.textarena-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 1em;
  font-size: 0.8em;
  font-style: italic;
}
.textarena-counter > * {
  margin-right: 1em;
}
.textarena-counter > *:last-child {
  margin-right: 0;
}

.textarena-typograf {
  background: white;
  border: 1px solid gray;
  white-space: nowrap;
}
.textarena-typograf:hover {
  border-color: black;
}

.textarena-help {
  background: white;
  border: 1px solid gray;
  border-radius: 2em;
  width: 2em;
  min-width: 2em;
  height: 2em;
  line-height: 2em;
  margin: 0;
  padding: 0;
}
.textarena-help:hover {
  border-color: black;
}

.textarena-help-wrap {
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow-y: auto;
}

.textarena-help-popup {
  position: relative;
  border: 1px solid gray;
  border-radius: 1em;
  padding: 2rem;
  font-size: 1rem;
  background: white;
  max-width: 800px;
  margin: 1rem auto;
}
.textarena-help-popup:hover .textarena-help-close {
  display: block;
}

.textarena-help-close {
  user-select: none;
  display: none;
  position: absolute;
  right: 0.5em;
  top: 0.5em;
  background: white;
  padding: 1em;
  border-radius: 2em;
  width: 3em;
  height: 3em;
  color: #888;
  cursor: pointer;
  z-index: 100;
  border: none;
}
.textarena-help-close svg {
  width: 100%;
  height: 100%;
  display: block;
}

.textarena-creator {
  position: absolute;
  left: 0;
  z-index: 1;
  flex-direction: row;
  box-sizing: border-box;
  align-items: start;
  transition: 0.3s;
  font-size: 1rem;
  width: 100%;
  pointer-events: none;
}
.textarena-creator_active {
  width: 100%;
  z-index: 1;
}
.textarena-creator__create-button-wrapper {
  display: block;
  display: flex;
  align-items: center;
}
.textarena-creator__create-button {
  pointer-events: all;
  margin-left: 0.2em;
  margin-right: 0.2em;
  padding: 0 0.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  min-width: 1.2em;
  height: 1.2em;
  border: 0.05em solid #888;
  border-radius: 100%;
  cursor: pointer;
  transition: 0.3s;
  background: none;
  box-sizing: border-box;
  font-size: 1em;
}
.textarena-creator__create-button:hover, .textarena-creator__create-button:focus, .textarena-creator__create-button:active {
  outline: none;
  border: 0.05em solid #000;
}
.textarena-creator__create-button svg {
  width: 100%;
  fill: #888;
}
.textarena-creator_active .textarena-creator__create-button {
  transform: rotate(135deg);
}
.textarena-creator__placeholder {
  visibility: visible;
  opacity: 0.2;
  user-select: none;
  pointer-events: none;
  transition: 0.3s;
  width: 0;
  white-space: nowrap;
}
.textarena-creator_active .textarena-creator__placeholder {
  opacity: 0;
}
.textarena-creator__list {
  padding-left: 0.5em;
  display: flex;
  flex-wrap: wrap;
  transition: 0.3s;
  opacity: 0;
  flex-direction: row;
  margin-left: -100em;
  font-size: 1em;
}
.textarena-creator_active .textarena-creator__list {
  margin-left: 0;
  flex-direction: row;
  opacity: 1;
}
.textarena-creator__item {
  pointer-events: all;
  display: flex;
  position: relative;
  min-width: 2em;
  height: 2em;
  border: 0.05em solid #888;
  color: #888;
  border-radius: 2em;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: -1.4em;
  padding: 0.4em;
  box-sizing: border-box;
  background: white;
  margin-bottom: 0.2em;
  font-size: 1em;
}
.textarena-creator__item:hover, .textarena-creator__item:focus, .textarena-creator__item:active {
  outline: none;
  border-color: #000;
  color: #000;
}
.textarena-creator__item-icon {
  font-size: 0.8em;
  display: flex;
  justify-content: center;
}
.textarena-creator__item-icon svg {
  height: 1rem;
}
.textarena-creator_active .textarena-creator__item {
  margin-right: 0.5em;
}
.textarena-creator__hint {
  position: absolute;
  left: 55%;
  top: -43%;
  display: none;
  font-size: 0.9em;
  font-family: monospace;
  width: 1em;
  height: 1.2em;
  background-color: #333;
  text-align: center;
  line-height: 1.2em;
  color: #fff;
  border-radius: 0.2em;
  border: 1px solid #999;
  z-index: 1;
}
.textarena-creator__item_show-hint .textarena-creator__hint {
  display: block;
}

.textarena-editor {
  width: 100%;
  max-width: 100%;
  position: relative;
  border: none;
  padding: 1rem 2rem 10rem;
  font-size: 1rem;
}
.textarena-editor:hover, .textarena-editor:active, .textarena-editor:focus {
  border: none;
  outline: none;
}
.textarena-editor textarena-node {
  display: block;
  position: relative;
  margin: 0 -2rem 1em;
  padding: 0 2rem 0;
  user-select: none;
}
.textarena-editor textarena-node textarena-remove {
  user-select: none;
  display: none;
  position: absolute;
  right: 0.2em;
  top: 0.2em;
  background: white;
  padding: 0.4em;
  border-radius: 0.8em;
  width: 1.4em;
  height: 1.4em;
  color: #888;
  cursor: pointer;
  z-index: 100;
}
.textarena-editor textarena-node textarena-remove svg {
  width: 100%;
  height: 100%;
  display: block;
}
.textarena-editor textarena-node:hover {
  background: #00000012;
}
.textarena-editor textarena-node:hover textarena-remove {
  display: block;
}

.textarena-toolbar {
  position: absolute;
  z-index: 1;
  font-size: 1rem;
  pointer-events: none;
}
.textarena-toolbar__pointer {
  position: absolute;
  left: 0;
  width: 0.4em;
  height: 0.4em;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  background-color: #333;
  z-index: -1;
}
.textarena-toolbar_bottom {
  transform: translate(0, 0.4em);
}
.textarena-toolbar_bottom .textarena-toolbar__pointer {
  top: -0.2em;
}
.textarena-toolbar_top {
  transform: translate(0, -0.4em);
}
.textarena-toolbar_top .textarena-toolbar__pointer {
  bottom: -0.2em;
}
.textarena-toolbar__list {
  pointer-events: all;
  display: flex;
  flex-wrap: wrap;
  color: #ccc;
  box-shadow: 0 8px 23px -6px rgba(21, 40, 54, 0.31), 22px -14px 34px -18px rgba(33, 48, 73, 0.26);
  border-radius: 0.1em;
  background-color: #333;
  z-index: 2;
  user-select: none;
}
.textarena-toolbar__item {
  position: relative;
  display: flex;
  background: none;
  border: none;
  color: inherit;
  line-height: inherit;
  font-size: 1em;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  cursor: pointer;
  margin: 0.1em 0.1em 0.1em 0;
  padding: 0.2em 0;
  box-sizing: border-box;
}
.textarena-toolbar__item:first-child {
  margin-left: 0.2em;
}
.textarena-toolbar__item_active {
  color: #fff;
  box-shadow: inset -0.05em -0.05em 0 0 rgba(255, 255, 255, 0.4);
  background: #1a1a1a;
}
.textarena-toolbar__item-icon {
  font-weight: 900;
  font-family: monospace;
  line-height: 0.8em;
  font-size: 0.8em;
  justify-content: center;
  width: 100%;
}
.textarena-toolbar__item-icon svg {
  width: 60%;
  height: 100%;
}
.textarena-toolbar__hint {
  position: absolute;
  left: 55%;
  top: -43%;
  display: none;
  font-size: 0.9em;
  font-family: monospace;
  width: 1em;
  height: 1.2em;
  background-color: #333;
  text-align: center;
  line-height: 1.2em;
  color: #fff;
  border-radius: 0.2em;
  border: 1px solid #999;
  z-index: 1;
}
.textarena-toolbar__item_show-hint .textarena-toolbar__hint {
  display: block;
}