.compose {
  display: flex;
  gap: 10px;
  border: 1px dashed transparent;
  border-radius: 4px;
  transition: border-color 0.1s, background 0.1s;
}

.voice-page-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.voice-page-heading a[aria-disabled='true'] {
  opacity: 0.55;
  cursor: default;
}

.voice-compose {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 28px 20px;
}

.voice-compose [hidden] {
  display: none !important;
}

.voice-compose-reply {
  justify-self: stretch;
  margin: 0;
  color: #a3a3a3;
  font-size: 13px;
}

.voice-compose-mark {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 3px solid #303030;
  border-radius: 50%;
  background: #071009;
  color: #2fe28a;
}

.voice-compose[data-phase='recording'] .voice-compose-mark {
  border-color: #e0444d;
  color: #e0444d;
}

.voice-compose-status {
  margin: 0;
  color: #f1f1f1;
  font-weight: bold;
  text-align: center;
}

.voice-compose-time {
  margin: 0;
  color: #a3a3a3;
  font-variant-numeric: tabular-nums;
}

.voice-compose-preview,
.voice-compose-text,
.voice-compose-transcribe {
  width: min(100%, 420px);
}

.voice-compose-preview {
  display: block;
}

.voice-compose-text label {
  margin-bottom: 6px;
}

.voice-compose-text textarea {
  width: 100%;
  min-height: 88px;
}

.voice-compose-text span {
  display: block;
  margin-top: 4px;
  color: #a3a3a3;
  font-size: 12px;
  text-align: right;
}

.voice-compose-transcribe {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}

.voice-compose-transcribe input {
  margin: 0;
}

.voice-compose-error {
  margin: 0;
  color: #ff6b6b;
  text-align: center;
}

.voice-compose-actions,
.voice-compose-post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.voice-compose-actions button:not(.btn-primary) {
  border: 1px solid #4a4a4a;
  border-radius: 4px;
  padding: 8px 16px;
  background: #111;
  color: #f1f1f1;
  font: inherit;
  cursor: pointer;
}

.voice-compose-actions button:not(.btn-primary):hover {
  border-color: #2fe28a;
}

.compose.compose-dragover {
  border-color: #2fe28a;
  background: rgba(47, 226, 138, 0.06);
}

.compose-body {
  flex: 1;
  min-width: 0;
}

.compose-textarea {
  height: 50px;
}

.compose-location {
  margin-top: 6px;
}

.location-toggle {
  background: none;
  border: none;
  padding: 0;
  color: #8a8a8a;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.location-toggle:hover {
  color: #45dd92;
}

.location-label {
  margin-right: 6px;
  color: #737373;
  font-size: 12px;
  font-style: italic;
}

.compose-location .location-input {
  width: 100%;
  max-width: 220px;
  padding: 4px 7px;
  border: 1px solid #262626;
  background: #000;
  color: #f1f1f1;
  border-radius: 3px;
  font-family: inherit;
  font-size: 12px;
  margin: 0;
}

.compose-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 6px;
}

.compose-media-btn {
  color: #8a8a8a;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
}

.compose-media-btn:hover {
  color: #45dd92;
  text-decoration: none;
}

.compose-file-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.compose-gif-btn {
  margin-left: auto;
}

.compose-draft-btn {
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
}

.compose-draft-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #45dd92;
  cursor: pointer;
}

.compose-draft-btn[hidden] {
  display: none;
}

.compose-draft-btn:hover {
  color: #7deeb2;
}

.draft-row-body {
  display: block;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 6em;
}

.draft-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #a3a3a3;
  font-size: 12px;
}

.draft-row-meta time {
  margin-right: auto;
}

.compose-media-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: #8a8a8a;
}

.compose-media-preview[hidden] {
  display: none;
}

.compose-media-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.compose-cw-toggle {
  background: none;
  border: none;
  color: #8a8a8a;
  cursor: pointer;
  font-size: 11px;
  padding: 0;
  font-family: inherit;
  white-space: nowrap;
}

.compose-cw-toggle:hover,
.compose-cw-toggle.active {
  color: #e0a64a;
}

.compose-cw-row,
.compose-alt-row,
.compose-subtitles-row {
  margin-top: 4px;
}

.compose-cw-row[hidden],
.compose-alt-row[hidden],
.compose-subtitles-row[hidden] {
  display: none;
}

.compose-subtitles-row label {
  display: block;
  margin-bottom: 4px;
  color: #a3a3a3;
  font-size: 12px;
}

.compose-subtitles-input {
  max-width: 100%;
  color: #f1f1f1;
  font: inherit;
  font-size: 12px;
}

.compose-alt-input {
  width: 100%;
  padding: 4px 7px;
  border: 1px solid #262626;
  background: #000;
  color: #f1f1f1;
  border-radius: 3px;
  font-family: inherit;
  font-size: 12px;
}

.compose-alt-input::placeholder {
  color: #737373;
}

.compose-cw-input {
  width: 100%;
  padding: 4px 7px;
  border: 1px solid #e0a64a;
  background: #000;
  color: #f1f1f1;
  border-radius: 3px;
  font-family: inherit;
  font-size: 12px;
}

.compose-cw-input::placeholder {
  color: #737373;
}

.compose-media-remove {
  background: none;
  border: none;
  color: #8a8a8a;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  line-height: 1;
}

.compose-media-remove:hover {
  color: #ff6b6b;
}

.charcount {
  color: #8a8a8a;
  font-size: 12px;
}

.charcount.warn {
  color: #e0a64a;
}

.charcount.over {
  color: #ff6b6b;
  font-weight: bold;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  border: 1px solid #262626;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-link {
  flex-shrink: 0;
  align-self: flex-start;
  line-height: 0;
}

.avatar-small {
  width: 32px;
  height: 32px;
}

.avatar-large {
  width: 73px;
  height: 73px;
}

.profile-avatar-preview {
  display: block;
  margin-bottom: 8px;
}
