.post-edit {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.post-edit__nav {
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.post-edit__nav-row {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.post-edit__close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: $fg;
}

.post-edit__nav-title {
  font: 600 17px / 1 $font-display;
  color: $fg;
}

.post-edit__nav-spacer {
  width: 38px;
  height: 38px;
}

.post-edit__body {
  flex: 1;
  box-sizing: border-box;
  padding: 8px 16px 24px;
}

.post-edit__footer {
  flex-shrink: 0;
  padding: 12px 20px 16px;
  background: $bg;
  border-top: 1px solid rgba(216, 180, 255, 0.06);
}

.post-edit__submit {
  width: 100%;
  padding: 15px;
  box-sizing: border-box;
  border-radius: $radius-pill;
  text-align: center;
  background: linear-gradient(90deg, $accent 0%, $accent-2 100%);
  color: $primary-on;
  font: 700 15px / 1 $font-body;
}

.post-edit__submit:active {
  opacity: 0.9;
}

.post-edit__submit--disabled {
  opacity: 0.45;
}

.post-edit__textarea {
  width: 100%;
  min-height: 160px;
  box-sizing: border-box;
  padding: 14px;
  border-radius: 14px;
  background: rgba(31, 23, 66, 0.6);
  border: 1px solid rgba(216, 180, 255, 0.1);
  color: $fg;
  font: 400 15px / 1.6 $font-body;
}

.post-edit__placeholder {
  color: $muted;
}

.post-edit__count {
  display: block;
  margin-top: 8px;
  text-align: right;
  color: $muted;
  font: 400 11px / 1 $font-body;
}

.post-edit__row {
  margin-top: 18px;
  height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(31, 23, 66, 0.6);
  border: 1px solid rgba(216, 180, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-edit__row-label {
  color: $fg;
  font: 500 14px / 1 $font-body;
}

.post-edit__row-value {
  display: flex;
  align-items: center;
  gap: 4px;
  color: $muted;
  font: 400 13px / 1 $font-body;
}

.post-edit__hint {
  display: block;
  margin-top: 16px;
  color: $muted;
  font: 400 12px / 1.6 $font-body;
}
